Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Redraw Toplevel Form

Status
Not open for further replies.

tenly2000

Programmer
Jan 15, 2008
1
I've written a program which launches about 300 threads (40 at a time).

The loop that launches the threads includes
"update idleevents"

My main form should display the number of threads running, and the number that have already completed.

If I just sit and watch this, it works.
But if I minimize the window, or if I open any other window above my toplevel window, the gui seems to be frozen. Nothing updates on the screen, sometimes the screen goes all white, until the threads have all finished running...at which time the screen refreshes and everything is okay again.

How can I force the window to remain responsive and continue to update while I'm waiting for the threads to finish executing...?

Thanks in advance...
 
Can you bind the toplevel (maybe with an activate event) to another update command?

_________________
Bob Rashkin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top