2006-10-29 17:16:03 +03:00
|
|
|
<HTML>
|
|
|
|
<HEAD>
|
|
|
|
<TITLE>Fl_Select_Browser</TITLE>
|
|
|
|
</HEAD>
|
|
|
|
<BODY>
|
2001-11-28 21:00:17 +03:00
|
|
|
<!-- NEW PAGE -->
|
1999-01-13 22:28:54 +03:00
|
|
|
<H2><A name=Fl_Select_Browser>class Fl_Select_Browser</A></H2>
|
|
|
|
<HR>
|
|
|
|
<H3>Class Hierarchy</H3>
|
|
|
|
<UL>
|
|
|
|
<PRE>
|
|
|
|
<A href=Fl_Browser.html#Fl_Browser>Fl_Browser</A>
|
1998-12-29 17:21:17 +03:00
|
|
|
|
|
1999-01-13 22:28:54 +03:00
|
|
|
+----<B>Fl_Select_Browser</B>
|
|
|
|
</PRE>
|
|
|
|
</UL>
|
|
|
|
<H3>Include Files</H3>
|
|
|
|
<UL>
|
|
|
|
<PRE>
|
|
|
|
#include <FL/Fl_Select_Browser.H>
|
|
|
|
</PRE>
|
|
|
|
</UL>
|
|
|
|
<H3>Description</H3>
|
|
|
|
The <TT>Fl_Select_Browser</TT> class is a subclass of <TT>Fl_Browser</TT>
|
2001-11-29 22:24:00 +03:00
|
|
|
which lets the user select a single item, or no items by clicking on
|
|
|
|
the empty space. As long as the mouse button is held down the item
|
|
|
|
pointed to by it is highlighted. Normally the callback is done when the
|
|
|
|
user presses the mouse, but you can change this with <TT>when()</TT>.
|
|
|
|
<P>See <A href=Fl_Browser.html#Fl_Browser><TT>Fl_Browser</TT></A> for
|
1999-01-13 22:28:54 +03:00
|
|
|
methods to add and remove lines from the browser. </P>
|
|
|
|
<H3>Methods</H3>
|
|
|
|
<UL>
|
|
|
|
<LI><A href=#Fl_Select_Browser.Fl_Select_Browser>Fl_Select_Browser</A></LI>
|
|
|
|
<LI><A href=#Fl_Select_Browser.~Fl_Select_Browser>~Fl_Select_Browser</A></LI>
|
|
|
|
<LI><A href=#Fl_Select_Browser.deselect>deselect</A></LI>
|
|
|
|
<LI><A href=#Fl_Select_Browser.select>select</A></LI>
|
|
|
|
<LI><A href=#Fl_Select_Browser.value>value</A></LI>
|
|
|
|
</UL>
|
|
|
|
<H4><A name=Fl_Select_Browser.Fl_Select_Browser>
|
2001-11-29 22:24:00 +03:00
|
|
|
Fl_Select_Browser::Fl_Select_Browser(int x, int y, int w, int h, const
|
1999-01-13 22:28:54 +03:00
|
|
|
char *label = 0)</A></H4>
|
2001-11-29 22:24:00 +03:00
|
|
|
Creates a new <TT>Fl_Select_Browser</TT> widget using the given
|
1999-01-13 22:28:54 +03:00
|
|
|
position, size, and label string. The default boxtype is <TT>FL_DOWN_BOX</TT>
|
2001-11-29 22:24:00 +03:00
|
|
|
.
|
|
|
|
<H4><A name=Fl_Select_Browser.~Fl_Select_Browser>virtual
|
1999-01-13 22:28:54 +03:00
|
|
|
Fl_Select_Browser::~Fl_Select_Browser()</A></H4>
|
2001-11-29 22:24:00 +03:00
|
|
|
The destructor <I>also deletes all the items in the list</I>.
|
1999-01-13 22:28:54 +03:00
|
|
|
<H4><A name=Fl_Select_Browser.deselect>int Fl_Browser::deselect()</A></H4>
|
2003-01-28 00:05:22 +03:00
|
|
|
<P>Deselects any selected item.
|
1999-01-13 22:28:54 +03:00
|
|
|
<H4><A name=Fl_Select_Browser.select>int Fl_Browser::select(int,int=1)
|
|
|
|
<BR> int Fl_Browser::selected(int) const</A></H4>
|
|
|
|
You can use these for compatibility with <A href=Fl_Multi_Browser.html#Fl_Multi_Browser>
|
2001-11-29 22:24:00 +03:00
|
|
|
<TT>Fl_Multi_Browser</TT></A>. If you turn on the selection of more
|
|
|
|
than one line the results are unpredictable.
|
1999-01-13 22:28:54 +03:00
|
|
|
<H4><A name=Fl_Select_Browser.value>int Fl_Browser::value() const</A></H4>
|
2001-11-29 22:24:00 +03:00
|
|
|
Returns the number of the highlighted item, or zero if none. Notice
|
2001-11-28 21:00:17 +03:00
|
|
|
that this is going to be zero except <I>during</I> a callback! </BODY></HTML>
|