How do I lose Focus?

Mark Read

Well-Known Member
Licensed User
Longtime User
I am writing an app which uses multiple panels. They are made visible as required. Panel one is an art menu which calls panel 2 (hiding 1 and making 2 visible). On panel 2 there are 6 edittext boxes to enter dates using the date dialog and a spinner. Selecting an item from the spinner recalls dates if there are any saved.

My problem is, if i click on an edittext and then cancel, everything is fine. If I then click the back button to go to panel 1 and then back to panel 2, the last edittext still has the focus and my datedialog pops up before I have selected from the spinner.

How can I set the focus to the spinner on making the panel visible or is this not possible.:BangHead:

Thanks for any help
Mark
 

wheretheidivides

Active Member
Licensed User
Longtime User
EditText1703a.RequestFocus


The first part is the name of the edittext box and the second part changes focus to that. I'm not a expert but just guessing.
 
Last edited:
Upvote 0
Top