Skip to main content

TdxCustomDockControl.OnCreateTabContainer Event

Fires in response to tab container creation.

Declaration

property OnCreateTabContainer: TdxCreateTabContainerEvent read; write;

Remarks

When a dock control is docked to fill the client area of another control, a tab container is created. The OnCreateTabContainer event is raised immediately after this has been done. The Sender parameter identifies the control to which another control has been docked. The ATabContainer parameter represents the tab container created. You can use the Children property of the tab container to access all of its children.

Handle the OnCreateTabContainer event if you need to perform particular initialization when creating tab containers. Note that the event fires for the control to which another control has been docked. If the current dock control has been docked to another control to create a tab container, the target control’s OnCreateTabContainer event is raised.

See Also