From 05bd3ade18e53762079994c41cbb953994d994c9 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Thu, 22 Jun 2006 07:35:39 +0000 Subject: Added support for floating point Fl_Spinner git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5221 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- documentation/Fl_Spinner.html | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'documentation') diff --git a/documentation/Fl_Spinner.html b/documentation/Fl_Spinner.html index ab6383c77..c294262ca 100644 --- a/documentation/Fl_Spinner.html +++ b/documentation/Fl_Spinner.html @@ -44,6 +44,7 @@ input area or use the buttons to change the value.
  • textcolor
  • textfont
  • textsize
  • +
  • type
  • value
  • @@ -81,7 +82,10 @@ double minimum() const double step() const

    Sets or returns the amount to change the value when the user -clicks a button.

    +clicks a button. +Before setting step to a non-integer value, the spinner +type() should be changed +to floating point.

    void textcolor(Fl_Color c)
    Fl_Color textcolor() const

    @@ -98,10 +102,22 @@ uchar textsize() const

    Sets or returns the size of the text in the input field.

    +

    void type(uchar s)
    +uchar type() const

    + +

    Sets or returns the numeric representation in the input field. +Valid values are FL_INT_INPUT and FL_FLOAT_INPUT. +The first form also changes the format() template. +Please note that type is not a virtual function. +Setting a new spinner type via a superclass pointer will not work.

    +

    void Fl_Spinner::value(double v)
    double Fl_Spinner::value() const

    -

    Sets or returns the current value of the widget.

    +

    Sets or returns the current value of the widget. +Before setting value to a non-integer value, the spinner +type() should be changed +to floating point.

    -- cgit v1.2.3