|
Ghola Beginner
Joined: 07 Jan 2001 Posts: 18 Location: United Kingdom
|
Posted: Wed Feb 27, 2002 10:00 pm
button from trigger - can we use bitmap? |
I've been trying to create a button that will let me know when I'm resting in two ways. 1. By colouring last line of text received. 2. By making the button itself obvious.
Trigger so far:
Pattern - You make yourself comfortable and start to rest.
Commands:
#BU rest {rest} {look}
#COLOR %eval( %color( hi)+%color( blink)+%color( rev)+%color( blue, grey))
I'm stuck on getting the trigger button command to accept any of the internal bitmap names, e.g. SMILEY, CIRCG. I've read the help and tried all sorts of different syntaxes. The help seems to hint that what I want to do can be done when importing the button info from a textfile. Is this the only way? Oh, and should I want the button to remove itself after 4mins I guess I can just add this as a final command ?
#alarm +4:00 {#unbutton {rest};#show wake up and do something else}
Thanks in advance
Using 6.26a beta. (but I figure this isn't a bug, this is user error and hence not worthy of beta forum postage |
|
|
|
TonDiening GURU
Joined: 26 Jul 2001 Posts: 1958 Location: Canada
|
Posted: Wed Feb 27, 2002 11:37 pm |
Hmm playing about
#TRIGGER {You say, ~'1~'} {#UNBU button_id;#BUTTON 1 {ToggleButton1} {#COLOR %eval( %color( hi)+%color( blink)+%color( rev)+%color( blue, grey))} {} {} {button_val} {button_var} {SMILEY} {} {} {} {} {} {} {} {} {} {} "" {} {Tool_tip} {button_id}}
#TRIGGER {You say, ~'2~'} {#UNBU button_id;#BUTTON 1 {ToggleButton2} {#COLOR %eval( %color( hi)+%color( blink)+%color( rev)+%color( blue, grey))} {} {} {button_val} {button_var} {CIRCG} {} {} {} {} {} {} {} {} {} {} "" {} {Tool_tip} {button_id}}
Kinda works. The syntax thinks it sees an error but it works.
I cant seem to replace the button with a button without #UNBU'ttoning it.
TonDiening
Beta Upgrading to 6.26 |
|
|
|
Ghola Beginner
Joined: 07 Jan 2001 Posts: 18 Location: United Kingdom
|
Posted: Wed Feb 27, 2002 11:37 pm |
Gotta love finding the answer to your question whilst looking into something else.
Turns out there is a specific command to do this:
#NOOP %btnimage( rest, "CIRCG")
Yeap, %btnimage is the way to do it.
|
|
|
|
TonDiening GURU
Joined: 26 Jul 2001 Posts: 1958 Location: Canada
|
Posted: Wed Feb 27, 2002 11:51 pm |
Neat!
I've never used the bitmaps before.
It'll add spice to some of the old trigger sets/view consoles I have.
Thanks for pointing that out.
TonDiening
Beta Upgrading to 6.26 |
|
|
|
|
|