Vcl.Controls.TDragObject.Finished

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure Finished(Target: TObject; X, Y: Integer; Accepted: Boolean); virtual;

C++

virtual void __fastcall Finished(System::TObject* Target, int X, int Y, bool Accepted);

Properties

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

Description

Responds when the mouse is released indicating the drag operation is complete.

Finished does nothing as implemented in TDragObject. Override this method to provide more meaningful behavior. The Target is the object that accepted the drag. If the drag operation is canceled or a drag-and-dock operation ends with the dragged object in a free-floating position, Target is nil (Delphi) or NULL (C++). X and Y indicate the position where the drag ended. Accepted is true if the Target accepted the dragged object.

Finished is overridden and implemented in TBaseDragControlObject.

See Also