Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help button hotkey
Message
 
À
20/06/2006 04:35:31
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01130167
Message ID:
01130171
Vues:
16
This message has been marked as the solution to the initial question of the thread.
>Hi All
>
>Having a blank moment (the usual state of affairs) ... given a button on a form whats the fastest way to attach a key (eg F1) to the button click event?

I don't know if F1 is trappable (never wanted to trap this key :o)) , but you could try.
Set KeyPreview = .t. (Form level)
In KeyPress Event:
LPARAMETERS nKeyCode, nShift
IF nKeyCode == 28 && F1
   NODEFAULT
   thisform.Command.Click()
ENDIF
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform