09-04-2020, 12:30 PM
I've got a situation that I understand nobody can possibly debug over a forum, but I hope someone has had some experience that can provide clues as to things to look for.
I have a plugin that creates artwork, either from a modal dialog called from a menu or with a tool that calls the modal dialog when clicked. Apparently, the dialog blocked something that did not want to be blocked. From the menu, within the first few uses the dialog no longer calls the callbacks for the OK or Cancel buttons. This happens regardless of whether the dialog is created with ButtonOptions or if the OK and Cancel buttons are created individually.
When called from the tool, the MouseUp callback is soon not called, although MouseDown and Drag callbacks continue to work.
Dismissing the dialog before beginning to draw didn't help. Push and Pop context didn't help. The draw functions are really pretty ordinary, creating path art or modifying existing paths, and doing a few string utility functions to scan and format measurements using the current ruler units.
My solution/workaround was to replace the modal dialog with a panel and from the menu just used fixed default values, but I'd like to get this to work sometime. Could it be calls to the SDK for AIUndo, AITransformAgain, AIUnicodeString, or AIActionManager, which are acquired at startup and released at shutdown?
Any theories or suggestions would be very much appreciated.
I have a plugin that creates artwork, either from a modal dialog called from a menu or with a tool that calls the modal dialog when clicked. Apparently, the dialog blocked something that did not want to be blocked. From the menu, within the first few uses the dialog no longer calls the callbacks for the OK or Cancel buttons. This happens regardless of whether the dialog is created with ButtonOptions or if the OK and Cancel buttons are created individually.
When called from the tool, the MouseUp callback is soon not called, although MouseDown and Drag callbacks continue to work.
Dismissing the dialog before beginning to draw didn't help. Push and Pop context didn't help. The draw functions are really pretty ordinary, creating path art or modifying existing paths, and doing a few string utility functions to scan and format measurements using the current ruler units.
My solution/workaround was to replace the modal dialog with a panel and from the menu just used fixed default values, but I'd like to get this to work sometime. Could it be calls to the SDK for AIUndo, AITransformAgain, AIUnicodeString, or AIActionManager, which are acquired at startup and released at shutdown?
Any theories or suggestions would be very much appreciated.