Hi Arnaud,
By doing so, you have to be aware of a fact (if it's relevant for
what you're doing).
If you change your text, then simply switch to the Finder to make
anything and then switch back, the remembered text will be the one
after the switch (because the Activate event is called not only when
a document is opened, but also when the window is simply brought to
the front).
Same fact apply if you simply move to another edit field (assuming
there is more than one) and then come back to your target edit field.
By doing so, you have to be aware of a fact (if it's relevant for
what you're doing).
If you change your text, then simply switch to the Finder to make
anything and then switch back, the remembered text will be the one
after the switch (because the Activate event is called not only when
a document is opened, but also when the window is simply brought to
the front).
Same fact apply if you simply move to another edit field (assuming
there is more than one) and then come back to your target edit field.
Post by Lennox JacobThe activate event for opening an existing document
I think it'll be more reliable to do it in the same method where you
open your document (maybe just call another function).
I realized that and had corrected it before reading your post, thanks still.
Post by Lennox JacobPost by Lennox Jacoband the got focus for changes in an already open document.
You're certainly doing something I don't understand here.
OK, what happens here is that I do not know how to do undo multiple times (any advice?).
So, I use got focus to remember the text before I do further changes. Then, if I make some more changes (and once I do not lose focus), Undo will take me back to the point before i got focus.
Works for me for now until I become more proficient.
Lennox
---------------------------------
Access over 1 million songs - Yahoo! Music Unlimited.