Don't know if that's a good way to describe what I'm trying to do here, but it's probably close. I'm using FTN95 with Win32.
I have a window up with several edit boxes displaying variables, and several buttons. One button says RUN, if you click it a process starts running that occasionally changes some of the variables, updating periodically. It works well, you can see the variables changing in the edit box little windows, just as they should.
Another button in the same window says STOP. If you click on that, it's supposed to change a certain status variable from 1 to 0. The process that's running from the RUN button, constantly checks that status variable, and if it sees a 0 there it will stop. In theory, anyway.
Problem is, once you click the RUN button, that process starts running, and the entire window it came from, locks up, except for the little edit boxes showing the variables updating as I described. But the menus and buttons - including the STOP button, suddenly don't work any more,and stay dead until the process stops of its own accord (I have it expiring after 100 steps). So I can't use the STOP button to stop the process that the RUN button started! (Before I put the 100-step limit in, I had to hit Ctl-Alt-Del and use the process manager to abort the process, yikes!)
I get the feeling this system doesn't like to have two processes ruinning at once: The first process started by the RUN button, and the quickie that the STOP button triggers, just resetting a variable and returning. Is this so?
Does anyone know a way I can keep the other buttons in the window active after the RUN button has started its process going? Or some other way to interrupt that process?
Thanks again, all!