summaryrefslogtreecommitdiff
path: root/FL
diff options
context:
space:
mode:
authorGreg Ercolano <erco@seriss.com>2010-05-10 22:51:01 +0000
committerGreg Ercolano <erco@seriss.com>2010-05-10 22:51:01 +0000
commit1f6d222cb8979737052357324b7d5d31a4a70c49 (patch)
tree3dcae2c797a306434506a8d7f0a7eab889a46754 /FL
parentc4fd0d2900d264ad4417cc5fe39c03194c16352e (diff)
1) Modified tree test program to include when() options,
2) Improved when() handling for left mouse behavior 3) Added docs for when() handling git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7601 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL')
-rw-r--r--FL/Fl_Tree.H7
1 files changed, 7 insertions, 0 deletions
diff --git a/FL/Fl_Tree.H b/FL/Fl_Tree.H
index 3768ab8e2..df3897080 100644
--- a/FL/Fl_Tree.H
+++ b/FL/Fl_Tree.H
@@ -63,6 +63,11 @@
/// The tree items may also contain other FLTK widgets, like buttons, input fields,
/// or even "custom" widgets.
///
+/// The callback() is invoked depending on the value of when():
+///
+/// - FL_WHEN_RELEASE -- callback invoked when left mouse button is released on an item
+/// - FL_WHEN_CHANGED -- callback invoked when left mouse changes selection state
+///
/// The simple way to define a tree:
/// \code
/// #include <FL/Fl_Tree.H>
@@ -101,6 +106,8 @@
///
/// \image html tree-elements.png
///
+/// \todo Needs handling of callbacks when items are procedurally select()ed
+///
class Fl_Tree : public Fl_Group {
Fl_Tree_Item *_root; // can be null!