Sign in Join
FPDoc Onlineexperiment

TWinControl.GetSiteInfo procedure

Member of TWinControlprotectedIn unit Controls

Return information about this dock site (InfluenceRect).

Declaration

pascal
procedure GetSiteInfo(Client: TControl; var InfluenceRect: TRect; 
 MousePos: TPoint; var CanDock: Boolean); virtual

Arguments

Client

The dragged control.

InfluenceRect

The screen rectangle within which a drop is allowed.

MousePos

The current mouse position.

CanDock

Can be set to False to reject an drop.

Description

The InfluenceRect determines the screen coordinates, within which a drop is accepted. The InfluenceRect is the slightly inflated WindowRect for the dock site, and can be adjusted in the OnGetSiteInfo event handler.

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