// menu construction
// -----------------
- // append a separator to the menu
- void AppendSeparator() { Append(wxID_SEPARATOR, wxEmptyString); }
-
// append a normal item to the menu
void Append(int id,
const wxString& text,
DoAppend(wxMenuItem::New((wxMenu *)this, id, text, help, isCheckable));
}
+ // append a separator to the menu
+ void AppendSeparator() { Append(wxID_SEPARATOR, wxEmptyString); }
+
// append a submenu
void Append(int id,
const wxString& text,
{ return FindItem(itemId, itemMenu); }
wxList& GetItems() const { return (wxList &)m_items; }
+#endif // WXWIN_COMPATIBILITY
// wxWin 1.6x compatible menu event handling
wxFunction GetCallback() const { return m_callback; }
void Callback(const wxFunction func) { m_callback = func; }
wxFunction m_callback;
-#endif // WXWIN_COMPATIBILITY
// unlike FindItem(), this function doesn't recurse but only looks through
// our direct children and also may return the index of the found child if