Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Keypress with F1 and F10
Message
De
14/08/2001 09:16:33
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
14/08/2001 07:02:55
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00543404
Message ID:
00543458
Vues:
14
>Hi
>
>How do I make my form.keypress event capture F1 and F10 ?
>
>Form.Keypreview = .T.
>And I'm also having a menu active.

Rather than using ON KEY, I think it is safer to assign the keys (F1, etc.) as hotkeys in the menu itself, and send them to the active form, for instance:
Application.ActiveForm.ShowHelp()
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform