B
bnk
Hello all.
Unfortunately I've run into troubles with menu customization...
The problem:
We've an addon that starts at visio start-up.
After the addon has started, it adds an item to Visio menu (sets
custom menu at the application level).
Next, the user customizes the Visio menus manually.
The problem is that after user has customized the menu, Visio just
forgets about the customization addon has made.
More precisely, immediately after user had customized the menu,
addon's item is still there, and works, but Application.CustomMenus
returns menu that does not have addon's menu item. But, after calling
UpdateUI (or updating menu in some other way, like opening a
document), the addon's menu item diappears not only from
Application.CustomMenus, but also from visual menu.
I suspect that user customization is applied NOT to current custom
menu, but to some other menu (wich?), and the 'logical' menu after
that customization becomes de-syncronized with 'visual' menu.
The question is, how do I prevent addon's the menu from disappearing
after user customization? Or is there a work-around for this problem?
All I've found is either disabling user customization or monitoring
visio's menu and restoring addon's menu item if it has eventually
disappeard.. but this doesn't seem to be a neat solution ...
Any other ideas? Or have I missed something?
Regards, Nikolay.
Unfortunately I've run into troubles with menu customization...
The problem:
We've an addon that starts at visio start-up.
After the addon has started, it adds an item to Visio menu (sets
custom menu at the application level).
Next, the user customizes the Visio menus manually.
The problem is that after user has customized the menu, Visio just
forgets about the customization addon has made.
More precisely, immediately after user had customized the menu,
addon's item is still there, and works, but Application.CustomMenus
returns menu that does not have addon's menu item. But, after calling
UpdateUI (or updating menu in some other way, like opening a
document), the addon's menu item diappears not only from
Application.CustomMenus, but also from visual menu.
I suspect that user customization is applied NOT to current custom
menu, but to some other menu (wich?), and the 'logical' menu after
that customization becomes de-syncronized with 'visual' menu.
The question is, how do I prevent addon's the menu from disappearing
after user customization? Or is there a work-around for this problem?
All I've found is either disabling user customization or monitoring
visio's menu and restoring addon's menu item if it has eventually
disappeard.. but this doesn't seem to be a neat solution ...
Any other ideas? Or have I missed something?
Regards, Nikolay.