Oct. 04, 2018
Page
13
of 18
Rev 1.00
M480 emWin
4
emWin GUIBuilder
4.1 Create Widget
Segger provides a Windows tool GUIBuilder to create application with drag and drop
interface. The tool is located under the ThirdParty\emWin\Tool\ directory. This tool can
generate a file named FramewinDLG.c for the widget of target application. Please refer to
chapter 20 of UM03001_emWin5.pdf for the usage of GUIBuilder.
4.2 Handle Widget Event
FramewinDLG.c is only the framework of widget and programmers still need to add their
desired widget event handler in this file after copying the FramewinDLG.c file into the project
directory. Below is the event handling code of emWin_SimpleDemo.
......
switch (pMsg->MsgId)
{
case WM_INIT_DIALOG:
//
// Initialization of 'Edit'
//
value = 123;