General information
Category:
Forms & Form designer
>Where do you expect "nKeyCode" to "go" ?
>
>It doesn't "go" anywhere; it's just a parameter into .KeyPress.
Yeah, this has been pointed out by others too, and is of course correct. Unfortunately, providing the parameter to the DODEFAULT doesn't seem to work the way I want it to.
>You can use KEYBOARD, which will then just loop your character back to .KeyPress.
Yep. Therein lies the problem with that method.
>You would then need to toggle some flag that would indicate that this is a translated character and no further action is required.
I'm not really sure how to do that accurately. KEYBOARD adds to the existing keyboard buffer which may already have additional characters ahead of it. Problematic.
>If you want this "translation" to go into some TextBox, you could trying using NODEFAULT and calling the .KeyPress event of the TextBox directly. Whether VFP handles it like a "regular keypress" at this point, I don't know.
As far as I can tell, it doesn't.
Sigh.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only