IMetabaseListView.EnableSystemPopupMenu

Syntax

EnableSystemPopupMenu: Boolean;

Description

The EnableSystemPopupMenu property determines whether the system context menu is available for the elements displayed in the component.

Comments

Available values:

Whatever the EnableSystemPopupMenu property value is, if the context menu is called for the element, the MetabaseListView.OnGetItemPopup event will be generated for the event. The element, for which context menu is called, will be available in the IMetabaseListViewItemPopupEventArgs.Item property of the event argument. Using the IMetabaseListViewItemPopupEventArgs.PopupMenu property, it is possible to set its own context menu, which will be displayed for the element. As a result, it is possible to set up calling of various context menus for different elements.

Example

The example of use is given in description of the IMetabaseListView.Root property.

See also:

IMetabaseListView