Wheel IDE

Online demo »

Component/Checkbox

Namespace
components.checkbox

Constants

The checkbox component module.
Source: lib/modules/components/checkbox.whl, line: 8
MODULE_COMPONENT_CHECKBOX67

Module calls for the checkbox component functions.
Source: lib/modules/components/checkbox.whl, line: 11
CHECKBOX_COMPONENT_SET_HIDDEN0
CHECKBOX_COMPONENT_SET_DISABLED1
CHECKBOX_COMPONENT_SET_X2
CHECKBOX_COMPONENT_SET_Y3
CHECKBOX_COMPONENT_SET_TEXT4
CHECKBOX_COMPONENT_SET_HINT5
CHECKBOX_COMPONENT_SET_CHECKED6
CHECKBOX_COMPONENT_GET_VALUE7

Properties

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

NameTypeDescription
namestringThe component name.
hiddenbooleanHide the component.
disabledbooleanDisable 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.
textstringThe label text.

Events

onChange

Called when the checkbox is selected or unselected.

proc onChange(number windowHandle, number value)
Parameters:
NameTypeDescription
windowHandlenumberThe handle of the parent window of the checkbox.
valuenumber`TRUE` when checked, `FALSE` if not checked.
onFocus

Called when the checkbox is focussed.

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

Called when the checkbox looses focus.

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

Procedures

setHidden
Source: lib/modules/components/checkbox.whl, line: 40

Hide the checkbox.

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/checkbox.whl, line: 49

Disable the checkbox.

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/checkbox.whl, line: 58

Set the x position of the checkbox.

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/checkbox.whl, line: 67

Set the y position of the checkbox.

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.

setText
Source: lib/modules/components/checkbox.whl, line: 76

Set the checkbox text.

proc setText(number windowHandle, number componentHandle, string text)
Parameters:
NameTypeDescription
windowHandlenumberThe handle of the window.
componentHandlenumberThe handle of the component.
textstringThe checkbox label text.

setHint
Source: lib/modules/components/checkbox.whl, line: 85

Set the checkbox hint.

proc setHint(number windowHandle, number componentHandle, string hint)
Parameters:
NameTypeDescription
windowHandlenumberThe handle of the window.
componentHandlenumberThe handle of the component.
hintstringThe checkbox hint.

setChecked
Source: lib/modules/components/checkbox.whl, line: 94

Set the checkbox value.

proc setChecked(number windowHandle, number componentHandle, number checked)
Parameters:
NameTypeDescription
windowHandlenumberThe handle of the window.
componentHandlenumberThe handle of the component.
checkednumber

getValue
Source: lib/modules/components/checkbox.whl, line: 103

Get the value.

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