wxMSW: Incorrect background on wxButtons?
Tommy W
tommy at svearike.sytes.net
Wed Apr 18 12:44:16 PDT 2007
On Thursday 12 April 2007 22:05, Robin Dunn wrote:
> Tommy W wrote:
> > On Wednesday 11 April 2007 23:36, Robin Dunn wrote:
> >> Are you sure that you used the panel for the parent of the wxButton when
> >> you created it?
> >
> > Quite sure actually.
> >
> > wxPanel *panel = new wxPanel(this,wxID_ANY);
> >
> > panel->SetBackgroundColour(GetBackgroundColour());
> > panel->SetForegroundColour(GetForegroundColour());
>
> Ah, you didn't mention that you were doing this. AFAIK the XP themed
> button expects to be placed on a themed panel, and the button draws
> itself accordingly using the theme APIs.
Is there a way around this?
I've tried everything it seems like.
I really think it is strange that you would not be able to place a button over
a differently colored panel without getting weird results.
The most annoying occurance of the same problem is shown in this picture
http://svearike.sytes.net/~tommy/shot.png
here you can see a wxNotebook with the wrong colour chosen for it's
background. (up in the windows-tab)
Thanks in advance
/Tommy Wallberg
More information about the wx-users
mailing list