[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'Controls' (#lcl)

# TDragImageListResolution.EndDrag

Removes the drag lock and restores the saved cursor when the drag operation has ended.

## Declaration

Source position: controls.pp line 428

`public function TDragImageListResolution.EndDrag: Boolean;`

## Function result

Value in the Dragging property on entry.

## Description

EndDrag is a Boolean function used to remove the drag image from the image resolution. EndDrag calls the DragUnlock method to hide the drag image, and to reset the internal lock window and drag position used in the class instance. The corresponding method (EndDrag) in the widgetset class is called.

Dragging is set to False prior to exit from the method. EndDrag restores the previous cursor shape by calling the EndTempCursor method in the Screen singleton.

No actions are performed in the method if Dragging is set to False.

The return value contains the value from the Dragging property on entry into the method.

EndDrag is called from the EndDrag method in TDragImageList.

## See also

TDragImageListResolution.Dragging |  | Indicates that BeginDrag has been called for the image resolution.
TDragImageListResolution.DragUnlock |  | Hides the Drag image and removes the update lock for the Window.
TDragImageList.EndDrag |  | Finish dragging of the image, restore the old cursor shape.