Component/Tabs
Namespace
components.tabs
Constants
The tabs component module.
Source: lib/modules/components/tabs.whl, line: 8
Module calls for button component functions.
Source: lib/modules/components/tabs.whl, line: 11
TABS_COMPONENT_SET_HIDDEN | 0 |
TABS_COMPONENT_SET_DISABLED | 1 |
TABS_COMPONENT_SET_X | 2 |
TABS_COMPONENT_SET_Y | 3 |
TABS_COMPONENT_SET_WIDTH | 4 |
TABS_COMPONENT_SET_HEIGHT | 5 |
TABS_COMPONENT_SET_ACTIVE | 6 |
TABS_COMPONENT_GET_ACTIVE | 7 |
Properties
These properties can be edited with the property editor in the IDE.
Name | Type | Description |
name | string | The component name. |
hidden | boolean | Hide the component. |
x | number | The left position of the component inside the parent component. |
y | number | The top position of the component inside the parent component. |
zIndex | number | The depth of the component related to other components in the parent. |
width | number | The tab panel width. |
height | number | The tab panel height. |
tabs | list | A list of tabs. |
Events
onChange
Called when an other tab is selected.
proc onChange(number windowHandle, number value)
Parameters:
Name | Type | Description |
windowHandle | number | The handle of the parent window of the tabs. |
value | number | Index 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:
Name | Type | Description |
windowHandle | number | The handle of the parent window of the tabs. |
onBlur
Called when the tabs loose focus.
proc onBlur(number windowHandle)
Parameters:
Name | Type | Description |
windowHandle | number | The 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:
Name | Type | Description |
windowHandle | number | The handle of the window. |
componentHandle | number | The handle of the component. |
hidden | number | Hidden TRUE or FALSE. |
setDisabled
Source: lib/modules/components/tabs.whl, line: 50
Disable the tabs.
proc setDisabled(number windowHandle, number componentHandle, number disabled)
Parameters:
Name | Type | Description |
windowHandle | number | The handle of the window. |
componentHandle | number | The handle of the component. |
disabled | number | Disabled 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:
Name | Type | Description |
windowHandle | number | The handle of the window. |
componentHandle | number | The handle of the component. |
x | number | The 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:
Name | Type | Description |
windowHandle | number | The handle of the window. |
componentHandle | number | The handle of the component. |
y | number | The 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:
Name | Type | Description |
windowHandle | number | The handle of the window. |
componentHandle | number | The handle of the component. |
width | number | The 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:
Name | Type | Description |
windowHandle | number | The handle of the window. |
componentHandle | number | The handle of the component. |
height | number | The 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:
Name | Type | Description |
windowHandle | number | The handle of the window. |
componentHandle | number | The handle of the component. |
active | number | The active tab. |
getActive
Source: lib/modules/components/tabs.whl, line: 104
Get the active tab.
proc getActive(number windowHandle, number componentHandle)
Parameters:
Name | Type | Description |
windowHandle | number | The handle of the window. |
componentHandle | number | The handle of the component. |
Return: The active tab.