On 08/22/11 00:29, Matthias Melcher wrote:
>> If you end() the parent window, for instance, then widgets
>> will be created but not attached to a parent [..]
>
> No, sorry, that's not true. Fl_Group::end() basically calls
> begin() on the parent group
Well, kinda.
If end() is called on the *parent window*, this effectively
calls current(0), because its parent() will be 0.
But it's true for the general case, calling w->end()
won't disable the parenting stuff if 'w' is itself
a child of something else.
> The only way to temporarily disable auto-adding is calling
> Fl_Group::current(0L) right after creating any group style widget.
Yes, that's probably more correct for the general case.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk