wxSplashScreen and modal dialog problem ?
Lothar Behrens
lothar.behrens at lollisoft.de
Sat May 17 03:57:11 PDT 2008
Hi,
I have noticed for a while, that I get a blocking behaviour, when I
use a splash screen and while this is shown,
any modal error messages are blocking, because the dialog didn't get
displayed with all the contents.
So I cannot see the error and also not press ok for that dialog.
Is there any way to ask the framework if there is currently a splash
screen ?
If so I could wait until the splash screen disapears.
I don't know, how long it takes until an error message would appear,
so I could not
assume that the splash screen is destroyable by calling splash-
>Close(); because
the object pointer may no longer be valid.
I am currently testing this code on Mac OS X 10.3.9 with wxMac 2.6.2.
I have not ported my app to current
wxWidgets libraries and this may be a general problem.
This is currently my code that implements the splash like this:
splash = new wxSplashScreen(bitmap,
wxSPLASH_CENTRE_ON_SCREEN|wxSPLASH_TIMEOUT,
6000, NULL, -1, wxDefaultPosition, wxDefaultSize,
wxSIMPLE_BORDER|wxSTAY_ON_TOP);
}
wxYield();
wxMessageDialog dialog(NULL, "Some error occured ...", "Error",
wxOK);
dialog.ShowModal();
// Initialize the frame
// ...
myFrame->Show(TRUE);
Thanks,
Lothar
More information about the wx-users
mailing list