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/Fl_Widget.html | 16 ++++++++++++++--
1 file changed, 14 insertions(+), 2 deletions(-)
(limited to 'documentation/Fl_Widget.html')
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.
+- labelcolor
- labelfont
- labelsize
- labeltype
@@ -258,6 +259,14 @@ method for more information.
equal to this widget. Returns 0 if b is NULL.
+
+
+Sets the current label. Unlike label(), this method
+allocates a copy of the label string instead of using the
+original string pointer.
+
+
@@ -329,7 +338,10 @@ equal to a. Returns 0 if a is NULL.
somewhere on or next to the widget. The passed pointer is stored
unchanged in the widget (the string is not copied), so if
you need to set the label to a formatted value, make sure the
-buffer is static, global, or allocated.
+buffer is static, global, or allocated. The copy_label() method
+can be used to make a copy of the label string
+automatically.
|