X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0b9cd93cad6513d2f7b08b9b2f1eea2bac5d902a..9da00e91b4ad147584297b1a64cc1abfa50ee010:/src/mac/carbon/listbox.cpp diff --git a/src/mac/carbon/listbox.cpp b/src/mac/carbon/listbox.cpp index 975813fb26..502651c1a4 100644 --- a/src/mac/carbon/listbox.cpp +++ b/src/mac/carbon/listbox.cpp @@ -28,7 +28,7 @@ IMPLEMENT_DYNAMIC_CLASS(wxListBox, wxControl) BEGIN_EVENT_TABLE(wxListBox, wxControl) #ifndef __WXMAC_OSX__ - EVT_SIZE( wxListBox::OnSize ) +// EVT_SIZE( wxListBox::OnSize ) EVT_CHAR( wxListBox::OnChar ) #endif END_EVENT_TABLE() @@ -864,7 +864,7 @@ void wxListBox::OnChar(wxKeyEvent& event) n = -1; } - event.m_commandInt = n; + event.SetInt(n); GetEventHandler()->ProcessEvent(event); } @@ -891,7 +891,7 @@ void wxListBox::OnChar(wxKeyEvent& event) event.SetClientData( GetClientData(line) ); event.SetString( GetString(line) ); - event.m_commandInt = line ; + event.SetInt(line); GetEventHandler()->ProcessEvent(event); }