Param

Method

Event

 

 

ActiveTab

Specifies the active tab on the screen or returns the number of the active tab.

 

Syntax

    [get] HRESULT ActiveTab (
    long* pVal
    );
    [put] HRESULT ActiveTab (
    long newVal
    );

Parameters

[get] pVal

[out, retval] Returns the active tab number.

[put] newVal

[in] Specifies the active tab number.

0

Edit Tab

1

HTML Tab

2

Preview Tab

 

Return Values

Returns the currently set value

 

Remarks

The property must be set after MainClass is called and before the editor loads.

The call can be performed via the created MainClass object's "params".

If the value is incorrectly specified or not specified, it will be set as the Edit Tab.

 

Sample Code

JavaScript [get]

var object = new NamoSE("test");
var edit = object.params.ActiveTab;

 

JavaScript [put]

var object = new NamoSE("test");
object.params.ActiveTab = 2;
object.editorStart();