Component/TextInput
Namespace
components.textInput
Constants
The text input component module.
Source: lib/modules/components/textInput.whl, line: 8
| MODULE_COMPONENT_TEXT_INPUT | 70 |
Module calls for button component functions.
Source: lib/modules/components/textInput.whl, line: 11
TEXT_INPUT_COMPONENT_SET_HIDDEN | 0 |
TEXT_INPUT_COMPONENT_SET_DISABLED | 1 |
TEXT_INPUT_COMPONENT_SET_X | 2 |
TEXT_INPUT_COMPONENT_SET_Y | 3 |
TEXT_INPUT_COMPONENT_GET_TEXT_VALUE | 4 |
TEXT_INPUT_COMPONENT_SET_TEXT_VALUE | 5 |
TEXT_INPUT_COMPONENT_GET_NUMBER_VALUE | 6 |
TEXT_INPUT_COMPONENT_SET_NUMBER_VALUE | 7 |
TEXT_INPUT_COMPONENT_SET_PLACE_HOLDER | 8 |
Properties
These properties can be edited with the property editor in the IDE.
Name | Type | Description |
name | string | The component name. |
hidden | boolean | Hide the component. |
disabled | boolean | Disable the component. |
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|empty | The width of the input, if empty then the default size is used. |
value | number|string | The value. |
numeric | boolean | Select if the input only accepts numeric values or any text. |
Events
onChange
Called when the text input is selected or unselected.
proc onChange(number windowHandle, number value)
Parameters:
Name | Type | Description |
windowHandle | number | The handle of the parent window of the text input. |
value | number | `TRUE` when checked, `FALSE` if not checked. |
onFocus
Called when the text input is focussed.
proc onFocus(number windowHandle)
Parameters:
Name | Type | Description |
windowHandle | number | The handle of the parent window of the text input. |
onBlur
Called when the text input looses focus.
proc onBlur(number windowHandle)
Parameters:
Name | Type | Description |
windowHandle | number | The handle of the parent window of the text input. |
Procedures
setHidden
Source: lib/modules/components/textInput.whl, line: 43
Hide the text input.
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. |
setDisabled
Source: lib/modules/components/textInput.whl, line: 52
Disable the text input.
proc setDisabled(number windowHandle, number componentHandle, number disabled)
Parameters:
Name | Type | Description |
windowHandle | number | The handle of the window. |
componentHandle | number | The handle of the component. |
disabled | number | Disabled TRUE or FALSE. |
setX
Source: lib/modules/components/textInput.whl, line: 61
Set the x position of the text input.
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/textInput.whl, line: 70
Set the y position of the text input.
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. |
getTextValue
Source: lib/modules/components/textInput.whl, line: 79
Get the text input text value.
proc getTextValue(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 string to store the text value. |
setTextValue
Source: lib/modules/components/textInput.whl, line: 88
Set the text input text value.
proc setTextValue(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 input value. |
getNumberValue
Source: lib/modules/components/textInput.whl, line: 97
Get the text input number value.
proc getNumberValue(number windowHandle, number componentHandle)
Parameters:
Name | Type | Description |
windowHandle | number | The handle of the window. |
componentHandle | number | The handle of the component. |
Return: The value as a number.
setNumberValue
Source: lib/modules/components/textInput.whl, line: 106
Set the text input number value.
proc setNumberValue(number windowHandle, number componentHandle, number value)
Parameters:
Name | Type | Description |
windowHandle | number | The handle of the window. |
componentHandle | number | The handle of the component. |
value | number | |
setPlaceHolder
Source: lib/modules/components/textInput.whl, line: 115
Set the text input place holder text.
proc setPlaceHolder(number windowHandle, number componentHandle, string placeHolder)
Parameters:
Name | Type | Description |
windowHandle | number | The handle of the window. |
componentHandle | number | The handle of the component. |
placeHolder | string | The text input hint. |