Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxTreeListPopupMenu Class

Represents a TreeList control’s generic context menu.

#Declaration

Delphi
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