Auto Select (autoselect)
Determines whether the text in the widget is selected when the field gets focus.
"
autoselect=
True
| False
"
Value | Description |
---|---|
True
|
All the text in the widget is selected when the field gets focus. |
False
(default) |
The text in the widget is not selected when
the field gets focus. Note: For the Combo Box, Edit Box, and Spin Button, this property is set to true in usys.ini, thereby overriding the default behavior. |
Usage
Dynamic? | Yes |
Supported in Grid? | Yes |
Dependencies: | Depends on widget. |
Edit Box
If True
, the user can replace the
entry by typing in the new data. Using any non-alphanumeric keys, such as the cursor keys, causes
the text to be deselected.
If False
, or if the field received
focus by clicking the mouse, the insertion point is placed at the beginning of the text with no
data selected.
Combo Box
Even if Auto Select is
True
, it does not take effect when returning from a form that was started in the
startModification trigger.
Spin Button
All the text in the spin button is selected when the field gets focus, or when it is incremented or decremented (Default).
Using in ProcScript
You can use $properties or $fieldproperties to set or get the property and its value. For more information, see $properties and $fieldproperties.
$fieldproperties(FLD) = "autoselect=true"
Setting in .ini File
You can set the default value for this widget property in the application .ini file. For example:
[widgets] ... Combobox=ucombobox(font=listfont;dimmedbackcolor=off;autoselect=on)