1999-01-13 22:28:54 +03:00
|
|
|
<HTML><BODY>
|
2001-11-28 21:00:17 +03:00
|
|
|
<!-- NEW PAGE -->
|
1999-01-13 22:28:54 +03:00
|
|
|
<H2><A name=Fl_Value_Input>class Fl_Value_Input</A></H2>
|
|
|
|
<HR>
|
|
|
|
<H3>Class Hierarchy</H3>
|
|
|
|
<UL>
|
|
|
|
<PRE>
|
|
|
|
<A href=Fl_Valuator.html#Fl_Valuator>Fl_Valuator</A>
|
1998-12-29 17:21:17 +03:00
|
|
|
|
|
1999-01-13 22:28:54 +03:00
|
|
|
+----<B>Fl_Value_Input</B>
|
|
|
|
</PRE>
|
|
|
|
</UL>
|
|
|
|
<H3>Include Files</H3>
|
|
|
|
<UL>
|
|
|
|
<PRE>
|
|
|
|
#include <FL/Fl_Value_Input.H>
|
|
|
|
</PRE>
|
|
|
|
</UL>
|
|
|
|
<H3>Description</H3>
|
2001-11-29 22:24:00 +03:00
|
|
|
The <TT>Fl_Value_Input</TT> widget displays a floating point value.
|
|
|
|
The user can click in the text field and edit it (there is in fact a
|
2001-10-01 00:25:36 +04:00
|
|
|
hidden <A href=Fl_Input.html#Fl_Input><TT>Fl_Input</TT></A> widget with <TT>
|
2001-11-29 22:24:00 +03:00
|
|
|
type(FL_FLOAT_INPUT)</TT> in there), and when they hit return or tab
|
|
|
|
the value updates to what they typed and the callback is done.
|
|
|
|
<P>If <TT>step()</TT> is not zero, the user can also drag the mouse
|
1999-01-13 22:28:54 +03:00
|
|
|
across the object and thus slide the value. The left button moves one <TT>
|
2001-11-29 22:24:00 +03:00
|
|
|
step()</TT> per pixel, the middle by <TT>10 * step()</TT>, and the left
|
|
|
|
button by <TT>100 * step()</TT>. It is then impossible to select text
|
|
|
|
by dragging across it, although clicking can still move the insertion
|
1999-01-13 22:28:54 +03:00
|
|
|
cursor. </P>
|
2001-10-01 00:25:36 +04:00
|
|
|
<P ALIGN=CENTER><IMG src="Fl_Value_Input.gif" ALT="Fl_Value_Input widget."></P>
|
1999-01-13 22:28:54 +03:00
|
|
|
<H3>Methods</H3>
|
|
|
|
<UL>
|
|
|
|
<LI><A href=#Fl_Value_Input.Fl_Value_Input>Fl_Value_Input</A></LI>
|
|
|
|
<LI><A href=#Fl_Value_Input.~Fl_Value_Input>~Fl_Value_Input</A></LI>
|
|
|
|
<LI><A href=#Fl_Value_Input.cursor_color>cursor_color</A></LI>
|
|
|
|
<LI><A href=#Fl_Value_Input.soft>soft</A></LI>
|
|
|
|
<LI><A href=#Fl_Value_Input.textcolor>textcolor</A></LI>
|
|
|
|
<LI><A href=#Fl_Value_Input.textfont>textfont</A></LI>
|
|
|
|
<LI><A href=#Fl_Value_Input.textsize>textsize</A></LI>
|
|
|
|
</UL>
|
|
|
|
<H4><A name=Fl_Value_Input.Fl_Value_Input>
|
2001-11-29 22:24:00 +03:00
|
|
|
Fl_Value_Input::Fl_Value_Input(int x, int y, int w, int h, const char
|
1999-01-13 22:28:54 +03:00
|
|
|
*label = 0)</A></H4>
|
2001-11-29 22:24:00 +03:00
|
|
|
Creates a new <TT>Fl_Value_Input</TT> widget using the given position,
|
|
|
|
size, and label string. The default boxtype is <TT>FL_DOWN_BOX</TT>.
|
|
|
|
<H4><A name=Fl_Value_Input.~Fl_Value_Input>virtual
|
1999-01-13 22:28:54 +03:00
|
|
|
Fl_Value_Input::~Fl_Value_Input()</A></H4>
|
2001-11-29 22:24:00 +03:00
|
|
|
Destroys the valuator.
|
|
|
|
<H4><A name=Fl_Value_Input.cursor_color>Fl_Color
|
1999-01-13 22:28:54 +03:00
|
|
|
Fl_Value_Input::cursor_color() const
|
|
|
|
<BR> void Fl_Value_Input::cursor_color(Fl_Color)</A></H4>
|
2001-11-29 22:24:00 +03:00
|
|
|
Get or set the color of the cursor. This is black by default.
|
1999-01-13 22:28:54 +03:00
|
|
|
<H4><A name=Fl_Value_Input.soft>uchar Fl_Value_Input::soft() const
|
|
|
|
<BR> void Fl_Value_Input::soft(uchar)</A></H4>
|
2001-11-29 22:24:00 +03:00
|
|
|
If "soft" is turned on, the user is allowed to drag the value outside
|
|
|
|
the range. If they drag the value to one of the ends, let go, then
|
|
|
|
grab again and continue to drag, they can get to any value. Default is
|
|
|
|
true.
|
|
|
|
<H4><A name=Fl_Value_Input.textcolor>Fl_Color
|
1999-01-13 22:28:54 +03:00
|
|
|
Fl_Value_Input::textcolor() const
|
|
|
|
<BR> void Fl_Value_Input::textcolor(Fl_Color)</A></H4>
|
2001-11-29 22:24:00 +03:00
|
|
|
Gets or sets the color of the text in the value box.
|
|
|
|
<H4><A name=Fl_Value_Input.textfont>Fl_Font Fl_Value_Input::textfont()
|
1999-01-13 22:28:54 +03:00
|
|
|
const
|
|
|
|
<BR>
|
|
|
|
<BR>void Fl_Value_Input::textfont(Fl_Font)</A></H4>
|
2001-11-29 22:24:00 +03:00
|
|
|
Gets or sets the typeface of the text in the value box.
|
|
|
|
<H4><A name=Fl_Value_Input.textsize>uchar Fl_Value_Input::textsize()
|
1999-01-13 22:28:54 +03:00
|
|
|
const
|
|
|
|
<BR> void Fl_Value_Input::textsize(uchar)</A></H4>
|
1999-01-19 23:53:39 +03:00
|
|
|
Gets or sets the size of the text in the value box. </BODY></HTML>
|