> I want to display a red Box into a black one, but when I run 
> the program, the black is the only one displayed ( stack
>       )
> what to do then?
> this is my programme

OK - you appear to have drawn the (larger) black box over the (smaller)
red box, so the red box is entirely occluded. Why is this surprising to
you?

If you want to see the red box, you need to draw it on top of the black
box.

In the absence of specific constraints in the draw methods of the
widgets, they will be rendered in creation order, so you want to change
the order in which they are created.

Note that rendering widgets on top of each other is Not Recommended
anyway and you probably should not do this.

If you want to draw boxes on top of each other you should probably
derive your own widget class as a container for these boxes, then create
your own draw method to handle rendering them in the order that you
want.



SELEX Galileo Ltd
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

Reply via email to