I think this is the correct part of the forum for this subject, but if not, then please advise.
I would like to set focus on an edit control as soon as the app is started, but the Edit1.setFocus does not work. I have tried ActivityControl:=Edit1;, Edit1Click(Sender);,
Edit1.Focused;, Edit1.CanFocus;,
SendMessage(Edit1.Handle, $0001, 0, 0);,
Edit1.Perform(EM_LINEINDEX, 1, 0);,
Edit1.PerformTab(true);, Edit1.Text:=' ';, Edit1.SelectAll;
but none will send focus to Edit1; it will only focus when the control is clicked.
I have studied LCLActivity.java to try to identify a solution in this. I have found requestFocus and setFocusableInTouchMode(true); but do not know how to reach these specifically in code for Edit1.
Does anyone have a solution to achieve Edit1.setFocus, or provide a detailed tutorial on LCLActivity.java to enable a solution?
Any contributions would be gratefully received.
Regards