Added example images for Fl_[Hold/Multi]_Browser
This commit is contained in:
parent
6046da2992
commit
9e4c207e27
@ -37,6 +37,14 @@ struct FL_BLINE;
|
|||||||
editor or spreadsheet! But it is useful for showing a vertical list of
|
editor or spreadsheet! But it is useful for showing a vertical list of
|
||||||
named objects to the user.
|
named objects to the user.
|
||||||
|
|
||||||
|
\image html fl_hold_browser.png "Fl_Hold_Browser"
|
||||||
|
\image latex fl_hold_browser.png "Fl_Hold_Browser" width=4cm
|
||||||
|
|
||||||
|
\par
|
||||||
|
|
||||||
|
\image html fl_multi_browser.png "Fl_Multi_Browser"
|
||||||
|
\image latex fl_multi_browser.png "Fl_Multi_Browser" width=4cm
|
||||||
|
|
||||||
Each line in the browser is identified by number. <I>The numbers
|
Each line in the browser is identified by number. <I>The numbers
|
||||||
start at one</I> (this is so that zero can be reserved for "no line" in
|
start at one</I> (this is so that zero can be reserved for "no line" in
|
||||||
the selective browsers). <I>Unless otherwise noted, the methods do not
|
the selective browsers). <I>Unless otherwise noted, the methods do not
|
||||||
|
@ -25,9 +25,13 @@
|
|||||||
#include "Fl_Browser.H"
|
#include "Fl_Browser.H"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
The Fl_Hold_Browser is a subclass of Fl_Browser
|
The Fl_Hold_Browser is a subclass of Fl_Browser which lets the user
|
||||||
which lets the user select a single item, or no items by clicking on
|
select a single item, or no items by clicking on the empty space.
|
||||||
the empty space. As long as the mouse button is held down the item
|
|
||||||
|
\image html fl_hold_browser.png "Fl_Hold_Browser"
|
||||||
|
\image latex fl_hold_browser.png "Fl_Hold_Browser" width=4cm
|
||||||
|
|
||||||
|
As long as the mouse button is held down the item
|
||||||
pointed to by it is highlighted, and this highlighting remains on when
|
pointed to by it is highlighted, and this highlighting remains on when
|
||||||
the mouse button is released. Normally the callback is done when the
|
the mouse button is released. Normally the callback is done when the
|
||||||
user releases the mouse, but you can change this with when().
|
user releases the mouse, but you can change this with when().
|
||||||
|
@ -26,8 +26,12 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
The Fl_Multi_Browser class is a subclass of Fl_Browser
|
The Fl_Multi_Browser class is a subclass of Fl_Browser
|
||||||
which lets the user select any set of the lines. The user interface
|
which lets the user select any set of the lines.
|
||||||
is Macintosh style: clicking an item turns off all the others and
|
|
||||||
|
\image html fl_multi_browser.png "Fl_Multi_Browser"
|
||||||
|
\image latex fl_multi_browser.png "Fl_Multi_Browser" width=4cm
|
||||||
|
|
||||||
|
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,
|
selects that one, dragging selects all the items the mouse moves over,
|
||||||
and ctrl + click (Cmd+click on the Mac OS platform) toggles the items.
|
and ctrl + click (Cmd+click on the Mac OS platform) toggles the items.
|
||||||
Shift + click extends the selection until the clicked item.
|
Shift + click extends the selection until the clicked item.
|
||||||
@ -39,7 +43,7 @@
|
|||||||
class FL_EXPORT Fl_Multi_Browser : public Fl_Browser {
|
class FL_EXPORT Fl_Multi_Browser : public Fl_Browser {
|
||||||
public:
|
public:
|
||||||
/**
|
/**
|
||||||
Creates a new Fl_Multi_Browser widget using the given
|
Creates a new Fl_Multi_Browser widget using the given
|
||||||
position, size, and label string. The default boxtype is FL_DOWN_BOX.
|
position, size, and label string. The default boxtype is FL_DOWN_BOX.
|
||||||
The constructor specializes Fl_Browser() by setting the type to FL_MULTI_BROWSER.
|
The constructor specializes Fl_Browser() by setting the type to FL_MULTI_BROWSER.
|
||||||
The destructor destroys the widget and frees all memory that has been allocated.
|
The destructor destroys the widget and frees all memory that has been allocated.
|
||||||
|
BIN
documentation/src/fl_hold_browser.png
Normal file
BIN
documentation/src/fl_hold_browser.png
Normal file
Binary file not shown.
After ![]() (image error) Size: 661 B |
BIN
documentation/src/fl_multi_browser.png
Normal file
BIN
documentation/src/fl_multi_browser.png
Normal file
Binary file not shown.
After ![]() (image error) Size: 683 B |
Loading…
x
Reference in New Issue
Block a user