Give controls on frame statusbar a chance to paint
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27659 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -520,7 +520,20 @@ void wxFrame::OnInternalIdle()
|
|||||||
if (m_frameToolBar) m_frameToolBar->OnInternalIdle();
|
if (m_frameToolBar) m_frameToolBar->OnInternalIdle();
|
||||||
#endif
|
#endif
|
||||||
#if wxUSE_STATUSBAR
|
#if wxUSE_STATUSBAR
|
||||||
if (m_frameStatusBar) m_frameStatusBar->OnInternalIdle();
|
if (m_frameStatusBar)
|
||||||
|
{
|
||||||
|
m_frameStatusBar->OnInternalIdle();
|
||||||
|
|
||||||
|
// There may be controls in the status bar that
|
||||||
|
// need to be updated
|
||||||
|
for ( wxWindowList::compatibility_iterator node = m_frameStatusBar->GetChildren().GetFirst();
|
||||||
|
node;
|
||||||
|
node = node->GetNext() )
|
||||||
|
{
|
||||||
|
wxWindow *child = node->GetData();
|
||||||
|
child->OnInternalIdle();
|
||||||
|
}
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -520,7 +520,20 @@ void wxFrame::OnInternalIdle()
|
|||||||
if (m_frameToolBar) m_frameToolBar->OnInternalIdle();
|
if (m_frameToolBar) m_frameToolBar->OnInternalIdle();
|
||||||
#endif
|
#endif
|
||||||
#if wxUSE_STATUSBAR
|
#if wxUSE_STATUSBAR
|
||||||
if (m_frameStatusBar) m_frameStatusBar->OnInternalIdle();
|
if (m_frameStatusBar)
|
||||||
|
{
|
||||||
|
m_frameStatusBar->OnInternalIdle();
|
||||||
|
|
||||||
|
// There may be controls in the status bar that
|
||||||
|
// need to be updated
|
||||||
|
for ( wxWindowList::compatibility_iterator node = m_frameStatusBar->GetChildren().GetFirst();
|
||||||
|
node;
|
||||||
|
node = node->GetNext() )
|
||||||
|
{
|
||||||
|
wxWindow *child = node->GetData();
|
||||||
|
child->OnInternalIdle();
|
||||||
|
}
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user