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:
Julian Smart 2004-06-06 07:06:53 +00:00
parent 1f344abfcc
commit e4edaf5cec
2 changed files with 28 additions and 2 deletions

View File

@ -520,7 +520,20 @@ void wxFrame::OnInternalIdle()
if (m_frameToolBar) m_frameToolBar->OnInternalIdle();
#endif
#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
}

View File

@ -520,7 +520,20 @@ void wxFrame::OnInternalIdle()
if (m_frameToolBar) m_frameToolBar->OnInternalIdle();
#endif
#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
}