On 27/12/2015 at 00:21, xxxxxxxx wrote:
Hi again,
I'd like to detect in my tool plugin when the user has pressed the Undo button (Ctrl+Z).
Looking at the python sdk I see there is a message of type MSG_DESCRIPTION_INITUNDO, but apparently this is not the message which is sent when an undo is performed.
When printing out the message type sent to ToolData.Message() I see that following values are printed to the console when undo is pressed:
7
200000096
14
1001078
Where can I find out what these values mean? Are there some include files which list which MSG represents what value?
The 200000096 seems to be related to the action I performed before the undo, while the 1001078 seems to be related to the current document. So I went with value 14 to detect the undo action, and that seems to be fine (for testing purposes). Still, I'd like to detect the proper undo message.
Thanks