On 7 Dec 2007, at 19:08, <[EMAIL PROTECTED]>
<[EMAIL PROTECTED]> wrote:
> imm wrote:
>> 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.
>
> I tried this :
>
> class MyGroup : public Fl_Group //Create a Fl_Group derived class
> {
> void MyGroup::draw()
> {
> Fl_Group::draw();
>
> fl_push_clip(x(), y(), w() - Fl::box_dw(box()),
> h() - Fl::box_dh(box()));
>
> fl_pop_clip();
> }
> public:
I haven't tried this, but surely you would want to push the new clip
region *before* your call Fl_Group::draw(), since that is going to
trigger the drawing of the child widgets?
Or (more likely) I could just be talking nonsense.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk