diff --git a/documentation/Fl.html b/documentation/Fl.html index 366ccd0b9..5b685803e 100644 --- a/documentation/Fl.html +++ b/documentation/Fl.html @@ -546,11 +546,14 @@ window and then calls the default widget callback.

void delete_widget(Fl_Widget*);

Schedules a widget for deletion at the next call to the event loop. -Use this method to delete a widget inside a callback function. -To avoid early deletion of widgets, this function +Use this method to delete a widget inside a callback function. As with +normal widget deletion it is your responsibility to remove() the widget +from any parent group or window before calling this.

+ +

To avoid early deletion of widgets, this function should be called toward the end of a callback and only after any call -to the event loop (Fl:wait(), Fl::flush(), -fl_ask(), etc).

+to the event loop (Fl::wait(), Fl::flush(), +Fl::check(), fl_ask(), etc.).

When deleting groups or windows, you must only delete the group or window widget and not the individual child widgets.