wxMSW: Incorrect background on wxButtons?

Tommy W tommy at svearike.sytes.net
Mon Apr 9 08:03:29 PDT 2007


> Tommy W wrote:
> > Hi,
> > I get a default grey colour on the backgound of a wxButton when adding it
> > to my wxFrame.
> >
> > http://svearike.sytes.net/~tommy/login.jpg
> >
> > Is that how it is supposed to look?
> > Just wondering because I thought it looked a bit weird?  (not used to
> > windows, hehe)
> > I'm talking about the colour 'behind' the button (in reality, the border)
>
> Put your widgets on a wxPanel and put that panel in the Frame.

Thanks for the tip, although I didn't get it to work.

I did wxPanel *panel = new wxPanel(this.......
/* add stuff to the panel */
sizer->Add(panel);
SetSizer(panel);

But I still get that annoying look. i.e nothing changed.
Did I miss something?

/Tommy




More information about the wx-users mailing list