// the menu we're in
wxMenu *GetMenu() const { return m_parentMenu; }
+ void SetMenu(wxMenu* menu) { m_parentMenu = menu; }
// get/set id
void SetId(int itemid) { m_id = itemid; }
// what kind of menu item we are
wxItemKind GetKind() const { return m_kind; }
+ void SetKind(wxItemKind kind) { m_kind = kind; }
virtual void SetCheckable(bool checkable) { m_kind = checkable ? wxITEM_CHECK : wxITEM_NORMAL; }
bool IsCheckable() const
#include "wx/gtk/menuitem.h"
#elif defined(__WXMAC__)
#include "wx/mac/menuitem.h"
+#elif defined(__WXCOCOA__)
+ #include "wx/cocoa/menuitem.h"
#elif defined(__WXPM__)
#include "wx/os2/menuitem.h"
#endif