
12.3 Touchzone Widget
A touchzone widget is a user interface element that provides the user a simple way to trigger an event
just by press an area of the screen defined by a box. You can also draw graphics of any kind onto the
screen and place a hot spot around it with touchzone.
touchzone [ID][x][y][width][height][options]
Example:
touchzone 1 10 10 100 100 1
P
ressing the touchzone will send TZP1 to the Command Port and releasing it will send TZR1 to the
Command Port. Moving off the touchzone before releasing will generate TZC1.
The touchzone command contains six different values.
The
[ID]
value
1-99
, is the id number of this particular touchzone. You can create many different
touchzones but they should not over lap.
The
[x]
and
[y]
values designate the location of the touchzone on the screen as the
XY
coordinate of the
upper left corner.
The
[width]
and
[height]
values designate the width and height of the touchzone in pixels.
The
[options]
designates the state of the touchzone, whether it is pressed, disabled, and et al.
Option choices:
1=enable, 2=disabled
.
39
Содержание 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 ...