Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problems with KeyPress
Message
From
15/03/2018 06:25:09
 
 
To
15/03/2018 06:19:08
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:
01658765
Views:
42
>>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).

On Key Label would be a workaround, but I am trying to avoid that, because it may have implications on other parts of the program. Worst case I need to try to encapsulate that setting and see if I can activate that on the level of the control only.
Christian Isberner
Software Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform