Information générale
Catégorie:
Gestionnaire d'écran & Écrans
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
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