Improve wxEVT_GRID_SELECT_CELL documentation

Mention that the event can be vetoed and the consequences of that.

(cherry picked from commit 0067ff7753baf3d8954168ea1aad4a7f61910ed8)
This commit is contained in:
Vadim Zeitlin 2022-09-27 23:26:34 +02:00
parent 61a0473e85
commit 401bab8e9c

View File

@ -6280,9 +6280,13 @@ public:
The user double-clicked a label with the right mouse button. Processes
a @c wxEVT_GRID_LABEL_RIGHT_DCLICK event type.
@event{EVT_GRID_SELECT_CELL(func)}
The given cell was made current, either by user or by the program via a
call to SetGridCursor() or GoToCell(). Processes a
@c wxEVT_GRID_SELECT_CELL event type.
The given cell is about to be made current, either by user or by the
program via a call to wxGrid::SetGridCursor() or wxGrid::GoToCell().
The event can be vetoed to prevent this from happening and
wxGrid::GetGridCursorCoords() still returns the previous current cell
coordinates during the event handler execution, while the new ones are
available via the event object GetRow() and GetCol() functions.
Processes a @c wxEVT_GRID_SELECT_CELL event type.
@event{EVT_GRID_ROW_MOVE(func)}
The user tries to change the order of the rows in the grid by
dragging the row specified by GetRow(). This event can be vetoed to