CANCEL Property
PLBCMP GUI Only
The CANCEL property specifies that the BUTTON gains control when the escape key is pressed. The property uses the following format:
CANCEL[={value}]
Note the following:
CANCEL may be used in CREATE, SETPROP, or GETPROP statements of a BUTTON object.
This property does not override any DIALOG operations.
If the CANCEL property is specified without an assignment, the action is the same as if CANCEL=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 |
Escape key trapping is ... |
|
0 |
$OFF |
disabled. (default) |
|
1 |
$ON |
enabled. |
When a CANCEL key action generates the click event for a BUTTON object, the 'eventMod' value of 0x200 indicates that a CANCEL key action generated the click event.
See Also: Object Properties, Object IO Instructions, Object Definitions
![]() |