..
>
> Resizing widgets is a complicated thing. As I wrote in another thread, 
> init_sizes()
> clears the internal array of widget positions and sizes withing a group. When 
> the
> group (or window) will be resized later, the new positions are calculated 
> from the
> saved information. If you called init_sizes() previously, then a new array 
> will be
> calculated from the widget positions that are active when you resize the 
> group.
.
> Albrecht

I think I was the OP in that other thread.  In any case, I've
been having similar problems.

Just to be clear, is the recommendation that when you call
resize() on some widget you should also call init_sizes() on all
groups (including windows) that contain the resized widget?  e.g,

void MyWidget::resize(int x, int y, int w, int h) {
   //  resize code here
   Fl_Group* p = parent();
   while(p) {
       p->init_sizes();
       p = p->parent();
   }
}

TIA,
Stan

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to