![background image](http://html1.mh-extra.com/html/amx/axd-mcp/axd-mcp_instruction-manual_2939185043.webp)
Programming
39
5.5" Color Passive Mini-Touch Panels
Shorthand Variable Text Commands
The table below lists the shorthand variable text commands you can use with the touch panel. The
shorthand command data is one-byte, non-ASCII format except for pages, passwords, text, and
bitmap names.
Variable Text Send_Commands (Cont.)
ICON
Changes the
border style of a
specific button.
Syntax:
"
’ICON<variable text address>-<border style>’"
Variables:
variable text address = 1 - 255
border style = See the Border Styles and Programming Numbers table on page 30.
Example:
SEND_COMMAND TP,"’ICON25-6’"
Changes the border style on the variable text button 25 to double-rounded.
!T
Shorthand ver-
sion of
'
TEXT
'
command.
Syntax:
"’!T’,<variable text address>,’<new button text>’"
Variables:
variable text address = 1 - 255
new button text = 1 - 60 characters
Example:
SEND_COMMAND TP,"’!T’,1,’VCR PLAY’"
Changes the title on variable text button one to VCR PLAY.
TEXT
Enters text on a
button.
Use the | character to display text on multiple lines.
Syntax:
"
’TEXT<variable text address>-<new button text>’"
Variables:
variable text address = 1 - 255
new button text = Enter button text to appear on button.
Example:
SEND_COMMAND TP,"’TEXT2-VCR|PLAY’"
Sets the VCR and PLAY text on variable button 2. The | character places VCR on a text
line above PLAY on the button.
Shorthand Variable Text Commands
@BMP
Adds a bitmap file
to a button.
Bitmap files are imported into TPDesign3; the numbers are assigned by the touch panel
during the download process.
Syntax:
"’@BMP’,<variable text address>,’<bitmap>’"
Variables:
variable text address = 1 - 255
bitmap = Bitmap chosen from a file location.
Example:
SEND_COMMAND TP,"’@BMP’,85,’Bitmap1’"
Adds the Bitmap1 file to button 85.