* Add a comment to Enable() indicating that it is properly implemented

* Implement SetText()


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26375 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Elliott 2004-03-26 20:49:40 +00:00
parent 038bf94732
commit e03a77c6be

View File

@ -169,6 +169,7 @@ wxMenuItem::~wxMenuItem()
void wxMenuItem::Enable(bool bDoEnable)
{
wxMenuItemBase::Enable(bDoEnable);
// NOTE: Nothing to do, we respond to validateMenuItem instead
}
void wxMenuItem::Check(bool bDoCheck)
@ -180,6 +181,8 @@ void wxMenuItem::Check(bool bDoCheck)
void wxMenuItem::SetText(const wxString& label)
{
wxMenuItemBase::SetText(label);
wxCHECK_RET(m_kind != wxITEM_SEPARATOR, wxT("Separator items do not have titles."));
[m_cocoaNSMenuItem setTitle: wxNSStringWithWxString(wxStripMenuCodes(label))];
}
void wxMenuItem::SetCheckable(bool checkable)