TEndDragEvent procedure type
The type of an OnEndDrag handler.
Declaration
TEndDragEvent = procedure(Sender: TObject; Target: TObject; X: Integer;
Y: Integer) of objectArguments
Sender | The dragged control. |
Target | The drop target (control), or Nil if cancelled. |
X | The mouse coordinate, in client coordinates if dropped, else in screen coordinates. |
Y | The mouse coordinate, in client coordinates if dropped, else in screen coordinates. |
Description
An OnEndDrag event is sent for a dragged control, when the drag operation is finished. This happens regardless of whether the operation was drag-drop or drag-dock, and whether the operation ended with a drop or was cancelled.
Check for an unassigned value in Target to distinguish between a drop and a cancelled operation (Nil).
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
