HTBasic Help
×
Menu
Index

ENABLE EVENT

Enables branching on receipt of a specified event.
 
 Syntax: ENABLE EVENT @Eventname, Widgethandle
 
 
Usage:
ENABLE EVENT @Myscrollbar, "CHANGED"
ENABLE EVENT @String1, "KEYSTROKE"
 
Description:
If an ON EVENT statement has been defined for a widget and an event, when the event occurs an event-initiated branch results. Use DISABLE EVENT to temporarily suspend the effects an event would have on your program.
 
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 the program’s sensitivity to that event.
 
While the event is disabled, it can still be logged. Then, when it is re-enabled, the branch will be taken. Only one occurrence of the event will be logged. You must have at least one currently defined event branch in your program to accept inputs from the mouse or keyboard. The events can all be disabled and still accept inputs.
 
See Also: