Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid.LostFocus()
Message
De
02/05/1999 17:58:19
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Grid.LostFocus()
Divers
Thread ID:
00214425
Message ID:
00214425
Vues:
116
Hi All,

I just discovered something interesting that I thought I'd share.

A grid does not have an exposed lostfocus() method. It has one (turn on the event log when you move out of a grid, and you will see lostfocus() and deactivate() as logged methods of the grid), but it is either hidden or protected and not available to us.

But...

if you add a method called "lostfocus" to a sub-classed grid, the lostfocus() method is exposed and you can write code in it that is invoked when the grid loses focus.

Interesting....

Before I go crazy writing lostfocus() code, however, has anyone else used this trick and if so what are the problems, if any, that are going to bite me.

regards,
Jim Edgar
Jurix Data Corporation
jmedgar@yahoo.com

No trees were destroyed in sending this message. However, a large number of electrons were diverted from their ordinary activities and terribly inconvenienced.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform