On 7 Dec 2007, at 17:47, <[EMAIL PROTECTED]>  
<[EMAIL PROTECTED]> wrote:

> The thing is, since the red box is a child of the main window, it  
> would be logical that the main window's borders are drawed and a  
> part of the red box masked.
> Apparently not. So I'd like to know if there a way to draw the main  
> window's borders instead the parts of the red box.
> May be a fl_clip delimitation or something ?

You possibly want to put a group inside your window, sized as Paolo  
indicated, then add your widgets to that group. I think that would  
maybe clip the children (I haven't tried that, though.)

Failing that, you make your own subclass of DFl_Group and in the  
draw:: method you use fl_clip() to enforce the clipping region you need.



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

Reply via email to