Hey guys,
i've been trying my luck to understand the basics about how custom tools or usercontrols can be added.
The tutorial found here: https://community.coreldraw.com/sdk/w/articles/172/creating-custom-tools-in-coreldraw-and-corel-designer
is very well documented, but for some reason i can't get the added tool to start. It's just unresponsive and clicking on it won't actually fire the OnStartState Method/Event.
Does anyone have an idea what i'm missing here? Thanks in advance.
A exemple
code: https://github.com/bonus630/SelectByWay
demo:
Hi Bonus,
I followed the link and I tried the project but I have something unclear...
Isn't the custom tool imported from AppUI.xslt and UserUI.xslt files?
If yes, isn't it necessary to have a post-build event running a script to copy those (plus .dll, .addon) files in a Corel addon foldere named 'SelectByWay'?
If not, how is the tool defined in Corel?
Thanks!
you can check post build event in csproj file, starting in line 206,
xcopy "$(ProjectDir)bin\Debug\*.*" "c:\program files\corel\coreldraw graphics suite x8\programs64\addons\$(SolutionName)" /y /d /e
this command copy all file and folders in the debug dir to addons folder, for exemple...