Hi, I'm trying to draw aero-styled glowing text in a .NET StatusStrip with a DrawThemeTextEx class I found. This is my current code which I use as a renderer for the StatusStrip:
Class GlassStatusRenderer
Inherits System.Windows.Forms.ToolStripProfessionalRenderer
Protected Overrides Sub OnRenderToolStripBackground(ByVal e As System.Windows.Forms.ToolStripRenderEventArgs)
e.Graphics.Clear(Color.Transparent)
End Sub
Protected Overrides Sub OnRenderItemText(ByVal e As System.Windows.Forms.ToolStripItemTextRenderEventArgs)
e.Graphics.Clear(Color.Transparent)
Dim glowingText As New GlassText
glowingText.DrawTextOnGlass(Form1.Handle, e.Text, e.TextFont, New Rectangle(e.TextRectangle.Left, e.ToolStrip.Top - 10, e.TextRectangle.Width, e.TextRectangle.Height), 6)
End Sub
End Class
The problem however, is that the glowing text seems to be drawn below the StatusStrip. Any idea on how to get it to draw on the StatusStrip?
EDIT: Is it possible to somehow wrap this in a class which inherits ToolStripStatusLabel? I tried but didn't get too far.