FMX.Types.TMouseEvent
Delphi
TMouseEvent = procedure(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Single) of object;
C++
typedef void __fastcall (__closure *TMouseEvent)(System::TObject* Sender, System::Uitypes::TMouseButton Button, System::Classes::TShiftState Shift, float X, float Y);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
type typedef |
public | FMX.Types.pas FMX.Types.hpp |
FMX.Types | FMX.Types |
Description
Procedural type that is used for all OnMouseUp and OnMouseDown event types.
A TMouseEvent event handler must be called with the following parameters:
Sender
--a pointer to the object that called this function.Button
-- indicates which mouse button is pressedShift
--indicates which shift keys--SHIFT, CTRL, ALT, and CMD (only for Mac)--were down when the user pressed the mouse button.X
andY
--the pixel coordinates of the mouse pointer within the client area of the control.