Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxCustomDockControl.OnCreateLayoutSite Event

In This Article

Fires in response to layout site creation.

#Declaration

Delphi
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