Skip to main content

TdxNavBarGroup.Control Property

Provides access to the control used as the container for custom controls within the current group.

Declaration

property Control: TdxNavBarGroupControl read;

Property Value

Type
TdxNavBarGroupControl

Remarks

The NavBar control provides the ability to embed custom controls within the group’s client area. For this, the OptionsGroupControl.ShowControl property must be set to True. In this case, the group’s client area is filled by a TdxNavBarGroupControl control – a TCustomPanel descendant. This control provides all the functionality needed to use it as the container for other controls. Use the Control property to access it.

The Control property can be used for two purposes. The first is to customize the controls container. For instance, you may want to change its background color (which is actually the group’s client area background). The second purpose is for obtaining the control to assign it to the Parent property of other controls. This is required if you want to add controls to the group at runtime.

Note

the control available via the Control property is created when the OptionsGroupControl.UseControl property is set to True and destroyed when it set to False. Thus, if the OptionsGroupControl.UseControl property value is False, the Control property will return nil.

See Also