Could i do this on a CommandBarButton?

  • Thread starter Thread starter ryotyankou
  • Start date Start date
Status
Not open for further replies.
R

ryotyankou

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?


 
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.

ryotyankou wrote:
> 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?



 
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.

"ryotyankou " <u48591@uwe> wrote in message

news:990e35317fdc6@uwe...
> 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.

> ryotyankou wrote:
> >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?


> >
>
>
 
Status
Not open for further replies.
Similar threads

Similar threads

Back
Top