[wxPython] missing grid event

Hi Robin et al.,

today, I'm trying to find a reliable way to detect grid cursor
movements. Investigating the available events, one can use
EVT_GRID_SELECT_CELL() to detect the leaving cell, but how do
I detect, when the grid cursor is entering a cell (without
fiddleing in OnChar/OnCellLeftClick events)? I'm missing
something like EVT_GRID_ENTER_CELL()...

Any hints welcome

Greetings,
  hp

···

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/wxpython-users

today, I'm trying to find a reliable way to detect grid cursor
movements. Investigating the available events, one can use
EVT_GRID_SELECT_CELL() to detect the leaving cell, but how do
I detect, when the grid cursor is entering a cell (without
fiddleing in OnChar/OnCellLeftClick events)? I'm missing
something like EVT_GRID_ENTER_CELL()...

The row and column in the event object passed to the EVT_GRID_SELECT_CELL
handler are the cell being moved to, so you can use this event for handling
both leaving and entering, depending on where you get your row and column
from. The grid's current cursor row and column are the cell you are
leaving, and the event's row and column are the cell you are entering. If
you don't call event.Skip() in the handler then the cursor won't move to the
new cell.

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com
http://wxPython.org Java give you jitters?
http://wxPROs.com Relax with wxPython!

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/wxpython-users