Specifications

92
Table 31 Commands expected to be used in order to place buttons and
hotspots on the LCD screen
3.5.4 Macro Commands and File Format
As well as bitmaps, macros may be loaded to the SLCD5 controller board using
the BMPload program. Macros generally serve two main purposes. First, they
state
Button
Define
Latching
State
Defines a touch
button with two
distinct states
bd <n> <x>
<y> <type>
“text0” “text1”
<dx0> <dy0>
<dx1> <dy1>
<bmp0>
<bmp1>
<n>: Button number
<x><y>:Upper left hand corner of
button
<type>: Button Type
“text0”:String to be displayed on
button state 0
“text1”:String to be displayed on
button state 1
<dx0>/<dy0>: Text to be offset in
x/y dir for “text0”
<dx1>/<dy1>:Same as above for
“text1”
<bmp0>/<bmp1>:Index of bitmap in
state 0/1
Define
Hotspot
(visible touch
area)
Defines a touch
area on the
screen. When
touched, this
area‟s number
will be returned
on the serial
control line.
Defined area
will be set to
reverse video
while touched.
x <n> x0 y0
x1 y1
<n>: touch button
(x0,y0)/(x1,y1): specify touch area
for this spot
Define
Special
Hotspot
(invisible
touch area)
Same as
Define Hotspot
except the
touch area is
not reverse
video
highlighted
when touched.
xs <n> x0 y0
x1 y1
Same as Define Hotspot command