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

# TControl.OnStartDrag

Event handler signalled for the start of a dragging operation.

## Declaration

Source position: controls.pp line 1601

`protected property TControl.OnStartDrag : TStartDragEvent read FOnStartDrag write FOnStartDrag;`

## Description

OnStartDrag is a TStartDragEvent property with the event handler signalled when a drag operation is started for the control. Use the event handler to perform actions needed when the drag operation is started, such customizing the drag cursor or initializing related drag event handlers.

The Sender argument is the TControl instance for the event notification.

The DragObject argument returns the TDragControlObject allocated by the drag manager when the drag operation was started.

## See also

TControl.OnStartDock |  | Event handler for the start of a docking operation.
TDragControlObject |  | A drag object for dragging a control.
TStartDragEvent |  | The type of an OnStartDrag handler.