MacArthur, Ian wrote:
> 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.

I just want to stop child widget drawing
outside it's bounds.

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

I tried of course but it doesn't work.
But maybe I didn't do the right thing.
I simply put this in the draw method of
the derived Fl_Group container class:

fl_push_clip(x(), y(), w(), h());

fl_pop_clip();

I think it should be enought to delimited the
container widget area.

So why it doesn't work ?

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

Reply via email to