From: Julian Smart Date: Sun, 6 Jun 2004 07:06:53 +0000 (+0000) Subject: Give controls on frame statusbar a chance to paint X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/e4edaf5cec7c7d091c98cab741b0e1839de4e63c 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 --- diff --git a/src/gtk/frame.cpp b/src/gtk/frame.cpp index b6abf6f26b..cf32c98a83 100644 --- a/src/gtk/frame.cpp +++ b/src/gtk/frame.cpp @@ -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 } diff --git a/src/gtk1/frame.cpp b/src/gtk1/frame.cpp index b6abf6f26b..cf32c98a83 100644 --- a/src/gtk1/frame.cpp +++ b/src/gtk1/frame.cpp @@ -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 }