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