Wheel IDE

Online demo »

Component/TextInput

Namespace
components.textInput

Constants

The text input component module.
Source: lib/modules/components/textInput.whl, line: 8
MODULE_COMPONENT_TEXT_INPUT70

Module calls for button component functions.
Source: lib/modules/components/textInput.whl, line: 11
TEXT_INPUT_COMPONENT_SET_HIDDEN0
TEXT_INPUT_COMPONENT_SET_DISABLED1
TEXT_INPUT_COMPONENT_SET_X2
TEXT_INPUT_COMPONENT_SET_Y3
TEXT_INPUT_COMPONENT_GET_TEXT_VALUE4
TEXT_INPUT_COMPONENT_SET_TEXT_VALUE5
TEXT_INPUT_COMPONENT_GET_NUMBER_VALUE6
TEXT_INPUT_COMPONENT_SET_NUMBER_VALUE7
TEXT_INPUT_COMPONENT_SET_PLACE_HOLDER8

Properties

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

NameTypeDescription
namestringThe component name.
hiddenbooleanHide the component.
disabledbooleanDisable the component.
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.
widthnumber|emptyThe width of the input, if empty then the default size is used.
valuenumber|stringThe value.
numericbooleanSelect 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:
NameTypeDescription
windowHandlenumberThe handle of the parent window of the text input.
valuenumber`TRUE` when checked, `FALSE` if not checked.
onFocus

Called when the text input is focussed.

proc onFocus(number windowHandle)
Parameters:
NameTypeDescription
windowHandlenumberThe handle of the parent window of the text input.
onBlur

Called when the text input looses focus.

proc onBlur(number windowHandle)
Parameters:
NameTypeDescription
windowHandlenumberThe 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:
NameTypeDescription
windowHandlenumberThe handle of the window.
componentHandlenumberThe handle of the component.
hiddennumberHidden 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:
NameTypeDescription
windowHandlenumberThe handle of the window.
componentHandlenumberThe handle of the component.
disablednumberDisabled 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:
NameTypeDescription
windowHandlenumberThe handle of the window.
componentHandlenumberThe handle of the component.
xnumberThe 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:
NameTypeDescription
windowHandlenumberThe handle of the window.
componentHandlenumberThe handle of the component.
ynumberThe 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:
NameTypeDescription
windowHandlenumberThe handle of the window.
componentHandlenumberThe handle of the component.
textstringThe 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:
NameTypeDescription
windowHandlenumberThe handle of the window.
componentHandlenumberThe handle of the component.
textstringThe 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:
NameTypeDescription
windowHandlenumberThe handle of the window.
componentHandlenumberThe 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:
NameTypeDescription
windowHandlenumberThe handle of the window.
componentHandlenumberThe handle of the component.
valuenumber

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:
NameTypeDescription
windowHandlenumberThe handle of the window.
componentHandlenumberThe handle of the component.
placeHolderstringThe text input hint.