FMX.Objects.TSelectionPoint.MouseDown
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 |
protected | FMX.Objects.pas FMX.Objects.hpp |
FMX.Objects | TSelectionPoint |
Description
Handles the pressing of a mouse button on the TSelectionPoint object.
MouseDown calls the FMX.Controls.TControl.OnMouseDown event handler and sets that the left mouse button is pressed.
MouseDown has the following parameters:
Button
--belongs to the TMouseButton type and specifies the pressed mouse button:mbLeft
--left,mbRight
--right, ormbMiddle
--middle.Shift
--belongs to the TShiftState type and passes additional information, such as whether shift keys (ssShift
--SHIFT,ssCtrl
--CTRL, orssAlt
--ALT) were pressed when the mouse button was clicked, or whether the mouse button was double-clicked (ssDouble
).X
andY
--are the local pixel coordinates of the mouse pointer within the TSelectionPoint object.
The TForm form (owner of the TSelectionPoint object) calls MouseDown in response to mouse-down messages.
Override the public MouseDown method to provide a customized response when a mouse button is pressed when the mouse pointer is over the TSelectionPoint object.