From a42ded75e297cedfcb448537e77d13350df0fe92 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Tue, 23 Nov 2004 19:47:52 +0000 Subject: Added the 2.0 Fl_Widget::copy_label() method to allow FLTK 1.x applications to have their label strings managed by FLTK (STR #630) Added Fl::delete_widget() method to safely delete widgets in callback methods (STR #629) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3917 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- documentation/common.html | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'documentation/common.html') diff --git a/documentation/common.html b/documentation/common.html index 85d091138..a7f17fca5 100644 --- a/documentation/common.html +++ b/documentation/common.html @@ -532,7 +532,16 @@ button->when(FL_WHEN_CHANGED | FL_WHEN_NOT_CHANGED);
-
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 -- cgit v1.2.3