API:FMX.ScrollBox.TPresentedHorzScrollBox.OnDragOver
Delphi
property OnDragOver;
C++
__property OnDragOver;
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| event | published | FMX.ScrollBox.pas FMX.ScrollBox.hpp |
FMX.ScrollBox | TPresentedHorzScrollBox |
Description
Occurs when a dragged object is over the area of the current control.
FMX.ScrollBox.TPresentedHorzScrollBox.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:
Senderis a pointer to the object that called this function.Datais the dragged object.Pointis the current point of the mouse pointer within the client area of the control.Operationis the operation parameter (None, Move, Copy, Link) that specifies the action to perform when an item is dragged over the object.Noneis 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.