Wheel IDE

Online demo »

Component/Tabs

Namespace
components.tabs

Constants

The tabs component module.
Source: lib/modules/components/tabs.whl, line: 8
MODULE_COMPONENT_TABS89

Module calls for button component functions.
Source: lib/modules/components/tabs.whl, line: 11
TABS_COMPONENT_SET_HIDDEN0
TABS_COMPONENT_SET_DISABLED1
TABS_COMPONENT_SET_X2
TABS_COMPONENT_SET_Y3
TABS_COMPONENT_SET_WIDTH4
TABS_COMPONENT_SET_HEIGHT5
TABS_COMPONENT_SET_ACTIVE6
TABS_COMPONENT_GET_ACTIVE7

Properties

These properties can be edited with the property editor in the IDE.

NameTypeDescription
namestringThe component name.
hiddenbooleanHide the component.
xnumberThe left position of the component inside the parent component.
ynumberThe top position of the component inside the parent component.
zIndexnumberThe depth of the component related to other components in the parent.
widthnumberThe tab panel width.
heightnumberThe tab panel height.
tabslistA list of tabs.

Events

onChange

Called when an other tab is selected.

proc onChange(number windowHandle, number value)
Parameters:
NameTypeDescription
windowHandlenumberThe handle of the parent window of the tabs.
valuenumberIndex of the selected tab, the index of the first tab is 0, the second is 1, etc..
onFocus

Called when the tabs are focussed.

proc onFocus(number windowHandle)
Parameters:
NameTypeDescription
windowHandlenumberThe handle of the parent window of the tabs.
onBlur

Called when the tabs loose focus.

proc onBlur(number windowHandle)
Parameters:
NameTypeDescription
windowHandlenumberThe handle of the parent window of the tabs.

Procedures

setHidden
Source: lib/modules/components/tabs.whl, line: 41

Hide the tabs.

proc setHidden(number windowHandle, number componentHandle, number hidden)
Parameters:
NameTypeDescription
windowHandlenumberThe handle of the window.
componentHandlenumberThe handle of the component.
hiddennumberHidden TRUE or FALSE.

setDisabled
Source: lib/modules/components/tabs.whl, line: 50

Disable the tabs.

proc setDisabled(number windowHandle, number componentHandle, number disabled)
Parameters:
NameTypeDescription
windowHandlenumberThe handle of the window.
componentHandlenumberThe handle of the component.
disablednumberDisabled TRUE or FALSE.

setX
Source: lib/modules/components/tabs.whl, line: 59

Set the x position of the tabs.

proc setX(number windowHandle, number componentHandle, number x)
Parameters:
NameTypeDescription
windowHandlenumberThe handle of the window.
componentHandlenumberThe handle of the component.
xnumberThe x position in pixels.

setY
Source: lib/modules/components/tabs.whl, line: 68

Set the y position of the tabs.

proc setY(number windowHandle, number componentHandle, number y)
Parameters:
NameTypeDescription
windowHandlenumberThe handle of the window.
componentHandlenumberThe handle of the component.
ynumberThe y position in pixels.

setWidth
Source: lib/modules/components/tabs.whl, line: 77

Set the width of the tabs.

proc setWidth(number windowHandle, number componentHandle, number width)
Parameters:
NameTypeDescription
windowHandlenumberThe handle of the window.
componentHandlenumberThe handle of the component.
widthnumberThe width in pixels.

setHeight
Source: lib/modules/components/tabs.whl, line: 86

Set the height of the tabs.

proc setHeight(number windowHandle, number componentHandle, number height)
Parameters:
NameTypeDescription
windowHandlenumberThe handle of the window.
componentHandlenumberThe handle of the component.
heightnumberThe height in pixels.

setActive
Source: lib/modules/components/tabs.whl, line: 95

Set the active tabs.

proc setActive(number windowHandle, number componentHandle, number active)
Parameters:
NameTypeDescription
windowHandlenumberThe handle of the window.
componentHandlenumberThe handle of the component.
activenumberThe active tab.

getActive
Source: lib/modules/components/tabs.whl, line: 104

Get the active tab.

proc getActive(number windowHandle, number componentHandle)
Parameters:
NameTypeDescription
windowHandlenumberThe handle of the window.
componentHandlenumberThe handle of the component.
Return: The active tab.