RE: Window blocked for input due to loops like for, while or if

new topic     » topic index » view thread      » older message » newer message

> 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

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu