FMX.Controls.TControl.DragOver

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure DragOver(const Data: TDragObject; const Point: TPointF; var Operation: TDragOperation); virtual;

C++

virtual void __fastcall DragOver(const Fmx::Types::TDragObject &Data, const System::Types::TPointF &Point, Fmx::Types::TDragOperation &Operation);

Properties

Type Visibility Source Unit Parent
procedure
function
protected
FMX.Controls.pas
FMX.Controls.hpp
FMX.Controls TControl

Description

OnDragOver event dispatcher.

Data specifies the dragged object.

Point specifies the current point of the mouse cursor 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.

A control calls DragOver when a dragged object is over the control area.

Override the protected DragOver method to provide other responses when a dragged object is over the control area.

See Also