From a42ded75e297cedfcb448537e77d13350df0fe92 Mon Sep 17 00:00:00 2001
From: Michael R Sweet
This is the default callback for window widgets. It hides the +window and then calls the default widget callback.
+ +Schedules a widget for deletion when it is safe to do so. Use +this method to delete a widget inside a callback function. When +deleting groups or windows, you must only delete the group or +window widget and not the individual child widgets.
+Sets the X display to use for all windows. Actually this just sets diff --git a/documentation/Fl_Widget.html b/documentation/Fl_Widget.html index f7e0e09e5..179693959 100644 --- a/documentation/Fl_Widget.html +++ b/documentation/Fl_Widget.html @@ -53,6 +53,7 @@ to call redraw() after these.
Sets the current label. Unlike label(), this method +allocates a copy of the label string instead of using the +original string pointer.
+ +| Hint: + | Note:
+
+ You cannot delete a widget inside a callback, as the + widget may still be accessed by FLTK after your callback + is completed. Instead, use the Fl::delete_widget() + method to mark your widget for deletion when it is safe + to do so. + +Hint: Many programmers new to FLTK or C++ try to use a non-static class method instead of a static class method diff --git a/documentation/index.html b/documentation/index.html index 97bd3e884..2853526ba 100644 --- a/documentation/index.html +++ b/documentation/index.html @@ -1,7 +1,7 @@ - |
![]() |
- FLTK 1.1.5 Programming Manual-Revision 5 by Michael Sweet, Craig P. Earls, and Bill Spitzak FLTK 1.1.6 Programming Manual+Revision 6 by Michael Sweet, Craig P. Earls, and Bill Spitzak |