vcl-dxribbon-dot-tdxribbontabgroup.md
Specifies whether the group can be collapsed into one bar item when the Ribbon is horizontally decreased.
property CanCollapse: Boolean read; write; default True;
| Type | Default |
|---|---|
| Boolean | True |
Designed with four different sizes for each group so as to effectively scale up or down when the Ribbon is horizontally resized.
| State | Image |
|---|---|
| Large | |
| Medium | |
| Small | |
| Collapsed |
The smallest size represents the collapsed state of the group – when the group shrinks to its minimum width and only one item is shown.
Set the CanCollapse property to True to allow group collapse. Otherwise, it will only decrease to a small state. You can prohibit the tab group from expanding and/or collapsing via the Restriction property.
Note
specified states are supported by the Ribbon, if corresponding flags on the item’s ViewLevels property are active ( ivlLargeIconWithText , ivlSmallIconWithText , ivlSmallIcon , respectively).
Handle the Ribbon control’s OnTabGroupCollapsed and OnTabGroupExpanded events to respond when a group is collapsed or expanded within a Ribbon tab. Use a toolbar’s Glyph property to specify the icon to be displayed within a collapsed group.
The default value of the CanCollapse property is True.
See Also
TdxCustomRibbon.OnTabGroupCollapsed