// Author: Wlodzimierz ABX Skiba
// Modified by:
// Created: 28.05.2004
-// RCS-ID: $Id$
// Copyright: (c) Wlodzimierz Skiba
-// License: wxWindows licence
+// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
// ============================================================================
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;