Hot Door CORE Forum
tool autoShowPrefsDialog not showing - Printable Version

+- Hot Door CORE Forum (http://hotdoorcore.com/forum)
+-- Forum: All forums (http://hotdoorcore.com/forum/forumdisplay.php?fid=1)
+--- Forum: General discussion (http://hotdoorcore.com/forum/forumdisplay.php?fid=3)
+--- Thread: tool autoShowPrefsDialog not showing (/showthread.php?tid=167)



tool autoShowPrefsDialog not showing - Rick Johnson - 03-11-2018

I have several tool plugins with preferences dialogs, all implemented in the same way (as far as I can tell), but for one of them the prefs dialog doesn't show when the tool icon is double-clicked in the Illustrator toolbox. I understand it's enabled by default, but it still doesn't show after it's manually enabled like so when created in startup:

this->__myTool.setPrefsDialog(myPrefs->myPrefsMD);
this->__myTool.setAutoShowPrefsDialog(true);
HDI_CORE_PLUGIN->setPrefsDialog(myPrefs->myPrefsMD);


The dialog is defined in the public area of the prefs class and works normally when selected from the menu. After spending many hours checking and testing to solve this, I'd greatly appreciate any suggestions on how I might trace what's happening (or not) when the tool is double-clicked. The problem happens on both Mac and Windows.


RE: tool autoShowPrefsDialog not showing - Rick Johnson - 03-25-2018

I found the problem.

HDI_CORE_PLUGIN->setPrefsDialog(myPrefs->myPrefsMD);

This should be replaced with:

this->__myTool.setPrefsDialog(myPrefs->myPrefsMD);