This event class contains information about various grid events.
Derived from
wxNotifyEvent
wxCommandEvent
wxEvent
wxObject
Include files
<wx/grid.h>
Event handling
The event handler for the following functions takes a wxGridEvent parameter.
EVT_GRID_CELL_LEFT_CLICK(func) | The user clicked a cell with the left mouse button. Processes a wxEVT_GRID_CELL_LEFT_CLICK. |
EVT_GRID_CELL_RIGHT_CLICK(func) | The user clicked a cell with the right mouse button. Processes a wxEVT_GRID_CELL_RIGHT_CLICK. |
EVT_GRID_CELL_LEFT_DCLICK(func) | The user double-clicked a cell with the left mouse button. Processes a wxEVT_GRID_CELL_LEFT_DCLICK. |
EVT_GRID_CELL_RIGHT_DCLICK(func) | The user double-clicked a cell with the right mouse button. Processes a wxEVT_GRID_CELL_RIGHT_DCLICK. |
EVT_GRID_LABEL_LEFT_CLICK(func) | The user clicked a label with the left mouse button. Processes a wxEVT_GRID_LABEL_LEFT_CLICK. |
EVT_GRID_LABEL_RIGHT_CLICK(func) | The user clicked a label with the right mouse button. Processes a wxEVT_GRID_LABEL_RIGHT_CLICK. |
EVT_GRID_LABEL_LEFT_DCLICK(func) | The user double-clicked a label with the left mouse button. Processes a wxEVT_GRID_LABEL_LEFT_DCLICK. |
EVT_GRID_LABEL_RIGHT_DCLICK(func) | The user double-clicked a label with the right mouse button. Processes a wxEVT_GRID_LABEL_RIGHT_DCLICK. |
EVT_GRID_CELL_CHANGE(func) | The user changed the data in a cell. Processes a wxEVT_GRID_CELL_CHANGE. |
EVT_GRID_SELECT_CELL(func) | The user moved to, and selected a cell. Processes a wxEVT_GRID_SELECT_CELL. |
EVT_GRID_EDITOR_HIDDEN(func) | The editor for a cell was hidden. Processes a wxEVT_GRID_EDITOR_HIDDEN. |
EVT_GRID_EDITOR_SHOWN(func) | The editor for a cell was shown. Processes a wxEVT_GRID_EDITOR_SHOWN. |
wxGridEvent::wxGridEvent
wxGridEvent::AltDown
wxGridEvent::ControlDown
wxGridEvent::GetCol
wxGridEvent::GetPosition
wxGridEvent::GetRow
wxGridEvent::MetaDown
wxGridEvent::Selecting
wxGridEvent::ShiftDown
wxGridEvent()
Default constructor.
wxGridEvent(int id, wxEventType type, wxObject* obj, int row = -1, int col = -1, int x = -1, int y = -1, bool sel = TRUE, bool control = FALSE, bool shift = FALSE, bool alt = FALSE, bool meta = FALSE)
Parameters
bool AltDown()
Returns TRUE if the Alt key was down at the time of the event.
bool ControlDown()
Returns TRUE if the Control key was down at the time of the event.
int GetCol()
Column at which the event occurred.
wxPoint GetPosition()
Position in pixels at which the event occurred.
int GetRow()
Row at which the event occurred.
bool MetaDown()
Returns TRUE if the Meta key was down at the time of the event.
bool Selecting()
Returns TRUE if the user deselected a cell, FALSE if the user deselected a cell.
bool ShiftDown()
Returns TRUE if the Shift key was down at the time of the event.