|
Jezuit Beginner
Joined: 02 Nov 2002 Posts: 27 Location: USA
|
Posted: Tue Dec 09, 2003 6:55 am
Gauge question |
Is it possible to change gauge text depending on a certain variable? For example, in this case I'm using a gauge not as an actual gauge, but as a way to show something or the other. Now, when the variable that is its value is set to 1, the color is green. When it is 0, the color is red. Is it possible, when I change the value of the variable to 0, to then change the text? For example:
Button: 1, green foreground, caption "Hello"
Button: 2, red foreground, caption "Goodbye"
Is that possible to do as a gauge? |
|
|
|
TonDiening GURU
Joined: 26 Jul 2001 Posts: 1958 Location: Canada
|
Posted: Tue Dec 09, 2003 7:07 am |
What about something like a toggle?
You will be wanting to either play with a different button type, recreate the button with a different color or use %btncol()
#BUTTON ButtonHello {Hello} {} {Goodbye} {} {} {@counter} {} {} {} {} {} {} {} {42} {76} {} {} "" {Explore|Inset} {} {ButtonHello}
#var counter 0
#var counter 1
#var counter 0
See it toggle. |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Tue Dec 09, 2003 6:58 pm |
Yes it's possible. Use this as your caption (or as part of the caption).
%if( @certain, Hello, Goodbye)
NOTE: You said you were using a "certain" variable to control the button, but never said what it's name is, thus I used @certain. |
|
|
|
|
|
|
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
|
|