RE: Window blocked for input due to loops like for, while or if
- Posted by "Andrew Hall" <cheetah_heels at myrealbox.com> Dec 30, 2003
- 410 views
> The problem is however, that the loop locks the program window for furter > input until the loop is done, I want to be able to update continuously > while the loop is running. Weichel, All you have to do is throw in some doEvents() inside those loops. doEvents() checks to see if a button was clicked, text was typed into an editbox, etc. Start with one doEvents() in your loop; if the window seems sluggish during the loop, add more doEvents() at different places in the loop. Andrew Hall