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.
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);
/**
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.