// headers & declarations
// ============================================================================
+#ifdef __GNUG__
+ #pragma implementation "menuitem.h"
+#endif
+
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
const wxString& text,
const wxString& strHelp,
bool bCheckable,
- wxMenu *pSubMenu) :
+ wxMenu *pSubMenu)
#if wxUSE_OWNER_DRAWN
- wxOwnerDrawn(text, bCheckable)
+ : wxOwnerDrawn(text, bCheckable)
#endif // owner drawn
{
wxASSERT_MSG( pParentMenu != NULL, wxT("a menu item should have a parent") );
return FALSE;
}
-wxString wxMenuItem::GetLabel() const
+wxString wxMenuItemBase::GetLabelFromText(const wxString& text)
{
- return wxStripMenuCodes(m_text);
+ return wxStripMenuCodes(text);
}
// accelerators