FMX.Controls.TControl.OnDragOver

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

property OnDragOver: TDragOverEvent read FOnDragOver write FOnDragOver;

C++

__property Fmx::Types::TDragOverEvent OnDragOver = {read=FOnDragOver, write=FOnDragOver};

Properties

Type Visibility Source Unit Parent
event public
FMX.Controls.pas
FMX.Controls.hpp
FMX.Controls TControl

Description

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.

See Also