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

TControl.DragMode

Determines how a drag operation is started for the control.

Declaration

Source position: controls.pp line 1580

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

Description

DragMode is a TDragMode property which determines how a drag operation is started for the control.

dmManual is the default value, and indicates that drag operation must be started in code by calling the BeginDrag method.

dmAutomatic allows a drag operation to start when the mouse pointer is dragged over the control.

Use DragKind to specify whether the drag operation is a drag-and-drop or a drag-and-dock operation.

See also

TControl.BeginDrag

  

Starts a drag operation for the control (programmatically).

TControl.DragKind

  

Indicates the action performed for a drag operation: drag-and-drop or drag-and-dock.

TDragManager

  

The abstract base class used to manage dragging of controls (for drop or dock operations).


Version 3.2 Generated 2024-02-25 Home