Unit 'Controls' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#lcl]

TControl.BeginDrag

Starts a drag operation for the control (programmatically).

Declaration

Source position: controls.pp line 1635

public procedure TControl.BeginDrag(

  Immediate: Boolean;

  Threshold: Integer = - 1

);

Arguments

Immediate

  

If False, start dragging only after the mouse has moved.

Threshold

  

Minimum mouse movement before delayed dragging starts (in pixels); -1 uses the DragManager default. Ignored when Immediate=True.