if ( id == IDM_LEFT || id == IDM_RIGHT )
{
int menuId = id == IDM_LEFT ? m_LeftButton.GetId() : m_RightButton.GetId() ;
- wxCommandEvent commandEvent(wxEVT_COMMAND_MENU_SELECTED, menuId);
+ wxCommandEvent commandEvent(wxEVT_MENU, menuId);
commandEvent.SetEventObject(this);
GetEventHandler()->ProcessEvent(commandEvent);
return true;