Wt: Wt::WScrollBar Class Reference

Wt 3.3.0

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes

- Class List
- Class Hierarchy
- Class Members

Public Member Functions | Static Public Member Functions
Wt::WScrollBar Class Reference

A scrollbar attached to a scroll area. More...

`#include <Wt/WScrollBar>`

Inheritance diagram for Wt::WScrollBar:
[legend]

List of all members.

## Public Member Functions
Orientation | orientation () const
| Returns the orientation of this scrollbar.
void | setValue (int value)
| Sets the scrollbar value (in pixels).
## Static Public Member Functions
static void | tie (WScrollBar *one, WScrollBar *two)
| Ties two scrollbars together.
static void | unTie (WScrollBar *one, WScrollBar *two)
| Unties two scrollbars, that were previously tied together.

## Detailed Description

A scrollbar attached to a scroll area.

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 two scrollbars together, so that they will scroll together.

See also:
  WScrollArea

## Member Function Documentation

void Wt::WScrollBar::setValue | ( | int | value | ) |

Sets the scrollbar value (in pixels).

This will move the scrollbar to the given value.

void Wt::WScrollBar::tie | ( | WScrollBar * | one,
|  | WScrollBar * | two
| ) |  | `[static]`

Ties 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]`

Unties two scrollbars, that were previously tied together.

Undo a tie(WScrollBar *one, WScrollBar *two);

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator