Component/Slider
Namespace
components.slider
Constants
The slider component module.
Source: lib/modules/components/slider.whl, line: 8
| MODULE_COMPONENT_SLIDER | 71 |
Module calls for the slider component functions.
Source: lib/modules/components/slider.whl, line: 11
SLIDER_COMPONENT_SET_HIDDEN | 0 |
SLIDER_COMPONENT_SET_DISABLED | 1 |
SLIDER_COMPONENT_SET_X | 2 |
SLIDER_COMPONENT_SET_Y | 3 |
SLIDER_COMPONENT_SET_VALUE | 4 |
SLIDER_COMPONENT_GET_VALUE | 5 |
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. |
disabled | boolean | Disable 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 slider width. |
maxValue | number | The maximum value. |
value | number | The current value, in the range of 0..maxValue. |
Events
onChange
Called when the slider is selected or unselected.
proc onChange(number windowHandle, number value)
Parameters:
Name | Type | Description |
windowHandle | number | The handle of the parent window of the slider. |
value | number | `TRUE` when checked, `FALSE` if not checked. |
onFocus
Called when the slider is focussed.
proc onFocus(number windowHandle)
Parameters:
Name | Type | Description |
windowHandle | number | The handle of the parent window of the slider. |
onBlur
Called when the slider looses focus.
proc onBlur(number windowHandle)
Parameters:
Name | Type | Description |
windowHandle | number | The handle of the parent window of the slider. |
Procedures
setHidden
Source: lib/modules/components/slider.whl, line: 40
Hide the slider.
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/slider.whl, line: 49
Disable the slider.
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/slider.whl, line: 58
Set the x position of the slider.
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/slider.whl, line: 67
Set the y position of the slider.
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. |
setValue
Source: lib/modules/components/slider.whl, line: 76
Set the slider number value.
proc setValue(number windowHandle, number componentHandle, number value)
Parameters:
Name | Type | Description |
windowHandle | number | The handle of the window. |
componentHandle | number | The handle of the component. |
value | number | The slider value. |
getValue
Source: lib/modules/components/slider.whl, line: 85
Get the value.
proc getValue(number windowHandle, number componentHandle)
Parameters:
Name | Type | Description |
windowHandle | number | The handle of the window. |
componentHandle | number | The handle of the component. |
Return: The value.