Translucent form, opaque text.

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?
 
S

Sin Jeong-hun

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top