Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Absorbing a key
Message
De
24/05/2007 19:06:17
 
 
À
24/05/2007 18:25:45
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01228355
Message ID:
01228366
Vues:
15
>>What might the code look like?
>
>I tried the following for the "x" key, and it works as desired:
>
>
>LPARAMETERS nKeyCode, nShiftAltCtrl
>if nKeyCode = 120 && "x"
>	ThisForm.lBarCode = .T.
>	NoDefault
>endif
>
>
>However, I don't find "~" in the table under inkey(); would it be possible to change to one of the symbols in the table?
>
>For "~", the inkey() function (inserted in another textbox for debugging purposes) gives 126; according to the table that might conflict with Alt-7, but I don't think that would be much of an issue either. Alt-7 doesn't even trigger the KeyPress!

I think if you also check nShiftAltCtrl it should eliminate any potential conflict with Alt-7
IF nKeyCode = 126 AND nShiftAltCtrl = 1
     NODEFAULT

ENDIF
Bruce
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform