WIMP application messages

The RISC OS desktop also sends message to an application using WIMP messages. Some of these messages can also be sent from one application to another.

There are three types of messages, user, recorded and acknowledged and TBX provides listeners on the tbx::Application class to handle them.

A class tbx::WimpMessage exists to help interrogate the data received from these methods. It can also be used to send replies to a received message or to send your own messages to another application.

TBX also provides some built in functionality to deal with some of the more common messages at a higher level. Like all such functionality you can ignore it and create your own using just the standard message listeners.

A couple of the most useful are the PreQuit listener on the tbx::Application class and the handling of the data/file loading messages which can be routed to the iconbar icon/window or gadget the data/file was dropped on using the add_loader method provided on the relevant classes.