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!
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!