![background image](http://html.mh-extra.com/html/amx/axd-ca10/axd-ca10_instruction-manual_2937573051.webp)
Programming
47
10.4" 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.
Shorthand Variable Text Commands
@BMF
Sets multiple
attributes to a but-
ton, slider, or
gauge. Allows but-
tons to be moved
and re-sized.
This command allows you to program up to 12 attributes on one command line.
Syntax:
"’@BMF’,<variable text address>,’<attribute data>’"
Variables:
variable text address = 1 - 255
attribute data :
’%R,<left>, <top>, <right>, <bottom>’ = Sets the Rectangle position.
’%B’,<border styles> = See the Border Styles and Programming Numbers table on
page 38.
’%F’,<font styles> = See the Font Styles and Programming Numbers table on page 37.
’%T’,<button text > = ASCII characters (empty is clear)
’%P’,<bitmap> = Bitmap filename (empty is clear)
’%I’,<icon> = 1 - 255 (icon numbers are assigned in TPDesign3 project file)
’%J’,<text alignment> = 1 - 9 as shown the following alignment chart
For %C1-%C6, see the Colors and Programming Numbers table on page 37
.
’%C1’,<on-state fill color>
’%C2',<off-state fill color>
’%C3’,<on-state border color>
’%C4’,<off-state border color>
’%C5’,<on-state text color>
’%C6’,<off-state text color>
Example:
SEND_COMMAND TP,"’@BMF’,255,’%T POWER |ON’
’%B’,’4’,’%C1’,’72’"
Sets the text on button 255 to POWER ON (appears on two lines), adds a triple-line bor-
der, and sets the On-state color to White.
@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.
1
4
7
8
9
6
3
2
5
Содержание AXD-CA10
Страница 1: ...instruction manual Touch Panels and Accessories 10 4 Touch Panels Firmware version G3 ...
Страница 17: ...Installation 13 10 4 Touch Panels ...
Страница 18: ...Installation 14 10 4 Touch Panels ...
Страница 28: ...Designing Touch Panel Pages 24 10 4 Touch Panels ...
Страница 56: ...Programming 52 10 4 Touch Panels ...