RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Controls.TGetSiteInfoEvent Type

TGetSiteInfoEvent is the type of the OnGetSiteInfo event handler.

Pascal
TGetSiteInfoEvent = procedure (Sender: TObject; DockClient: TControl; var InfluenceRect: TRect; MousePos: TPoint; var CanDock: Boolean) of object;
C++
(Sender: TObject; DockClient: TControl; var InfluenceRect: TRect; MousePos: TPoint; var CanDock: Boolean) ( TGetSiteInfoEvent)();

Sender is the dock site.  

DockClient is the control being dragged.  

InfluenceRect is the rectangle in which the mouse must be positioned for the dock site to accept a dragged control. By default, InfluenceRect is the area of the target control, expanded by 10 pixels on each side. This can be adjusted by the event handler.  

MousePos is the position of the mouse pointer.  

CanDock returns whether the dragged control can be docked to the dock site. 

 

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