Difference between revisions of "Textbox"
From Lianjapedia
Barrymavin (Talk | contribs) (→Properties) |
Barrymavin (Talk | contribs) (→Events) |
||
Line 126: | Line 126: | ||
!width="50%"|Description | !width="50%"|Description | ||
|- | |- | ||
− | | | + | |InteractiveChange||None||Occurs when each key is pressed |
|- | |- | ||
− | | | + | |Change||None||Occurs when Tab or return key is pressed |
+ | |- | ||
+ | |HotKeyPress||String||Occurs when a key is pressed and released in the object | ||
|} | |} | ||
Revision as of 05:24, 29 September 2020
Note: property, method and event names should be referred to in lowercase in case-sensitive scripting languages.
Contents
Description
Shown below in a standalone Form. Click the image to see in a Custom Section in a Lianja Page.
Textbox is the default data entry and editing control.
Properties
This class supports the Common Properties plus the following:
Property | Access (R/RW) | Value | Description |
---|---|---|---|
Alignment | RW | Numeric | Alignment: 0 = left, 1 = right, 2 = center |
Autosuggest | RW | Character | List of values to be suggested as the user types (comma-separated or SQL select statement) |
Autosuggestcolumn | RW | Numeric | The column to search for Autosuggestions |
ContextMenu | RW | Character | Comma-separated list of menuitems for a right click context menu |
DataMappingGet | RW | Character | Get Data Mapping |
DataMappingSet | RW | Character | Set Data Mapping |
InputMask | RW | Character | Input mask to format text |
PasswordChar | RW | Character | Character displayed to hide sensitive data such as passwords |
Placeholder | RW | Character | Text to display grayed-out when field is empty and does not have focus |
Readonly | RW | Boolean | Whether object is read only |
Returntabs | RW | Boolean | Whether the return key should be treated as a tab |
SelectOnEntry | RW | Boolean | Whether value is selected when object is entered |
Text | RW | Character | Object's text value |
Tooltip | RW | Character | Text displayed when mouse hovers over object. This may contain {expr} dynamic content macros. |
Validation | RW | Character | String containing boolean expression to validate data entry |
ValidationErrorMessage | RW | Character | Message displayed if validation returns False |
Value | RW | Expr | Object's value, which can be any valid data type |
Methods
This class supports the Common Methods plus the following:
Method | Args | Description |
---|---|---|
selectAll | None | Selects all text in the control |
Events
This class supports the Common Events plus the following:
Event | Args | Description |
---|---|---|
InteractiveChange | None | Occurs when each key is pressed |
Change | None | Occurs when Tab or return key is pressed |
HotKeyPress | String | Occurs when a key is pressed and released in the object |