View previous topic :: View next topic |
Author |
Message |
rhosking
Joined: 21 Aug 2006 Posts: 14 Location: UK
|
Posted: Wed Oct 04, 2006 9:20 am Post subject: Transparency |
|
|
I would like to paint the background of a panel myself and have all child controls (labels, listboxes etc) be transparent so the panels background is visible.
What is the best way of accomplishing this? I see there is an internal opaque setting that each component uses, but I don't really want to subclass all the controls to expose this... if that is even the right thing to do. Could Control have a public opaque property? |
|
Back to top |
|
|
Chris Miller
Joined: 27 Mar 2004 Posts: 514 Location: The Internet
|
Posted: Wed Oct 04, 2006 8:13 pm Post subject: Re: Transparency |
|
|
I don't think the OPAQUE control style is how to do it, that's generally if the paint event will fill in the whole control (and background-paint can be skipped).
For transparency you request, it's not currently supported in DFL, and I'll have to add it to my to-do list. The way it will be achieved is by setting the backColor to a transparent Color. |
|
Back to top |
|
|
|