Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

focusLost event  RSS feed

 
Hlumela Bongobi
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have two text fields(well more but for the sake of simplicity) and button. I have a on focustLost method which is invoked when focust is lost on the text field but the problem is I want the method i call inside focusLost to be called only when the focus is lost moving to the next text field.In other words not when the button is clicked or the window is closed. Now how do I check if the button is being clicked or the window is being closed and remember the focus lost method is for the text fields.
I hope I'm making sense.
Your answer will be highly appreciated.
 
Craig Wood
Ranch Hand
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Hlumela Bongobi
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply,it works.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!