I have two events:
1) Condition
Button (btConnect) clicked
+(btConnect) internal flag 0 is off
1) Action
(btConnect)
Change Text to "&Disconnect"
Set internal flag 0 ON
2) Condition
1) Condition
Button (btConnect) clicked
+(btConnect) internal flag 0 is on
1) Action
(btConnect)
Change Text to "&Connect"
Set internal flag 0 OFF
Why is this not working? It was two different clicks on the button. The "Only one action when event loops" condition will not make it work properly and it doesn't matter what I do.
How can I simulate a toggle button event like the one above?
Thanks.