![EarthLCD ezLED-3 Series User Manual Download Page 50](http://html.mh-extra.com/html/earthlcd/ezled-3-series/ezled-3-series_user-manual_520905050.webp)
12.10 Radio Button Widget – RADIO
The RADIO widget allows you to display buttons for making a selection. Radio buttons differ from
checkboxes in that only one button can be filled in at a time, while checkboxes can have many filled in.
Therefore, radio buttons are interconnected. If one button is checked then the others will go to or
remain as an ‘unchecked’ state. The RADIO.EZM file in the \EZSYS\MACROS directory contains an
example of this widget. It can be invoked by typing PLAY RADIO from your terminal program.
radio [ID][x][y][width][height][option][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
radio 1 25 50 230 35 5 0 1
radio 2 25 95 230 35 1 0 1
Images of Widget Options
:
Pressing high, medium or low will send either a RB0, RB1 or RB2, respectively, to the Command
Port.
The RADIO command contains eight different values.
The
[ID]
value
1-99
is the id number of this particular widget. Although radio buttons are connected as
a group, each button still needs its own id number.
The
[x]
and
[y]
values designate the location of the widget on the screen as the
XY
coordinate of the
upper left corner.
50
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 ...