Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting a grid to respond to a keypress
Message
De
02/02/1999 11:25:24
 
 
À
01/02/1999 20:25:42
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00182778
Message ID:
00182960
Vues:
10
Bob, put this into .GotFocus (or, if you use VFP3, put the grid inside the container and use container's GotFocus event):
ON KEY LABEL Ctrl+INS APPEND BLANK

And in the .LostFocus:
ON KEY LABEL Ctrl+INS


>I have a grid and I want to insert a new record when the user presses a certain key (like ^INS) with *any* part of the grid selected. I know how to use the KeyPress event in the text object of a column but I don't want to force the user to have that particular text item selected. I don't see a more global "KeyPress" event available. How can I do this?
>
>TIA, Bob Alei
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform