Hi,
I created a menu in GP 2013 using Menus for Visual Studio for Dynamics GP 2013 and the menus are there and I can open my forms. But a feature our client want is to be able to add the menu to the toolbar like a shortcut. When I go to the "Toolbar Customization", my menu items aren't there, but the items I added with Dexterity are there. Is there some kind of flag or something special with need to do when we create the menu in C# to be able to add them to the toolbar ?
I'm also looking for the GP 2015 version of the Menus for VS , but can't seem to find them. Did they update them already ?
Thanks for the help.
Hugo DB
*This post is locked for comments
Thanks for the detailed explanation David, this answer my question very well.
I knew this was listed as a limitation in the Menus PDF document, didn't know the reason why, thanks for the full explanation.
Hi Hugo
Support for the Toolbar Customisation window is complex when it comes to Menus for Visual Studio Tools.
To get menu items to be available in the Toolbar Customisation window you will need to add the menus to memory (as it already does) and also to the syMenuMstr table (which it does not do).
The problem is that the menus are dynamic and the command ID of the menu used for each of your options is assigned when you register your menu. This is fine for displaying the menus in memory. To get something onto the toolbar would require the menu choice being added to the table, but the command ID could be different every time you log in or switch company. So the data stored in the Toolbar tables which points to a command in the Menus for VST dictionary could point to a non-existent or different command ID.
It might be possible to work around the issue by allowing you to request a menu item be added to a toolbar dynamically, once you have the menu registered. It will then add the command to the requested toolbar in memory and not use the tables. That way it will be dynamic as well and can handle working with the dynamic menus.
As for a version for Microsoft Dynamics GP 2015, you will need to request that from Microsoft. I would suggest logging a support case or using MS Connect.
David Musgrave
Original developer of Menus for Visual Studio Tools
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156