Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Programatically add keypress event to every cell
Message
De
21/01/2004 09:59:48
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00868972
Message ID:
00868980
Vues:
12
Add a property to the form (grid_has_focus)
In When method of the Grid put
thisform.grid_has_focus = .t.

In Valid method of the Grid put:
thisform.grid_has_focus = .f.

Set the KeyPreview property of the form to .t.

In KeyPress method of the form:

IF thisform.grid_has_focus
* Use press a key on the grid
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
Répondre
Fil
Voir

Click here to load this message in the networking platform