Fix nonsensical checked menu item label and behaviour

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37264 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart 2006-02-02 18:19:04 +00:00
parent fd0fca1a25
commit 8e1b6d43a7

View File

@ -414,7 +414,7 @@ MyFrame::MyFrame()
wxMenu* subMenu = new wxMenu;
subMenu->Append(Menu_SubMenu_Normal, _T("&Normal submenu item"), _T("Disabled submenu item"));
subMenu->AppendCheckItem(Menu_SubMenu_Check, _T("&Unchecked submenu item"), _T("Unchecked submenu item"));
subMenu->AppendCheckItem(Menu_SubMenu_Check, _T("&Check submenu item"), _T("Check submenu item"));
subMenu->AppendRadioItem(Menu_SubMenu_Radio1, _T("Radio item &1"), _T("Radio item"));
subMenu->AppendRadioItem(Menu_SubMenu_Radio2, _T("Radio item &2"), _T("Radio item"));
subMenu->AppendRadioItem(Menu_SubMenu_Radio3, _T("Radio item &3"), _T("Radio item"));
@ -994,7 +994,6 @@ void MyFrame::OnUpdateSubMenuNormal(wxUpdateUIEvent& event)
void MyFrame::OnUpdateSubMenuCheck(wxUpdateUIEvent& event)
{
event.Enable(true);
event.Check(true);
}
void MyFrame::OnUpdateSubMenuRadio(wxUpdateUIEvent& event)