RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TBaseDragControlObject.Finished Method

Finished ends a drag and drop operation.

Pascal
procedure Finished(Target: TObject; X: Integer; Y: Integer; Accepted: Boolean); override;
C++
virtual __fastcall Finished(TObject * Target, int X, int Y, Boolean Accepted);

Finished is called automatically when the user drops the control or cancels the drag operation. Accepted indicates whether the Target control at X, Y position accepts the drag and drop or drag and dock operation. If a target does not accept the dragged object, its DragCanceled method is called before the EndDrag method generates an OnEndDrag event. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!