Wheel IDE

Online demo »

Component/Label

Namespace
components.label

Constants

The form component module.
Source: lib/modules/components/label.whl, line: 8
MODULE_COMPONENT_LABEL80

Module calls for label component functions.
Source: lib/modules/components/label.whl, line: 11
LABEL_COMPONENT_SET_HIDDEN0
LABEL_COMPONENT_SET_X1
LABEL_COMPONENT_SET_Y2
LABEL_COMPONENT_SET_FONT_SIZE3
LABEL_COMPONENT_SET_TEXT4
LABEL_COMPONENT_SET_VALUE_NUMBER5
LABEL_COMPONENT_SET_VALUE_STRING6

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.
ynumberThe font size.
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 label text.
valuestringThe value text, displayed on the right side of the text.

Procedures

setHidden
Source: lib/modules/components/label.whl, line: 31

Hide the label.

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/label.whl, line: 40

Set the x position of the label.

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

Set the y position of the label.

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.

setFontSize
Source: lib/modules/components/label.whl, line: 58

Set the font size of the label text.

proc setFontSize(number windowHandle, number componentHandle, number fontSize)
Parameters:
NameTypeDescription
windowHandlenumberThe handle of the window.
componentHandlenumberThe handle of the component.
fontSizenumberThe font size in pixels, the default value is 16.

setText
Source: lib/modules/components/label.whl, line: 67

Set label text.

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

setValueNumber
Source: lib/modules/components/label.whl, line: 76

Set label value as a number.

proc setValueNumber(number windowHandle, number componentHandle, number n)
Parameters:
NameTypeDescription
windowHandlenumberThe handle of the window.
componentHandlenumberThe handle of the component.
nnumberThe label value.

setValueString
Source: lib/modules/components/label.whl, line: 85

Set label value as a number.

proc setValueString(number windowHandle, number componentHandle, string s)
Parameters:
NameTypeDescription
windowHandlenumberThe handle of the window.
componentHandlenumberThe handle of the component.
sstring