Hello
I'm having a problem with my menus. I've tried every possible way of removing a sub menu but none seems to be working. If i have a menu named menu1 which has a sub menu named menu2. When i get menu2 from menu1 it is a menuItem. So if i do:
menu1.RemoveItem(menu2) -
C++ assertion "wxAssertFailure" failed in ../src/common/menucmn.cpp(379): bug in wxMenu::Remove logic
menu2Id = menu2.GetId()
menu1.Remove(menu2Id) -
C++ assertion "wxAssertFailure" failed in ../src/common/menucmn.cpp(369): invalid item in wxMenu::Remove
I've also tried using delete but it also doesn't work. Any ideas would be grand. By the way this does work when i am deleting a item that is not a wxMenu
Christopher Regan
Factory Applications Programmer
(845) 902-1313
"Move like a jellyfish. Rhythm is nothing. You go with the flow. You don't stop." ~ Jack Johnson