FMX.Grid.TCustomGrid.MouseDown

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure MouseDown(Button: TMouseButton; Shift: TShiftState; X, Y: Single); override;

C++

virtual void __fastcall MouseDown(System::Uitypes::TMouseButton Button, System::Classes::TShiftState Shift, float X, float Y);

Properties

Type Visibility Source Unit Parent
procedure
function
public
FMX.Grid.pas
FMX.Grid.hpp
FMX.Grid TCustomGrid

Description

Internally executed while a mouse button is pressed over the surface of this grid.

You can call MouseDown programmatically in applications to simulate a mouse button down event over this grid.

Shift indicates which shift keys--SHIFT, CTRL, ALT, and CMD (only for Mac)--were down when the user pressed the mouse button.

X and Y are the pixel coordinates of the mouse pointer within the client area of the control.

A control calls MouseDown in response to any of mouse-down messages, decoding the message parameters into the shift-key state and position, which it passes in the Shift, X, and Y parameters, respectively.

Note: Override the protected MouseDown method to provide other responses when a mouse button is down while the cursor is over the control.

See Also