X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b1294ada8e87725409f290328da02306e5c8f4eb..cc4d5638c66a409e421420ed7110917755a66788:/src/univ/choice.cpp?ds=sidebyside diff --git a/src/univ/choice.cpp b/src/univ/choice.cpp index d1d5312f36..1147aa4900 100644 --- a/src/univ/choice.cpp +++ b/src/univ/choice.cpp @@ -4,7 +4,6 @@ // Author: Vadim Zeitlin // Modified by: // Created: 15.12.00 -// RCS-ID: $Id$ // Copyright: (c) 2000 SciTech Software, Inc. (www.scitechsoft.com) // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -31,8 +30,6 @@ #include "wx/arrstr.h" #endif -IMPLEMENT_DYNAMIC_CLASS(wxChoice, wxControlWithItems) - BEGIN_EVENT_TABLE(wxChoice, wxComboBox) EVT_COMBOBOX(wxID_ANY, wxChoice::OnComboBox) END_EVENT_TABLE() @@ -83,7 +80,7 @@ void wxChoice::OnComboBox(wxCommandEvent& event) { if ( event.GetId() == GetId() ) { - event.SetEventType(wxEVT_COMMAND_CHOICE_SELECTED); + event.SetEventType(wxEVT_CHOICE); event.Skip(); GetEventHandler()->ProcessEvent(event); }