Toolbar button text

F

faramir

Hi

I have made a toolbar with 6 buttons, here is an example of one

Set vsoToolbarItem = vsoToolbarItems.Add
vsoToolbarItem.CntrlType = visCtrlTypeBUTTON
vsoToolbarItem.Caption = "Links"
vsoToolbarItem.AddOnName = "CallsToStencil.makeLinksBlack"

Now i would like to set a text on the button, i can do it manuel. I
would like to do it by code, but don't know how to do it.

Soren
 
C

Chris Roth [ Visio MVP ]

I tried this and it worked:

vsoToolbarItem.Style = visButtonIconandCaption
vsoToolbarItem.Caption = "Hello World"

--

Hope this helps,

Chris Roth
Visio MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top