Programming
"^" Button Commands (Cont.)
^BCF | Only if the specified fill color is not the same as the current color. | |
Set the fill color to | Note: Color can be assigned by color name (without spaces), number or R,G,B value | |
the specified | (RRGGBB or RRGGBBAA). |
|
color. | Syntax: |
|
| ||
| Variable: |
|
| variable text address range = 1 - 4000. | |
| button states range = 1 - 256 for | |
| 1 = Off state and 2 = On state). |
|
| color value = Refer to theRGB Values for all 88 Basic Colors table on page 101 for more | |
| information. |
|
| Example: |
|
| SEND_COMMAND | |
| SEND_COMMAND | |
| SEND_COMMAND | |
| SEND_COMMAND | |
| Sets the Off state fill color by color number. Colors can be set by Color Numbers, Color | |
| name, R,G,B,alpha colors (RRGGBBAA) and R, G & B colors values (RRGGBB). | |
|
| |
^BCT | Only if the specified text color is not the same as the current color. | |
Set the text color | Note: Color can be assigned by color name (without spaces), number or R,G,B value | |
to the specified | (RRGGBB or RRGGBBAA). |
|
color. | Syntax: |
|
| ||
| Variable: |
|
| variable text address range = 1 - 4000. | |
| button states range = 1 - 256 for | |
| 1 = Off state and 2 = On state). |
|
| color value = Refer to theRGB Values for all 88 Basic Colors table on page 101 for more | |
| information. |
|
| Example: |
|
| SEND_COMMAND | |
| Sets the Off state border color to 12 (Yellow). Colors can be set by Color Numbers, Color | |
| name, R,G,B,alpha colors (RRGGBBAA) and R, G & B colors values (RRGGBB). | |
|
| |
^BDO | Determines what order each layer of the button is drawn. | |
Set the button | Syntax: |
|
draw order. | ||
|
|
|
| Variable: |
|
| variable text address range = 1 - 4000. | |
| button states range = 1 - 256 for | |
| 1 = Off state and 2 = On state). |
|
| layer assignments = Fill Layer | = 1 |
| Image Layer = 2 | |
| Icon Layer | = 3 |
| Text Layer | = 4 |
| Border Layer = 5 | |
| Note: The layer assignments are from bottom to top. The default draw order is 12345. | |
| Example: |
|
| SEND_COMMAND | |
| Sets the button’s variable text 530 ON/OFF state draw order (from bottom to top) to | |
| Border, Fill, Text, Icon, and Image. |
|
| Example 2: |
|
| SEND_COMMAND | |
| Sets all states of a button back to its default drawing order. | |
|
|
|
108 |