From c20c8cb95defd1ffd9bd81737eeec7680a5cae5c Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 23 Apr 2000 08:56:36 +0000 Subject: [PATCH] a demo for wxGTK bug added git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7244 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/menu/menu.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/samples/menu/menu.cpp b/samples/menu/menu.cpp index 1b098b2f39..da22006c4d 100644 --- a/samples/menu/menu.cpp +++ b/samples/menu/menu.cpp @@ -575,9 +575,16 @@ void MyFrame::OnRightDown(wxMouseEvent &event ) menu.AppendSeparator(); menu.Append(Menu_File_Quit, "E&xit"); - //menu.Delete(Menu_Popup_ToBeDeleted); + menu.Delete(Menu_Popup_ToBeDeleted); menu.Check(Menu_Popup_ToBeChecked, TRUE); menu.Enable(Menu_Popup_ToBeGreyed, FALSE); PopupMenu( &menu, event.GetX(), event.GetY() ); + + // test for destroying items in popup menus +#if 0 + menu.Destroy(Menu_Popup_Submenu); + + PopupMenu( &menu, event.GetX(), event.GetY() ); +#endif // 0 }