// ----------------------------------------------------------------------------
void wxScrollBar::OnIdle(wxIdleEvent& event)
+{
+ UpdateThumb();
+ event.Skip();
+}
+
+void wxScrollBar::UpdateThumb()
{
if ( m_dirty )
{
m_dirty = FALSE;
}
-
- event.Skip();
}
void wxScrollBar::DoDraw(wxControlRenderer *renderer)
{
DoSetThumb(numArg);
+ // VS: we have to force redraw here, otherwise the thumb will lack
+ // behind mouse cursor
+ UpdateThumb();
+
scrollType = wxEVT_SCROLLWIN_THUMBTRACK;
}
else if ( action == wxACTION_SCROLL_LINE_UP )