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

TControl.DragMode

Allows the user to drag the control.

Declaration

Source position: controls.pp line 1437

protected property TControl.DragMode : TDragMode
  read FDragMode
  write SetDragMode
  default dmManual;

Description

Default is dmManual, meaning that dragging must be started in code.

Set to dmAutomatic to allow the user to drag this control. In this mode dragging can start immediately (on left mouse button press) or delayed, after the mouse has been moved away by a number of pixels (Threshold).

See also

TControl.DragKind

  

The operation when the control is dragged - Drag or Dock.

TDragManager.DragImmediate

  

Start dragging immediately, on MouseDown?

The latest version of this document can be found at lazarus-ccr.sourceforge.net.