Property

Method

Event

 

ActiveTab

Specifies which tabs to display and gets the index number of the currently visible tabs.

Syntax

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

Parameters

[get]pVal

[out, retval] Returns the index number for the active tabs currently displayed on the Web Editor Control screen.

[put]newVal

[in] Specifies the tabs to be displayed.

0

Edit tab

1

HTML tab

2

Preview tab

Return Values

'0' (always)

Remarks

This value is not applied to any tab which has not been created.

Sample Codes

VBScript

dim object
set object = document.editForm
object.wec.ActiveTab = 2