FMX.Types.TMouseEvent

From RAD Studio API Documentation
Jump to: navigation, search

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

See Also