
Pressing the button will send BP1 to the Command Port and releasing it will send BR1 to the
Command Port.
The button command contains ten different values.
The
[ID]
value
1-99
, is the id number of this particular button. You can create many different buttons,
and therefore button ids, as you’d like.
The
[x]
and
[y]
values designate the location of the button on the screen as the
XY
coordinate of the
upper left corner.
The
[width]
and
[height]
values designate the width and height of the button in pixels.
The
[options]
designates the state of the button, whether it is pressed, disabled, and et al.
Option choices:
1=draw, 2=disabled, 3=toggle pressed, 4=toggle not pressed, 5=toggle pressed
disabled, 6=toggle not pressed disabled
.
The
[align]
value, designates the alignment of the text as it appears on the button.
Alignment choices:
0=centered, 1=right, 2=left, 3=bottom, 4=top
.
The
[radius]
value, designates the corner radius of the button corners in pixels. A value of
0
achieves a
square corner, while a value that is half the length of one side will give a round button. To see some
different shapes for buttons, run demo buttons.ezm.
Example for a square button:
button 1 10 10 100 100 1 0 10 0 1
The
[theme]
value designates the widget theme. Type
PLAY BUTTONS
into your terminal program
to see a macro example of the 8 included widget themes as well as some different button shapes.
The
[stringID]
, designates the id number of the text string that you’d like displayed on the button. You
37
Align 0 = Center
Align 2 = Left
Align 1 = Right
Align 4 = Top
Align 3 = Bottom
Содержание ezLED-3 Series
Страница 25: ...25 Dial Choice Digital Meter ...
Страница 26: ...26 Progress Bar Radio Button Slider Slider scroll bar option ...
Страница 27: ...27 Static Box Framed Static Box ...
Страница 66: ...ezLCD 302 240 x 160 4 3 4096 Reflective Color TFT Sunlight Readable NO Touchscreen 66 ...
Страница 67: ...Appendix C EarthSEMPL Colors 67 ...
Страница 68: ...68 ...
Страница 69: ...69 ...
Страница 70: ...70 ...
Страница 71: ...71 ...
Страница 78: ...78 ...