Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Keyboard input like cntrl-ins without a menu
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00066606
Message ID:
00066704
Vues:
31
>>>>How do I enable a key combination like cntrl-ins without having to use a menu?
>>>
>>>There is still the old use of ON KEY. Another way is also to trap the key press in the KeyPress() event of the form.
>>
>>Michel, Sylvain:
>>
>>Thanks guys, got it working. ON KEY LABEL ctrl+ins history.add.click
>Evan,
>
>Watch out for OKL's they are intercommand interrupts, that is they will interrupt running code by branching out the OKL routine. This behaovior can cause very serious problems that are very difficult to debug if the situation is not expected or accounted for.
>
>IMO, for the behavior you want (calling the click event of a button that must exist in a fomr if the routine will work at all) it is much better to use the KeyPress event of the form and set the form's keypreview to .T.. This approach will NOT interrupt running code.

Yikes! Thanks Jim.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform