Another updated Fl_Tree patch against a clean r7680; more features.
http://seriss.com/people/erco/fltk/tmp/Fl_Tree-add-keyboard-nav-to-r7680-08-11-10--5pm.patch
* Added Domingo's recommended Fl_Tree_Item accessors x() / y() / w() / h()
* Added Fl_Tree::show_item(), show_top(), show_middle(), show_bottom().
This lets one procedurally scroll the display to make the specified item
visible
at particular positions on the display. (for Mayank Malik)
* Added Fl_Tree::first_selected_item() and Fl_Tree::next_selected_item().
With this you can loop through just the selected items.
* tree demo modified to include top/mid/bot buttons that test the above.
To use this, select an item in the display, and hit Top/Mid/Bot buttons
to position that item in the display. Scrollbar must be able to move to
show the item, so it's best to have e.g. the "500 Items" tree open, and
select an item that is somewhere lower in the list.
* vscroll widget is public, so caller can directly manipulate the scrollbar.
(Using Fl_Browser as a model here.. not sure if this is a bad idea or not.
This might be backed out)
TODO:
o autoscroll during selection/focus navigation
o Need a callback system that is invoked when items are
open/closed
o Need to allow keyboard nav to move focus to child FLTK widgets
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk