Applied patch [ 642172 ] Fix menu accelerators in ownerdrw
Fixed bug when updating menu text to inform the ownerdrw code of the new menu accelerator attached to the menu item. Improved the layout of the owenerdrw menu ownerdrw to correctly account for menu accelerators, submenu arrows etc. Scott Pleiter (Note from JACS: I've also changed the sample to show the Quit item correctly aligned; it needs to have the font set before wxWin knows it's an ownerdrawn item.) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18140 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -166,7 +166,10 @@ void OwnerDrawnFrame::InitMenu()
|
||||
file_menu->Append(pItem);
|
||||
|
||||
file_menu->AppendSeparator();
|
||||
file_menu->Append(Menu_Quit, "&Quit", "Normal item");
|
||||
pItem = new wxMenuItem(file_menu, Menu_Quit, "&Quit", "Normal item",
|
||||
wxITEM_NORMAL);
|
||||
pItem->SetFont(*wxNORMAL_FONT);
|
||||
file_menu->Append(pItem);
|
||||
|
||||
wxMenuBar *menu_bar = new wxMenuBar;
|
||||
|
||||
|
Reference in New Issue
Block a user