Applied patch for more compliant wxScrolbar event
generation order. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31882 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
bf6461219d
commit
1b24b2b48c
@ -67,10 +67,6 @@ static void gtk_scrollbar_callback( GtkAdjustment *adjust,
|
||||
|
||||
int orient = win->HasFlag(wxSB_VERTICAL) ? wxVERTICAL : wxHORIZONTAL;
|
||||
|
||||
wxScrollEvent event( command, win->GetId(), value, orient );
|
||||
event.SetEventObject( win );
|
||||
win->GetEventHandler()->ProcessEvent( event );
|
||||
|
||||
// throw a LINEUP / LINEDOWN event if necessary
|
||||
if (g_currentUpDownEvent != wxEVT_NULL)
|
||||
{
|
||||
@ -78,6 +74,11 @@ static void gtk_scrollbar_callback( GtkAdjustment *adjust,
|
||||
event.SetEventObject( win );
|
||||
win->GetEventHandler()->ProcessEvent( event );
|
||||
}
|
||||
|
||||
// throw other event (wxEVT_SCROLL_THUMBTRACK)
|
||||
wxScrollEvent event( command, win->GetId(), value, orient );
|
||||
event.SetEventObject( win );
|
||||
win->GetEventHandler()->ProcessEvent( event );
|
||||
|
||||
/*
|
||||
wxCommandEvent cevent( wxEVT_COMMAND_SCROLLBAR_UPDATED, win->GetId() );
|
||||
|
@ -67,10 +67,6 @@ static void gtk_scrollbar_callback( GtkAdjustment *adjust,
|
||||
|
||||
int orient = win->HasFlag(wxSB_VERTICAL) ? wxVERTICAL : wxHORIZONTAL;
|
||||
|
||||
wxScrollEvent event( command, win->GetId(), value, orient );
|
||||
event.SetEventObject( win );
|
||||
win->GetEventHandler()->ProcessEvent( event );
|
||||
|
||||
// throw a LINEUP / LINEDOWN event if necessary
|
||||
if (g_currentUpDownEvent != wxEVT_NULL)
|
||||
{
|
||||
@ -78,6 +74,11 @@ static void gtk_scrollbar_callback( GtkAdjustment *adjust,
|
||||
event.SetEventObject( win );
|
||||
win->GetEventHandler()->ProcessEvent( event );
|
||||
}
|
||||
|
||||
// throw other event (wxEVT_SCROLL_THUMBTRACK)
|
||||
wxScrollEvent event( command, win->GetId(), value, orient );
|
||||
event.SetEventObject( win );
|
||||
win->GetEventHandler()->ProcessEvent( event );
|
||||
|
||||
/*
|
||||
wxCommandEvent cevent( wxEVT_COMMAND_SCROLLBAR_UPDATED, win->GetId() );
|
||||
|
Loading…
Reference in New Issue
Block a user