Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>>>>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement