RAD Studio VCL Reference
TPageControl.GetSiteInfo Method

Returns the page control's docking information.

procedure GetSiteInfo(Client: TControl; var InfluenceRect: TRect; MousePos: TPoint; var CanDock: Boolean); override;
virtual __fastcall GetSiteInfo(TControl * Client, TRect InfluenceRect, TPoint MousePos, Boolean CanDock);

Call GetSiteInfo to determine the docking region of the page control and whether a dragged window can be docked. 

Client is a potential docking client. 

InfluenceRect returns the area in which the client can be docked. 

MousePos is the current mouse position. 

CanDock indicates whether the client can be docked in the page control. 

GetSiteInfo Initializes CanDock to true if Client is not already docked in the page control. It then inflates the influence rectangle by 10 pixels and generates an OnGetSiteInfo event. 


Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!