From a965dff1759c1d14d7afd6aa8d05abc106a867f9 Mon Sep 17 00:00:00 2001
From: Matthias Melcher
Date: Sun, 7 Oct 2007 18:39:23 +0000
Subject: STR #1742: Updated documentation to reflect the true nature of
"selection()" and "value()" for Fl_Multi_Browser which can be quite surprisin
for unsuspecting customers.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5952 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
---
CHANGES | 3 +-
documentation/Fl_Browser_.html | 7 +++-
documentation/Fl_Multi_Browser.html | 36 ++++++++++++-----
src/Fl_Browser_.cxx | 80 +++++++++++++++++++------------------
4 files changed, 76 insertions(+), 50 deletions(-)
diff --git a/CHANGES b/CHANGES
index a6a0b1474..c7e2863ec 100644
--- a/CHANGES
+++ b/CHANGES
@@ -2,7 +2,8 @@ CHANGES IN FLTK 1.1.8
- Documentation fixes (STR #1454, STR #1455, STR #1456,
STR #1457, STR #1458, STR #1460, STR #1481, STR #1578,
- STR #1639, STR #1645, STR #1644, STR #1792, STR #1793)
+ STR #1639, STR #1645, STR #1644, STR #1792, STR #1793,
+ STR #1742)
- Changing the window size in FLUID would not mark the
project as modified (STR #1751)
- Fixed fl_filename_isdir for "/"-path (STR #1761)
diff --git a/documentation/Fl_Browser_.html b/documentation/Fl_Browser_.html
index 99ff5b479..2183d61c7 100644
--- a/documentation/Fl_Browser_.html
+++ b/documentation/Fl_Browser_.html
@@ -376,8 +376,11 @@ callback function for the widget.
Returns the item currently selected, or NULL if there is no selection.
-For multiple selection browsers this call returns the last item that was
-selected.
+
+
For multiple selection browsers this call returns the currently focused item,
+even if it is not selected. To find all selected items, call
+
+Fl_Multi_Browser::selected() for every item in question.
select
value
+
- 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
.
+
+
- The destructor also deletes all the items in the list.
+
+The destructor also deletes all the items in the list.
+
+
- Deselects all lines.
+
+Deselects all lines.
+
+
- Selects one or more lines or gets the current selection state of a
+
+Selects one or more lines or gets the current selection state of a
line.
-
- Selects a single line or gets the last toggled line. This returns zero
-if no line has been toggled, so be aware that this can happen in a
-callback.