TdxNavBarGroupControlOptions.ShowControl Property
Specifies whether a group’s client area displays links or custom controls.
Declaration
property ShowControl: Boolean read; write; default False;
Property Value
Type | Default |
---|---|
Boolean | False |
Remarks
The NavBar control allows you to embed controls into the group’s client area. To enable this feature, set the UseControl property to True. This creates a specially designed control (a panel descendant) that fills the group’s client area. This control serves as the container for controls you want to embed within the group.
When the UseControl property is set to True, you can force the group to display either links or the container control together with the controls residing on it. The ShowControl property is used for this purpose. When its value is True, controls are displayed. Otherwise, the group displays its links.
You can use the ShowControl property to switch between the controls view and the links view at runtime. This can be used, for instance, if a group contains control elements to perform operations on objects selected within another control. In such a case, you can switch between the controls view and links view depending on the type of object currently selected.
Note
changing the UseControl property value results in assigning the same value to the ShowControl property. As the control only exists while UseControl is True, changing the ShowControl property to True forces the UseControl property to True also. It is possible, however, to set ShowControl to False without affecting the UseControl value.
The default value of the ShowControl property is False.