X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c1a48eafdfa581815802599f23b21f1711e54a3c..e07a2142811be9d4a4f5eaa730eeebcbe88b24c9:/samples/menu/menu.cpp diff --git a/samples/menu/menu.cpp b/samples/menu/menu.cpp index 3665eebae1..2949b68133 100644 --- a/samples/menu/menu.cpp +++ b/samples/menu/menu.cpp @@ -513,7 +513,7 @@ wxMenu *MyFrame::CreateDummyMenu(wxString *title) wxMenu *menu = new wxMenu; menu->Append(Menu_Dummy_First, _T("&First item\tCtrl-F1")); menu->AppendSeparator(); - menu->Append(Menu_Dummy_Second, _T("&Second item\tCtrl-F2"), _T(""), true); + menu->AppendCheckItem(Menu_Dummy_Second, _T("&Second item\tCtrl-F2")); if ( title ) { @@ -575,7 +575,7 @@ void MyFrame::OnClearLog(wxCommandEvent& WXUNUSED(event)) void MyFrame::OnAbout(wxCommandEvent& WXUNUSED(event)) { - (void)wxMessageBox(_T("wxWidgets menu sample\n© 1999-2001 Vadim Zeitlin"), + (void)wxMessageBox(_T("wxWidgets menu sample\n(c) 1999-2001 Vadim Zeitlin"), _T("About wxWidgets menu sample"), wxICON_INFORMATION); } @@ -929,7 +929,7 @@ void MyFrame::ShowContextMenu(const wxPoint& pos) menu.Append(Menu_Help_About, _T("&About")); menu.Append(Menu_Popup_Submenu, _T("&Submenu"), CreateDummyMenu(NULL)); menu.Append(Menu_Popup_ToBeDeleted, _T("To be &deleted")); - menu.Append(Menu_Popup_ToBeChecked, _T("To be &checked"), _T(""), true); + menu.AppendCheckItem(Menu_Popup_ToBeChecked, _T("To be &checked")); menu.Append(Menu_Popup_ToBeGreyed, _T("To be &greyed"), _T("This menu item should be initially greyed out")); menu.AppendSeparator();