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.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to