wxProgressDialog: hide or bring to background?

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
Elmi
Super wx Problem Solver
Super wx Problem Solver
Posts: 293
Joined: Thu Mar 12, 2009 3:23 pm
Location: Germany
Contact:

wxProgressDialog: hide or bring to background?

Post by Elmi »

Hi,

I'm opening a wxProgressDialog to show a longer running operation is in progress. During this operation some errors may happen which are noticed with a message box.

My problem: in Release build the message box appears below of the wxProgressDialog. So I added a call wxProgressDialog->Hide() before opening of the message box. Amazingly this does not have any effect, the progress dialog doe not disappear!

So...how can I hide this dialog successfully?

Thanks!
User avatar
xaviou
Super wx Problem Solver
Super wx Problem Solver
Posts: 437
Joined: Mon Aug 21, 2006 3:18 pm
Location: Annecy - France
Contact:

Re: wxProgressDialog: hide or bring to background?

Post by xaviou »

Hi.

Did you try settings the wxProgressDialog as parent of the wxMessageBox ?

Regards
Xav'
My wxWidgets stuff web page : X@v's wxStuff
Elmi
Super wx Problem Solver
Super wx Problem Solver
Posts: 293
Joined: Thu Mar 12, 2009 3:23 pm
Location: Germany
Contact:

Re: wxProgressDialog: hide or bring to background?

Post by Elmi »

Yes, this did not let the message box appear on top of the progress dialogue...
Post Reply