Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Keypress event madness...
Message
From
07/10/2003 16:57:57
Eric Sedlacek
TTSS Interactive Products
Rockville, Maryland, United States
 
 
To
07/10/2003 16:32:31
Gerry Schmitz
GHS Automation Inc.
Calgary, Alberta, Canada
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00835939
Message ID:
00835957
Views:
10
>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
Map
View

Click here to load this message in the networking platform