How do I display multiple lines for a button when using a localization file?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a CommandHandlerPlugin plugin that has command buttons on the ribbon. I'm using a .name file for localizing my command button text as explained by these Autodesk posts: https://adndevblog.typepad.com/aec/2012/07/custom-ribbon-of-navisworks-part-1.html and https://adndevblog.typepad.com/aec/2012/07/custom-ribbon-of-navisworks-part-2.html
The text looks like:
ID_MyCommand.DisplayName=
Do Something Amazing
Because my command button's text is quite long and it's displayed as a single line in the ribbon, the command button is quite wide and takes up a lot of space. I would like to make it multiple lines so it's not as wide. But, Navisworks fails to load the plugin correctly because I'm not following the correct formatting rules (Lines starting with # or $, or ending with =), when I change the .name text to look like:
ID_MyCommand.DisplayName=
Do Something
Amazing
I can get it to work if I set the display text in code (the DisplayName property of the Command attribute), but then I'm losing the localization support.
How can I continue to use a .name file for my display text, but also have my display text be multi-line?