Difference between revisions of "Textbox"
From Lianjapedia
Barrymavin (Talk | contribs) (→Properties) |
Barrymavin (Talk | contribs) (→Events) |
||
(7 intermediate revisions by 2 users not shown) | |||
Line 2: | Line 2: | ||
====Description==== | ====Description==== | ||
− | [[{{ns:file}}:textbox.png|link={{filepath: | + | Shown below in a standalone [[Form]]. Click the image to see in a [[Custom_Sections_and_Gadgets|Custom Section]] in a Lianja [[Page Attributes|Page]]. |
+ | |||
+ | [[{{ns:file}}:textbox.png|link={{filepath:textbox_cs.png}}|Textbox]] | ||
Textbox is the default data entry and editing control. | Textbox is the default data entry and editing control. | ||
Line 31: | Line 33: | ||
|valign="top"|The column to search for Autosuggestions | |valign="top"|The column to search for Autosuggestions | ||
|- | |- | ||
− | |valign="top"| | + | |valign="top"|ContextMenu |
|valign="top"|RW | |valign="top"|RW | ||
|valign="top"|Character | |valign="top"|Character | ||
− | |valign="top"|Comma-separated list of | + | |valign="top"|Comma-separated list of menuitems for a right click context menu |
|- | |- | ||
|valign="top"|DataMappingGet | |valign="top"|DataMappingGet | ||
Line 84: | Line 86: | ||
|valign="top"|RW | |valign="top"|RW | ||
|valign="top"|Character | |valign="top"|Character | ||
− | |valign="top"|Text displayed when mouse hovers over object | + | |valign="top"|Text displayed when mouse hovers over object. This may contain {expr} dynamic content macros. |
|- | |- | ||
|valign="top"|Validation | |valign="top"|Validation | ||
Line 111: | Line 113: | ||
!Args | !Args | ||
!width="50%"|Description | !width="50%"|Description | ||
− | + | |- | |
+ | |selectAll||None||Selects all text in the control | ||
|} | |} | ||
Line 122: | Line 125: | ||
!Args | !Args | ||
!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||The key pressed as a string e.g. Ctrl+F1, F2 etc||Occurs when a hotkey is pressed and released in the object | ||
|} | |} | ||
Latest revision as of 05:25, 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 | The key pressed as a string e.g. Ctrl+F1, F2 etc | Occurs when a hotkey is pressed and released in the object |