Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problems with KeyPress
Message
From
15/03/2018 06:19:08
 
 
To
15/03/2018 05:58:59
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows 10
Network:
Windows Server 2012 R2
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01658762
Message ID:
01658763
Views:
63
>I am trying to make a keypress work to capture CTRL+c. However that seems to be a reserved key and the keypress does not trigger at all. Same for Ctrl+x and Ctrl+v. All other keys as well as Ctrl+Shift+c do work.
>
>So I am trying to find a workaround to recognize the event if that key is being pressed, but so far no luck. Any suggestions would be highly appreciated.

Either SET SYSMENU OFF (to work with the KeyPress event) or ON KEY LABEL CTRL+C, to set it in a more global fashion (although you can try to accommodate the execution context by using the _Screen.ActriveForm.ActiveControl, or by using a function that gets the current control, whatever its container hierarchy).
----------------------------------
António Tavares Lopes
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform