[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Converts the specified coordinates for the mouse pointer to the grid zone where they are located.
Source position: grids.pas line 1369
public function TCustomGrid.MouseToGridZone( |
X: Integer; |
Y: Integer |
):TGridZone; |
X |
|
Horizontal screen coordinate for the mouse pointer. |
Y |
|
Vertical screen coordinate for the mouse pointer. |
Grid zone where the specified mouse pointer coordinates are located.
MouseToGridZone is a TGridZone function used to get the grid zone where the specified mouse pointer coordinates are located. The X and Y arguments contain the screen coordinates where the mouse pointer is located.
The return value is a TGridZone enumeration value determine by comparing the screen coordinates to the cached sizes and offsets for the grid control. The screen coordinates are converted to cell coordinates when available, and used to the determine the return value.
|
Enumerated type with values which represent the zones or areas on a grid control. |
Version 3.2 | Generated 2024-02-25 | Home |