Daniel wrote:
> FLTK is one of the best GUI libraries I've looked at.
> And FLTK2 continues the trend, but ...
>
> I'm confused why child widgets are added to the parent list by
> use of a static pointer controlled by begin() / end()?
>
> What is the advantage of this?
Seems to me it's the difference between just creating
widgets, instead of having to call add() for everything.
In other words, this:
group.begin();
out1 = new Fl_Output(..);
out2 = new Fl_Output(..);
but1 = new Fl_Button(..);
but2 = new Fl_Button(..);
group.end();
..seems easier/less redundant code and readability wise than:
out1 = new Fl_Output(..);
group.add(out1);
out2 = new Fl_Output(..);
group.add(out2);
but1 = new Fl_Button(..);
group.add(but1);
but2 = new Fl_Button(..);
group.add(but2);
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk