> Short rule: if you don't implement your own group resize method,
> then call init_sizes() whenever you change widget dimensions
> within a group, else you shouldn't need init_sizes() at all.
>
> Example:
>
> MyGroup::resize(int X, int Y, int W, int H)
> {
> Fl_Widget::resize(X,Y,W,H); // resize MyGroup [1]
// if(parent()) parent()->init_sizes() ??
>
> if (children()>0) {
> for (int i=0; i<children(); i++) {
> child(i)->resize(X+10*i,Y+10*i,10,10); // [2]
> }
> }
> }
Thanks. But what I'm still not getting is why I don't need
the parent()->init_sizes() above. Didn't the first line "change
widget dimensions within a [parent] group?"
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk