Unfortunately windows splits keystrokes into two categories; "system", and
"non-system", and hooking into the two events was the only way I could find
out if the cursor had moved due to navigation keys or normal typing, after
either the character had appeared, and/or the cursor position had been
updated. You may also need to watch for a mouse click event, but that wasnt
necessary for what I needed.
BTW #onKeyTyped: needs to return something; there is a method comment
explaining this somewhere, but I couldnt find it in a quick look.
Hope this helps,
"Dean Powell" <[hidden email]> wrote in message
> A second quick question:
> I've been messing around with a text editor-type application, and one of
> the things I want to do is list the current caret position in a status box
> at the bottom. Unfortunately, the #onKeyPressed event seems only to fire
> before the key event has been processed. This means that I can tell where
> the cursor just came from, but not where it will be after the caret has
> been moved.
> What is the mechanism for querying a RichTextEdit's current caret position
> immediately after a key (cursor or otherwise) has been completely
> Thanks for any info.
> Dean Powell