CorelDraw Graphics Suite 2020 custom tool addon C# not loading.

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!

Parents
  • Former Member
    0 Former Member over 3 years ago

    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.

Reply Children
No Data