Vcl.Grids.TCustomGrid.MouseCoord

From RAD Studio API Documentation
Jump to: navigation, search

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 point specified in screen coordinates.

Call MouseCoord to locate the column and row of the cell which contains a given screen coordinate. Usually, MouseCoord is used to locate the cell that is under the mouse.

See Also