class Fl_Multi_Browser : public Fl_Browser

This is a subclass of Fl_Browser which lets the user select any set of the lines. The user interface is Macintosh style: clicking an item turns off all the others and selects that one, dragging selects all the items the mouse moves over, and shift + click toggles the items. This is different then how forms did it. Normally the callback is done when the user releases the mouse, but you can change this with when().

See Fl_Browser for methods to add and remove lines from the browser.

Fl_Multi_Browser::Fl_Multi_Browser(int x,int y,int w,int h,const char *l)

Constructor.

uchar Fl_Widget::when() const;
void Fl_Widget::when(uchar);

Controls when callbacks are done. The following values are useful, the default value is FL_WHEN_RELEASE:

uchar Fl_Browser::selection_color() const ;
void Fl_Browser::selection_color(n);

The color to draw the background of selected lines. Lines that aren't selected use color().

int Fl_Browser::value() const ;

The line number that has most recently changed state.

void Fl_Browser::value(int) ;

Set this to select only one line and turn off all the others.

int Fl_Browser::deselect();

Turn off the selection on all lines.

int Fl_Browser::select(int, int=1);
int Fl_Browser::selected(int) const ;

Set or get the selection on a single line.