Programming
77
Modero G4 Touch Panels - Configuration & Programming Manual
Button Commands (Cont.)
?TEF
Get the current text effect name.
•
Syntax
:
"'?TEF-<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
1008:
Flag - Zero
Value1 - Button state number
Value2 - Actual length of string
Value3 - Zero
Text - String that represents the text effect name
Text length - Text effect name length
Example
:
SEND COMMAND Panel,"'?TEF-529,1'"
Gets the button 'OFF state' text effect name information.
The result sent to the Master would be:
ButtonGet Id = 529 Type = 1008
Flag = 0
VALUE1 = 1
VALUE2 = 18
VALUE3 = 0
TEXT = Hard Drop Shadow 3
TEXT LENGTH = 18
^TOP
Enables/disables touch output to Master. If enabled, Press/Move/Release events are sent to the Master as string events.
•
Syntax
:
Variable, "'^TOP-<state>'"
<state> is 0(disable), 1(presses/releases), 2(moves), 3(press/move/release).
Note: Move should be used with caution. This setting can generate a significant amount of traffic to the master depending on
user interaction.
•
Example command
:
"'^TOP-1'"
•
Example
Response
:
"String Event: Text: Press,320,480"
•
Example
Response
: "
String Event: Text: Release,320,480"
^TXT
Assigns a Non-Unicode text string to those buttons with a defined address range..
•
Syntax
:
"'^TXT-<vt addr range>,<button states range>,<new text>'"
•
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).
new text = 1 - 50 ASCII characters.
Example
:
SEND_COMMAND Panel,"'^TXT-500.504&510.515,1&2,Test Only'"
Sets the On and Off state text for buttons with the variable text ranges of 500-504 & 510-515.