uEZ GUI Start Here Guide
UEZGUI-1788-43WQR
Rev. 1.11 Aug 31, 2016
Page 14
3.
The two arrays under the section header “Local Data” still contain the information
from the “Start Here” text. Each widget is represented in one of the sections within
each array. Identify where the “Start Here” text is.
4.
Replace the “Start Here” text field’s information with the following button
information:
/*---------------------------------------------------------------------------*
* Local Data:
*---------------------------------------------------------------------------
*/
/** Structure to hold all of the widgets used in this dialog*/
static
const
GUI_WIDGET_CREATE_INFO _iHomeScreenDialog
[]
=
{
//Function, Name, ID, XP, YP, XS, YS
{
WINDOW_CreateIndirect
,
""
,
ID_WINDOW
,
WINDOW_XPOS
,
WINDOW_YPOS
,
WINDOW_XSIZE
,
WINDOW_YSIZE
,
0
,
0
,
0
},
{
TEXT_CreateIndirect
,
""
,
ID_TITLE_TEXT
,
TITLE_TEXT_XPOS
,
TITLE_TEXT_YPOS
,
TITLE_TEXT_XSIZE
,
TITLE_TEXT_YSIZE
,
TEXT_CF_HCENTER
|
TEXT_CF_VCENTER
,
0
,
0
},
{
TEXT_CreateIndirect
,
""
,
ID_STARTHERE_TEXT
,
STARTHERE_TEXT_XPOS
,
STARTHERE_TEXT_YPOS
,
STARTHERE_TEXT_XSIZE
,
STARTHERE_TEXT_YSIZE
,
TEXT_CF_HCENTER
|
TEXT_CF_VCENTER
,
0
,
0
},
{
TEXT_CreateIndirect
,
""
,
ID_FDIINFO_TEXT
,
FDIINFO_TEXT_XPOS
,
FDIINFO_TEXT_YPOS
,
FDIINFO_TEXT_XSIZE
,
FDIINFO_TEXT_YSIZE
,
TEXT_CF_HCENTER
|
TEXT_CF_VCENTER
,
0
,
0
},
};
/** Generic Mapping of Screen Layout*/
static
T_LAFMapping HomeScreenMapping
[]
=
{
{
ID_WINDOW
,
""
,
GUI_BLACK
,
GUI_WHITE
,
&
FONT_SMALL
,
LAFSetupWindow
,
0
},
{
ID_TITLE_TEXT
,
"Welcome To uEZ GUI!"
,
GUI_BLACK
,
GUI_WHITE
,
&
FONT_LARGE
,
LAFSetupText
,
0
},
{
ID_STARTHERE_TEXT
,
"\"START HERE\""
,
GUI_BLACK
,
GUI_WHITE
,
&
FONT_LARGE
,
LAFSetupText
,
0
},
{
ID_FDIINFO_TEXT
,
"Future Designs, Inc. 2016 www.TeamFDI.com"
,
GUI_BLACK
,
GUI_WHITE
,
FONTSIZE
,
LAFSetupText
,
0
},
{
0
},
};
/*---------------------------------------------------------------------------*
* Local Data:
*---------------------------------------------------------------------------
*/
/** Structure to hold all of the widgets used in this dialog*/
static
const
GUI_WIDGET_CREATE_INFO _iHomeScreenDialog
[]
=
{
//Function, Name, ID, XP, YP, XS, YS
{
WINDOW_CreateIndirect
,
""
,
ID_WINDOW
,
WINDOW_XPOS
,
WINDOW_YPOS
,
WINDOW_XSIZE
,
WINDOW_YSIZE
,
0
,
0
,
0
},
{
TEXT_CreateIndirect
,
""
,
ID_TITLE_TEXT
,
TITLE_TEXT_XPOS
,
TITLE_TEXT_YPOS
,
TITLE_TEXT_XSIZE
,
TITLE_TEXT_YSIZE
,
TEXT_CF_HCENTER
|
TEXT_CF_VCENTER
,
0
,
0
},
{
BUTTON_CreateIndirect
,
""
,
ID_MYBUTTON_BUTTON
,
MYBUTTON_BUTTON_XPOS
,
MYBUTTON_BUTTON_YPOS
,
MYBUTTON_BUTTON_XSIZE
,
MYBUTTON_BUTTON_YSIZE
,
TEXT_CF_HCENTER
|
TEXT_CF_VCENTER
,
0
,
0
},
{
TEXT_CreateIndirect
,
""
,
ID_FDIINFO_TEXT
,
FDIINFO_TEXT_XPOS
,
FDIINFO_TEXT_YPOS
,
FDIINFO_TEXT_XSIZE
,
FDIINFO_TEXT_YSIZE
,
TEXT_CF_HCENTER
|
TEXT_CF_VCENTER
,
0
,
0
},
};