Transparent wxStaticText

Questions about wxWidgets running on MS.NET, mono or Portable.NET ? Ask it here !
Post Reply
yeyouqun
In need of some credit
In need of some credit
Posts: 6
Joined: Mon Aug 02, 2010 6:46 am

Transparent wxStaticText

Post by yeyouqun »

Hi,
I am implementing a gauge control with a percentage indicator at the center of the gauge.The indicator is wxStaticText, but the color of background is not the same as gauge's,so the static text windows has a obvious rect.I have tried some methods,such as override the MSWControlColor of wxControl and add the EVT_ERASE_BACKGROUND to the event table, but the problem remains as before.

Who can help me with this, I have lingered this for days.

My platform is windows xp,x64,visual studio 2009.
ISD
Post Reply