Skip to main content

TdxRibbonTabGroup Class

Declaration

TdxRibbonTabGroup = class(
    TcxInterfacedCollectionItem,
    IdxBarSelectableItem,
    IdxRibbonToolbarContainer,
    IdxAdornerTargetElement,
    IdxAdornerTargetElementCollection
)

Remarks

The purpose of the tab group is to assemble a set of related bar items into a separate group in the Ribbon.

It is the docking area for the bar whose items are to be placed into this group. To do this, first place item controls into a bar and then dock this bar into the group using the group’s ToolBar property.

A new group can be added to a tab at both design and runtime.

At design time you can use the tab’s Groups property editor. When the new group is created, dock the prepared toolbar into it – select the newly created group in the editor, then go to the Object Inspector and enter (or select from the drop-down list) the bar’s name into the ToolBar property.

At runtime, add a new group to the page using the tab’s Groups.Add method, and dock a bar via the ToolBar property. You can do the same in one step, by using the tab’s AddToolBar method.

A reference to an individual group instance can be obtained via the tab’s Groups.Items property.

See Also