DEFAULT Property
PLBCMP GUI Only
The DEFAULT property specifies that the BUTTON or MENUITEM is to gain control when the enter key is pressed. The property uses the following format:
DEFAULT[={value}]
Note the following:
1. DEFAULT may be used in CREATE, SETPROP, or GETPROP statements of a BUTTON object or in the GETPROP or SETPROP statements of a MENUITEM. (9.0)
2. This property does not override any DIALOG operations.
3. 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.
4. If the object is a MENUITEM object, this property specifies the menu item selected when a menu has been selected and the enter key is pressed.
5. If the DEFAULT property is specified without an assignment, the action is the same as if DEFAULT=1 were given.
6. {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
![]() |