1st panel -> wx.grid control,
2nd panel -> group of buttons in grid sizer for working in grid panel.
when setting more no of rows and columns in creategrid (wx.grid), scroll bars not appeared automatically.. instead it occupies other panels space..
question:
How to set scroll bar when creating the grid..? (automatically not appears when setting more no of rows and columns in create grid)
The scroll bar should only appear if there are too many rows or columns to display. If the grid can display them all, then there are no scrollbars.
If you resize the application until it is too small to show all the data in the grid, scroll bars should appear. You can specify a size for the grid and as long as you don't put it in a sizer and tell it to expand, you shouldn't see it taking up all the space.
tried that solution by setting the grid size…
and created grid with (30,45) dimension…
scrollbars appeared in two dimensions…
but…
In horizontal line grid cursor moving is fine… (upto 45th column…)
In vertical line, scrollbar is there. but grid cursor only visible during moving upto 15th row…
after that it disappears…moving into invisible area(scrollbar doesnot moving…)
2nd panel → group of buttons in grid sizer for working in grid panel.
when setting more no of rows and columns in creategrid (wx.grid), scroll bars not appeared automatically… instead it occupies other panels space…
question:
How to set scroll bar when creating the grid…? (automatically not appears when setting more no of rows and columns in create grid)
The scroll bar should only appear if there are too many rows or columns to display. If the grid can display them all, then there are no scrollbars.
If you resize the application until it is too small to show all the data in the grid, scroll bars should appear. You can specify a size for the grid and as long as you don’t put it in a sizer and tell it to expand, you shouldn’t see it taking up all the space.
tried that solution by setting the grid size..
and created grid with (30,45) dimension..
scrollbars appeared in two dimensions..
but..
In horizontal line grid cursor moving is fine.. (upto 45th column..)
In vertical line, scrollbar is there. but grid cursor only visible during moving upto 15th row..
after that it disappears..moving into invisible area(scrollbar doesnot moving..)
platform: windows XP professional, version 2002, sp2
Murali kumar wrote:
hi all..
tried that solution by setting the grid size..
and created grid with (30,45) dimension..
scrollbars appeared in two dimensions..
but..
In horizontal line grid cursor moving is fine.. (upto 45th column..)
In vertical line, scrollbar is there. but grid cursor only
visible during moving upto 15th row..
after that it disappears..moving into invisible area(scrollbar
doesnot moving..)
It would still be helpful to have a sample demonstrating this problem but as a guess I'd say that something is preventing the sizer from reducing the grid to a size that fits in the parent window. Try giving it a min size.
···
On Sat, Apr 25, 2009 at 12:09 AM, Robin Dunn <robin@alldunn.com > <mailto:robin@alldunn.com>> wrote:
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!