Skip to main content

TdxNavBarGroupControlOptions.UseControl Property

Specifies whether custom controls can be embedded into a group’s client area.

Declaration

property UseControl: Boolean read; write; default False;

Property Value

Type Default
Boolean False

Remarks

Set the UseControl property to True when you need to embed controls into the group. When this is done, a panel descendant filling the group’s client area is created. At design time, you can simply drag controls to this panel to provide the group’s content. At runtime, you can add controls to the group by specifying this panel as their parent control. Use the group’s Control property to access the panel.

Note that the panel, together with the controls it contains, is displayed only when the ShowControl property value is True. If the UseControl property value is changed, the same value is assigned 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 UseControl property is False.

See Also