Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
KeyPress Results
Message
De
15/03/2001 07:57:16
 
 
À
14/03/2001 20:45:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00484415
Message ID:
00485264
Vues:
11
>A Bad news for you.
>The value of nKeyCode May Various from RUN-TIME and development time.
>
>For example, ALT+TAB (RUNTIME value is 15 but development time is -400!)
>So, your Keypress event handling need to mention more value to concern.
>
>and you need to check out the nShiftAltCtrl value to ensure the key-in is Arrow key.
>
>You're better to make a dummy project and generate that quick form into exe,
>so that you can check out the value in both run-time and development time.
>
>For another way to do: ON KEY LABEL..
>it will be global setting and you need to add more code to disable it when form not activate..
>Otherwise, expected action or effect will occur and make the application NOT stable.

Ok, I'll take a look at this. However, I have found a workaround for my specific case and I do not usually use ON KEY LABELs except in extreme situations as they are processed out of the event loop and can cause unusual problems. Also, some key combinations, like the ALT+TAB you mentioned is a Windows reserved key stroke. I generally try to avoid these anyway as I do not like to overide Windows OS processing unless really necessary.
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform