Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trap Ctrl+I
Message
De
11/11/2010 16:44:37
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Divers
Thread ID:
01488847
Message ID:
01488870
Vues:
51
>>>You can try ON KEY LABEL
>>>
>>>>
>>>>I would like to trap the Keycombination Ctrl+I and have therefore set in myForm.KeyPreview = .T. and in the txtBox where I would like to act on this action I have in KeyPress
>>>>
>>>>Lparameters nKeyCode, nShiftAltCtrl
>>>>
>>>>DO case
>>>>CASE nKeyCode = 9 And nShiftAltCtrl = 2 
>>>>do mySomething
>>>>ENDCASE
>>>>
>>>>
>>>>Ctrl+I is never caught consequently mySomething is never executed. Ctrl+I are not the only combinations not recognized, others like Ctrl+A also however Ctrl+K shows correctly nKeyCode = 11.
>>>>
>>>>Anyubody who could give me a clue how to trap Ctrl+I in mytxtbox?
>>>>
>>>>Regards,
>>>>
>>>>Koen
>>Sergey,
>>
>>What would make Ctrl+I not working ? Ctrl+K gives no problem. I suspect there is an other setting I overlook h.e. which one / where?
>>

Boris!

Very good. That's it.
I quickly changed my testForm to ShowWindow = 2 and all works as wanted.

Great.
Thanks.
Koen
>>Koen
>
>
>Ctrl+I is a shortcut defined for Edit->Quick Info menu.
>
>If you put:
>SET SYSMENU TO
>SET SYSMENU OFF
>in Init event of the form you will see that KeyPress event will trap the Ctrl+I
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform