Toolbar button don't change width when language is changed

Add-in Express™ Support Service
That's what is more important than anything else

Toolbar button don't change width when language is changed
 
Vanco Panajotov




Posts: 8
Joined: 2009-05-13
Hi,

When I change language in my MS Project addin, width of buttons stay same. If caption in new language is shorter than caption in old language, then width of button stay as previos, button don't shrink. In reverse situation, button's width is grown. How to resolve this?
Thank you.

Best Regards.
Posted 10 Jul, 2009 12:14:53 Top
Andrei Smolin


Add-in Express team


Posts: 18806
Joined: 2006-05-11
Hello Vanco,

If you talk about a command bar button, then its width is controlled either by your code or by the host application itself. Add-in Express does nothing to change its width.


Andrei Smolin
Add-in Express Team Leader
Posted 13 Jul, 2009 07:38:52 Top
Vanco Panajotov




Posts: 8
Joined: 2009-05-13
Hi Andrei,

Thank you for your post.
I talk about AddinExpress.MSO.ADXCommandBar and AddinExpress.MSO.ADXCommandBarButton. But it is OK. I find the solution for this. After change the language, I programmaticaly put the caption = "" for all buttons on ADXCommandBar, and also I change the width to MeasureText of "" string. This change the width to 23 pixels. After I put the captions on another language, width of buttons is expanded to appropriate width and it's look good.
I hope this information is helpful for another colegues.

But here is not the end of my problems. When I uninstall addin, which is addin for MS Project 2003 and 2007, it is still visible in MS Project 2007. Good point is that it is nonfunctional, but customers will complain about this. In MS Project 2003 is good, there is not visible after uninstalling.
Can you help me?
Thank you in advanced.

Best Regards from Macedonia.
Posted 17 Jul, 2009 04:13:27 Top
Andrei Smolin


Add-in Express team


Posts: 18806
Joined: 2006-05-11
Hi Vanco,

Thank you very much for posting this solution!

addin ... is still visible in MS Project 2007


Does "visible" means "command bars aren't deleted? If so, try the following:
- unregister your add-in,
- start Project and remove the command bars via View | Toolbars | Customize
- set the Temporary property of your command bar components to True,
- register the add-in

Does this help?


Andrei Smolin
Add-in Express Team Leader
Posted 17 Jul, 2009 10:49:31 Top