Vcl.Controls.TBaseDragControlObject.EndDrag

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure EndDrag(Target: TObject; X, Y: Integer); virtual;

C++

virtual void __fastcall EndDrag(System::TObject* Target, int X, int Y);

Properties

Type Visibility Source Unit Parent
procedure
function
protected
Vcl.Controls.pas
Vcl.Controls.hpp
Vcl.Controls TBaseDragControlObject

Description

Generates an OnEndDrag event for the control that is being dragged.

EndDrag is called automatically when the user drops the control or cancels the drag operation. It calls the DoEndDrag method of the control specified by the Control property. By default, this method generates an OnEndDrag event for that control.

The Target parameter indicates the object that accepted the control. If the drag operation was canceled or the control was dragged to a floating position (in a drag-and-dock operation), Target is nil (Delphi) or NULL (C++). The X and Y parameters indicate where the control is dropped.

See Also