+ bool SendEvent(int itemid, int checked = -1);
+
+ // compatibility: these functions are deprecated, use the new ones instead
+ // -----------------------------------------------------------------------
+
+ // use the versions taking wxItem_XXX now instead, they're more readable
+ // and allow adding the radio items as well
+ void Append(int itemid,
+ const wxString& text,
+ const wxString& help,
+ bool isCheckable)
+ {
+ Append(itemid, text, help, isCheckable ? wxITEM_CHECK : wxITEM_NORMAL);
+ }
+
+ void Insert(size_t pos,
+ int itemid,
+ const wxString& text,
+ const wxString& help,
+ bool isCheckable)
+ {
+ Insert(pos, itemid, text, help, isCheckable ? wxITEM_CHECK : wxITEM_NORMAL);
+ }
+
+ void Prepend(int itemid,
+ const wxString& text,
+ const wxString& help,
+ bool isCheckable)
+ {
+ Insert(0u, itemid, text, help, isCheckable);
+ }
+
+#if WXWIN_COMPATIBILITY
+ bool Enabled(int itemid) const { return IsEnabled(itemid); }
+ bool Checked(int itemid) const { return IsChecked(itemid); }
+
+ wxMenuItem* FindItemForId(int itemId, wxMenu **itemMenu) const
+ { return FindItem(itemId, itemMenu); }
+
+ wxList& GetItems() const { return (wxList &)m_items; }
+#endif // WXWIN_COMPATIBILITY