AGI Ui Plugins 11 Send comments on this topic.
OnDisplayMenu Method (IAgUiPlugin2)
See Also 





Description

OnDisplayMenu is invoked by the hosting application when a context menu or a top level menu is about to be displayed. Using the specified menu builder, UI Plugins can add custom menu items or sub-menus to the context menus or top level menus.

Syntax

[Visual Basic .NET]
Public Sub OnDisplayMenu( _
   ByVal MenuTitle As String, _
   ByVal MenuBarKind As AgEUiPluginMenuBarKind, _
   ByVal MenuBuilder As IAgUiPluginMenuBuilder2 _
) 

[Managed C++]
public: void OnDisplayMenu(
String __gc ^ MenuTitle,
AgEUiPluginMenuBarKind MenuBarKind,
IAgUiPluginMenuBuilder2 ^ MenuBuilder
);

[Unmanaged C++]
public: HRESULT OnDisplayMenu(
BSTR MenuTitle,
AgEUiPluginMenuBarKind MenuBarKind,
IAgUiPluginMenuBuilder2 * MenuBuilder
);

Parameters

MenuTitle
MenuBarKind
Member Value Description
eUiPluginMenuBarTopLevelMenu 1 This enumeration is deprecated. A top level menu bar.
eUiPluginMenuBarPopupMenu 2 A pop-up menu that is displayed when users click on an menu bar button.
eUiPluginMenuBarContextMenu 3 A context menu.
MenuBuilder

See Also

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1