TdxBarInPlaceSubItem Class
An in-place subitem.
Declaration
TdxBarInPlaceSubItem = class(
TdxBarContainerItem
)
Remarks
An in-place subitem (also called expandable subitem) allows you to organize bar items into an expandable submenu. Unlike the standard subitem, when clicked, the in-place subitem expands its submenu and embeds it into the parent menu.
An in-place subitem is collapsed. | |
---|---|
An in-place subitem is expanded. |
Depending on its location, an in-place subitem provides the expandable submenu or standard submenu functionality:
If an in-place subitem is located in a submenu or popup menu, the in-place subitem’s submenu will be expandable.
If an in-place subitem is located on a toolbar or menu, this in-place subitem will operate as a standard subitem, displaying its contents in a separate submenu.
The TdxBarInPlaceSubItem class introduces members that allow you to do the following:
Switch the expansion state (Expanded).
Respond to expansion state changes (OnAfterExpand and OnBeforeCollapse).
Emphasize the expanded subitem’s submenu contents within a parent menu (KeepBeginGroupWhileExpanded).