To make use
of your project file in a program, the Designer offers you the possibility
to generate 'C' and C++ source files that can be linked with your code
to produce a complete program.
The generated source code consists of the GUI creation C functions or C++ GUI
classes for creating the windows you defined in your project. You will
need to define the main function and the callbacks' code to implement the
desired actions to be taken on object demand (such as a button press).
Designer allows you to include a standard main function in the generated
code (in this case you'll be asked to choose the window to open at program
start-up). You can also define your callbacks' code inside the project,
however, it's a good idea to put the callbacks' code in an external ordinary
C/C++ file for an easier mainteinance. Designer helps you in this by generating
a template file with an empty version of the appropriate type (C or C++) for all
defined callbacks. For instance, if the name of your project is MEdit, just
rename file MEdit.tpl as MEditCB.c and add it in your makefile.
MGui Designer is helpful because it produces cross-platform source code, shows the real window layout while you construct it, and lets you experiment many of the MGui features like the automatic Object positioning and resizing.
Designer 4.0.5 requires MGui 4.0.5 or higher.
What’s new
Compared to previous release 3.5, the new release 4.0 provides the following new features:
![]() |
Designer’s main window
The program’s main window, shown in the left, contains three areas:
|
Actual layout window
Generic object editing
window
Attachment dialog
Callback setting dialog
Class options dialog
SHELL object
FORM objects
MENU object
SLIST object
LABEL object
BUTTON objects
EDIT objects
DRAWAREA object
PIXMAP object
STATUS BAR object
SCROLL BAR object
SPLITTER object