On Tue, Jun 14, 2011 at 9:57 PM, Greg Ercolano <[email protected]> wrote:
> On 06/14/11 09:47, Greg Ercolano wrote: > > The important thing is to end() the group widgets > > The way I like to think of it is when you create a group > widget, since the begin() is implied, it becomes a "vacuum" > that sucks in all widgets created after it, until the group's > end() is called. > > So for instance: > > Fl_Group *grp = new .. > // <-- all non-group widgets created here will > // <-- automatically be add()ed (become children) of Fl_Group.. > grp->end(); > // <-- all widgets created here will not be auto-add()ed to Fl_Group > > So whenever you create a group widget, you have to be sure > to call end() if you want to turn the "vacuum" off. Or, if > you derive a class from Fl_Group that shouldn't absorb other > widgets, call end() in your ctor. > Thank you very much, Greg. That's what I wanted to do and that's what I have already done after Matthias' intermixed comments with my posted code. I, too, wanted to create/show my window at the end. Your post has been very reinforcing and helpful. Thanks again. Asif _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

