Re: Opaque (semi-trasparent) control
- From: "+ Kennedy Kok +" <kennedykok@xxxxxxxxxxx>
- Date: Wed, 24 May 2006 20:48:18 -0400
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.
.
- Follow-Ups:
- Re: Opaque (semi-trasparent) control
- From: Viktar Zhardzetski
- Re: Opaque (semi-trasparent) control
- Prev by Date: correct way to paint custom caption
- Next by Date: Re: BackgrounWorker component
- Previous by thread: correct way to paint custom caption
- Next by thread: Re: Opaque (semi-trasparent) control
- Index(es):
Relevant Pages
|