|
aedron Beginner
Joined: 29 Nov 2008 Posts: 20
|
Posted: Mon Dec 01, 2008 2:38 pm
Buttons |
Is it possible to make a button show as a certain colour depending on variable states?
For example I would like for a button to be show as blue when it's 'on' or when its variable=1, and to show as red when its variable is 'off' or when its variable=0.
Is this possible? Thanks! |
|
|
|
ralgith Sorcerer
Joined: 13 Jan 2006 Posts: 715
|
Posted: Mon Dec 01, 2008 3:02 pm |
Of course it is possible.
|
|
_________________ CrossOver: Windows Compatibility on Mac and Linux CMUD Advocate |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Mon Dec 01, 2008 3:17 pm |
%ansi(%if(@variable,blue,red))stuff
<color %if(@variable,blue,red)>stuff</color>
in the captions, or put the variable in the box I can't remember the name of that controls the state of the button, then give the button two states with different background colours.
Or use %btncol. |
|
|
|
aedron Beginner
Joined: 29 Nov 2008 Posts: 20
|
Posted: Mon Dec 01, 2008 5:03 pm |
Thank you so much!!
|
|
|
|
|
|