Re: Opaque (semi-trasparent) control

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Have you read this?

http://www.bobpowell.net/transcontrols.htm


Kennedy




"Viktar Zhardzetski" <ViktarZhardzetski@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
message news:C684645F-6D98-4C9C-93B3-EB04FD044303@xxxxxxxxxxxxxxxx
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)

--
Thanks,
Viktar Z.


.



Relevant Pages

  • Re: Why must I paint the form background for an owner-draw control?
    ... As the other suggested I got this work simply by turning Opaque to false. ... >> His problem stems from the fact that the button base Class has ... This problem does not appear in a class based upon Control ... > I was unaware of the issue with nasty jagged edges around curves. ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: Inverted Transparency!
    ... draw a rectangle all around the text. ... of the control to that region. ... Answer those GDI+ questions with the GDI+ FAQ ... > my background opaque and want to draw a transparent text over it.(The ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: Inverted Transparency!
    ... > #1 Draw your text into a GraphicsPath with the FillMode set to Winding. ... > of the control to that region. ... > All you ever wanted to know about ListView custom drawing is in Well ... >> my background opaque and want to draw a transparent text over it.(The ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: Inverted Transparency!
    ... > #1 Draw your text into a GraphicsPath with the FillMode set to Winding. ... > of the control to that region. ... > All you ever wanted to know about ListView custom drawing is in Well ... >> my background opaque and want to draw a transparent text over it.(The ...
    (microsoft.public.dotnet.framework.windowsforms.controls)
  • Re: Why must I paint the form background for an owner-draw control?
    ... There is no need to derive from Control, just set Opaque to false ... >> His problem stems from the fact that the button base Class has ... that is why there is a black background. ...
    (microsoft.public.dotnet.framework.windowsforms)