FMX.Presentation.Style.TStyledPresentation.MouseMove

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

procedure MouseMove(Shift: TShiftState; X: Single; Y: Single); override;

C++

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

Properties

Type Visibility Source Unit Parent
procedure
function
protected
FMX.Presentation.Style.pas
FMX.Presentation.Style.hpp
FMX.Presentation.Style TStyledPresentation

Description

OnMouseMove event dispatcher.

FMX.Presentation.Style.TStyledPresentation.MouseMove inherits from FMX.Controls.TControl.MouseMove. All content below this line refers to FMX.Controls.TControl.MouseMove.

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