TabControl Interface Reference

TabControl is a control that contains multiple panels that share the same space on the window. More...

Inheritance diagram for TabControl:

Inheritance graph
Collaboration diagram for TabControl:

Collaboration graph
List of all members.

Public Member Functions

 CreateTab ([in] BSTR Text,[out, retval] IDispatch **pControl)
 This method creates a new Tab.

Properties

IDispatch *R Controls []
 Gets an Controls collection that represents the list of created tabs.
IDispatch *RW ActiveControl []
 Gets or sets the current tab for the control.
VARIANT_BOOL RW Buttons []
 Specifies that the tabs appear as buttons.
VARIANT_BOOL RW MultiLine []
 Specifies that the multiple rows of a tabs are displayed.
VARIANT_BOOL RW HotTrack []
 Specifies that the tabs under the mouse pointer are automatically highlighted.
VARIANT_BOOL RW FlatButtons []
 Specifies that the tabs appear as flat buttons.
VARIANT_BOOL RW RaggedRight []
 Specifies that the rows of tabs will not be stretched to fill the entire width of the tab control.
LONG RW TabWidth []
 If defined specifies the width of the tabs.
LONG RW TabHeight []
 If defined specifies the height of the tabs.
LONG RW ItemIndex []
 Gets or sets the current tab index for the control.
IDispatch *RW Images []
 Determines which ImageList is linked with the TabControl.
VARIANT_BOOL RW TabsVisible []
 Hides or shows the tabs.

Detailed Description

TabControl is a control that contains multiple panels that share the same space on the window.

A TabControl consists of multiple Tab objects that share the same space.

When a user selects the tab, the OnChange event occur.

See also the method CreateTabControl of the Frame.

Examples:

o = new ActiveXObject("Scripting.WindowSystemObject")

o.EnableVisualStyles = true

f = o.CreateForm(0,0,0,0)

f.Text = "WSO"
f.ClientWidth = 200
f.ClientHeight = 100
f.CenterControl()

Tabs = f.CreateTabControl(0,0,0,0)
Tabs.Align = o.Translate("AL_CLIENT")
Tabs.CreateTab("Tab1")
Tabs.CreateTab("Tab2")
Tabs.CreateTab("Tab3")

f.Show()

o.Run()

Result:

TabControl.jpg


Member Function Documentation

CreateTab ( [in] BSTR  Text,
[out, retval] IDispatch **  pControl 
)

This method creates a new Tab.

Parameters:
Text Specifies the title of the tab.
Return values:
pControl Tab object


Property Documentation

IDispatch* RW ActiveControl

Gets or sets the current tab for the control.

VARIANT_BOOL RW Buttons

Specifies that the tabs appear as buttons.

IDispatch* R Controls

Gets an Controls collection that represents the list of created tabs.

See also Collection.

VARIANT_BOOL RW FlatButtons

Specifies that the tabs appear as flat buttons.

VARIANT_BOOL RW HotTrack

Specifies that the tabs under the mouse pointer are automatically highlighted.

IDispatch* RW Images

Determines which ImageList is linked with the TabControl.

See also ImageIndex.

LONG RW ItemIndex

Gets or sets the current tab index for the control.

VARIANT_BOOL RW MultiLine

Specifies that the multiple rows of a tabs are displayed.

VARIANT_BOOL RW RaggedRight

Specifies that the rows of tabs will not be stretched to fill the entire width of the tab control.

LONG RW TabHeight

If defined specifies the height of the tabs.

Default value 0.

If TabWidth = 0 or TabHeight = 0 then all tabs are the same width and height.

Note:
When TabHeight > 0, the control has TCS_FIXEDWIDTH style.
Since:
1.1.16.

VARIANT_BOOL RW TabsVisible

Hides or shows the tabs.

LONG RW TabWidth

If defined specifies the width of the tabs.

Default value 0.

If TabWidth = 0 or TabHeight = 0 then all tabs are the same width and height.

Note:
When TabWidth > 0, the control has TCS_FIXEDWIDTH style.


WSO 1.1 Documentation. Date modified:Wed Aug 12 18:13:16 2015. (C) Veretennikov A. B. 2004-2015