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. |
|
Andrei Smolin
Add-in Express team
Posts: 19138
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 |
|
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.
|
|
Andrei Smolin
Add-in Express team
Posts: 19138
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 |
|