Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Regarding grid focus
Message
 
 
À
20/05/2002 14:11:48
Spencer Redfield
Managed Healthcare Northwest, Inc.
Portland, Oregon, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00659017
Message ID:
00670067
Vues:
19
>I need to find a relatively simple way to determine when focus leaves a grid (and the grid's controls). > >Goal: We wish to display shape around a grid to make it obvious to the user that a grid, especially one with no records, has focus. > >I had, naively, hoped that the grid's VALID event might be directly useful here. This approach is not ideal since when focus simply moves from the grid to one of its controls the grid's VALID fires. > >Might someone be able to suggest a relatively simple way of accomplishing this? Any ideas are welcome. Thanks in advance.

Hi Spencer.
I put the grid into a container and use container's GotFocus/LostFocus events.
AFAIK grid does not receive focus when the table it is based on has no records, you have to check this out.
HTH
Kamil.
A moment of silence is our cosmic reset button.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform