Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Ctrl+S to Save?
Message
 
To
14/09/2000 17:55:23
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00416666
Message ID:
00416950
Views:
30
>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.....
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform