Sign in Join
FPDoc Onlineexperiment

TWinControl.DockOver procedure

Member of TWinControlprotectedIn unit Controls

Called to check whether this control allows docking and where.

Declaration

pascal
procedure DockOver(Source: TDragDockObject; X: Integer; Y: Integer; 
 State: TDragState; var Accept: Boolean); virtual

Arguments

Source
X
Y
State
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

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