SSpread.RClicked Event
Occurs when the right mouse button is pressed on a cell.
The following child objects are attached to the Event object.
| Type | Name | Description |
|---|---|---|
| Number | Col | Column number of the cell where the right mouse button was clicked |
| Number | Row | The row number of the cell where the right mouse button was clicked |
| Number | ShiftKey | 1 if the Shift key is pressed, 0 otherwise |
| Number | CtrlKey | 1 if the Ctrl key is pressed, 0 otherwise |
| Number | AltKey | 1 if the Alt key is pressed, 0 otherwise |
| Number | xPos | X coordinate of mouse pointer |
| Number | yPos | Y coordinate of mouse pointer |
The event does not occur in the cell whose input mode is ON (edited state).
Example of usage
Function OnRClicked (e) {
MessageBox (strf (" Right clicked on cell (% 1,% 2) ", e.Col, e.Row));
}
Related Item
Clicked, DoubleClicked, LButtonUp, RButtonUp, RDoubleClicked event