wxpy@wonko.otherinbox.com wrote:
*
Thanks for all the tips and hints!I have achieved some moderate progress after incorporating the changes you proposed. Interestingly I noticed I already had a panel to serve as the containter within the notebook page as it was proposed. I rewrote the code and now I do get the
grid to take the whole lower part of the panel that I wanted it to take. Good!
(I don't really understand why though, because I think all I did was remove the sizer
that contained the grid, but whatever - it works this far..)Unfortunately, while the grid is now taking all the space, it does not have any scrollbars anymore! I noticed I can get it to take a fixed amount of space AND display scrollbars if I give it a fixed size with .SetSize, but then I'm lost as to setting the correct size initially and according to size changes later on.
I do have other Notebook pages in my app that contain ONLY a Grid, and those are
working as expected. Maybe it has to do with the Grid being contained in a sizer so that it does not know how much space it has been given by the sizer and thus
does not notice it must be scrollable?Hoping for more support, sigh,
Nico
*
The wx.Grid widget only displays scrollbars if it cannot display all the information in the given space. My guess is that you don't have very many rows and columns of data, so if you make it fill the panel or resize the frame, the scrollbars go away automatically, just like MS Excel. There may be some flag that you can pass to force scrollbars, but I don't know what it is.
ยทยทยท
-------------------
Mike Driscoll
Blog: http:\\blog.pythonlibrary.org
Python Extension Building Network: http:\\www.pythonlibrary.org
__________ Information from ESET NOD32 Antivirus, version of virus signature database 3963 (20090325) __________
The message was checked by ESET NOD32 Antivirus.