On Jun 29, 2007, at 12:17 PM, none <@easysw.com, ff"@>.easysw.com
(none) <none .easysw.com> wrote:
> with(window) {
> MenuBar *menu = new MenuBar(...);
> }
> }
> disadvantage is the use of a macro,
Yes, a macro like that is unacceptable in a library, even if we named
it fl_with() to no pollute the namespace.
I always use this construct which should be quite obvious, and gets
the indenting and local variables.
Fl_Group *g = new Fl_Group(...);
{
Fl_Button *b = new Fl_Button(..)
b->color(FL_RED);
}
end();
This works pretty much the same for FLTK2
----
http://robowerk.com/
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk