Working with Actions (wpa)

[Top]  [Chapter]  [Previous]  [Next]

As developer you can either access the various interfaces of TextDynamic to load and edit the text, or you can work with a set of predefined "Actions".


Using actions makes it easy to create a dynamic and customizable GUI.


You only need a basic class for your buttons or menu items which also holds the action name (wpa...). In the initialization such names are converted into integer values, the action IDs. This IDs can be used to execute an action and to check its current state, for example to show the "bold" button pressed, if the current text is written in bold letters.


The integer IDs can be used to call actions more efficient or to address stye flags in a style bitfield.

[work_with_actions_wpa.htm]    Copyright © 2007 by WPCubed GmbH