Here is presented a way to make a custom button on a custom menu allocating a macro name in X5
How is possible to do that in X8. Should we follow the same logic?
Yes is the same logic
Thanks!
But where to find DRAWUIConfig.xml to firstly make a backup? Or its equivalent for X8... In Workspace folder does not exist any folder and any xml file. Should I neglect this recommendation and just start creating the recommended files in Addons folder? Is it safe?
For test yours xslt file you will need reset workspace many times, you can add this line in post build events in visual studio for reset your workspace
RD /S /Q "%appdata%\corel\CorelDRAW Graphics Suite X8\Draw\Workspace"
I was thinking to firstly create the files manually in Addons folder and in case it works, to write them by C# wouldn't be too difficult. But why is it necessary to (many times) reset workspace? What does that mean?
Should I update the workspace.xml file to refer my newly created files each time I check them? I thought corel will do that by itself at opening and finding something new in Addons folder... Like adding a docker. Is it something I am missing?
The link to the 'working example' for X5 doesn't work any more. Do you have such a working example for X8? Or for any version, if not X8?
Thanks in advance!
After any change in userui.xslt you will need reset the workspace to take the changes, Visual Studio can help write the basic stuffs in xslt files
Flyout-menu.zip
This exemple will result like
In itemData tag you can add the follow commands
dynamicCommand,-> execute a vba macro
hostedDocker -> load a wpf or web user control to create dockers
hostedType -> load a wpf user control to create a control
onInvoke -> execute a command from a datasource
I try learn more, but test xslt files is so boring task
If that 'reset' means to copy the newly created file (after rebuild) instead of the old one, of course it is logic. If not, I still cannot imagine what else means. But the first variant looks most probable now...
I tried yesterday evening but using the guids used in that example for X5. I was too lazy to check that by myself in corel X8 file, and it didn't work. Now with your files example it should be piece of cake. And also easy to understand where I made (a) mistake(s).
Thanks again!