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 Classic Chat / Edit box input - "Done" key value?

Author
Message
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 19th Jun 2015 22:55
I want to remove my text box when the user presses the "Done" key on the onscreen keyboard. Otherwise it takes 2 keypresses to leave the input screen, by implementing an OK button. Is this possible?

Ascii 27 (Escape) can be identified.
Ascii 13 (Return) works on a PC but not on a virtual keyboard.

There is no "Get Last Key" for a virtual keyboard.

Pressing "Done" loses the focus of the edit box. But so does touching the screen outside of the edit box, which could easily be done accidentally.

I tried detecting PointerState to differentiate between the two, but when you click outside of an edit box, there is no pointer event.

Is it possible to do what I am trying to do?

Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 19th Jun 2015 23:04
u tried this?
GetEditBoxChanged

AGK 108 (B)19 + AppGameKit V2 Beta .. : Windows 8.1 Pro 64 Bit : AMD Radeon R7 265 : Mac mini OS X 10.10 (Yosemite)
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 19th Jun 2015 23:30
That tells me when the text is updated, character by character.

But what if you type:

MARKU

and then you click outside of the box by accident? In this scenario I do not want to leave the input screen. But if you type:

MARKUS <DONE>

Then I want to leave the input screen.

Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 20th Jun 2015 03:09
i believe this event come only once at the end, not char for char.

AGK 108 (B)19 + AppGameKit V2 Beta .. : Windows 8.1 Pro 64 Bit : AMD Radeon R7 265 : Mac mini OS X 10.10 (Yosemite)

Login to post a reply

Server time is: 2024-11-25 21:59:43
Your offset time is: 2024-11-25 21:59:43