Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problems with KeyPress
Message
 
 
À
15/03/2018 06:20:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows 10
Network:
Windows Server 2012 R2
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01658762
Message ID:
01658767
Vues:
46
>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform