 |
IMax Newbie
Joined: 25 Aug 2005 Posts: 2
|
Posted: Fri Aug 26, 2005 1:10 pm
Button Color |
Hi.
IS it possible to change a button color for a toggle button for both states regardles if button is up or down? (Toggel and Change doesn't work because it triggers the button code)
Thanks
Imax |
|
|
|
 |
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Fri Aug 26, 2005 8:38 pm |
Are you meaning to have two different colors, one for the up mode and one for the down mode? If so, setting them beforehand is not possible as buttons only have one background color property and one foreground color property. To maintain two colors, you need to include a #CALL %btncol() command in each of the toggle states--and remember, execution of button up and button down are reversed in appearance (ie, button up executes when the button is pressed down and button down executes when the button is toggled back up.)
|
|
_________________ EDIT: I didn't like my old signature |
|
|
 |
Vijilante SubAdmin

Joined: 18 Nov 2001 Posts: 5187
|
Posted: Sat Aug 27, 2005 11:14 am |
Put the %btncol directly in the each of the captions for the button you want to change. You have to set an ID for the button. Then tack this on the end of your text, %if(%btncol(ID,color),,)
|
|
_________________ The only good questions are the ones we have never answered before.
Search the Forums |
|
|
 |
|
|
|