EnableSystemPopupMenu: Boolean;
The EnableSystemPopupMenu property determines whether the system context menu is available for the elements displayed in the component.
Available values:
True. System context menu is available. The list of items depends on the object type, for which context menu is called.
False. Default value. System context menu is unavailable.
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.
The example of use is given in description of the IMetabaseListView.Root property.
See also: