Avoid conflict between accelerators in the notebook sample.
Ctrl-5 was used both for the treebook in the "Type" menu and default orientation choice in the "Orientation" menu. Use Alt-[0..4] for the "Orientation" menu entries. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63631 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
		@@ -322,11 +322,11 @@ MyFrame::MyFrame()
 | 
			
		||||
    menuType->Check(ID_BOOK_NOTEBOOK + m_type, true);
 | 
			
		||||
 | 
			
		||||
    wxMenu *menuOrient = new wxMenu;
 | 
			
		||||
    menuOrient->AppendRadioItem(ID_ORIENT_DEFAULT, wxT("&Default\tCtrl-5"));
 | 
			
		||||
    menuOrient->AppendRadioItem(ID_ORIENT_TOP,     wxT("&Top\tCtrl-6"));
 | 
			
		||||
    menuOrient->AppendRadioItem(ID_ORIENT_BOTTOM,  wxT("&Bottom\tCtrl-7"));
 | 
			
		||||
    menuOrient->AppendRadioItem(ID_ORIENT_LEFT,    wxT("&Left\tCtrl-8"));
 | 
			
		||||
    menuOrient->AppendRadioItem(ID_ORIENT_RIGHT,   wxT("&Right\tCtrl-9"));
 | 
			
		||||
    menuOrient->AppendRadioItem(ID_ORIENT_DEFAULT, wxT("&Default\tAlt-0"));
 | 
			
		||||
    menuOrient->AppendRadioItem(ID_ORIENT_TOP,     wxT("&Top\tAlt-1"));
 | 
			
		||||
    menuOrient->AppendRadioItem(ID_ORIENT_BOTTOM,  wxT("&Bottom\tAlt-2"));
 | 
			
		||||
    menuOrient->AppendRadioItem(ID_ORIENT_LEFT,    wxT("&Left\tAlt-3"));
 | 
			
		||||
    menuOrient->AppendRadioItem(ID_ORIENT_RIGHT,   wxT("&Right\tAlt-4"));
 | 
			
		||||
 | 
			
		||||
    wxMenu *menuPageOperations = new wxMenu;
 | 
			
		||||
    menuPageOperations->Append(ID_ADD_PAGE, wxT("&Add page\tAlt-A"));
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user