‎02-18-2010 10:35 AM
I have a switch until released boolean for my quit button (i.e. go back to false after pressed). However, sometimes it is staying switched. This causes a problem because when I try to run again the quit button starts pressed down. I'm warry about posting the code for company reasons so I'll have to check if I can do that. However, has anyone run into this before? I have noticed if I hold it down for longer, it will switch back, but if I click it more quickly it stays stuck in the true position. I have no references to the control to reset it, and no locals.
Solved! Go to Solution.
‎02-18-2010 10:44 AM
‎02-18-2010 10:45 AM - edited ‎02-18-2010 10:46 AM
for(imstuck) wrote:I have a switch until released boolean for my quit button (i.e. go back to false after pressed). However, sometimes it is staying switched. This causes a problem because when I try to run again the quit button starts pressed down.
I adjust the "Quit" button to "False" before the rest of the program is launched. That is really not much code to add.
My "Quit" button works ok, but I simply have done this, because a user might press the button before he/she starts the app (you have to process all kinds of irrationalities, even if they seem unlikely).
‎02-18-2010 10:51 AM - edited ‎02-18-2010 10:52 AM
Dennis Knutson wrote:
The default mechanical action for a stop button is Latch When Released. Use that.
In response to Giedrius.S
, the app closes when they quit, and runs when open, so there is no chance they will click the button when it is not running.