How to create a new module
UM1743
36/111
DocID026161 Rev 4
4
How to create a new module
A module is composed of two main parts:
•
Graphical aspect: the main window frame and module's controls
•
Functionalities: module functions and internal processes
4.1
Creating the graphical aspect
The graphical aspect consists of the main frame window in addition to the set of the visual
elements and controls (buttons, check boxes, progress bars…) used to control and monitor
the module's functionalities.
The STM32CubeF4 demonstration package provides a PC tool; the
GUIBuilder
that allows easily and quickly creating the module frame window and all its components in
few steps. For more information about the GUI Builder, refer to the emwin User and
reference guide (UM03001).
Figure 29. GUI Builder overview
The GUI Builder needs only a few minutes to totally design the module appearances using
"drag and drop" commands and then generate the source code file to be included into the
application.
The file generated is composed of the following main parts:
•
A resource table: it's a table of type GUI_WIDGET_CREATE_INFO, which specifies all
the widgets to be included in the dialog and also their respective positions and sizes.
•
A dialog callback routine: described more in detail in section 4.3 (it is referred to as
“main module callback routine”).