TMouseEvent = procedure(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Single) of object;
typedef void __fastcall (__closure *TMouseEvent)(System::TObject* Sender, System::Uitypes::TMouseButton Button, System::Classes::TShiftState Shift, float X, float Y);
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.
Y--the pixel coordinates of the mouse pointer within the client area of the control.