scroll bar problem in wx.grid control

hi all…

In my application i’m using two panels…

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)

Murali kumar wrote:

hi all..

In my application i'm using two panels...

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.

···

-------------------
Mike Driscoll

Blog: http://blog.pythonlibrary.org

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…)

how to solve that…?
or where may be i’m wrong…?

···

On Wed, Apr 15, 2009 at 8:44 PM, Mike Driscoll mike@pythonlibrary.org wrote:

Murali kumar wrote:

hi all…

In my application i’m using two panels…

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.


Mike Driscoll

Blog: http://blog.pythonlibrary.org


wxpython-users mailing list

wxpython-users@lists.wxwidgets.org

http://lists.wxwidgets.org/mailman/listinfo/wxpython-users

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..)

how to solve that..?
or where may be i'm wrong..?

http://wiki.wxpython.org/MakingSampleApps

Platform and version?

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

using: python 2.6.1
wxpython 2.8.9.1

platform: windows XP professional, version 2002, sp2

···

On Sat, Apr 25, 2009 at 12:09 AM, Robin Dunn robin@alldunn.com wrote:

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…)

how to solve that…?

or where may be i’m wrong…?

http://wiki.wxpython.org/MakingSampleApps

Platform and version?

Robin Dunn

Software Craftsman

http://wxPython.org Java give you jitters? Relax with wxPython!


wxpython-users mailing list

wxpython-users@lists.wxwidgets.org

http://lists.wxwidgets.org/mailman/listinfo/wxpython-users

Murali kumar wrote:

using: python 2.6.1
          wxpython 2.8.9.1

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..)

        how to solve that..?
        or where may be i'm wrong..?

    http://wiki.wxpython.org/MakingSampleApps

    Platform and version?

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!