> Greg Ercolano schrieb:
> > Andreas Sch�mann wrote:
..

>
> My suggestion is to also put clear instructions for building a Group in
> the Description section of
> http://fltk.org/documentation.php/doc-1.1/Fl_Group.html#Fl_Group
>
> It could read like this:
> "When adding child widgets to a Group take care to surround the childs
> with begin() and end():
>
> Fl_Group::Fl_Group(x, y, w, h, label)
> {
>    begin()
>      ...add your widgets here
>    end()
> }
>
> CAUTION: forgetting the end() statement leads to serious application
> misbehaviour that is hard to debug!


I'd further suggest an explanation of exactly when

   begin()
     new Something(..)
   end()

is *NOT* the same as

   add(new Something(..))

It would have saved me a few hours of debugging :)

Cheers,
Stan


_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to