git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5506
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxEventType scrollEvent = wxEVT_NULL;
int nScrollInc;
wxEventType scrollEvent = wxEVT_NULL;
int nScrollInc;
+ bool isScrolling = TRUE;
switch ( wParam )
{
case SB_TOP:
switch ( wParam )
{
case SB_TOP:
scrollEvent = wxEVT_SCROLL_PAGEDOWN;
break;
scrollEvent = wxEVT_SCROLL_PAGEDOWN;
break;
+ isScrolling = FALSE;
+ /* fall-through */
+
+ case SB_THUMBTRACK:
nScrollInc = pos - position;
scrollEvent = wxEVT_SCROLL_THUMBTRACK;
break;
nScrollInc = pos - position;
scrollEvent = wxEVT_SCROLL_THUMBTRACK;
break;
+ if (( nScrollInc == 0 ) && isScrolling )
{
// no event to process, so don't process it
{
// no event to process, so don't process it
+ // GRG: always process SB_THUMBPOSITION !
wxScrollEvent event(scrollEvent, m_windowId);
event.SetPosition(new_pos);
event.SetEventObject( this );
wxScrollEvent event(scrollEvent, m_windowId);
event.SetPosition(new_pos);
event.SetEventObject( this );
+ event.SetScrolling(isScrolling);
return GetEventHandler()->ProcessEvent(event);
}
return GetEventHandler()->ProcessEvent(event);
}
event.m_eventType = wxEVT_SCROLLWIN_PAGEDOWN;
break;
event.m_eventType = wxEVT_SCROLLWIN_PAGEDOWN;
break;
+ event.m_isScrolling = FALSE;
+ /* fall-through */
+
+ case SB_THUMBTRACK:
event.m_eventType = wxEVT_SCROLLWIN_THUMBTRACK;
break;
event.m_eventType = wxEVT_SCROLLWIN_THUMBTRACK;
break;