User-defined events are useful when common logic is needed for several event handlers, and/or GUI statements are needed in the common logic.
A user-defined event shares views with the Procedure Action Diagram that contains the event.
The event USEs an external action block named TIREVENT, which must be added to the model. TIREVENT must have an import view of command, which will receive the name specified as the event type in CA Gen. This action block does not have to be generated.
Associate the event with the window or primary dialog box so that it can be shared and not duplicated within the procedure.
An example of how to specify the event type and action name for a window is shown in the next sample code.
|
Copyright © 2013 CA.
All rights reserved.
|
|