> > I'm thinking that when you do the parent(0); thing, > you are basically unparenting one window from the other > (if they were parented, they wouldn't be separate) > so you'd have to delete each window separately. > > If you want one to be destructed by the other, > I think you'd need to keep the pointer to win2 > inside win1, and have win1's dtor take it out.
Right. But look at the example again: I commented out the parent(0), and the child window still doesn't get destructed. That's the surprise. _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

