I suspect (i.e. I haven't looked all that closely) that the problem is
the order of events...
> int main( int argc, char** argv ) {
> Fl_Window* second = SecondTry( 350,50);
> if ( argc > 1 ) second->size(800,600);
> second->show();
If argc is > 1 then size() is called before the second window is shown.
The widget dimensions in the Fl_Packs are (I think) not really set until
the window is mapped, so if you change size() before the window is fully
shown, unexpected behaviours result... Maybe.
Anyway, is this code just to illustrate your point?
If not, if this is really what you need to do, then I wonder if you need
the Fl_Packs at all.
The default fltk resizing behaviour might get you what you want more
readily just with simple Fl_Groups...
SELEX Galileo Ltd
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14
3EL
A company registered in England & Wales. Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk