DECLARE_NO_COPY_CLASS(wxMenuBarBase)
};
-#if WXWIN_COMPATIBILITY_2_8
-// get or change the label of the menu at given position
-void wxMenuBarBase::SetLabelTop(size_t pos, const wxString& label)
-{
- SetMenuLabel(pos, label);
-}
-
-wxString wxMenuBarBase::GetLabelTop(size_t pos) const
-{
- return GetMenuLabel(pos);
-}
-#endif
-
// ----------------------------------------------------------------------------
// include the real class declaration
// ----------------------------------------------------------------------------
if ( item )
{
+ wxString label = item->GetItemLabel();
wxLogMessage(_T("The label of the last menu item is '%s'"),
- item->GetLabel().c_str());
+ label.c_str());
}
}
// name just like the ordinary items
if ( !item->IsSeparator() )
{
- if ( item->GetLabel() == label )
+ if ( item->GetItemLabelText() == label )
return item->GetId();
}
}
}
}
+#if WXWIN_COMPATIBILITY_2_8
+// get or change the label of the menu at given position
+void wxMenuBarBase::SetLabelTop(size_t pos, const wxString& label)
+{
+ SetMenuLabel(pos, label);
+}
+
+wxString wxMenuBarBase::GetLabelTop(size_t pos) const
+{
+ return GetMenuLabel(pos);
+}
+#endif
+
+
#endif // wxUSE_MENUS