FLTK logo

Re: [fltk/fltk] Tree & delete node (as button), 1.3.6, linux (#251)

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.issues  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: [fltk/fltk] Tree & delete node (as button), 1.3.6, linux (#251) Albrecht Schlosser Jul 13, 2021  
 

@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 ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.