DocID026161 Rev 4
37/111
UM1743
How to create a new module
110
4.2 Graphics
customization
After the basic module graphical appearance is created, it is then possible to customize
some graphical elements, such as the buttons, by replacing the standard aspect by the user
defined image. To do this, a new element drawing callback should be created and used
instead of the original one.
Below an example of a custom callback for the Play button:
On the code portion above, the _OnPaint_play routine contains just the new button drawing
command.
Note that the new callback should be associated to the graphical element at the moment of
its creation, as shown below:
Figure 30. Graphics customization
4.3 Module
implementation
Once the graphical part of the module is finalized, the module functionalities and processes
could be added then. It begins with the creation of the main module structure as defined in
.
069
QRWSUHVVHG
SUHVVHG