Wheel IDE

Online demo »

Component/Text

Namespace
components.text

Constants

The form component module.
Source: lib/modules/components/text.whl, line: 8
MODULE_COMPONENT_TEXT82

Module calls for text component functions.
Source: lib/modules/components/text.whl, line: 11
TEXT_COMPONENT_SET_HIDDEN0
TEXT_COMPONENT_SET_X1
TEXT_COMPONENT_SET_Y2
TEXT_COMPONENT_SET_TEXT3

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.
widthnumberThe label width.
halignhalignThe horizontal alignment of the text which can be: left, center or right.
textstringThe text.

Procedures

setHidden
Source: lib/modules/components/text.whl, line: 26

Hide the text.

proc setHidden(number windowHandle, number componentHandle, number hidden)
Parameters:
NameTypeDescription
windowHandlenumberThe handle of the window.
componentHandlenumberThe handle of the component.
hiddennumberHidden TRUE or FALSE.

setX
Source: lib/modules/components/text.whl, line: 35

Set the x position of the text.

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/text.whl, line: 44

Set the y position of the text.

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/text.whl, line: 53

Set text text.

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