Skip to main content

TdxCustomDockControl.OnCreateLayoutSite Event

Fires in response to layout site creation.

Declaration

property OnCreateLayoutSite: TdxCreateLayoutSiteEvent read; write;

Remarks

When a control is docked to a dock site it becomes the dock site’s child control. Also, a layout site is created and made a child of the dock site. After this has been done, you can dock controls to the layout site. If another dock control is docked to it, the layout site becomes the parent for the control and another layout site is created, etc.

Each time a layout site is created, the OnCreateLayoutSite event of its parent is raised. The Sender parameter identifies the control that is the layout site’s parent. The ALayoutSite parameter represents the layout site created. Handle this event if you need to modify settings when creating layout sites.

See Also