Painting a gradient background on a sub-control

  • Thread starter Thread starter Phil Jones
  • Start date Start date
P

Phil Jones

I have a control that I'm drawing a colored Gradient backgound on (using the
"OnPaintBackground" override method). What I'm wondering is:

How can I get a sub-control within the painted control (an Label for
instance) to reflect the gradiant colors at the point it is situated within
the control. Is there some way to tell it paint a background from a part of
the parent background?

Thanks everyone!

===
Phil
(Auckland | Aotearoa)
 
OK...setting the backColor of a label to Transparent does the trick.

However, it's still be useful to know of any strategies for painting the BG
and details of other controls onto a control. That way I could have control
overlap each other, which is a real pain not being able to do.

I think I'll start looking at the paint methods to see if I can figure this
out.

Thanks...
 
Back
Top