STK UI PluginsSend comments on this topic.
OnDisplayMenu Method (IAgUiPlugin)
See Also
Windows





Windows & Linux

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 IAgUiPluginContextMenuBuilder _
)
[Managed C++]
public: void OnDisplayMenu(
    String __gc ^ MenuTitle,
    AgEUiPluginMenuBarKind MenuBarKind,
    IAgUiPluginContextMenuBuilder ^ MenuBuilder
);
[Unmanaged C++]
public: HRESULT OnDisplayMenu(
    BSTR MenuTitle,
    AgEUiPluginMenuBarKind MenuBarKind,
    IAgUiPluginContextMenuBuilder * MenuBuilder
);

Parameters

MenuTitle
MenuBarKind
MenuBuilder

See Also

© 2025 Analytical Graphics, Inc. All Rights Reserved.