Programming
64
Modero G4 Touch Panels - Configuration & Programming Manual
Button Commands (Cont.)
^BMF
(Cont.)
’%VL<0-1>’ = Log-On/Log-Off the computer control connection
’%VN<network name>’ = Set network connection name.
’%VP<password>’ = Set the network connection password.
’%WW<1 or 0>’ = Word wrap ON/OFF.
•
Example
:
SEND_COMMAND Panel,"'^BMF-500,1,%B10%CFRed%CB Blue %CTBlack%Ptest.png'"
Sets the button OFF state as well as the Border, Fill Color, Border Color, Text Color, and Bitmap.
Note: Use this command if you are using custom color palette for your panel. If you intend to use the default color palette, use
^BMC instead (see page 62).
^BMI
Set the button mask image. Mask image is used to crop a borderless button to a non-square shape. This is typically used
with a bitmap.
•
Syntax
:
"'^BMI-<vt addr range>,<button states range>,<mask image>'"
•
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).
mask image = Graphic file used.
•
Example
:
SEND_COMMAND Panel,"'^BMI-530,1&2,newMac.png'"
Sets the button with variable text 530 ON/OFF state mask image to 'newmac.png'.
^BML
Set the maximum length of the text area button. If this value is set to zero (0), the text area has no max length. The
maximum length available is 2000. This is only for a Text area input button and not for a Text area input masking button.
•
Syntax
:
"'^BML-<vt addr range>,<max length>'"
•
Variables
:
variable text address range = 1 - 4000.
max length = 2000 (0=no max length).
•
Example
:
SEND_COMMAND Panel,"'^BML-500,20'"
Sets the maximum length of the text area input button to 20 characters.
^BMP
Assign a picture to those buttons with a defined address range.
•
Syntax
:
"'^BMP-<vt addr range>,<button states range>,<name of bitmap/picture>'"
•
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).
name of bitmap/picture = 1 - 50 ASCII characters.
•
Example
:
SEND_COMMAND Panel,"'^BMP-500.504&510.515,1,bitmap.png'"
Sets the OFF state picture for the buttons with variable text ranges of 500-504 & 510-515.
?BMP
Get the current bitmap name.
•
Syntax
:
"'?BMP-<vt addr range>,<button states range>'"
•
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).
custom event type
1002:
Flag - Zero
Value1 - Button state number
Value2 - Actual length of string
Value3 - Zero
Text - String that represents the bitmap name
Text length - Bitmap name text length (should be 9)
•
Example
:
SEND COMMAND Panel,"'?BMP-529,1'"
Gets the button 'OFF state' bitmap information.
The result sent to the Master would be:
ButtonGet Id = 529 Type = 1002
Flag = 0
VALUE1 = 1
VALUE2 = 9
VALUE3 = 0
TEXT = Buggs.png
TEXT LENGTH = 9