|
|
@basiliscos wrote:
auto-deleting underlying widget when tree item is removed, seems expected/reasonable behavior ...
(So, when the whole tree is deleted, the custom widgets in tree items still live... ??? ).
When the whole Fl_Tree widget is deleted, this also deletes all child widgets. However, when a single Fl_Tree_Item is deleted, its associated widget (if any) is not deleted, as Greg explained.
@erco77 I'm wondering if Fl_Tree::remove(item) is maybe a bad (name) choice. The docs say the item is "removed", but what does this mean? Is it also destroyed (deleted)? I believe yes, particularly because it works recursively. Note that the analog method Fl_Group::remove() (same name) does not delete the removed widget (this is documented).
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.
[ Direct Link to Message ] | |
|
| |