Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
When does GOTFOCUS, NOT result in LOSTFOCUS Event occurring
Message
De
06/03/2003 18:26:04
Stuart Ramsey
Medical Business Systems
East Gosford, Australie
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Titre:
When does GOTFOCUS, NOT result in LOSTFOCUS Event occurring
Divers
Thread ID:
00762515
Message ID:
00762515
Vues:
60
Hello
I have uncovered a problem that is quite worrying, as over 90% of my code is either called from or executed from the LOSTFOCUS Event of controls.
The event log snipit below is showing the results of being on the last control on page 2, and using the UP Arrow to navigate back up through the controls of the page. You will notice that the LOSTFOCUS event for txtHfMemNo is never called even though WHEN and GOTFOCUS were executed, because part of the code changed the backcolor of txtHfMemNo.

I have at this point put in a work around that solved this particular problem with this controls behavior, but my question still remains, why did LOSTFOCUS not fire????

Thankyou in Advance for any thoughts or comments

****** Event log Snipit! ******************************
frmestpat.pageframe1.page2.cbopattype.text1.GotFocus()
frmestpat.KeyPress(5, 0)
frmestpat.pageframe1.page2.cbopattype.KeyPress(5, 0)
frmestpat.pageframe1.page2.cbopattype.text1.KeyPress(5, 0)
frmestpat.KeyPress(5, 0)
frmestpat.pageframe1.page2.cbopattype.Valid()
frmestpat.pageframe1.page2.cbopattype.LostFocus()
frmestpat.pageframe1.page2.cbopattype.text1.LostFocus()
frmestpat.pageframe1.page2.txtHfMemNo.When()
frmestpat.pageframe1.page2.txtHfMemNo.GotFocus()
frmestpat.pageframe1.page2.cbohfund1.When()
frmestpat.GotFocus()
frmestpat.pageframe1.page2.cbohfund1.GotFocus()
******* End of Snipit **********************************
Répondre
Fil
Voir

Click here to load this message in the networking platform