X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7ac4c27aa6c1b7bbd8f241068728cc3c29489cf3..ea28b8853b8748ba94b71dd67c9d216db9ef0742:/src/common/framecmn.cpp?ds=sidebyside diff --git a/src/common/framecmn.cpp b/src/common/framecmn.cpp index cf0fbc201d..a057189897 100644 --- a/src/common/framecmn.cpp +++ b/src/common/framecmn.cpp @@ -289,18 +289,6 @@ void wxFrameBase::PopStatusText(int number) m_frameStatusBar->PopStatusText(number); } -void wxFrameBase::DoGiveHelp(const wxString& text, bool show) -{ -#if wxUSE_STATUSBAR - if ( m_statusBarPane < 0 ) return; - wxStatusBar* statbar = GetStatusBar(); - if ( !statbar ) return; - - wxString help = show ? text : wxString(); - statbar->SetStatusText( help, m_statusBarPane ); -#endif // wxUSE_STATUSBAR -} - bool wxFrameBase::ShowMenuHelp(wxStatusBar *WXUNUSED(statbar), int menuId) { #if wxUSE_MENUS @@ -331,6 +319,19 @@ bool wxFrameBase::ShowMenuHelp(wxStatusBar *WXUNUSED(statbar), int menuId) #endif // wxUSE_STATUSBAR +void wxFrameBase::DoGiveHelp(const wxString& text, bool show) +{ +#if wxUSE_STATUSBAR + if ( m_statusBarPane < 0 ) return; + wxStatusBar* statbar = GetStatusBar(); + if ( !statbar ) return; + + wxString help = show ? text : wxString(); + statbar->SetStatusText( help, m_statusBarPane ); +#endif // wxUSE_STATUSBAR +} + + // ---------------------------------------------------------------------------- // toolbar stuff // ----------------------------------------------------------------------------