FMX.Objects.TSelectionPoint.MouseMove

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure MouseMove(Shift: TShiftState; X, 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.Objects.pas
FMX.Objects.hpp
FMX.Objects TSelectionPoint

Description

Handles moving of the mouse pointer over a TSelectionPoint object.

As the mouse pointer moves over a TSelectionPoint object, this method is called repeatedly. Each time it is called with the new mouse pointer coordinates that reflect the continuous path of the mouse pointer.

MouseMove has the following parameters:

  • Shift--belongs to the TShiftState type; it can pass additional information.
  • X and Y--are the local pixel coordinates of the mouse pointer within the parent control.

The MouseMove method has the following implementation:

  1. MouseMove calls the inherited FMX.Controls.TControl.MouseMove method.
  2. If the TSelectionPoint object is pressed with the left mouse button, the TSelectionPoint is dragged by the mouse pointer:
  3. Then, it calls the customer event handler of the OnTrack event.

Override the public MouseMove method to provide a customized response when the mouse pointer is moved over the TSelectionPoint object.

See Also