Wheel IDE

Online demo »

Component/StatusLight

Namespace
components.statusLight

Constants

The status light component module.
Source: lib/modules/components/statusLight.whl, line: 8
MODULE_COMPONENT_STATUS_LIGHT104

Module calls for the status light component functions.
Source: lib/modules/components/statusLight.whl, line: 11
STATUS_LIGHT_COMPONENT_SET_HIDDEN0
STATUS_LIGHT_COMPONENT_SET_X1
STATUS_LIGHT_COMPONENT_SET_Y2
STATUS_LIGHT_COMPONENT_SET_COLOR3
STATUS_LIGHT_COMPONENT_SET_RGB_COLOR4
STATUS_LIGHT_COMPONENT_SET_RGB5

Properties

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

NameTypeDescription
namestringThe component name.
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.
colorcolorThe color of the buttons, available colors are: gray, yellow, green, blue or red.
rgbColorbooleanIf this option is selected then the given rgb color will be applied.
rgbrgbThe color in red, green and blue.

Procedures

setHidden
Source: lib/modules/components/statusLight.whl, line: 28

Hide the status light.

proc setHidden(number windowHandle, number componentHandle, number tabIndex)
Parameters:
NameTypeDescription
windowHandlenumberThe handle of the window.
componentHandlenumberThe handle of the component.
tabIndexnumber

setX
Source: lib/modules/components/statusLight.whl, line: 37

Set the x position of the status light.

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/statusLight.whl, line: 46

Set the y position of the status light.

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.

setColor
Source: lib/modules/components/statusLight.whl, line: 55

Set the status light color.

proc setColor(number windowHandle, number componentHandle, number color)
Parameters:
NameTypeDescription
windowHandlenumberThe handle of the window.
componentHandlenumberThe handle of the component.
colornumberThe status light color.

setRgbColor
Source: lib/modules/components/statusLight.whl, line: 64

Select RGB color mode.

proc setRgbColor(number windowHandle, number componentHandle, number rgbColor)
Parameters:
NameTypeDescription
windowHandlenumberThe handle of the window.
componentHandlenumberThe handle of the component.
rgbColornumber

setRgb
Source: lib/modules/components/statusLight.whl, line: 73

Set the RGB color.

proc setRgb(number windowHandle, number componentHandle, number red, number green, number blue)
Parameters:
NameTypeDescription
windowHandlenumberThe handle of the window.
componentHandlenumberThe handle of the component.
rednumberThe red color component, a value in the range of 0..255.
greennumberThe green color component, a value in the range of 0..255.
bluenumberThe blue color component, a value in the range of 0..255.