Page 1 of 1

progress dialog goes back and forth

Posted: Mon Jul 21, 2014 3:44 pm
by rajan_m
Hi,

I've frame with wxglcanvas which displays 3d models. When loading a large 3d model file, my progress dialog goes back and forth with respect to the application frame.

wxWidgets 2.8.10
windows 7.

please go through this link http://murugan.net46.net/progress.wmv

Re: progress dialog goes back and forth

Posted: Mon Jul 21, 2014 4:09 pm
by doublemax
You mean the effect that the dialog itself moves on its own? As it always happens when the "Not responding" appears, it might be Windows itself who does this.

The "Not responding" should be avoided anyway. Especially Windows 7 is very picky about this and might even kill the application when it's not responding for a longer period of time. Try calling Update() more often. If that's not possible, you might have to move the loading part into a worker thread.

Re: progress dialog goes back and forth

Posted: Wed Jul 23, 2014 5:31 am
by rajan_m
@doublemax tried sample app with threads and it solves the not-responding as well as hiding issue but unfortunately I cannot use it since there are too may UI related code in my loading function :(