// Author: Julian Smart, Vadim Zeitlin
// Created: 01/02/97
// Id: $Id$
-// Copyright: (c) 1998 Robert Roebling, Julian Smart and Markus Holzem
+// Copyright: (c) 1998 Robert Roebling and Julian Smart
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
}
}
- return GetEventHandler()->ProcessEvent(commandEvent);
+ GetEventHandler()->ProcessEvent(commandEvent);
+ return TRUE;
#else // !wxUSE_MENUS
return FALSE;
#endif // wxUSE_MENUS/!wxUSE_MENUS
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
#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
// ----------------------------------------------------------------------------
}
if (item->GetSubMenu())
- DoMenuUpdates(item->GetSubMenu(), (wxWindow*) NULL);
+ DoMenuUpdates(item->GetSubMenu(), focusWin);
}
node = node->GetNext();
}