Stan wrote: > I was shocked (shocked!) to discover > that the documentation tells me next to nothing :)
And that's the point where the FLTK developers ask you to file an STR to get the documentation updated/improved ... From my experience and a short glance at the sources, this is what I _think_ what init_sizes() is for: Fl_Group has an internal array (sizes_) that holds the initial positions of all children before resizing. init_sizes() does nothing else but to clear this array. Later, when the group will be resized, the coordinates of the children are calculated from this initial sizes_ array. If it doesn't exist, it will be created when the first resizing operation occurs. This means in general: If you change the sizes and/or positions of widgets in an Fl_Group, then you should call init_sizes() once to be sure that the sizes_ array gets rebuilt, when (before) the next resizing operation occurs. And that means, too, that it doesn't matter if you call it once or after each modification of one widget, as long as this happens before the next resizing. To the FLTK developers: please feel free to use this as a starting point for the documentation. To the OP: is there a problem you want to solve (which?) or did you only want to know what init_sizes() does ? Albrecht _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

