Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
When does GOTFOCUS, NOT result in LOSTFOCUS Event occurring
Message
From
06/03/2003 18:26:04
Stuart Ramsey
Medical Business Systems
East Gosford, Australia
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
When does GOTFOCUS, NOT result in LOSTFOCUS Event occurring
Miscellaneous
Thread ID:
00762515
Message ID:
00762515
Views:
61
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 **********************************
Reply
Map
View

Click here to load this message in the networking platform