Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Absorbing a key
Message
De
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:
01228361
Vues:
21
This message has been marked as the solution to the initial question of the thread.
>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!
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform