TheLord45 / amxpanel

Emulator for AMX panels
GNU General Public License v3.0
13 stars 1 forks source link

Command: ^JST #10

Closed TheLord45 closed 5 years ago

TheLord45 commented 5 years ago

Set text alignment using a numeric keypad layout for those buttons with a defined address range.

The alignment of 0 is followed by <left>,<top>. The left and top coordinates are relative to the upper left corner of the button.

Syntax: "'^JST-<vt addr range>,<button states range>,<new text alignment>'"

Variable: 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 alignment = Value of 1 - 9 corresponds to the following locations:

0
1 2 3
4 5 6    Zero can be used for an absolute position
7 8 9

Example: SEND_COMMAND Panel,"'^JST-500.504&510.515,1&2,1'" Sets the text alignment to the upper left corner for those buttons with variable text ranges of 500-504 & 510-515.

TheLord45 commented 5 years ago

Implemented but not tested!