STK UI PluginsSend comments on this topic.
AddMenuItem Method (IAgUiPluginContextMenuBuilder)
See Also
CommandID
A named command associated with the custom context menu item.
Title
A text displayed in the context menu.
Description
A text displayed in the status bar.
PictureDisp
An icon associated with the context menu item. If null, no icon will be displayed.
Windows





Windows & Linux

Description

Adds a menu item to an existing context menu.

Syntax

[Visual Basic .NET]
Public Sub AddMenuItem( _
    ByVal CommandID As String, _
    ByVal Title As String, _
    ByVal Description As String, _
    ByVal PictureDisp As Picture _
)
[C#]
public void AddMenuItem(
    string CommandID,
    string Title,
    string Description,
    System.Drawing.Image PictureDisp
);
[Managed C++]
public: void AddMenuItem(
    String __gc ^ CommandID,
    String __gc ^ Title,
    String __gc ^ Description,
    stdole::IPictureDisp ^ PictureDisp
);
[Unmanaged C++]
public: HRESULT AddMenuItem(
    BSTR CommandID,
    BSTR Title,
    BSTR Description,
    stdole::IPictureDisp * PictureDisp
);
[Java]
public void addMenuItem(
    String CommandID,
    String Title,
    String Description,
    Picture PictureDisp
);

Parameters

CommandID
A named command associated with the custom context menu item.
Title
A text displayed in the context menu.
Description
A text displayed in the status bar.
PictureDisp
An icon associated with the context menu item. If null, no icon will be displayed.

Remarks

AddMenuItem method is used by the User Interface plugins to configure the context menu displayed when a user right-clicks on an scenario's object.

See Also

© 2025 Analytical Graphics, Inc. All Rights Reserved.