FMX.Layers3D.TAbstractLayer3D.LayerMouseDown
Delphi
procedure LayerMouseDown(Button: TMouseButton; Shift: TShiftState; X, Y: Single); virtual;
C++
virtual void __fastcall LayerMouseDown(System::Uitypes::TMouseButton Button, System::Classes::TShiftState Shift, float X, float Y);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
protected | FMX.Layers3D.pas FMX.Layers3D.hpp |
FMX.Layers3D | TAbstractLayer3D |
Description
Is an OnLayerMouseDown event dispatcher.
Override the protected LayerMouseDown method to provide other responses in addition to calling the OnLayerMouseDown event handler when the user presses a mouse button while the cursor's hot spot is over the 3D layer.
A 3D control calls LayerMouseDown in response to any mouse-down events, decoding the message parameters into the shift key state and position, which it passes in the Shift
, X
, and Y
parameters, respectively. The value of the Button
parameter indicates which mouse button was pressed: left, right, or middle.