Why doesn't OnContextMenu fired on Browser?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Actually the graphic area is the only place OnContextMenu fires. Specifically I'm interested in knowing when the context menu is fired when the Vault Browser menu is active, when a file(s) is selected or when no file is selected. According to Brian Ekins in the following discussion thread, it is possible to fire OnContextMenu for the Browser.http://forums.autodesk.com/t5/Autodesk-Inventor-Customization/Tree-Browser-Menu/m-p/972465/highlight...
Private WithEvents moUserInputEvents As Inventor.UserInputEvents
Public Sub Activate(ByVal addInSiteObject As Inventor.ApplicationAddInSite, _
ByVal firstTime As Boolean) Implements Inventor.ApplicationAddInServer.Activate
goInvApp = addInSiteObject.Application
moCommandManager = goInvApp.CommandManager
moUserInputEvents = moCommandManager.UserInputEvents
End Sub
Private Sub moUserInputEvents_OnContextMenu( _
ByVal SelectionDevice As Inventor.SelectionDeviceEnum, _
ByVal AdditionalInfo As Inventor.NameValueMap, _
ByVal CommandBar As Inventor.CommandBar) Handles moUserInputEvents.OnContextMenu
MsgBox(CommandBar.DisplayName)
End Sub