ExampleDISABLE EVENT @Myscrollbar,"CHANGED"
DISABLE EVENT @String1, "KEYSTROKE"
SyntaxDISABLE EVENT @w_hndl, event_name
DescriptionDISABLE EVENT temporarily suspend responding to events. For example, you may want the program to accomplish some task without interruption. After that task is accomplished, you can use ENABLE EVENT to re-enable event branching. A disabled event can still be logged so that when the event is re-enabled, the branch will be taken. Only one occurrence of the event will be logged. The events can all be disabled and still accept inputs.
Note that DISABLE EVENT temporarily disables the event, while OFF EVENT permanently deactivates it. Therefore, only one occurrence of the event will be logged if the event is disabled with DISABLE EVENT and the specified branch will be taken once the event is re enabled with ENABLE EVENT, whereas the event will NOT be logged and the branch will never be taken if the event is deactivated with OFF EVENT.
For example:
ENABLE EVENT @Meter, ALARM .
DISABLE EVENT @Meter, ALARM
|