Greg Ercolano wrote:
> Regarding the recent "Re: Make child widget doesn't erase borders ?",
> it seems it would maybe help folks if Fl_Group had an easy way for
> to let the user easily turn on clipping for the group's children.
> 
> From that thread:
> 
>       It definitely was harder than I thought to get a group
>       to clip its children, without doing a fancy low level draw().
> 
>       Might be useful if Fl_Group had two new methods:
> 
>               clip(flag): enable/disable clipping. If enabled, by default
>               it would clip to the widget's own xywh, so a group could
>               be a child of a window, and children would clip within that
>               region.
> 
>               clip(x,y,w,h): set the actual clip region for drawing
>               children, so it can be smaller than xywh. If set, it would
>               enable an fl_push/pop_clip around the draw_children() call.

This should be pretty straight-forward.

-- 
______________________________________________________________________
Michael Sweet, Easy Software Products           mike at easysw dot com
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to