X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/558e89e74dc107e9d95b01cea5ba4bc2b9fad046..20cc4e199e83b2d3a357b096b01a830028317707:/interface/wx/menuitem.h diff --git a/interface/wx/menuitem.h b/interface/wx/menuitem.h index da92070140..324dbdc0d2 100644 --- a/interface/wx/menuitem.h +++ b/interface/wx/menuitem.h @@ -17,7 +17,7 @@ Also please note that the methods related to fonts and bitmaps are currently only implemented for Windows, Mac and GTK+. - @beginEventTable{wxCommandEvent,wxMenuEvent} + @beginEventEmissionTable{wxCommandEvent,wxMenuEvent} @event{EVT_MENU(id, func)} Process a @c wxEVT_COMMAND_MENU_SELECTED command, which is generated by a menu item. This type of event is sent as wxCommandEvent. @@ -73,7 +73,7 @@ public: helpMenu->Append(wxID_ABOUT); // use the stock label and the stock accelerator but not the stock help string: - helpMenu->Append(wxID_ABOUT, wxEmptyString, wxT("My custom help string")); + helpMenu->Append(wxID_ABOUT, wxEmptyString, "My custom help string"); // use all stock properties except for the bitmap: wxMenuItem *mymenu = new wxMenuItem(helpMenu, wxID_ABOUT); @@ -92,7 +92,7 @@ public: instead. @param text Text for the menu item, as shown on the menu. An accelerator key can - be specified using the ampersand " character. In order to embed an + be specified using the ampersand @c & character. In order to embed an ampersand character in the menu item text, the ampersand must be doubled. @param helpString Optional help string that will be shown on the status bar. @@ -274,11 +274,14 @@ public: /** Sets the bitmap for the menu item. - It is equivalent to wxMenuItem::SetBitmaps(bmp, wxNullBitmap). - @onlyfor{wxmsw,wxmac,wxgtk} + It is equivalent to wxMenuItem::SetBitmaps(bmp, wxNullBitmap) if @a + checked is @true (default value) or SetBitmaps(wxNullBitmap, bmp) + otherwise. + + @onlyfor{wxmsw,wxosx,wxgtk} */ - virtual void SetBitmap(const wxBitmap& bmp); + virtual void SetBitmap(const wxBitmap& bmp, bool checked = true); /** Sets the checked/unchecked bitmaps for the menu item.