Dear all,
In my script I have set up this notification:
Notification (Constants.FA_Note_PostActiveDocChange, true);
I have now noticed that this is also triggered (executing the Note function) in the following situation:
- Script is active in a dialgogue, which stays open (is palette). It remembers the 'current' location in the user document to be able to restore it after changes in the document by the script.
- I switch to the document and do some text editing. Normally I do not need a screen refresh and can then proceed to the palette of the script.
- If I do a screen refresh (CTRL +l) the notification triggers and the script restores the last 'current location'. In most cases this is the start of the document.
My questions are:
- Is a sceen referesh really a 'change in the document' and thus the behaviour correct?
- Or is this my mis-interpetation of FA_Note_PostActiveDocChange ?
- Or am I the victim of an unsharp defintion of FA_Note_PostActiveDocChange ?
Thanks for any thoughts about this.
Klaus