return TRUE;
}
-int wxScrollBar::GetPosition(void) const
+int wxScrollBar::GetThumbPosition(void) const
{
return (int)(m_adjust->value+0.5);
}
return (int)(m_adjust->upper+0.5);
}
-void wxScrollBar::SetPosition( int viewStart )
+void wxScrollBar::SetThumbPosition( int viewStart )
{
if (m_isScrolling) return;
(fabs(fthumb-m_adjust->page_size) < 0.2) &&
(fabs(fpage-m_adjust->page_increment) < 0.2))
{
- SetPosition( position );
+ SetThumbPosition( position );
return;
}
// Backward compatibility
int wxScrollBar::GetValue(void) const
{
- return GetPosition();
+ return GetThumbPosition();
}
void wxScrollBar::SetValue( int viewStart )
{
- SetPosition( viewStart );
+ SetThumbPosition( viewStart );
}
void wxScrollBar::GetValues( int *viewStart, int *viewLength, int *objectLength, int *pageLength ) const