Vcl.ExtCtrls.TCustomControlBar.DragControl
Delphi
function DragControl(AControl: TControl; X, Y: Integer;
KeepCapture: Boolean = False): Boolean; virtual;
C++
virtual bool __fastcall DragControl(Vcl::Controls::TControl* AControl, int X, int Y, bool KeepCapture = false);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | Vcl.ExtCtrls.pas Vcl.ExtCtrls.hpp |
Vcl.ExtCtrls | TCustomControlBar |
Description
Starts a drag operation on a control band.
Call DragControl to start a drag operation on a control band.
If AutoDrag is true, DragControl is called automatically when a control is undocked from the control bar.
AControl is the control on the band that should be dragged.
X and Y are the current positions of the mouse pointer.
KeepCapture indicates whether the control bar should capture the mouse when processing the drag.