Content:
- Methods

If you want the user to enter custom data you probably need the TextEdit control.

edt = app.CreateTextEdit( text, width, height, options ) → app object: TextEdit

For number input only you can apply the “numbers” option.

You can use the SetOnChange method of the TextEdit to set the name of a function you want to be called when a the text is changed.

Use the SetText and GetText functions to set and get the text in the TextEdit.

Example - Using OnChange click to expand contents 

You can change the look of a TextEdit using the SetBackColor and SetTextColor functions on the TextEdit object.

Example - Blue on White click to expand contents 

You can also set a background image/pattern or background gradient for the List using the SetBackground and SetBackGradient functions. See Layouts for examples of how to use these functions.

Example - Password click to expand contents 

Methods

The following methods are available on the TextEdit object:

Focus()
GetAbsHeight() → Number: integer
GetAbsWidth() → Number: integer
GetCursorLine() → Number: integer
GetCursorPos() → Number: integer
GetHeight( options ) → Number
GetHtml() → String: html code
GetLeft( options ) → Number
GetLineCount() → Number: integer
GetLineStart( line ) → Number: integer
GetLineTop( line ) → Number: fraction (0..1)
GetMaxLines() → Number: integer
GetParent() → app object
GetPosition( options ) → Object: { left, top, width, height }
GetSelectedText() → String
GetSelectionEnd() → Number: integer
GetSelectionStart() → Number: integer
GetText() → String
GetTextSize( mode ) → Number
GetTop( options ) → Number
GetType() → String: “TextEdit”
GetVisibility() → String: “Show” or “Hide” or “Gone”
GetWidth( options ) → Number
Gone()
Hide()
IsEnabled() → Boolean
IsOverlap( obj, depth ) → Boolean
IsVisible() → Boolean
Method( name, types, p1, p2, p3, p4 ) → all types
Redo()
Show()
Undo()