Skip to first unread message

Claudio Mussoni

unread,
Jul 16, 2019, 2:49:10 PM7/16/19
to MIT App Inventor Forum
Hello to all,
I need to remove the focus from a TextBox with a button. How can I do it ?
Thanks a lot for any reply.
Bye
Claudio

Chris Ward

unread,
Jul 16, 2019, 7:42:22 PM7/16/19
to MIT App Inventor Forum
Hello Claudio

You can have another TextBox, set to, say, 1 pixel high x 1 pixel wide, transparent such that it is "hidden in plain sight".

So for example, TextBox1 has focus, Button1.Click can set focus to TextBox2

See attached example, Project File: "RemoveTextBoxFocus.aia"




RemoveTextBoxFocus.aia

Claudio Mussoni

unread,
Jul 17, 2019, 1:29:46 PM7/17/19
to MIT App Inventor Forum
Hello Chris,
it works fine.
Thank you.
Bye
Claudio
Reply all
Reply to author
Forward
0 new messages