DEFAULT Property (BUTTON)
The DEFAULT property specifies that the BUTTON is to gain control when the enter key is pressed. The property uses the following format:
DEFAULT[={value}]
Note the following:
DEFAULT may be used in CREATE, SETPROP, or GETPROP statements of a BUTTON object.
This property does not override any DIALOG operations.
If a button object other than the DEFAULT button object has the focus when the enter key is pressed, the activation routine of the button object with the focus gains the program control.
If the DEFAULT property is specified without an assignment, the action is the same as if DEFAULT=1 were given.
{value} is a decimal number, a Numeric Variable, an Expression, or a keyword as defined in PLBEQU.INC. The supported values and keywords are:
|
Value |
Keyword |
Enter key trapping is ... |
|
0 |
$OFF |
disabled. (default) |
|
1 |
$ON |
enabled. |
When a DEFAULT key action generates the click event for a BUTTON object, the 'eventMod' value of 0x100 indicates that a DEFAULT key action generated the click event.
See Also: Object Properties, Object IO Instructions, Object Definitions
![]() |