[wx 2.8.7 GTK2 Linux gcc] internal mechanisms

Vadim Zeitlin vadim at wxwidgets.org
Thu Feb 7 15:53:42 PST 2008


On Thu, 7 Feb 2008 13:49:10 -0500 Phil White <mrmetis at hotmail.com> wrote:

PW>   Hello, this is my first post on dev list,

 Hello,

 This is the users list :-) but welcome nevertheless!

PW> the panel (whatever) paints a background on the OnPaint's event, and
PW> the control paints a text with no background on the screen.
PW> 
PW> On wxMSW and wxMac, it works great, it takes the parent background. But
PW> on wxGTK2, it takes the grand parent's background. If I derivate my
PW> control from a wxStaticText, it works in wxGTK too. But I dont' want
PW> to. I'd want to know how this behaviour occurs when I derivate it from
PW> a wxControl. 

 I'm afraid you can't do what you want, i.e. have transparent controls.
Transparency is currently supported only for top level windows. For the
controls you'll need to paint the control background to reproduce the part
of the parent background underneath it yourself.

 Regards,
VZ

-- 
TT-Solutions: wxWidgets consultancy and technical support
               http://www.tt-solutions.com/





More information about the wx-users mailing list