From c7ffd8e72a3c8ffe12ec546824df48b95bdf790f Mon Sep 17 00:00:00 2001 From: Greg Ercolano Date: Fri, 21 Oct 2022 23:44:08 -0700 Subject: Doc proper removal/destruction of a widget from its group. This modification as per small thread on fltk.coredev: Sep 19, 2022, Subject: Addition to Fl_Group docs --- FL/Fl_Group.H | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/FL/Fl_Group.H b/FL/Fl_Group.H index a7b6c393c..9f394c833 100644 --- a/FL/Fl_Group.H +++ b/FL/Fl_Group.H @@ -38,6 +38,14 @@ class Fl_Rect; this group, and to other groups. The only modifier grabbed is shift (for shift-tab), so that ctrl-tab, alt-up, and such are free for the app to use as shortcuts. + + To remove a widget from the group and destroy it, in 1.3.x (and up) + you can simply use: + \code + delete some_widget; + \endcode + ..and this will trigger proper scheduling of the widget's removal + from its parent group. */ class FL_EXPORT Fl_Group : public Fl_Widget { -- cgit v1.2.3