Hi,

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.

Regards

Mark


On 23/02/2010 12:06, Johan Vromans wrote:
Hi,

The following (mostly wxGlade generated) program doesn't look native
to me. See screenshot.
I'm not very familiar with Wx on Windows, so I'm probably overlooking
something trivial.

Any pointers?

-- Johan


Reply via email to