
12.5 Choice Widget – CHOICE
The CHOICE widget allows you to print a string and display buttons for the user to choose a response.
CHOICE reply buttons are “yes”, “no”, or “cancel”. This widget is useful for asking simple “yes or no”
questions without having to tediously figure out coordinates, sizes, and et al. for buttons and strings.
The ezLCD-3xx has the ability to display custom-themed CHOICE’s. However, you will not be able to
change the shapes of the buttons.
choice [string][theme]
Example:
fontw 0 sans24
'widget font needs to be set before the theme
theme 0 0 1 2 3 4 5 6 7 8 0
'theme for buttons; has no affect on bacground
CHOICE "Got Milk?" 0
‘quotes around string
Images of Widget Options
:
Pressing the YES, NO or CANCEL button will output a 1, 0 or -1 respectively to the Command
Port.
The CHOICE command contains two different values.
[string]
“
Got Milk?”
, will be printed above the buttons. Please make sure to put the string in
quotations marks. Also, the string cannot be substituted with a String id.
Responses/Return Values:
0=no, 1=yes, -1=cancel
The
[theme]
only affects or will only change the colors for the buttons of the widget.
42
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 ...