Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problems with KeyPress
Message
 
 
À
15/03/2018 06:19:08
Antonio Lopes (En ligne)
BookMARC
Coimbra, Portugal
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:
01658765
Vues:
41
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform