X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9c8849722a71ee7139e035bca5fdb2ae7b0af570..2b835535a92d6c281084c10e46d51029c1eb776d:/include/wx/gtk/menu.h diff --git a/include/wx/gtk/menu.h b/include/wx/gtk/menu.h index 8d6f68db7e..dfa0569718 100644 --- a/include/wx/gtk/menu.h +++ b/include/wx/gtk/menu.h @@ -128,11 +128,11 @@ public: ~wxMenu(); - // operations - // title + // title void SetTitle(const wxString& label); const wxString GetTitle() const; - // menu creation + + // menu creation void AppendSeparator(); void Append(int id, const wxString &item, const wxString &helpStr = "", bool checkable = FALSE); @@ -141,6 +141,9 @@ public: void Append(wxMenuItem *pItem); void Break() { } + // delete item. don't delete the wxMenu if it's a submenu + void Delete( int id ); + // find item by name/id int FindItem( const wxString itemString ) const; wxMenuItem *FindItem( int id ) const;