ok thxdoublemax wrote:You shouldn't use the same id for multiple menu items. Use wxID_ANY, this should assign a new id internally. Then in the event handler you can get the current menu item using event.GetId() and wxMenuBar::FindItem().
but using wxID_ANY then how do I know witch ID is assigned to witch menu ?