High level events are generated by MSM-ViEWBuilder's compiled structures and do not necessarily have counterpart in the MWAPI.
However, high level events are frequently caused by a corresponding low level event. For example, a Button has a low level select event and a high level Push event. Action logic may be attached to either, or to both. The select event logic is performed first, followed by the Push event logic. In fact, the select event logic can be made to prevent execution of the Push event logic by invoking code from the macro %%NotOK.
The various parameters can be accessed through a number of macros:
Name | Description |
---|---|
%%EvChoice | The current choice. |
%%EvControl | The control for which the event occurred. |
%%EvElement | The element for which the event occurred. |
%%EvKey | Which key was pressed for a key event. |
%%EvNext | The next control in focus order. |
%%EvPrior | The previous control in focus order. |
%%EvPtrButton | The mouse button that caused the event to happen. |
%%EvPtrPos | The position of the mouse. |
%%EvPtrState | The combination of mouse buttons depressed. |
%%EvSequence | The sequence number of the event. |
%%EvType | The type of the event. |
%%EvWindow | The window for which the event occurred. |
Object | Low level events | High level events |
---|---|---|
Window and all Controls | gotFocus | Enter |
Window and all Controls | lostFocus | Exit |
Combo Box,
Date,
Document, Spin Button, Text Box | change | Modified, Exit |
Button | select | Push |
Radio Button | deselect, select | Push |
Check Box | deselect, select | Check |
Drop Down List,
List Box, Long List | deselect, select | Choose |
Scroll | select | Scroll |
Long List | goBottom,
goDown,
goDownBig, goTop, goUp, goUpBig | Scroll |
Where more than one low level event is listed for a single table entry, any of the events lead to the same high level event. If the high level event action logic needs to know its originator it can examine the event information. Where more than one high level event is listed, if action logic for a given event in the list executes code from the macro %%NotOK before quitting then no further events will be triggered for the chain of events in question.
Initial event | Chained event |
---|---|
Window Create | Initially-enabled control Create events, in collating sequence of control name. The window and all its defined controls have been created before any Control Create events occur |
Window Destroy | Initially-enabled control Destroy events, in collating sequence of control name. The window is not killed until after all Control Destroy events complete successfully. |