> Mmm, interesting.. I didn't know specifying the x/y or not made > a difference in behavior of creating the separate window, I thought > it was just the parent()/current() thing.
Yes, since Window(x,y,w,h) constructor tries to add self to the current Group if exists; if not, it will create current top-level group. Window(w,h) always add self to the top-level group, which results creating a new window. This issue could also be resolved like (assuming second window is not embeded in the first one): begin(); win = new Window(100, 100); win->begin(); win->end(); // menu construction end() add(menu); // add explicitly show(); win->show(); > So I think what the OP is reporting is that the inner window's end() > is also apparently end()ing the outer window. Adding the extra Yes; this will be true: parent() == win->parent() > Maybe that's a bug, I'm not sure. This is more a side effect of different constructors which should be avoided :) The same effect applies to 1.1.x code too. -- Sanel _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

