RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TBaseDragControlObject.EndDrag Method

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

Pascal
procedure EndDrag(Target: TObject; X: Integer; Y: Integer); virtual;
C++
virtual __fastcall EndDrag(TObject * Target, int X, int Y);

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. 

 

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