TheLord45 / amxpanel

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

Command: ?BCF #43

Closed TheLord45 closed 5 years ago

TheLord45 commented 5 years ago

Get the current fill color.

Syntax: "'?BCF-<vt addr range>,<button states range>'"

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). custom event type 1012:

Example: SEND COMMAND Panel,"'?BCF-529,1'" Gets the button 'OFF state' fill color information. The result sent to the Master would be:

ButtonGet Id = 529 Type = 1012
   Flag   = 0
   VALUE1 = 1
   VALUE2 = 9
   VALUE3 = 0
   TEXT   = #FF8000FF
   TEXT LENGTH = 9