TdxContainerDockSite.ActiveChildIndex Property
Specifies the child control currently active by its index within the container.
Declaration
property ActiveChildIndex: Integer read; write;
Property Value
Type |
---|
Integer |
Remarks
Use the ActiveChildIndex property to specify the active control within the container site. Assign the desired child control’s DockIndex property value to this property to perform this. If the assigned value is negative or exceeds the last available child index, the container will not have an active child.
The ActiveChildIndex property is useful if you know the dock index of the desired control. For instance, you may want to make the first, last, previous or next child to be activated. If you need to make a particular control active, you can assign the control directly to the container’s ActiveChild property or call the container site’s ActivateNextChild method.
When changing the active child of a dock control, the OnActiveChildChanged event is raised.