|
|
On May 2, 2006, at 9:41 AM, Anonymous wrote:
Is there a precedence that needs to be followed in deleting widgets
that were created?
To delete FLTK UI elements, call Fl::delete_widget(my_widget); on the
widget that is highest in the hierarchy. If that widget is a child of
another, remove it from the parent first ( myWidget->parent()->remove
(myWidget); ). Do not call "delete" directly from within a callback,
and do not call delete on children of widgets that you delete at the
same time. In FLTK, deleteing a parent will atomatically delete all
its children.
----
http://robowerk.com/
[ Direct Link to Message ] | |
|
| |