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

TDragManager

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

TDragManager - a class for managing the dragging of controls (eventually to be dropped or docked)

Declaration

Source position: controls.pp line 420

type TDragManager = class(TComponent)

protected

  procedure KeyUp(); virtual; abstract;

  

  procedure KeyDown(); virtual; abstract;

  

  procedure CaptureChanged(); virtual; abstract;

  

  procedure MouseMove(); virtual; abstract;

  

  procedure MouseUp(); virtual; abstract;

  

  procedure MouseDown(); virtual; abstract;

  

public

  constructor Create(); override;

  

  function IsDragging; virtual; abstract;

  

  function Dragging(); virtual; abstract;

  

  procedure RegisterDockSite(); virtual; abstract;

  

  procedure DragStart(); virtual; abstract;

  

  procedure DragMove(); virtual; abstract;

  

  procedure DragStop(); virtual; abstract;

  

  property DragImmediate: Boolean; [rw]

  

Is the dragging process to start immediately the control receives focus (eg gets captured by mouse)?

  property DragThreshold: Integer; [rw]

  

The threshold amount by which the mouse must move before the dragging process starts.

end;

Inheritance

TDragManager

  

TDragManager - a class for managing the dragging of controls (eventually to be dropped or docked)

|

TComponent

|

TObject

Description

The declaration contains a number of procedure definitions that are 'virtual' and 'abstract'. This means that there is no implementation specified: these essentially represent 'place-holders', and it is the responsibility of the developer of descendant classes to override these methods and implement them as desired.

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