Skip to main content

TcxTreeListPopupMenu Class

Represents a TreeList control’s generic context menu.

Declaration

TcxTreeListPopupMenu = class(
    TcxTreeListCustomPopupMenu
)

Remarks

The TreeList control allows you to display either built-in or custom menus as context menus. The built-in menu is automatically populated with predefined menu items, while a custom menu can be represented by any TMenu descendant. You can specify which menu type is displayed and customize its contents using the TcxTreeListPopupMenu class members. These members allow you to:

  • Enable the built-in menu to be displayed as a context menu and access its items (UseBuiltInMenu and BuiltInMenu).

  • Customize the contents of the context menu being invoked (OnPopup).

  • Create custom menu items within the built-in menu and provide images for them (CreateMenuItem and UserImages).

  • Respond to clicks on built-in menu items (OnClick).

Descendants of the TcxTreeListPopupMenu class (TcxTreeListFooterPopupMenu, TcxTreeListGroupFooterPopupMenu, and TcxTreeListColumnHeaderPopupMenu) represent context menus for certain visual elements. The built-in menus associated with these classes contain items that are specific to a corresponding visual element.

See Also