On 11/28/12 23:37, corvid wrote:
> It looks like you can ctrl-click all of the items on without that triggering
> deselection of the others.
Good catch; try instead:
Index: Fl_Tree.cxx
===================================================================
--- Fl_Tree.cxx (revision 9733)
+++ Fl_Tree.cxx (working copy)
@@ -337,7 +337,15 @@
case FL_TREE_SELECT_NONE:
break;
case FL_TREE_SELECT_SINGLE:
- select_only(item, when());
+ if ( is_ctrl ) { // CTRL+LEFT-CLICK?
+ if ( item->is_selected() ) { // on?
+ deselect(item, when()); // ..turn off
+ } else { // off?
+ select_only(item, when()); // ..select /only/ this
+ }
+ } else { // LEFT-CLICK?
+ select_only(item, when()); // select only this
+ }
_lastselect = item;
break;
case FL_TREE_SELECT_MULTI: {
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk