Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
IMax
Newbie


Joined: 25 Aug 2005
Posts: 2

PostPosted: 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
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: 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
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5187

PostPosted: 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
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net