Skip to main content

TdxBarCustomPopupMenu Class

The base class for classes implementing the Ribbon Application Menu, and contextual menus for the Ribbon and toolbars.

Declaration

TdxBarCustomPopupMenu = class(
    TdxBarCustomPopupMenuComponent,
    IcxPopupMenu,
    IcxPopupMenu2,
    IdxBarSubMenuOwner
)

Remarks

At design time, you can populate the popup menu with the bar manager’s (see the menu’s BarManager property) items using the PopupMenu Editor and Customization Form. To invoke these dialogs, double-click an icon of the appropriate menu control dropped on a form, or right-click this icon and select the PopupMenu Editor… item in the displayed popup menu. Alternatively, using the Object Inspector, you can click the ellipsis button next to the menu’s ItemLinks property to invoke these dialogs. Once dialogs are open, drag the required items from the Customization Form to the PopupMenu Editor.

The menu’s ItemLinks property provides access to the collection of items that make up the menu. At runtime, you can populate the menu’s ItemLinks collection with the bar manager’s items, by using one of the following methods: Add, AddButton, AddItem and AddSubItem.

The Customizing Popup Menu topic details how to build toolbar context menu.

TdxBarCustomPopupMenu descendants include: TdxBarPopupMenu, TdxRibbonCustomPopupMenu, and TdxBarCustomApplicationMenu.

See Also