 |
Fang Xianfu GURU

Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Fri May 29, 2009 3:15 am
[3.08] Toggling buttons only sends one command. |
1) Open the untitled session, open the package editor, paste the following XML into the treeview:
| Code: |
<button priority="10" id="1">
<caption>state 0</caption>
<value>state 0 command</value>
<expr>@var</expr>
<button id="2">
<caption>state 1</caption>
<value>state 1 command</value>
</button>
</button> |
2) Type var=1 on the command line. See the caption change to "state 1" and "state 0 command" is sent.
3) Type var=0 on the command line. See the caption change to "state 0", so that part's working, but "state 0 command" is sent again. One of the two should have sent "state 1 command". |
|
|
|
 |
wrym Magician
Joined: 06 Jul 2007 Posts: 349 Location: The big palace, My own lil world
|
Posted: Fri May 29, 2009 8:28 pm |
Well, your button is a push button. If i convert it to a toggle button i get it to work correctly.
|
|
_________________ "To the engineer, all matter in the universe can be placed into one of two categories: (1) things that need to be fixed, and (2) things that will need to be fixed after you've had a few minutes to play with them" - Scott Adams, The Dilbert Principle |
|
|
 |
|
|
|