Programming
62
Modero G4 Touch Panels - Configuration & Programming Manual
Button Commands (Cont.)
^BMC
Copy attributes of the source button to all the destination buttons. Note that the source is a single button state. Each state
must be copied as a separate command. The <codes> section represents what attributes will be copied. All codes are 2
char pairs that can be separated by comma, space, percent or just ran together.
•
Syntax
:
"'^BMC-<vt addr range>,<button states range>,<source port>,<source address>,<source state>,
<codes>'"
•
Variables
:
variable text address range = 1 - 4000.
button states range = 1 - 256 for multi-state buttons (0 = All states, for General buttons 1 = Off state and 2 = On state).
source port = 1 - 100.
source address = 1 - 4000.
source state = 1 - 256.
codes:
BM - Picture/Bitmap
BR - Border
CB - Border Color
CF - Fill Color
CT - Text Color
EC - Text effect color
EF - Text effect
FT - Font
IC - Icon
JB - Bitmap alignment
JI - Icon alignment
JT - Text alignment
LN - Lines of video removed
OP - Opacity
SO - Button Sound
TX - Text
VI - Video slot ID
WW - Word wrap on/off
•
Example 1
:
SEND_COMMAND Panel,"'^BMC-425,1,1,500,1,BR'"
or
SEND_COMMAND Panel,"'^BMC-425,1,1,500,1,%BR'"
Copies the OFF state border of button with a variable text address of 500 onto the OFF state border of button with a
variable text address of 425.
•
Example 2
:
SEND_COMMAND Panel,"'^BMC-150,1,1,315,1,%BR%FT%TX%BM%IC%CF%CT'"
Copies the OFF state border, font, Text, bitmap, icon, fill color and text color of the button with a variable text address of
315 onto the OFF state border, font, Text, bitmap, icon, fill color and text color of the button with a variable text address
of 150.
Note: Use this command if you are using the panel’s default color palette. For custom color palettes, use ^BMF instead (see
^BMF
Set any/all button parameters by sending embedded codes and data.
•
Syntax
:
"'^BMF-<vt addr range>,<button states range>,<data>'"
Note: Many subcommands do not use button state information. Refer to the subcommand for details.
•
Variables
:
variable text address char array = 1 - 4000.
button states range = 1 - 256 for multi-state buttons (0 = All states, for General buttons 1 = Off state and 2 = On state).
level range = 1 - 600 (level value is 1 - 65535).
Data:
’%B<border style>’ = Set the border style name. (No support for states.)
Note: This parameter should be always used in its own BMF command, and should not be combined with other BMF
subcommands.
’%B’,<border 0-27,40,41> = Set the border style number (No support for states.)
’%CB<on border color>’ = Set Border Color.
’%CF<on fill color>’ = Set Fill Color.
’%CT<on text color>’ = Set Text Color.
’%DO<1-5><1-5><1-5><1-5><1-5> = Set the draw order. Listed from bottom to top.
’%EC<text effect color>’ = Set the text effect color.
’%EF<text effect name>’ = Set the text effect.