Wt::WScrollBar Class Reference

A scrollbar attached to a WScrollArea. More...

#include <WScrollBar>

Inherits Wt::WObject.

Inheritance diagram for Wt::WScrollBar:

Inheritance graph
[legend]
List of all members.

Public Types

 Horizontal
 Horizontal.
 Vertical
 Vertical.
enum  Orientation { Horizontal, Vertical }
 Enumeration that indicates direction. More...

Public Slots

void setValue (int value)
 Set the scrollbar value.

Public Member Functions

Orientation orientation () const
 Get the orientation of this scrollbar.

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.

Detailed Description

A scrollbar attached to a WScrollArea.

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.

Note: this apparently does not work with konqueror, but ChangeLog of khtml shows that it has been added recently.

In the future, a scrolled() signal will be added.

See also:
WScrollArea


Member Enumeration Documentation

enum Wt::WScrollBar::Orientation

Enumeration that indicates direction.

Enumerator:
Horizontal  Horizontal.
Vertical  Vertical.


Member Function Documentation

void Wt::WScrollBar::setValue ( int  value  )  [slot]

Set the scrollbar value.

This will move the scrollbar to the given value.

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.

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


The documentation for this class was generated from the following files:
Generated on Sun Jul 1 19:37:18 2007 for Wt by doxygen 1.4.7