statusbar without light border

Hi all,

I'm trying to make a dark themed application, but I can't get rid of
the light
statusbar border.

I've tried using wx.NO_BORDER and wx.SB_FLAT, but to no avail -
it always looks like http://imgur.com/Jsan7 with a light border.

Minimal code is at
https://gist.github.com/2037009

I'm using wxpython version 2.9.3.1 osx-cocoa (classic), Mac OS 10.6.8

Any ideas how to either remove this border or change its color?

Thanks,
Matt

You probably can't, at least not unless you implement your own paint event handler for the statusbar. It is initializing the pens it uses to draw those lines like this:

     m_mediumShadowPen = wxPen(wxSystemSettings::GetColour(wxSYS_COLOUR_3DSHADOW));
     m_hilightPen = wxPen(wxSystemSettings::GetColour(wxSYS_COLOUR_3DHILIGHT));

and there isn't any public API for changing them. (This is in the generic statusbar class. Platforms using a native statusbar will likely behave differently.)

···

On 3/14/12 7:56 AM, mkeeter wrote:

Hi all,

I'm trying to make a dark themed application, but I can't get rid of
the light
statusbar border.

I've tried using wx.NO_BORDER and wx.SB_FLAT, but to no avail -
it always looks like http://imgur.com/Jsan7 with a light border.

Minimal code is at
2037009’s gists · GitHub

I'm using wxpython version 2.9.3.1 osx-cocoa (classic), Mac OS 10.6.8

Any ideas how to either remove this border or change its color?

--
Robin Dunn
Software Craftsman

I ran your code from github using 2.9.3.1 on windows 7 and do not see
the same light border.

···

On Mar 14, 7:56 am, mkeeter <matt.j.kee...@gmail.com> wrote:

Hi all,

I'm trying to make a dark themed application, but I can't get rid of
the light
statusbar border.

I've tried using wx.NO_BORDER and wx.SB_FLAT, but to no avail -
it always looks likehttp://imgur.com/Jsan7with a light border.

Minimal code is athttps://gist.github.com/2037009

I'm using wxpython version 2.9.3.1 osx-cocoa (classic), Mac OS 10.6.8

Any ideas how to either remove this border or change its color?

Thanks,
Matt