Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Actually the KeyPreview = .t. in the form property sheet works the best. I can then trap for key strokes in the form's KeyPress event.
Antoher method I used was to define menu items in the menu designer with shortcuts to the form's button.click event. I tested for the form being active in the menu's procedure code as follows:
IF _screen.ActiveForm.name = [MYFORM]
_screen.ActiveForm.MyCommandButton.click()
ENDIF
I could then define any shortcut key stroke on the menu designer to call a button on my form.
Thanks,
Jerry
>Jerry,
>
>Please let us know what works...BTW, if you decide to stack two command buttons, you can create a class (based on a container) that has both buttons and all of the functionality built in.
>
>>I'll give this a try.
>>
>>Thanks,
>>
>>Jerry
>>
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