0 Replies Latest reply on Jul 13, 2006 3:46 PM by Jim_Esteban

    Focus Inconsistency

    Jim_Esteban Level 1
      was reading a problem from another user about focus in regards to a textfield. I started to play around with it to learn a bit more about it. I wrote the following little program and I ran into an interesting problem. I should also say that you have to have a UI Button in your library to get this to work.

      When you start the program the textfield says "I got the focus"

      Click on the button once
      textfield = I lost the focus to my_btn
      button label = I've got the focus from my_txt

      Click on the textfield
      textfield = I've got the focus from my_btn
      button label = I've lost the focus to my_txt

      Click on the button again(sometime is takes another cycle)
      textfield = I've lost the focus to undefined
      button label = I've got the focus from undefined

      Click on the text field
      textfield = I've got the focus from my_btn
      button label = I've lost the focus to my_txt

      Click on the button again
      textfield = I've lost the focus to undefined
      button label = I've got the focus from undefined