wxGrid and Scrollbars
Mark Erbaugh
mark at microenh.com
Mon Feb 4 13:15:07 PST 2008
I have a grid that uses a grid table to manage the data. When creating
the grid, I specify a size of (-1, height) where height is the desired
height. My desire is to have the grid display just wide enough to
include all the columns with no horizontal scrollbar. However, if the
grid needs a vertical scrollbar (because there are too many rows to
display in the given height), the width of the vertical scrollbar is not
included in the grid width, so the grid displays with a horizontal
scrollbar.
Is there a way to have the 'automatic'(i.e. -1) width of the grid
include the width of the vertical scrollbar?
Is there a way to force the grid to always display a vertical scrollbar,
whether it is actually needed?
Thanks,
Mark
More information about the wxpython-users
mailing list