Vcl.Grids.TCustomGrid.MouseCoord
Delphi
function MouseCoord(X, Y: Integer): TGridCoord;
C++
TGridCoord __fastcall MouseCoord(int X, int Y);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Vcl.Grids.pas Vcl.Grids.hpp |
Vcl.Grids | TCustomGrid |
Description
Returns the row and column indexes of the cell that contains a screen point specified in TDBGrid coordinates.
Call MouseCoord to locate the column and row of the cell which contains a given coordinate, counting from the top left corner of the TDBGrid. Usually, MouseCoord is used to locate the cell that is under the cursor.