The latter adds the event for later processing. As a result, the event
appears to be processed to the caller, even if the handled it was passed
to called Skip() on it. ProcessEvent() doesn't suffer from this problem,
it may modify the event as expected.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63862
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxWindowList children = m_combo->GetPopupWindow()->GetChildren();
wxWindowList::iterator node = children.begin();
wxWindow* child = (wxWindow*)*node;
wxWindowList children = m_combo->GetPopupWindow()->GetChildren();
wxWindowList::iterator node = children.begin();
wxWindow* child = (wxWindow*)*node;
- child->GetEventHandler()->AddPendingEvent(event);
+ child->GetEventHandler()->ProcessEvent(event);
if ( IsPopupShown() )
{
// relay (some) mouse events to the popup
if ( IsPopupShown() )
{
// relay (some) mouse events to the popup
- m_popup->GetEventHandler()->AddPendingEvent(event);
+ m_popup->GetEventHandler()->ProcessEvent(event);
}
else if ( event.GetWheelAxis() == 0 &&
event.GetWheelRotation() != 0 &&
}
else if ( event.GetWheelAxis() == 0 &&
event.GetWheelRotation() != 0 &&
kevent.m_keyCode = event.GetWheelRotation() > 0
? WXK_UP
: WXK_DOWN;
kevent.m_keyCode = event.GetWheelRotation() > 0
? WXK_UP
: WXK_DOWN;
- GetEventHandler()->AddPendingEvent(kevent);
+ GetEventHandler()->ProcessEvent(kevent);
if ( IsPopupShown() )
{
// pass it to the popped up control
if ( IsPopupShown() )
{
// pass it to the popped up control
- GetPopupControl()->GetControl()->GetEventHandler()->AddPendingEvent(event);
+ GetPopupControl()->GetControl()->GetEventHandler()->ProcessEvent(event);