Wheel IDE

Online demo »

Component/Radio

Namespace
components.radio

Constants

The form module.
Source: lib/modules/components/radio.whl, line: 8
MODULE_COMPONENT_RADIO68

Module calls for the radio component functions.
Source: lib/modules/components/radio.whl, line: 11
RADIO_COMPONENT_SET_HIDDEN0
RADIO_COMPONENT_SET_DISABLED1
RADIO_COMPONENT_SET_X2
RADIO_COMPONENT_SET_Y3
RADIO_COMPONENT_SET_VALUE4
RADIO_COMPONENT_GET_VALUE5

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.
itemslistA list of selectable items.
valuenumberThe selected item.
horizontalbooleanDisplay the items on a single line or underneath each other.

Events

onChange

Called when an other item is selected.

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

Called when the radio is focussed.

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

Called when the radio looses focus.

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

Procedures

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

Hide the radio component.

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

Disable the radio component.

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

Set the x position of the radio component.

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

Set the y position of the radio component.

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.

setValue
Source: lib/modules/components/radio.whl, line: 76

Set the value.

proc setValue(number windowHandle, number componentHandle, number value)
Parameters:
NameTypeDescription
windowHandlenumberThe handle of the window.
componentHandlenumberThe handle of the component.
valuenumberThe active item.

getValue
Source: lib/modules/components/radio.whl, line: 85

Get the value.

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