FLTK logo

[fltk.coredev] Fl_Group/Fl_Tree/etc: document how to properly delete widgets/items from container widgets

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

Fl_Group/Fl_Tree/etc: document how to properly delete widgets/items from container widgets Greg Ercolano Jul 13, 2021  
  Our docs for Fl_Group should probably both describe and show recommended examples
for how to delete widgets from the group (i.e. remove() and destroy), showing proper
techniques especially in contexts where one has to be careful (or used to have to be),
such as when deleting from callbacks vs. event handlers vs. other situations.

Similarly, docs for Fl_Browser::remove() and Fl_Tree::remove() should elaborate on how they also
destroy the items, so as not to be confused with Fl_Group::remove() (which does not), and in the
case of Fl_Tree, what happens with Fl_Widget's that have been associated with tree items, and how
to properly reassign or destroy those.

--
You received this message because you are subscribed to the Google Groups "fltk.coredev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkcoredev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkcoredev/e5522e22-8357-32d9-7abe-34e5c31be463%40seriss.com.
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'.