Information générale
Catégorie:
Programmation Orientée Object
Titre:
When does GOTFOCUS, NOT result in LOSTFOCUS Event occurring
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement