summaryrefslogtreecommitdiff
path: root/documentation
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2006-06-22 07:35:39 +0000
committerMatthias Melcher <fltk@matthiasm.com>2006-06-22 07:35:39 +0000
commit05bd3ade18e53762079994c41cbb953994d994c9 (patch)
tree897d2d7307a5e3830bced4fe438978a3d937a0ca /documentation
parentbaa92d1d7da42270b6dafe8f6498f439e33394b6 (diff)
Added support for floating point Fl_Spinner
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5221 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'documentation')
-rw-r--r--documentation/Fl_Spinner.html20
1 files changed, 18 insertions, 2 deletions
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.
<li><a href='#Fl_Spinner.textcolor'>textcolor</a></li>
<li><a href='#Fl_Spinner.textfont'>textfont</a></li>
<li><a href='#Fl_Spinner.textsize'>textsize</a></li>
+ <li><a href='#Fl_Spinner.type'>type</a></li>
<li><a href='#Fl_Spinner.value'>value</a></li>
</ul>
@@ -81,7 +82,10 @@ double minimum() const</a></h4>
double step() const</a></h4>
<p>Sets or returns the amount to change the value when the user
-clicks a button.</p>
+clicks a button.
+Before setting <tt>step</tt> to a non-integer value, the spinner
+<a href='#Fl_Spinner.type'><tt>type()</tt></a> should be changed
+to floating point.</p>
<h4><a name='Fl_Spinner.textcolor'>void textcolor(Fl_Color c)<br />
Fl_Color textcolor() const</a></h4>
@@ -98,10 +102,22 @@ uchar textsize() const</a></h4>
<p>Sets or returns the size of the text in the input field.</p>
+<h4><a name='Fl_Spinner.type'>void type(uchar s)<br />
+uchar type() const</a></h4>
+
+<p>Sets or returns the numeric representation in the input field.
+Valid values are <tt>FL_INT_INPUT</tt> and <tt>FL_FLOAT_INPUT</tt>.
+The first form also changes the <tt>format()</tt> template.
+Please note that <tt>type</tt> is not a virtual function.
+Setting a new spinner type via a superclass pointer will not work.</p>
+
<h4><a name="Fl_Spinner.value">void Fl_Spinner::value(double v)<br />
double Fl_Spinner::value() const</a></h4>
-<p>Sets or returns the current value of the widget.</p>
+<p>Sets or returns the current value of the widget.
+Before setting <tt>value</tt> to a non-integer value, the spinner
+<a href='#Fl_Spinner.type'><tt>type()</tt></a> should be changed
+to floating point.</p>
</body>
</html>