Use event modifiers and accessors rather than m_ variables directly, which are now protected rather than public with 2.4 compatibility disabled
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31454 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user