Toolbox events are essentially an abstraction on Wimp events and are much easier to “handle”. They are generated by the Toolbox modules in response to user interaction with Toolbox objects, and also in response to client application operations. Toolbox events are also used to warn the client application that a particular action has been taken by the Toolbox.
Each Toolbox event has its own event code, which is a 32-bit integer defined in a similar manner to Wimp message numbers. For example,
is the (default) event generated when a Toolbox menu-entry is selected.
For an AppBasic application, all Toolbox events call the event-handling procedure
where the arguments have the meanings
If the event has originated in an object belonging to one of the standard classes then the corresponding class handler is also called. E.g. all events associated with a Menu object, call the event handler
||The id of the event which has occurred
||The id of the object where the event has occurred ('0' means no object)
||The id of the component where the event has occurred ('-1' means no component)