FMX.Types.TMouseEvent
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 | 
|---|---|---|---|---|
| typedef | public | 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 pressed
- Shift--indicates which shift keys--SHIFT, CTRL, ALT, and CMD (only for Mac)--were down when the user pressed the mouse button.
- Xand- Y--the pixel coordinates of the mouse pointer within the client area of the control.