logo

DrawThemeTextEx on painted Windows form

Posted by Rowan Begg in C# .NET

Friday, November 20, 2009 7:17:09 AM

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

Biography
Rowan has not submitted biographical details.

Site Rank:  Not applicable - Current Winnings:  $0.00

Reply Reply Using Power Editor

Didn't Find The Answer You Were Looking For?

EggHeadCafe has experts online right now that may know the answer to your question.  We pay them a bonus for answering as many questions as they can.  So, why not help them and yourself by becoming a member (free) and ask them your question right now?
Ask Question In Live Forum








  $1000    Adam Houldsworth - $173  |  Jonathan VH - $154  |  Kirtan Patel - $116  |  Mr. Khan - $99  |  F Cali - $94  |  more Neado  |  Free Icons  |  Privacy  |   (c) 2010