- // Backward compatibility
- int GetValue(void) const;
- void SetValue( int viewStart );
- void GetValues( int *viewStart, int *viewLength, int *objectLength, int *pageLength) const;
- int GetViewLength() const;
- int GetObjectLength() const;
- void SetPageSize( int pageLength );
- void SetObjectLength( int objectLength );
- void SetViewLength( int viewLength );
+ int GetPosition() const ;
+ inline int GetThumbSize() const { return m_pageSize; }
+ inline int GetPageSize() const { return m_viewSize; }
+ inline int GetRange() const { return m_objectSize; }
+
+ virtual void SetPosition(int viewStart);
+ virtual void SetScrollbar(int position, int thumbSize, int range, int pageSize,
+ bool refresh = TRUE);
+
+ void Command(wxCommandEvent& event);
+
+protected:
+ int m_pageSize;
+ int m_viewSize;
+ int m_objectSize;