Hello,
I am wondering whether anyone can offer help in integrating two macros in an existing and working GMS add-on in the top-level menus or toolbars of CorelDraw X7 and 2017 (using UserUI.xslt, AppUI.xslt and coreldrw.addon files)? The macros worked without any issues in X5 and X6, but I am unable to get it to work with X7. I haven't tried 2017 but it is possible that it does not work either. This is a GMS VBA add-on with two simple macros that need to be called from submenus of a top-level menu. This should be a fairly quick job for someone who already integrated an add-on in CorelDraw menu system.The end client is willing to pay a reasonable fee for this. If anyone can help, please write to stasokhvat AT gmail DOT com.
Thank you.
Best regards,
Stanislav
I also struggled with that stuff, but I wanted to control with a menu some routines within a document. I found already a way to access the macros stored under GMS. I guess, this is what you are looking for:You need to have your macros somewhere in your GMS-Area. Then you can do the following: A right click in the Area of the menus will show you a menu with 'Customize'. There you have also the option 'Add Menu Bar' or 'New Menu Bar'. (I tried this a few times to explain you how to do, but the behavior was often different, I saw different menus, some had such a line, others not, Means: Try and Error). If you have then a menu (which is very tiny, means hard to see) you can go to Tools \ Customization then you find under Workspace \ Customization \ Commands most likely you macros. Then you can drag them from there in your menu.It's very tricky and I tried it often, but finally I succeeded. Maybe you have this luck too.
Thanks for the suggestions, NudeFan!Actually, my GMS file will be distributed to other users so it is necessary to add new menu items automatically when CorelDraw is started (using UserUI.xslt, AppUI.xslt and coreldrw.addon files). The process is described in some online resources but for some reason the solution which works in X5 and X6 no longer works in X7. Maybe someone on this forum can offer help with this on paid basis.Best regards,Stanislav
I used this guide to create my *.xslt files:
https://community.coreldraw.com/collaborate/w/howto/94/how-to-create-a-menu-or-a-button-for-your-macro-with-xml-in-coreldraw-x5-automatically
Also Shelby's blog worth a read too:
https://forum.oberonplace.com/blog.php?b=39018
If you have done all that and your menu is still not shown up you need to reset the CorelDRAW workspace. Press and hold F8 when CorelDRAW is starting up and click Yes. Make sure to backup your workspace beforehand.
Note that you need to reset the workspace everytime you update the menu (like adding new entries). I know this is kind of annoying and I wish CorelDRAW have interest to improve the process.
Hello Ran_TH,
Thanks a lot for your links. Actually, I followed a similar guideline to create the X5 and X6 versions (which added menus correctly), and I followed the file renaming guidelines in https://forum.oberonplace.com/blog.php?b=39018 and reset CorelDraw workspace to make the add-on work in X7, but it did not work for some reason. I will repeat the procedure according to the first link you posted and try again. Thanks again for your help!
Best regards,Stanislav