Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Strange behavior of my grid...
Message
De
29/07/1999 12:40:24
 
 
À
29/07/1999 12:16:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00247737
Message ID:
00247758
Vues:
22
How do I do to check for focus? Is there any other method then ActiveControl?

/Mårten Törnquist

>The same thing heppens to me. This is, I believe, a known VFP bug. The workaround is to move focus away from the grid before the form refresh. Usually I put code in form refresh() to (1) set .lockscreen = .T., (2) check for focus. (3) if focus is in the grid, move the focus (4) dodefault() to refresh the form, (4) If focus was in the grid, set focus back to the grid, (5) unlock the screen.
>
>This seems to do the trick.
>
>regards,
---( Mårten Törnquist )---
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform