Programming
38 Color Passive-Matrix LCD Touch Panels
Shorthand Variable Text Commands (Cont.)
@JUS
Sets the text
alignment on a
button.
Syntax:
"’@JUS’,<variable text address>,<text alignment>"
Variab les :
variable text address = 1 - 255
text alignment = 1 - 9 as shown in the following alignment chart
Example:
SEND_COMMAND TP, "’@JUS’,9,5"
Centers the text on button 9.
@SHO
Sets a specific
button to on or off.
Syntax:
"’@SHO’,<variable text address>,<button on/off>"
Variab les :
variable text address = 1 - 255
button on/off:
0 = button Off
1 = button On
Example:
SEND_COMMAND TP,"’@SHO’,128,0"
Sets button 128 off.
@TXT
Adds text to a but-
ton.
Use the | character to display text on multiple lines.
Syntax:
"’@TXT’,<variable text address>,’<text>’"
Variab les :
variable text address = 1 - 255
button text = Enter button text to appear on button.
Example:
SEND_COMMAND TP,"’@TXT’,2,’VCR|PLAY’"
Sets the VCR and PLAY text on variable button 2. The | character places VCR above
PLAY on the button.
@UNI
Adds Unicode text
to a button.
Syntax:
"’@UNI’,<variable text address>,’<text>’"
Variab les :
variable text address = 1 - 255
button text = Enter button text to appear on button.
Example:
SEND_COMMAND TP,"’@UNI’,2,’(Foreign Text)’"
Sets the Foreign Text on variable button 2.
1
4
789
6
3
2
5
Characters for Middle-Eastern languages such as Arabic are not supported within the
Unicode fonts because they are bi-directional. Buttons with Unicode fonts can only be
created and edited using TPDesign3 and NetLinx Studio. Refer to the respective
manuals for additional information.