CGridView:GetCellEnd
The GetCellEnd method returns the column and row where the mouse button was last released to mark the ending cell of a selection range. If no cell was marked by a mouse release, then it returns -100, -100. This method returns 1-based column and row grid coordinates. It may be used both when a grid is attached from a script and when a script is called from the grid.
nColumn, nRow = CGridView:GetCellEnd()
Where nColumn and nRow are 1-based grid coordinates of the cell where the mouse was released.
The following script attaches a grid window and returns the location where the mouse button was released:
|
-- attaches the top-most grid window from Mira |
|
-- return the column and row where the moue was released. |
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics,
Inc. All Rights Reserved.