FMX.Forms.TFrame.OnDragOver
Delphi
property OnDragOver: TDragOverEvent read FOnDragOver write FOnDragOver;
C++
__property OnDragOver;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
event | published | FMX.Forms.pas FMX.Forms.hpp |
FMX.Forms | TFrame |
Description
Occurs when a dragged object is over the area of the current control.
FMX.Forms.TFrame.OnDragOver inherits from FMX.Controls.TControl.OnDragOver. All content below this line refers to FMX.Controls.TControl.OnDragOver.
Occurs when a dragged object is over the area of the current control.
OnDragOver also occurs when DragOver is called.
Write an event handler for OnDragOver to specify what happens when a dragged object is over the area of the current control.
For most controls, HitTest is True by default. However, this is not true for TLabel, TPathLabel and, TMagnifierGlass where HitTest is False by default; these controls do not capture the OnDragOver event unless you set HitTest to True.
This event provides the following arguments to its event handler:
Sender
is a pointer to the object that called this function.Data
is the dragged object.Point
is the current point of the mouse pointer within the client area of the control.Operation
is the operation parameter (None, Move, Copy, Link) that specifies the action to perform when an item is dragged over the object.None
is the default. No action takes place, it does not display any name.Move
- the word Move is displayed once an item is dragged over the object.Copy
- the word Copy is displayed once an item is dragged over the object.Link
- the word Link is displayed once an item is dragged over the object.