> > - I don't think "set_non_modal();" is appropriate in the 
> constructor for
> > your Container widget. What do you think it does? I suspect 
> it does not
> > do what you think...

> My first trial had Fl_Box container instead the Fl_Double_Window
> but the pb is the following:
> if a child widget is taller than its container it just
> goes out of its parent container.

But you can set the clip region, surely, and that will stop the child
drawing outside its parent.

Still, for a composite widget, I would suggest Fl_Group would be the
right thing to do, rather then Fl_*Window or Fl_Box.

> The only solution (I think) is to resize the child widget each time
> it needed.
> But it's a tricky job to resize all the child widgets especially when
> they are complexe widgets  full of buttons sliders etc....

Do you *want* to resize the child widget, or do you simply want to stop
it drawing outside it's bounds? If you just want to stop it drawing
outside its bounds, then setting the clip suitably is the answer.

If you actually want to resize the widget (and perhaps all of it's
children too) then that's a much harder problem, but I still think
deriving from Fl_Group would be the starting point.

> That's why I wanna use windows because anything outside the
> window is ignored.

Only because the clip region is enforced - but you can set the clip
yourself, if that is the effect you are trying to get.





SELEX Sensors and Airborne Systems Limited
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

Reply via email to