Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form Keypress and CTRL+F5
Message
De
25/11/2003 12:24:02
 
 
À
25/11/2003 12:06:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00853361
Message ID:
00853370
Vues:
20
hello tracy

F5 (without the ctrl key pressed) = nkeycode = 115 (i think)
F5 (with the ctrl key pressed) = nkeycode = 98

that works fine on my machine (vfp6 sp 5)

>Just out of curiosity, I would like to know what is causing this behavior or why it occurs. I have a pageframe on a form with 7 pages and I trap for the pageup and pagedwn key in the form's keypress event to switch pages. It works fine. However, I wanted to have the CTRL+F5 key combination perform the same function as pagedown. I entered code in the form's keypress event to trap for it, but it seems that pressing CTRL+F5 never activates the form's keypress for some reason. I ended up having to use ON KEY LABEL in the form's init to call a method of the form (where I put the code to change pages) to do as I needed and then set CTRL+F5 back in the form's unload event. Shouldn't pressing CTRL+F5 activate the form's keypress? I tried adding push key and pop key.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform