wx.StatusBar sizegrip takes up too much space when using controls

I'm noticing that the if I have style wx.ST_SIZEGRIP set on a wx.StatusBar, the grip seems to obscure more of the last field than normal when the last field has a control (or other wx.Window) in it rather than text.

As an example, run the StatusBar demo and resize the window until the grip moves over the rightmost field.

Next, change line 43 from:
self.SetStatusText(st, 2)
to:
self.SetStatusText(st, 1)
and change line 72 from:
rect = self.GetFieldRect(1)
to:
rect = self.GetFieldRect(2)

Now run the demo and try resizing -- the grip now covers an extra 17 pixels.

I've attached some partial screenshots for reference.

Tim Tucker
tim@timtucker.com
http://www.timtucker.com/

control.gif

normal.gif

Timothy J. Tucker wrote:

I'm noticing that the if I have style wx.ST_SIZEGRIP set on a wx.StatusBar, the grip seems to obscure more of the last field than normal when the last field has a control (or other wx.Window) in it rather than text.

As an example, run the StatusBar demo and resize the window until the grip moves over the rightmost field.

Next, change line 43 from:
self.SetStatusText(st, 2)
to:
self.SetStatusText(st, 1)
and change line 72 from:
rect = self.GetFieldRect(1)
to:
rect = self.GetFieldRect(2)

Now run the demo and try resizing -- the grip now covers an extra 17 pixels.

Please enter a bug report about this, with a category of "wxMSW Specific"

ยทยทยท

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!