RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomControlBar.DragControl Method

Starts a drag operation on a control band.

Pascal
function DragControl(AControl: TControl; X: Integer; Y: Integer; KeepCapture: Boolean = False): Boolean; virtual;
C++
virtual __fastcall Boolean DragControl(TControl * AControl, int X, int Y, Boolean KeepCapture = False);

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. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!