Translucent form, opaque text.

  • Thread starter Thread starter Sin Jeong-hun
  • Start date Start date
S

Sin Jeong-hun

As far as I know if I change the form's opacity, every control on the
form also inherits that opacity. But in many real applications (not
application programs), we see opaque text (100% opacity) on a
traslucent background, for example text messages on TV. Or look at the
title bar text of Aero. Background is translucent but the text is
opaque.

Is it possible to use 100% opaque text on a traslucent form?
 
Are you using Forms?  WPF?

And, have you tried setting the text opacity explicitly?  What happens  
when you do?

C# 2.0 forms. As far as I know Windows controls don't have opacity
property but only form does. If I set a form's opacity to 50%, then
the label text's opacity also becomes 50%. I tried to get the form's
DC, and draw text using GDI operations with a color whose A value is
255, but that also didn't work. That A value seemed to be proportional
to the opacity of the form.
Thanks.
 
Back
Top