G
Guest
I neet to create a "Colored glass" effect, so I can cover a couple of buttons
on my form with an opaque (semi-transparent) shape and some text. I tried the
following:
1. Create a control that will support a transparent background and use ARGB
colors to set an opacity for the background (or implement custom
paintbackground). I was able to create kinda "label with transparent
background" control using text clipping technique, but not an "opaque"
background. Playing with SetStyle (AllPaintingInWmPaint, Opaque,
SupportsTransparentBackColor, ...) I was able to "burn the hole in the form"
effect (the desktop was visible through, but not other controls on nmy form)
2. Create a custom container control that will be able to draw over its
children. However, I was not able to make Graphics to draw over the children
controls.
Is it possible to create an opaque control at all?
(I did a work around by placing a whole opaque Form over needed controls,
but that's not a solution I'm looking for)
on my form with an opaque (semi-transparent) shape and some text. I tried the
following:
1. Create a control that will support a transparent background and use ARGB
colors to set an opacity for the background (or implement custom
paintbackground). I was able to create kinda "label with transparent
background" control using text clipping technique, but not an "opaque"
background. Playing with SetStyle (AllPaintingInWmPaint, Opaque,
SupportsTransparentBackColor, ...) I was able to "burn the hole in the form"
effect (the desktop was visible through, but not other controls on nmy form)
2. Create a custom container control that will be able to draw over its
children. However, I was not able to make Graphics to draw over the children
controls.
Is it possible to create an opaque control at all?
(I did a work around by placing a whole opaque Form over needed controls,
but that's not a solution I'm looking for)