Code Example: Posting an Event to Suspend the Current Form

As an example, consider the process of posting an event to force Vermont Views to suspend processing the current data form and begin processing a new window new_wnp. Checking the table in the Function Reference, you find that the correct event type is AC_FMSUSPEND. For this event type, wmsg is not used, and lmsg is used as a pointer to the window to activate next (not, as most people expect, a pointer to the window to be suspended). The code fragment to post this event is:

evnt_post(AC_FMSUSPEND, 0, new_wnp);

where new_wnp is a pointer to the window to activate.


Home Contents Previous Next