slugger Member Licensed User Longtime User Aug 12, 2014 #1 Hello, I have a CustomDialog (cd) and inside I put an EditText (ed), they are both created at runtime. When I call Code: Copy cd.Show I'd like to have the focus set to the EditText and the Keyboard pop up. I've tried to use Code: Copy ed.requestfocus before showing the CustomDialog but it does nothing, the same if I use an IME object to show the Keyboard. I know the CustomDialog is modal so there are no chances after I call the "show", is there something I can do before calling "show" to have the EditText receive the focus and the Keyboard to pop up after the CustomDialog appears? Thank you in advance.
Hello, I have a CustomDialog (cd) and inside I put an EditText (ed), they are both created at runtime. When I call Code: Copy cd.Show I'd like to have the focus set to the EditText and the Keyboard pop up. I've tried to use Code: Copy ed.requestfocus before showing the CustomDialog but it does nothing, the same if I use an IME object to show the Keyboard. I know the CustomDialog is modal so there are no chances after I call the "show", is there something I can do before calling "show" to have the EditText receive the focus and the Keyboard to pop up after the CustomDialog appears? Thank you in advance.
Erel B4X founder Staff member Licensed User Longtime User Aug 12, 2014 #2 I don't think that you will be able to do it with CustomDialog. Upvote 0