IMetaAttributesBreadcrumbDimTreePopupEventArgs.PopupMenu

Syntax

PopupMenu: IPopupMenu;

Description

The PopupMenu property determines context menu in the drop-down list of the MetaAttributesBreadcrumb component.

Comments

As a context menu, use the PopupMenu development environment component.

Example

Executing the example requires that the repository contains:

Add a link to the Metabase system assembly.

// Form open event
Sub POPUPMENUFormOnShow(Sender: Object; Args: IEventArgs);
Begin
    mab.Rubricator := MetabaseClass.Active.ItemById("FC").Open(NullAs IRubricatorInstance;
    mab.ApplyDefaultAttributesOrder;
End Sub POPUPMENUFormOnShow;

// Event on opening context menu in the drop-down list of the component
Sub mabOnDimTreePopup(Sender: Object; Args: IMetaAttributesBreadcrumbDimTreePopupEventArgs);
Begin
    Args.PopupMenu := pm;
    Debug.WriteLine("Dictionary key - " + Args.DimSelection.Dimension.Key.ToString);
End Sub mabOnDimTreePopup;

After executing the example in the MetaAttributesBreadcrumb component in the drop-down list on the right mouse button click:

See also:

IMetaAttributesBreadcrumbDimTreePopupEventArgs