Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Studio Chat / Hide an EditBox when clicking on it

Author
Message
Richard_6
7
Years of Service
User Offline
Joined: 3rd Feb 2017
Location:
Posted: 26th Jun 2019 21:17
Hello.

Any ideas how to hide an EditBox when clicking on it, without getting focus? Every time I click using my phone the keyboard pops up. I've tried SetEditBoxFocus, but when we click on it, it gets focus anyways. Creating a sprite over the Editbox has no effect either as the script below:

Increase
7
Years of Service
User Offline
Joined: 21st Feb 2017
Location:
Posted: 26th Jun 2019 21:30
If GetPointerX()>= GetEditBoxX(box) and GetPointerX() <= GetEditBoxX(box)+GetEditBoxWidth(box) and GetPointerY()>= GetEditBoxY(box) and GetPointerY()<= GetEditBoxY(box)+GetEditBoxHeight(box) and getpointerreleased()=1

SetEditBoxFocus(box,0) : SetEditBoxVisible(box,0)

Endif
Scraggle
Moderator
20
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire

Login to post a reply

Server time is: 2024-04-18 07:49:33
Your offset time is: 2024-04-18 07:49:33