Public Function OnContextMenu(ByVal x As Integer, ByVal y As Integer) As Boolean Implements ESRI.ArcGIS.SystemUI.ITool.OnContextMenu ' Get the tool's context menu and show it. Dim uid As New UID uid.Value = "{" & ContextMenu.ClassId & "}" Dim menu As ICommandBar = DirectCast(m_application.Document.CommandBars.Find(uid), ICommandBar) menu.Popup() ' Return True so that ArcMap's Data Frame context menu is suppressed. Return True End Function
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.