See Fl_Browser for methods to add and remove lines from the browser.
Fl_Hold_Browser(int x,int y,int w,int h,const char
*l)
uchar when() const;
void when(uchar);
FL_WHEN_RELEASE
:0
: The callback is not done, but changed() is turned
on.
FL_WHEN_CHANGED
: The callback is done as the user
drags the mouse, for each item that turns on or off. There can
be many callbacks for each X event. value() will tell you which line
changed.
FL_WHEN_RELEASE
(default value) : The callback is
done when the user releases the mouse. You will have to scan through
them to find out what the new set of selected items is.
FL_WHEN_RELEASE|FL_WHEN_NOT_CHANGED
: The callback is
done even if the user clicks on the same item as before.
uchar selection_color() const ;
void selection_color(n);
int value() const ;
void value(int) ;
int deselect();
int select(int,int=1);
int selected(int) const ;