Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Focus shifts to Calling form
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00818877
Message ID:
00820164
Vues:
17
Hi Bruce,

Further to my earlier message and your reply, I have now been able to determine the scenario where the problem occurs. The lowest level form is a search with callbacks to the previous form such as:

eSourLst.GrdData.Refresh()
eSourLst.GrdData.SetFocus()
eSourLst.ShowDetail()
eSourLst.Refresh()

The purpose here is to reposition the grid to the located record. It seems that by doing this, the VFP form calling heirarchy gets confused. BTW, I have no room on the grid form to place the search criteria.

By placing a THIS.SetFocus() after calls to each of the forms, VFP finally remembers where the focus should be and the problem goes away. I know this is a different solution to what you came up with, but I felt it worthwhile repeating incase anybody else strikes the same problem.

Thanks for helping me get my thinking cap on.

Regards...Rex
Rex Toomey
ISD Port Macquarie NSW
Australia

'Inside every older person is a younger person wondering what happened.'
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform