>Hi all,
>
>I've been messing around with this Ctrl+S thing for a couple days since my last posting (thanks to Dragan, Ko and Sergey for their earlier input) but I am still stuck in a rut and the users
REALLY want these shortcuts, so I'm going to ask for help one more time.
>
>I (now) know that I can't use many Ctrl+letter combinations since the VFP sysmenu intercepts them (and I am using the Window pad from sysmenu in the application menu) it would appear that the Ctrl+letter idea is out. I tried:
>
>
on key label ctrl+s _screen.activeform.keypress(19,2)
>
>in the form init, and it works - but not consistently.
>
>So question number 1 is - any other ideas on how to get the Ctrl+letter combinations back from sysmenu?
>
>The second question is (and assuming I fail in the first one), how can I trap for Ctrl+Shift+S in the keypress? In Help, it says that the nShiftAltCtrl=3 (combining the control and shift bit values) but what value do I use as the nKeyCode for the S?
>
>Here's hoping for a solution. Thanks in advance.
About the Ctrl+S issue.
I think it is better to call a UDF instead of calling to the form directly.
If no form is active you will get a error using this.
For example
On Key Label Ctrl+S Do SaveMyForm
Function SaveMyForm()
If 'check for if the form is a good form'
_Screen.ActiveForm.Save()
EndIf
EndFunc
I thought you wouldn't call it from the menu itself you told in one of your earlier threads. But there you can do exactly the same.
Hope this helps you,