Is there an easy way to do this? Alternatively, if I could get the width of the scrollbars, I could just use the dimensions of the ScrolledWindow and subtract them out myself...
views:
110answers:
1
+1
Q:
How do I get the dimensions of the view (not obstructed by scrollbars) in a wx.ScrolledWindow?
+2
A:
Use wx.SystemSettings.GetMetric() with wx.SYS_HSCROLL_Y and wx.SYS_VSCROLL_X to get the scrollbar sizes. Then use window.GetClientSize() and subtract it out.
http://docs.wxwidgets.org/stable/wx_wxsystemsettings.html#wxsystemsettings
>>> wx.SystemSettings.GetMetric(wx.SYS_HSCROLL_Y)
16
>>> wx.SystemSettings.GetMetric(wx.SYS_VSCROLL_X)
16
FogleBird
2009-04-27 13:30:47
Thank you Mr.... Fogle... Bird?
Ryan
2009-04-27 13:53:36