summaryrefslogtreecommitdiff
path: root/src/Fl_Tree_Item.cxx
diff options
context:
space:
mode:
authorGreg Ercolano <erco@seriss.com>2012-04-23 16:31:51 +0000
committerGreg Ercolano <erco@seriss.com>2012-04-23 16:31:51 +0000
commitd07ef8020747fbeac907417b1420ed19690bec16 (patch)
tree3f8dff86a0bd9c06564b4790078b8202fc6d8f34 /src/Fl_Tree_Item.cxx
parentfd9f4e61323e569575ff9a204622182c2da76365 (diff)
Various Fl_Tree enhancements:
o Added keyboard navigation table o Added Shift-Click to extend selection, Ctrl-Space to toggle selection, Enter key toggle o Added protected extend_selection(from_item,to_item) o Cleanup of Fl_Tree::handle() o Limit ^A to multi-select mode only o Disable focus box in SELECT_NONE mode o test/tree: changed default mode to 'multiselect' (most often needs testing) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9385 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Tree_Item.cxx')
-rw-r--r--src/Fl_Tree_Item.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Fl_Tree_Item.cxx b/src/Fl_Tree_Item.cxx
index 508656a41..39e061d64 100644
--- a/src/Fl_Tree_Item.cxx
+++ b/src/Fl_Tree_Item.cxx
@@ -733,7 +733,10 @@ void Fl_Tree_Item::draw(int X, int &Y, int W, Fl_Widget *tree,
widget()->draw();
}
// Draw focus box around item's bg last
- if ( this == itemfocus && Fl::visible_focus() && Fl::focus() == tree) {
+ if ( this == itemfocus &&
+ Fl::visible_focus() &&
+ Fl::focus() == tree &&
+ prefs.selectmode() != FL_TREE_SELECT_NONE ) {
draw_item_focus(FL_NO_BOX,bg,bg_x+1,bg_y+1,bg_w-1,bg_h-1);
}
} // end drawthis