Unit 'Controls' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#lcl]

TWinControl.DockOver

Called to check whether this control allows docking and where.

Declaration

Source position: controls.pp line 2173

protected procedure TWinControl.DockOver(

  Source: TDragDockObject;

  X: Integer;

  Y: Integer;

  State: TDragState;

  var Accept: Boolean

); virtual;

Arguments

Accept

  

Initially True, set to False to reject an drop.

Description

Called for messages from the DragManager including: dmEnter, dmLeave, and dmMove. Gets the DockRect to show.

Positions the DockRect, and invokes OnDockOver (via DoDockOver).

Everything can be overridden using the OnDockOver handler, when assigned.

See also

TControl.PositionDockRect

  

Get the DockRect for an possible drop.

TWinControl.OnDockOver

  

Event handler for moves of a control over this docksite; determines acceptance or rejection of an possible drop.



CT Web help

CodeTyphon Studio