> > It doesn't work.
> > I don't know what's wrong with my code but I'm lost.
> > I spend 2 days on it and I don't see any solution to that pb.
Did my version of your earlier example not work for you? In what way is
it not right?
> First, the setting clip region to avoid the
> child widget drawing outside its parent.
> Here's a simple and compilable example to show my pb:
This example isn't setting the clip though, so how do you expect it to
work?
Sorry, but I'm really not sure what you are rying to do - this example
bears almost no resemblance to your previous one...
Anyway, there's an easy fix to this example to get it to do what I
*think* you are asking...
Changing your draw method as follows will get the effect I think you are
asking for.
Fl_Box *childWdg;
void draw()
{
fl_push_clip(x(), y(), w(), h());
Fl_Group::draw();
fl_pop_clip();
}
SELEX Sensors and Airborne Systems Limited
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14
3EL
A company registered in England & Wales. Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk