diff options
| author | Greg Ercolano <erco@seriss.com> | 2022-10-21 23:44:08 -0700 |
|---|---|---|
| committer | Greg Ercolano <erco@seriss.com> | 2022-10-21 23:44:08 -0700 |
| commit | c7ffd8e72a3c8ffe12ec546824df48b95bdf790f (patch) | |
| tree | 84521c346c3303344d3dfb40a41d77989ea6b03d | |
| parent | 615783d093dbee5c3f8bf2446446691880290c63 (diff) | |
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
| -rw-r--r-- | FL/Fl_Group.H | 8 |
1 files changed, 8 insertions, 0 deletions
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 { |
