Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GotFocus / LostFocus for grids?
Message
De
17/09/1998 21:51:12
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00137789
Message ID:
00138051
Vues:
11
Hi Colin:

This is doable :-)

Create a container class. Set BorderWidth to 0 and make it Transparent (the idea is to make it invisible). Put a Grid object in the container. Put whatever code you like (if at the Class level) in the Got/LostFocus of the *container*.

Now put an instance of the container in your form. Change or add Got/LostFocus code to this container instance if you like. Whenever the user tabs on or clicks the grid, it's underlying containers GotFocus will fire and the same applies to when they click off or leave the grid.


>How do I trap for when a grid gets and loses focus? TIA.
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform