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 » Wed Jun 22, 2005 9:02 am

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
Moderator
Moderator
Posts: 1319
Joined: Mon Aug 30, 2004 6:01 pm

Re: Why Progress Dialog Blows up ???

Post by Ryan Norton » Sun Jun 26, 2005 10:47 pm

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