progress dialog goes back and forth Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
rajan_m
Knows some wx things
Knows some wx things
Posts: 39
Joined: Tue Jan 20, 2009 10:37 am
Location: chennai

progress dialog goes back and forth

Post by rajan_m » Mon Jul 21, 2014 3:44 pm

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
Every exit is an entry somewhere else!

User avatar
doublemax
Moderator
Moderator
Posts: 14629
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: progress dialog goes back and forth

Post by doublemax » Mon Jul 21, 2014 4:09 pm

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.
Use the source, Luke!

rajan_m
Knows some wx things
Knows some wx things
Posts: 39
Joined: Tue Jan 20, 2009 10:37 am
Location: chennai

Re: progress dialog goes back and forth

Post by rajan_m » Wed Jul 23, 2014 5:31 am

@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 :(
Every exit is an entry somewhere else!

Post Reply