5

I've built an add-in toolbar with two buttons. Works great, but I'd like to make the toolbar a little wider so that the user can see it's full caption. Is there a property I can adjust in the Config.esriaddinx file to force the toolbar to be wider? Or do I have to make each of my button images wider?

1
  • 3
    I don't think it is possible to set the toolbar width using a property as the toolbars resize automatically to fit their contents. You could add a ComboBox, set it to disabled and if needed set its width using the sizeString attribute in the .esriaddinx file -- a bit tacky. There are built-in toolbars that have this problem as well (e.g. Globe View Tools in ArcCatalog), so it seems ESRI felt it to not be a big enough deal to do anything about it.
    – blah238
    Sep 29, 2011 at 22:37

1 Answer 1

2

The button images in toolbar commands are limited to 16x16 pixel so you won't be able to change the size of the toolbar that way. Command buttons don't display the caption in Add-ins. If you hover they show the tip in a popup and the message in the ArcMap message bar, but otherwise just the image is shown. However, if the command in nested in a menu then it will show the image and caption. If you are referring to the title bar of an undocked toolbar then there is nothing you can do except add 'dummy' space to your toolbar with a disabled menu,combobox,etc.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.