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

TDockManager.PositionDockRect

Determines the DockRect while dragging a control over the docksite.

Declaration

Source position: line 0

public procedure TDockManager.PositionDockRect(

  ADockObject: TDragDockObject

); virtual; overload;

procedure TDockManager.PositionDockRect(

  Client: TControl;

  DropCtl: TControl;

  DropAlign: TAlign;

  var DockRect: TRect

); virtual; abstract; overload;

Description

This method updates DockRect for the visual feedback, when a control is dragged over the docksite.

The Delphi compatible version only can use the parameters determined by the default processing in the docksite.

The Lazarus specific version can update the DockObject with better suited parameters. A DockManager here can implement any algorithm for the placement of a dropped control. The default implementation calls the Delphi compatible version.

The DragDockObject.DockRect spans the entire DockSite.

See also

TDragDockObject

  

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