MacArthur, Ian (SELEX) (UK) wrote: > >> One's first exposure to fltk is something like this.. >> >> Fl_Window* win = new Fl_Window(...) >> new Fl_Box( ... , "Hello"); >> win->end(); > > Although really this should be (and under fltk2 has to be...) > > Fl_Window* win = new Fl_Window(...) > win->begin(); > new Fl_Box( ... , "Hello"); > win->end(); > > I like it this way... But I agree that the "hidden-begin" is probably a > bad thing and confusing for the unwary!
Yes indeed this was done in fltk2.0. However for back-compatability there is a hidden extra parameter for the constructor for Window/Group to do the automatic begin(). This turned out to be necessary to get rid of VC++ warnings about using this in a constructor. _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

