Re: [fltk/fltk] Tree & delete node (as button), 1.3.6, linux (#251)
erco77
Jul 13, 2021
I used Fl_Browser for reference for the Fl_Tree API, as their needs are similar in terms of being a collection of items that are not derived from Fl_Widget.
In the case of Fl_Tree::remove(), its docs read much like Fl_Browser::remove(), and neither elaborates on destruction (but probably should, to avoid confusion with Fl_Group::remove() which does not destroy).
Fl_Browser::remove(int)
Remove entry for given line number, making the browser one line shorter.
You must call redraw() to make any changes visible.
Fl_Tree::remove(..)
Remove the specified 'item' from the tree.
'item' may not be NULL. If it has children, all those are removed too.
If item being removed has focus, no item will have focus.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.
Comments are owned by the poster. All other content is copyright 1998-2025 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.