Allows the UI plugin to add its own custom
context menus.
[Visual Basic .NET] |
---|
Public Sub OnDisplayContextMenu( _
ByVal MenuBuilder As IAgUiPluginMenuBuilder _
)
|
[C#] |
---|
public void OnDisplayContextMenu(
|
[Managed C++] |
---|
public: void OnDisplayContextMenu(
|
[Java] |
---|
public onDisplayContextMenu(
|
[Unmanaged C++] |
---|
public: HRESULT OnDisplayContextMenu(
|
- MenuBuilder
- The menu builder object provided by the hosting environment. The menu builder exposes methods to create custom context menus.
The hosting environment calls
OnDisplayContextMenu method whenever the context menu associated
with a currently selected scenario's element is displayed. User
Interface plugins can merge their custom menus to extend the
default functionality provided by the hosting environment.
In the example below,
MyFirstContextMenuCommand is a named command which is passed to the
IAgUiPluginCommandTarget.Exec method when user clicks on the custom
menu item.
Add a custom context menu item. | Copy Code | |
---|---|---|
|