12.8 Groupbox Widget - GBOX
The GBOX widget generates a border/box and by changing the
options
positions the header text at
different alignments. Group boxes help visually distinguish related items by framing them. The
Groupbox consists
only
of the frame, title, and a title background. The GBOX.EZM file in the
\EZSYS\MACROS directory contains an example of this widget. It can be invoked by typing PLAY
GBOX from your terminal program.
gbox [ID][x][y][width][height][options][theme][stringID]
Example:
cls white
'clears the screen to white
string 1 "testing"
'the word will appear at the bottom of the widget
fontw 0 sans24
'widget font needs to be set before the theme
theme 0 0 1 2 3 4 5 6 7 8 0
'colors are to distinguish different parts of widget
gbox 1 20 30 300 200 1 0 1
Images of Widget Options
:
The GBOX command contains eight different values.
The
[ID]
is the id number
1-99
of this particular widget. You can create many different widgets as long
as each ID is unique regardless of widget type.
The
[x]
and
[y]
values designate the location of the widget on the screen as the
XY
coordinate of the
upper left corner.
The
[width]
and
[height]
values designate the width and height of the widget in pixels.
The
[options]
determines the header alignments. (The options do not affect the Contents' alignment)
Option choices:
1=left,2=disabled,3=right,4=center
The
[theme]
value sets widget to theme 2.
The
[stringID] d
esignates the id number of the string you want as a header of the box.
47
Option 1 = Left
Option 3 = Right
Option 4 = Center
Summary of Contents for ezLED-3 Series
Page 25: ...25 Dial Choice Digital Meter ...
Page 26: ...26 Progress Bar Radio Button Slider Slider scroll bar option ...
Page 27: ...27 Static Box Framed Static Box ...
Page 66: ...ezLCD 302 240 x 160 4 3 4096 Reflective Color TFT Sunlight Readable NO Touchscreen 66 ...
Page 67: ...Appendix C EarthSEMPL Colors 67 ...
Page 68: ...68 ...
Page 69: ...69 ...
Page 70: ...70 ...
Page 71: ...71 ...
Page 78: ...78 ...