I've been using custom tool addons for CorelDraw since X7 without issue. Recently upgraded to 2020 and haven't been able to get my tools to work. I've downloaded tool templates for CorelDraw 2020 (bonus630's templates) and cannot even get the sample tool to load. When I say load I mean that the tool appears in the toolbar as expected, but when you click it, the button looks like it has been clicked but the previous tool that was active is still the active tool. My guess is that the tool isn't properly being registered with the Application.RegisterToolState method, but I can't get any exceptions to be thrown. Was hoping someone had some insight into this issue or knew how to get some exceptions thrown when CorelDraw loads addons. Thanks for any help you guys can give!
Unfortunately custom tools have been broken for many versions. I have not found a fix or a workaround. If I do so I will be happy to post.
I would love to see many posts here on a Custom Tool that you miss so that we could show Corel it is being used and that we would like it fixed.
So if you have used a Custom Tool in the past and are not able to use it in a newer version of CorelDRAW post here. If you will not upgrade to a newer version because Custom Tools are broken post here.
Hi guy, i am sorry about this unfortunate situation. if you use property bar in you custom tool, check in the "DrawTool.cs" file on method "OnStartState" the value of field "currentAttribs.PropertyBarGuid" if is the same of the file "UserUI.xslt" in tag "modeData" on "xsl:template match="uiConfig/commandBars/commandBarData[@guid='74e03d83-404c-49f5-824a-fe0fd02ab29a']/toolbar">", if both values is the same.
So I had already noticed this discrepancy in the latest templates. It doesn't look like the template has $GUIDB$ set for modeData in the UserUI.xslt file like it was in previous versions. So there wasn't a guid match with the PropertyBarGuid that is set in the OnStartState. But even after making those GUIDs match, the custom tool still did not load. Thank you though for your help!
Well if I happen to stumble across a solution I'll make sure to let you know. I'm pretty bummed to hear this. Maybe I can get a refund since I can't actually use 2020 now...
Hi, i test in coreldraw 2021 and works fine, after changes the caption and icon id in config.xml, the resource.rct file have differents ids, check changes in
Fix resource id of the string and icon in CustomToolCS project · bonus630/DockerTemplateX7@470c901 (github.com)