Component/Text
Namespace
components.text
Constants
The form component module.
Source: lib/modules/components/text.whl, line: 8
Module calls for text component functions.
Source: lib/modules/components/text.whl, line: 11
TEXT_COMPONENT_SET_HIDDEN | 0 |
TEXT_COMPONENT_SET_X | 1 |
TEXT_COMPONENT_SET_Y | 2 |
TEXT_COMPONENT_SET_TEXT | 3 |
Properties
These properties can be edited with the property editor in the IDE.
Name | Type | Description |
name | string | The component name. |
x | number | The left position of the component inside the parent component. |
y | number | The top position of the component inside the parent component. |
zIndex | number | The depth of the component related to other components in the parent. |
width | number | The label width. |
halign | halign | The horizontal alignment of the text which can be: left, center or right. |
text | string | The text. |
Procedures
setHidden
Source: lib/modules/components/text.whl, line: 26
Hide the text.
proc setHidden(number windowHandle, number componentHandle, number hidden)
Parameters:
Name | Type | Description |
windowHandle | number | The handle of the window. |
componentHandle | number | The handle of the component. |
hidden | number | Hidden 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:
Name | Type | Description |
windowHandle | number | The handle of the window. |
componentHandle | number | The handle of the component. |
x | number | The 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:
Name | Type | Description |
windowHandle | number | The handle of the window. |
componentHandle | number | The handle of the component. |
y | number | The 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:
Name | Type | Description |
windowHandle | number | The handle of the window. |
componentHandle | number | The handle of the component. |
text | string | The text text. |