Why Progress Dialog Blows up ???

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
MuhammadSohail
Experienced Solver
Experienced Solver
Posts: 96
Joined: Fri Jun 17, 2005 1:53 pm
Location: Germany
Contact:

Why Progress Dialog Blows up ???

Post by MuhammadSohail »

Hi everyone ,

progressDlg = new ProgressDialog("Connection", wxString((progressMessagePrefix + "Verbindung wird aufgebaut...").c_str()),
100, this, wxPD_APP_MODAL);

progressDlg->SetSize(550, -1);
// Need to do this, otherwise dialog blows up (why?)

progressMessagePrefix is predefined string text in the header file.

Does anyone know why Progress dialog blows up and adjust its size according to the given size in the SetSize method??

thanks
User avatar
Ryan Norton
wxWorld Domination!
wxWorld Domination!
Posts: 1319
Joined: Mon Aug 30, 2004 6:01 pm

Re: Why Progress Dialog Blows up ???

Post by Ryan Norton »

Muhammad Sohail wrote:Hi everyone ,

progressDlg = new ProgressDialog("Connection", wxString((progressMessagePrefix + "Verbindung wird aufgebaut...").c_str()),
100, this, wxPD_APP_MODAL);

progressDlg->SetSize(550, -1);
// Need to do this, otherwise dialog blows up (why?)

progressMessagePrefix is predefined string text in the header file.

Does anyone know why Progress dialog blows up and adjust its size according to the given size in the SetSize method??

thanks
By "blow up" I assume you mean it takes up a large portion of the screen?

Bonehead question, but is it because progressMessagePrefix is so big that it causes it to blow up?
[Mostly retired moderator, still check in to clean up some stuff]
Post Reply