> Try this in the callback
>   if(w->parent()) w->parent()->remove(*w);
>   Fl::delete_widget(w);

Well, the window callback function never gets called (?) so I put this code in 
the class destructor and the w->parent() is NULL so there is no difference.

My popup windows are dynamically created in a callback function of the menu 
item on the main window.
Does this make a diference?

Also, I realized that what I said earlier about deleting window causes mem leak 
and if not deleting does not (just hiding it), may not be correct.
This is because the window to display this information gets only updated when 
it is created and not when re-shown so the information displayed was not 
updated.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to