Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Ctrl+S to Save?
Message
 
À
14/09/2000 17:55:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00416666
Message ID:
00416950
Vues:
31
>Phil, this is what I use in one of my app's.
>Keypress event of the form.
>
>LPARAMETERS nKeyCode, nShiftAltCtrl
>
>IF nShiftAltCtrl = 2 &&-CTRL KEY PRESSED
> DO CASE
> CASE nKeyCode = 19 &&-CTRL S (SAVE TRANSACTION)

> THISFORM.PAGEFRAME1.PAGE1.DBFNAV2.CMDSAVE.SETFOCUS()
> KEYBOARD "{spacebar}"
>
>Hope this helps.
>
>Joe

I tried this too. Things work fine if I use a single key (I had success with S and A). Once I try to add Ctrl to the mix (with the nShiftAltCtrl parameter) it quits working (i.e. nothing happens when I press Ctrl+S). I realize that the Alt key has to be avoided, but why won't the combination of Ctrl+S work?

I have tried both your code (in bold) and:

If nShiftAltCtrl=2 AND nKeyCode = 19

"Grrrrrr" said the frustrated programmer wannabe to the app!!!!
Phil Thomas
http://phillipdthomas.com

Never let your energy or enthusiasm be dampened by the discouragements that must inevitably come.....
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform