5.11 Tdscrollbar and lrscrollbar widgets

5.11.1 Description

A scrollbar is a widget that displays two arrows, one at each end of the scrollbar, and a slider in the middle portion of the scrollbar. tdscrollbar displays a vertical scrollbar while lrscrollbar displays an horizontal one. It provides information about what is visible in an associated window that displays an document of some sort (such as a file being edited or a drawing). The position and size of the slider indicate which portion of the document is visible in the associated window. For example, if the slider in a vertical scrollbar covers the top third of the area between the two arrows, it means that the associated window displays the top third of its document.

Scrollbars can be used to adjust the view in the associated window by clicking or dragging with the mouse.

Note that some widgets have tdscrollbar and lrscrollbar parameters that avoids to explicitly create scrollbar widgets.

ELEMENTS

A scrollbar displays five elements, which are referred to in the widget commands for the scrollbar:

5.11.2 Parameters

5.11.3 Interface

The object you get by an handle on the widget implements the following methods :


Donatien Grolaux
Version 1.2.3 (20011129)