#include <Wt/WScrollBar>
Public Member Functions | |
Orientation | orientation () const |
Get the orientation of this scrollbar. | |
void | setValue (int value) |
Set the scrollbar value. | |
Static Public Member Functions | |
static void | tie (WScrollBar *one, WScrollBar *two) |
Tie two scrollbars together. | |
static void | unTie (WScrollBar *one, WScrollBar *two) |
Untie two scrollbars, that were previously tied together. |
A WScrollArea always has two scrollbars (even if they are not visible, for example when the policy is WSCrollArea::ScrollBarAlwaysOff). Using the tie(WScrollBar *one, WScrollBar *two) functions, it is possible to tie to scrollbars together, so that they will scroll together.
void Wt::WScrollBar::tie | ( | WScrollBar * | one, | |
WScrollBar * | two | |||
) | [static] |
Tie two scrollbars together.
The effect of this call is that these scrollbars will keep their positions synchronised.
void Wt::WScrollBar::unTie | ( | WScrollBar * | one, | |
WScrollBar * | two | |||
) | [static] |
Untie two scrollbars, that were previously tied together.
void Wt::WScrollBar::setValue | ( | int | value | ) |
Set the scrollbar value.
This will move the scrollbar to the given value.