Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Keypress event madness...
Message
De
07/10/2003 16:57:57
Eric Sedlacek
TTSS Interactive Products
Rockville, Maryland, États-Unis
 
 
À
07/10/2003 16:32:31
Gerry Schmitz
GHS Automation Inc.
Calgary, Alberta, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00835939
Message ID:
00835957
Vues:
11
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform