switch( controlpart )
{
case kControlUpButtonPart :
- nScrollInc = -1;
+ nScrollInc = -m_pageSize;
scrollEvent = wxEVT_SCROLL_LINEUP;
break ;
case kControlDownButtonPart :
- nScrollInc = 1;
+ nScrollInc = m_pageSize;
scrollEvent = wxEVT_SCROLL_LINEDOWN;
break ;
case kControlPageUpPart :
- nScrollInc = -m_pageSize;
+ nScrollInc = -m_viewSize;
scrollEvent = wxEVT_SCROLL_PAGEUP;
break ;
case kControlPageDownPart :
- nScrollInc = m_pageSize;
+ nScrollInc = m_viewSize;
scrollEvent = wxEVT_SCROLL_PAGEDOWN;
break ;
case kControlIndicatorPart :