Losing focus on a textbox (earlier topic had been closed:()

151 views
Skip to first unread message

nagyd63

unread,
Aug 8, 2017, 5:00:02 PM8/8/17
to MIT App Inventor Forum
Hi!
I wanted to use a textbox for a text input, but after typing the text I wanted to lose the textbox focus. (It was very umbressing, if it does'nt.) So I've read an old question here, but I can't write there. (This was an old topic, but eventually up to date! :) Who thougt it?
So, the only possibility to get a textbox losing focus, to request an another textbox the focus.
So I created a 0 pixel wide textbox next to the textbox I wanted to lose focus and gave it the focus (call 0pxwideTextbox RequestFocus).
And TADAM! It works!

Ghica

unread,
Aug 9, 2017, 9:38:29 AM8/9/17
to MIT App Inventor Forum
Nice trick!
Cheers, Ghica

Abraham Getzler

unread,
Aug 9, 2017, 12:56:24 PM8/9/17
to MIT App Inventor Forum

Tim Carter

unread,
Aug 9, 2017, 1:24:45 PM8/9/17
to MIT App Inventor Forum
Reply all
Reply to author
Forward
0 new messages