source: rtems-graphics-toolkit/fltk-1.1.10/documentation/Fl_Select_Browser.html @ 513eea1

Last change on this file since 513eea1 was 513eea1, checked in by Joel Sherrill <joel.sherrill@…>, on 01/09/10 at 22:43:24

2010-01-08 Joel Sherrill <joel.sherrill@…>

fltk 1.1.10. imported

  • ORIGIN: Updated.
  • Property mode set to 100644
File size: 2.3 KB
Line 
1<HTML>
2<HEAD>
3        <TITLE>Fl_Select_Browser</TITLE>
4</HEAD>
5<BODY>
6<!-- NEW PAGE -->
7<H2><A name=Fl_Select_Browser>class Fl_Select_Browser</A></H2>
8<HR>
9<H3>Class Hierarchy</H3>
10<UL>
11<PRE>
12<A href=Fl_Browser.html#Fl_Browser>Fl_Browser</A>
13   |
14   +----<B>Fl_Select_Browser</B>
15</PRE>
16</UL>
17<H3>Include Files</H3>
18<UL>
19<PRE>
20#include &lt;FL/Fl_Select_Browser.H&gt;
21</PRE>
22</UL>
23<H3>Description</H3>
24The <TT>Fl_Select_Browser</TT> class is a subclass of <TT>Fl_Browser</TT>
25which lets the user select a single item, or no items by clicking on
26the empty space.  As long as the mouse button is held down on an
27unselected item it is highlighted. Normally the callback is done when the
28user presses the mouse, but you can change this with <TT>when()</TT>.
29<P>See <A href=Fl_Browser.html#Fl_Browser><TT>Fl_Browser</TT></A> for
30methods to add and remove lines from the browser. </P>
31<H3>Methods</H3>
32<UL>
33<LI><A href=#Fl_Select_Browser.Fl_Select_Browser>Fl_Select_Browser</A></LI>
34<LI><A href=#Fl_Select_Browser.~Fl_Select_Browser>~Fl_Select_Browser</A></LI>
35<LI><A href=#Fl_Select_Browser.deselect>deselect</A></LI>
36<LI><A href=#Fl_Select_Browser.select>select</A></LI>
37<LI><A href=#Fl_Select_Browser.value>value</A></LI>
38</UL>
39<H4><A name=Fl_Select_Browser.Fl_Select_Browser>
40Fl_Select_Browser::Fl_Select_Browser(int x, int y, int w, int h, const
41char *label = 0)</A></H4>
42 Creates a new <TT>Fl_Select_Browser</TT> widget using the given
43position, size, and label string. The default boxtype is <TT>FL_DOWN_BOX</TT>
44.
45<H4><A name=Fl_Select_Browser.~Fl_Select_Browser>virtual
46Fl_Select_Browser::~Fl_Select_Browser()</A></H4>
47 The destructor <I>also deletes all the items in the list</I>.
48<H4><A name=Fl_Select_Browser.deselect>int Fl_Browser::deselect()</A></H4>
49<P>Deselects any selected item.
50<H4><A name=Fl_Select_Browser.select>int Fl_Browser::select(int,int=1)
51<BR> int Fl_Browser::selected(int) const</A></H4>
52 You can use these for compatibility with <A href=Fl_Multi_Browser.html#Fl_Multi_Browser>
53<TT>Fl_Multi_Browser</TT></A>. If you turn on the selection of more
54than one line the results are unpredictable.
55<H4><A name=Fl_Select_Browser.value>int Fl_Browser::value() const</A></H4>
56 Returns the number of the highlighted item, or zero if none.  Notice
57that this is going to be zero except <I>during</I> a callback! </BODY></HTML>
Note: See TracBrowser for help on using the repository browser.