On 25.06.2008, at 17:11, <[EMAIL PROTECTED]> wrote:

> 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.

All youneed to do is call

myWidget->align(FL_ALIGN_CLIP) and all drawing will be clipped inside  
the widget

----
http://robowerk.com/


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

Reply via email to