Quantcast
Channel: Forums - ArcGIS for Desktop - General
Viewing all articles
Browse latest Browse all 2565

vba and custom ui control tool

$
0
0
Hi,

I am trying to get a tooltip for a custom toolbar. The UIcontrol tool is called : UISelectionTool.
It is located in the tool bar named test. I cannot reference this properly. The pcmdItem is blank.

Private Function UISelectionTool_ToolTip() As String
Dim pCommandBars As ICommandBars
Set pCommandBars = ThisDocument.CommandBars
Dim pUid As String
'Dim pCommandItem As ICommandItem

Dim pCommandBar As ICommandBar

Dim pCmdItem As ICommandItem
Set pCommandBar = pCmdItem
' Use ArcID module and the Name of the Save command
Set pCmdItem = Application.Document.CommandBars.Find(Project.ThisDocument.UISelectionTool)
pCmdItem.Execute
UISelectionTool_ToolTip = "Test"

end function
Attached Thumbnails
Click image for larger version

Name:	example (1).jpg‎
Views:	N/A
Size:	83.8 KB
ID:	22512  

Viewing all articles
Browse latest Browse all 2565

Trending Articles