FMX.Controls.TControl.MouseMove

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure MouseMove(Shift: TShiftState; X, Y: Single); virtual;

C++

virtual void __fastcall MouseMove(System::Classes::TShiftState Shift, float X, float Y);

Properties

Type Visibility Source Unit Parent
procedure
function
protected
FMX.Controls.pas
FMX.Controls.hpp
FMX.Controls TControl

Description

OnMouseMove event dispatcher.

As the mouse cursor moves across a control, this method is called repeatedly. Each time it is called with the new coordinates that reflect the continuous path of the mouse cursor across the screen real estate covered by the control's visual representation:

  • Shift indicates which shift keys--SHIFT, CTRL, ALT, and CMD (only for Mac)--were down when the mouse cursor is over the control.
  • X and Y are the pixel coordinates of the mouse pointer within the client area of the control.

Override the protected MouseMove method to provide other responses when the mouse cursor moves over the control.

See Also