Anybody knows a function returning the actual visibility of the vertical scrollbar in a grid? i.e. whether the total height of all the existing rows is greater than the height of the GridWindow?
Thanks for any help.
raffaello wrote:
Anybody knows a function returning the actual visibility of the vertical scrollbar in a grid? i.e. whether the total height of all the existing rows is greater than the height of the GridWindow?
Thanks for any help.
Check if the virtual size is larger than the client size.
···
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
Thank you for your prompt reply Robin, but unfortunately I couldn’t build the method.
See the results I get:
GridWindow.Size = (0, 0)
GridWindow.ClientSize = (0, 0)
GridWindow.VirtualSize = (525, 180)
self.ClientSize = (66, 16)
where there are too many things I don’t understand.
Could you please give me the link to a working example?
TIA
···
2009/1/29 Robin Dunn robin@alldunn.com
raffaello wrote:
Anybody knows a function returning the actual visibility of the vertical scrollbar in a grid? i.e. whether the total height of all the existing rows is greater than the height of the GridWindow?
Thanks for any help.
Check if the virtual size is larger than the client size.
–
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
wxpython-users mailing list
raffaello wrote:
Thank you for your prompt reply Robin, but unfortunately I couldn't build the method.
See the results I get:
GridWindow.Size = (0, 0)
GridWindow.ClientSize = (0, 0)
GridWindow.VirtualSize = (525, 180)
self.ClientSize = (66, 16)where there are too many things I don't understand.
Could you please give me the link to a working example?
Basically my thought is that you can compare gridWindow.VirtualSize.height and gridWindow.TargetWindow.Size.height. It looks like the reported virtual size can grow beyond the actual when the window grows so you'll probably need to fiddle with it a bit.
···
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!