grid control question

Hello List,

Is there a way to move focus in the grid control to a specific cell. I am thinking there has to be a way but I went through the list of all functions available and couldn’t find one that will do this.

It will also work if I can just hide the focussing rectangle totally also.

I have a static table and users don’t need to select anything. The cell focus is just coming on my way.

I appreciate your help.

Ananda

You can't disable the notion of cell focus, but you can hide the focus
highlight by calling SetCellHighlightPenWidth(0).

You can move the focus to a specific cell with SetGridCursor.

···

On 6/21/07, Ananda Regmi <aregmi@gmail.com> wrote:

Hello List,

Is there a way to move focus in the grid control to a specific cell. I am
thinking there has to be a way but I went through the list of all functions
available and couldn't find one that will do this.

It will also work if I can just hide the focussing rectangle totally also.

I have a static table and users don't need to select anything. The cell
focus is just coming on my way.

Thanks a lot Chris… That solved all my problems.

···

On 6/21/07, Chris Mellon arkanes@gmail.com wrote:

On 6/21/07, Ananda Regmi aregmi@gmail.com wrote:

Hello List,

Is there a way to move focus in the grid control to a specific cell. I am
thinking there has to be a way but I went through the list of all functions
available and couldn’t find one that will do this.

It will also work if I can just hide the focussing rectangle totally also.

I have a static table and users don’t need to select anything. The cell
focus is just coming on my way.

You can’t disable the notion of cell focus, but you can hide the focus
highlight by calling SetCellHighlightPenWidth(0).

You can move the focus to a specific cell with SetGridCursor.


To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail:
wxPython-users-help@lists.wxwidgets.org

Ananda Regmi wrote:

Hello List,

Is there a way to move focus in the grid control to a specific cell. I am thinking there has to be a way but I went through the list of all functions available and couldn't find one that will do this.

  grid.SetGridCursor(row, col)

It will also work if I can just hide the focussing rectangle totally also.

  grid.SetCellHighlightPenWidth(0)

···

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