Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Function Keys
Message
De
08/04/1999 15:06:42
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00205901
Message ID:
00206600
Vues:
16
>We have developed an app for a customer who previously had been using a text based app that used function keys extensively. Our first experience with Fox was VFP version 5 and now we use VFP 6, and we have not used function keys in app much, if at all. Normally we use an ALT key combination to click() a command button, our client wants to use function key instead. Using SET FUNCTION to ALT combination in Init of Form works OK unless focus is on a grid object. Would I be moving in the right direction to set KeyPreview of form to .T. and have the KeyPress event call a method to click() the appropriate command button, or is there any easier way ?
>
>Thanks CB !!

The Windows way to do this is to define a menu with the functionality you want and then assign a hot key to the menu option. VFP will then handle everything for you automatically.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform