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

# TCustomControlBar.OnBandDrag

Event handler signalled when a drag operation is about to begin for a band on the control bar.

## Declaration

Source position: extctrls.pp line 1674

`public property TCustomControlBar.OnBandDrag : TBandDragEvent read FOnBandDrag write FOnBandDrag;`

## Description

OnBandDrag can be used to determine if the TCtrlBand instance can be used in a drag and drop operation. The Drag argument can be set to False in the event handler to prevent the drag and drop operation.

Called from the DragControl method before the Drag manager starts the drag and drop operation for the band.

## See also

TCustomControlBar.DragControl |  | Signals an assigned OnBandDrag event handler and starts a drag operation for the specified control.
TCtrlBand |  | Represents a band and control displayed by TControlBar.
TBandDragEvent |  | Specifies an event handler signalled when a control on a band is dragged.
DragManager |  | The current DragManager (always TDragManagerDefault).
TDragManager |  | The abstract base class used to manage dragging of controls (for drop or dock operations).