Backported fixes for updating the splash screen and busy info windows
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@19467 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -105,9 +105,13 @@ wxBusyInfo::wxBusyInfo(const wxString& message, wxWindow *parent)
|
|||||||
{
|
{
|
||||||
m_InfoFrame = new wxInfoFrame( parent, message);
|
m_InfoFrame = new wxInfoFrame( parent, message);
|
||||||
m_InfoFrame->Show(TRUE);
|
m_InfoFrame->Show(TRUE);
|
||||||
|
#ifdef __WXMAC__
|
||||||
|
m_InfoFrame->Update();
|
||||||
|
#else
|
||||||
wxYield();
|
wxYield();
|
||||||
m_InfoFrame->Refresh();
|
m_InfoFrame->Refresh();
|
||||||
wxYield();
|
wxYield();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
wxBusyInfo::~wxBusyInfo()
|
wxBusyInfo::~wxBusyInfo()
|
||||||
|
@@ -70,7 +70,7 @@ wxSplashScreen::wxSplashScreen(const wxBitmap& bitmap, long splashStyle, int mil
|
|||||||
|
|
||||||
Show(TRUE);
|
Show(TRUE);
|
||||||
m_window->SetFocus();
|
m_window->SetFocus();
|
||||||
#ifdef __WXMSW__
|
#if defined(__WXMSW__) || defined(__WXMAC__)
|
||||||
Update(); // Without this, you see a blank screen for an instant
|
Update(); // Without this, you see a blank screen for an instant
|
||||||
#else
|
#else
|
||||||
wxYieldIfNeeded(); // Should eliminate this
|
wxYieldIfNeeded(); // Should eliminate this
|
||||||
|
Reference in New Issue
Block a user