I appreciate your help, Craigdunbarx wrote:How did you stop the handler? The "Alt" key is the Windows version.I also didn't understand what option key is.
So my first question stands. How did you stop the handler? It will run forever, unless you have a means of exiting. I had:I was trying to lead you to something similar, like:Code: Select all
if the optionKey is down then exit addDough
"stopFlag" would be a custom property (do you know what those are?) set by that button. The hilite of your stop button could be set when you click it. All these and more are possible, and the choice is yours.The point is that the looping handler tests some condition or property in order to know whether to continue or exit.Code: Select all
if the mouseLoc is within the rect of button "yourStopButton" and the mouse is down... or if the stopFlag of this stack is "Stop"... or if the hilite of button "yourStopButton" is "true" then...
Write back. There may be much to talk about.
Craig
I do not know what custom properties are. And I don't really understand how to set the stopFlag, and just to cleartify, the stop flag is basically the reset button, am I right?