DrawThemeTextEx on painted Windows form

Asked By Rowan Begg
20-Nov-09 07:17 AM
Earn up to 0 extra points for answering this tough question.
Hi,
I am using DrawThemeTextEx to draw text with glow behind on a form that uses the Aero Glass effects of Vista and Win7, and it works perfectly (as per the first picture below).

However, if I add some color to the glass using LinearGradientBrush, the text is surrounded by a transparent rectangle (as in the second picture).

Is there a way around this?

Works fine with standard blur:

Obviously not right when adding color to the glass:

I can supply the source code for anyone who can take a look.

Cheers
Rowan

  re: DrawThemeTextEx on painted Windows form

Erdin replied to Rowan Begg
15-Feb-11 03:30 AM
Can i get the source code of the example below.

http://www.eggheadcafe.com/community/aspnet/2/10129934/drawthemetextex-on-painted-windows-form.aspx

Thank you.

  re: DrawThemeTextEx on painted Windows form

Rowan Begg replied to Rowan Begg
19-Feb-11 08:16 AM
Here you go:
TransparentFormTest.zip

Cheers
Rowan
Create New Account