From 09daf20b81cdae78772f07c0af22a571d7cc73eb Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Thu, 29 Nov 2001 19:24:00 +0000 Subject: Documentation updates galore (up to chapter 7, still need to do chapter 8 and 9, tweek the appendices, and recapture the screenshots...) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1786 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- documentation/Fl_Scrollbar.html | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'documentation/Fl_Scrollbar.html') diff --git a/documentation/Fl_Scrollbar.html b/documentation/Fl_Scrollbar.html index e05de38a5..b1d9123da 100644 --- a/documentation/Fl_Scrollbar.html +++ b/documentation/Fl_Scrollbar.html @@ -17,15 +17,15 @@

Description

- The Fl_Scrollbar widget displays a slider with arrow buttons -at the ends of the scrollbar. Clicking on the arrows move up/left and + The Fl_Scrollbar widget displays a slider with arrow buttons +at the ends of the scrollbar. Clicking on the arrows move up/left and down/right by linesize(). Scrollbars also accept -FL_SHORTCUT events: the arrows move by linesize(), and +FL_SHORTCUT events: the arrows move by linesize(), and vertical scrollbars take Page Up/Down (they move by the page size minus -linesize()) and Home/End (they jump to the top or bottom). -

Scrollbars have step(1) preset (they always return -integers). If desired you can set the step() to non-integer -values. You will then have to use casts to get at the floating-point +linesize()) and Home/End (they jump to the top or bottom). +

Scrollbars have step(1) preset (they always return +integers). If desired you can set the step() to non-integer +values. You will then have to use casts to get at the floating-point versions of value() from Fl_Slider.

Fl_Scrollbar widget.

Methods

@@ -35,26 +35,26 @@ versions of value() from Fl_Slider.

  • linesize
  • value
  • -

    Fl_Scrollbar::Fl_Scrollbar(int x, +

    Fl_Scrollbar::Fl_Scrollbar(int x, int y, int w, int h, const char *label = 0)

    - Creates a new Fl_Scrollbar widget using the given position, -size, and label string. You need to do type(FL_HORIZONTAL) if -you want a horizontal scrollbar. -

    virtual + Creates a new Fl_Scrollbar widget using the given position, +size, and label string. You need to do type(FL_HORIZONTAL) if +you want a horizontal scrollbar. +

    virtual Fl_Scrollbar::~Fl_Scrollbar()

    - Destroys the valuator. + Destroys the valuator.

    int Fl_Scrollbar::linesize() const
    void Fl_Scrollbar::linesize(int i)

    - This number controls how big the steps are that the arrow keys do. In + This number controls how big the steps are that the arrow keys do. In addition page up/down move by the size last sent to value() - minus one linesize(). The default is 16. + minus one linesize(). The default is 16.

    int Fl_Scrollbar::value()
    int Fl_Scrollbar::value(int position, int size, int top, int total)

    - The first form returns the integer value of the scrollbar. You can get -the floating point value with Fl_Slider::value(). The second + The first form returns the integer value of the scrollbar. You can get +the floating point value with Fl_Slider::value(). The second form sets value(), range(), and slider_size() - to make a variable-sized scrollbar. You should call this every time -your window changes size, your data changes size, or your scroll -position changes (even if in response to a callback from this + to make a variable-sized scrollbar. You should call this every time +your window changes size, your data changes size, or your scroll +position changes (even if in response to a callback from this scrollbar). All necessary calls to redraw() are done. -- cgit v1.2.3