wxStaticText color/transparent background

Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
Post Reply
Big Muscle
Earned some good credits
Earned some good credits
Posts: 100
Joined: Sun Jun 27, 2010 6:18 pm

wxStaticText color/transparent background

Post by Big Muscle »

Hello,
is there any way how to create control which draws the text with background color, supports transparency and works on different platforms (or at least MSW and GTK+2) ?

If I use wxStaticText:
wxGTK - background is transparent, SetBackgroundColour is not respected
wxMSW - SetBackgroundColour is respected but transparency is not supported (grey bk)

wxGenericStaticText:
SetBackgroundColour is respected but transparency is not supported.
Transparency can be enabled with SetBackgroundStyle(wxBG_STYLE_TRANSPARENT) but it works on MSW only.

I am searching for this:
wxMSW+wxGTK - respect SetBackgroundColour + support transparency (e.g. via wxTransparentColour)
Post Reply