Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problems with KeyPress
Message
From
15/03/2018 06:27:55
 
 
To
15/03/2018 06:20: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:
01658767
Views:
45
>>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.
>
>Ctrl-c is reserved, as you have noticed. If you want the key combination to work as most people expect, read here for some tips: http://www.tek-tips.com/viewthread.cfm?qid=823135
>
>I am very interested in see what solution you end p with.

Yes the problem is that in this particular case Ctrl+C should do something different, it should put a path into the clipboard from a fields of the underlying cursor. But the challenge is that everywhere else in the program Ctrl+c should do the normal standard copy text function. Since we are talking about a grid control here with Allowcellselection = .F., there is nothing to copy.

Probably one workaround could be in SetFocus() On Key Label and in LostFocus reset it. I will keep you updated.
Christian Isberner
Software Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform