Vcl.Controls.TControl.OnDragDrop

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnDragDrop: TDragDropEvent read FOnDragDrop write FOnDragDrop;

C++

__property TDragDropEvent OnDragDrop = {read=FOnDragDrop, write=FOnDragDrop};

Properties

Type Visibility Source Unit Parent
event protected
Vcl.Controls.pas
Vcl.Controls.hpp
Vcl.Controls TControl

Description

Occurs when the user drops an object being dragged.

Use the OnDragDrop event handler to specify what happens when the user drops an object. The Source parameter of the OnDragDrop event is the object being dropped, and the Sender is the control on which the object is being dropped. The X and Y parameters are the coordinates of the mouse positioned over the control.

OnDragDrop is an event handler of type TDragDropEvent.

See Also

Code Examples