[Quoting Mark Dootson, on February 23 2010, 14:37, in "Re: Strange appearan"] > I don't recall if I read it in an instruction somewhere or not, but I > have always regarded drawing controls directly onto a Wx::Frame as not > working. I always just assumed that you need a container class > (Wx::Panel or Wx::Notebook etc). Certainly, on MSWin you get the > unexpected (as per your picture), as your control inherits attributes > that match the background for the frame. > > I don't know if it's a bug or undocumented 'feature', but it has always > been this way as far as I know. My code always starts frames by putting > a Wx::Panel in them to contain other controls - and then I get what I > expect.
Yes, I seem to recall having heard something like this before. Frame -> Sizer -> Panel -> Sizer -> Controls looks better, Thanks! -- Johan
