Sign in Join
FPDoc Onlineexperiment

TDragDockObject class

In unit Controls

A drag object for drag-dock.

Declaration

pascal
TDragDockObject = class(TDragObject)

Inheritance

  1. TDragDockObject
  2. TDragObject

Descends from it: TDragDockObjectEx

Description

This object type serves two main purposes: it allows one to distinguish between drag-drop and drag-dock operations, and it implements docking specific information and behavior.

The primary use is for tree docking, as assumed by methods in TControl and TWinControl.

See also

Properties

DockOffsetpublicThe hotspot offset of the dragged DockRect.
DockRectpublicScreen coordinates for a possible drop location.
DropAlignpublicHow the dragged control will be docked, relative to the target control.
DropOnControlpublicThe already docked control, relative to which the dragged control will be docked. Nil for an empty docksite.
FloatingpublicThe final state of the dragged control (after drop).
IncreaseDockAreapublicIndicates whether the dock site is enlarged after a Control has been docked.
EraseDockRectpublicArea to be erased when refreshing the display for the docking rectangle.

Methods

AdjustDockRectprotectedAdjust the DockRect relative to the dragging hotspot (DockOffset).
GetDragCursorprotectedGets the drag cursor shape for the class instance.
EndDragprotectedFinish docking.
InitDockprotectedInitializes the dragging coordinates.
ShowDockImageprotectedShows the DockRect, and remembers the coordinates in EraseDockRect.
HideDockImageprotectedHides the DockRect, and invalidates EraseDockRect to prevent further erases.
MoveDockImageprotectedMoves an already visible DockRect.
HasOnDrawImageprotectedChecks for an assigned OnDrawDockImage event handler.

Inherited

From TDragObject (13)

AlwaysShowDragImages AutoCreate AutoCreated AutoFree Control Create DragPos DragTarget DragTargetPos Dropped GetDragImages HideDragImage ShowDragImage

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.