#include <CUI.h>
Inheritance diagram for CScrollable::

Public Methods | |
| CScrollable () | |
| Empty constructor. More... | |
| ~CScrollable () | |
| Empty destructor. More... | |
| virtual int | getMin ()=0 |
| Returns minimum value of the scroll region. More... | |
| virtual int | getMax ()=0 |
| Returns maximum value of the scroll region. More... | |
| virtual int | getPos ()=0 |
| Returns current position in the scroll region. More... | |
| virtual void | setPos (int pos)=0 |
| Sets the current item/line to be selected. More... | |
| virtual void | scrollUp ()=0 |
| Scrolls up one. More... | |
| virtual void | scrollDown ()=0 |
| Scrolls down one. More... | |
All widgets/object that want to be scrollable by a scrollbar need to inherit from this class and fill the function in
|
|
Empty constructor.
|
|
|
Empty destructor.
|
|
|
Returns maximum value of the scroll region.
Reimplemented in CPersonEdit, CListBox, and CTextArea. |
|
|
Returns minimum value of the scroll region.
Reimplemented in CPersonEdit, CListBox, and CTextArea. |
|
|
Returns current position in the scroll region.
Reimplemented in CPersonEdit, CListBox, and CTextArea. |
|
|
Scrolls down one.
Reimplemented in CPersonEdit, CListBox, and CTextArea. |
|
|
Scrolls up one.
Reimplemented in CPersonEdit, CListBox, and CTextArea. |
|
|
Sets the current item/line to be selected.
Reimplemented in CPersonEdit, CListBox, and CTextArea. |
1.2.12 written by Dimitri van Heesch,
© 1997-2001