FMX.Objects.TSelectionPoint.MouseMove
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
andY
--are the local pixel coordinates of the mouse pointer within the parent control.
The MouseMove method has the following implementation:
- MouseMove calls the inherited FMX.Controls.TControl.MouseMove method.
- If the TSelectionPoint object is pressed with the left mouse button, the TSelectionPoint is dragged by the mouse pointer:
- If ParentBounds is
True
and the parent is a control, the TSelectionPoint object is moved only inside the boundaries of the parent control. - If ParentBounds is
True
and the parent is not a control, the TSelectionPoint object is moved inside the boundaries of the current TCanvas object. - If ParentBounds is
False
, the TSelectionPoint object is moved to the specifiedX
andY
coordinates.
- If ParentBounds is
- 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.