TdxContainerDockSite.ActiveChild Property
Specifies the container site’s currently active child.
Declaration
property ActiveChild: TdxCustomDockControl read; write;
Property Value
Type |
---|
TdxCustomDockControl |
Remarks
Use the ActiveChild property to access the currently active child of the container site. For tab containers, the active child is the child dock control whose corresponding tab is currently selected. For side containers, the active child is the maximized child control. If there is no currently active child control, the ActiveChild property returns nil.
You can also use the ActiveChild property to set the container’s active child. Assign the desired child dock control to this property to perform this. Note that assigning a control that is not the container’s child has no effect. If nil is assigned to the ActiveChild property, the container will not have an active child.
You can also activate a child dock control via:
the container’s ActiveChildIndex property;
the container site’s ActivateNextChild method.
When changing the active child, the OnActiveChildChanged event is raised.