Discussion:
GTK: SetBackgroundColour not inherited by wxPanel
(too old to reply)
Vadim Zeitlin
2009-04-28 12:32:45 UTC
Permalink
On Mon, 27 Apr 2009 14:27:37 +0200 Uli Hertlein <***@xdt.com.au> wrote:

UH> Calling SetBackgroundColour() on the toplevel wxFrame has no effect,

This is definitely a bug (and I can reproduce it).

UH> setting it on its only child wxPanel at least changes it for this panel
UH> (and sizers, buttons, etc created on it).
UH>
UH> However, when I create a new wxPanel as a child, on GTK (works on OS X)
UH> the bg colour is not inherited i.e. the panel has the default desktop
UH> theme colour.

This is a bug as well (and I can reproduce it too).

Unfortunately I don't have time to look at this right now but please open
a Trac ticker for it and upload your test code for demonstrating it there.
Hopefully someone will be able to look into it.

Thanks,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
Uli Hertlein
2009-04-28 13:32:17 UTC
Permalink
Hi Vadim,
UH> Calling SetBackgroundColour() on the toplevel wxFrame has no effect,
This is definitely a bug (and I can reproduce it).
UH> setting it on its only child wxPanel at least changes it for this panel
UH> (and sizers, buttons, etc created on it).
UH>
UH> However, when I create a new wxPanel as a child, on GTK (works on OS X)
UH> the bg colour is not inherited i.e. the panel has the default desktop
UH> theme colour.
This is a bug as well (and I can reproduce it too).
Thanks for looking into this. I've created trac ticket #10751 for this.
Cheers,
/uli

Loading...