Re: What control is being painted?
From: Blair Bonnett (blairb_at_nospam.paradise.net.nz)
Date: 01/30/05
- Next message: Andreas Håkansson: "GDI+, Pens and Draw*** methods"
- Previous message: Bob Powell [MVP]: "Re: another transparency question"
- In reply to: Mick Doherty: "Re: What control is being painted?"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 31 Jan 2005 12:13:22 +1300
Thanks for pointing that out. I was under the impression that
Transparent meant they would not paint a background colour, but just
write the text (or whatever) on top of what was already there. At least
this behavior makes sense now...
Mick Doherty wrote:
> Only controls with their BackColor set to Transparent will paint themselves
> with the custom background. Other controls will paint themselves with the
> color set in their BackColor property, or if not explicitly set, with the
> color set in their parents BackColor property.
>
> If this is not the behaviour you are seeing, then you have encountered a bug
> or, more likely, have missed something in your code or control property
> settings, e.g. you have placed labels on a Transparent Panel.
- Next message: Andreas Håkansson: "GDI+, Pens and Draw*** methods"
- Previous message: Bob Powell [MVP]: "Re: another transparency question"
- In reply to: Mick Doherty: "Re: What control is being painted?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|