diff --git a/interface/wx/menu.h b/interface/wx/menu.h index 42d5f74648..9a0b6d6993 100644 --- a/interface/wx/menu.h +++ b/interface/wx/menu.h @@ -652,6 +652,8 @@ public: Adds the given @a submenu to this menu. @a text is the text shown in the menu for it and @a help is the help string shown in the status bar when the submenu item is selected. + + @see Insert(), Prepend() */ wxMenuItem* AppendSubMenu(wxMenu* submenu, const wxString& text, const wxString& help = wxEmptyString); @@ -865,6 +867,16 @@ public: const wxString& helpString = wxEmptyString, wxItemKind kind = wxITEM_NORMAL); + /** + Inserts the given @a submenu before the position @a pos. + @a text is the text shown in the menu for it and @a help is the + help string shown in the status bar when the submenu item is selected. + + @see AppendSubMenu(), Prepend() + */ + wxMenuItem* Insert(size_t pos, int id, const wxString& text, + wxMenu* submenu, const wxString& help = wxEmptyString); + /** Inserts a checkable item at the given position. @@ -930,6 +942,14 @@ public: const wxString& helpString = wxEmptyString, wxItemKind kind = wxITEM_NORMAL); + /** + Inserts the given @a submenu at position 0. + + @see AppendSubMenu(), Insert() + */ + wxMenuItem* Prepend(int id, const wxString& text, wxMenu* submenu, + const wxString& help = wxEmptyString); + /** Inserts a checkable item at position 0.