Contents Up Previous Next

Associating actions with events

In order to give the interface some dynamics, a small repertoire of actions is available for association with some events. For example, a menu command called Open report window might be associated with with the Open window action, to open another frame in the interface.

To create an action, execute the event you wish to associate with an action. These events are currently:

You will be presented with a list of possible actions. Once you have chosen an action, the appropriate action editor is invoked.

The next time you invoke the event in Edit mode, the action editor will be presented. You may delete the action using the Delete button. In Test mode, the event will cause the appropriate action to be executed.

Currently, only one action per event is allowed. A later release of wxBuilder may allow multiple events, so (for example) an event could cause a window to be opened and a file to be loaded.

Note that some actions are mandatory for a working C++ program to be generated. For example, a modal dialog box with no action dismissing it will cause the window to be uncloseable, which might require the user to quit the windowing system to recover.