wxMSW: Incorrect background on wxButtons?

Tommy W tommy at svearike.sytes.net
Thu Apr 12 14:01:51 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.

Ok, it's a bit unclear to me what that actually means :)
Is there some way to change the 'theme' from within the application?
or is that something that is defined in the XP os preferences somewhere and is 
not to be messed with, from my application?

It seems a bit strange that you would not be able to do what I am trying to 
do ?

I just want a differently colored panel, with a properly colored button ;)




More information about the wx-users mailing list