Vcl.Controls.TEndDragEvent
C++
typedef void __fastcall (__closure *TEndDragEvent)(System::TObject* Sender, System::TObject* Target, int X, int Y);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
typedef | public | Vcl.Controls.hpp | Vcl.Controls | Vcl.Controls |
Description
TEndDragEvent is the type of event that occurs when the drag operation ends.
Sender is the object being dragged.
Target is the object Sender is dragged to.
X and Y are screen coordinates in pixels.
The OnEndDrag event is received by Sender. If the dragged object was dropped or docked and accepted by a control, the Target parameter of the OnEndDrag event is set to the object that accepted the sender. If the object was not dropped successfully, the value of Target is nil (Delphi) or NULL (C++).