Could i do this on a CommandBarButton?

  • Thread starter ryotyankou via OfficeKB.com
  • Start date
R

ryotyankou via OfficeKB.com

The content of caption is a string, click on it will visit the web.(Already
work.) What i want is to set button width fixed, no matter what string its
caption be changed to, button width will not change. I use PutWidth method,
but while caption change, the width also change. Of course, My caption string
may longer than button width, user then couldn't see all string content,
could i make the string scroll in the button(CommandBarButton)? Any ideas?
 
R

ryotyankou via OfficeKB.com

It seems that the answer is no, i can't do it.
How about use _CommandBarActiveX, create my own _CommandBarActiveX, then load
it into my toolbar button? How could i create my _CommandBarActiveX? Any
articles or links? TIA.
 
K

Ken Slovak - [MVP - Outlook]

No, you can only use the controls that are there. If you want something else
you'd have to use something like Add-In Express, or do what they do. They
put the controls on the toolbar using purely Win32 API techniques and listen
for events and such using Windows hooks. They're basically overlaying the
controls over the toolbar.
 

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