Hi All,
With the below code what I am trying to achieve is that when the user edits the text in the text box and clicks enter, the text in the label will update. Now this works perfectly fine on the PC, but does not work on android or iphone. On the android and iphone, when I click on enter (android) or (done) for iphone, the label doesn't update. When I just tap on the screen again, the label finally updates. Does anyone know a slick way to get around this. I've tried using the keycode of the enter key as well, to no avail.
Thanks!
SetDisplayAspect( 1 )
setsyncrate(60,0)
setvirtualresolution(320,480)
setorientationallowed(1,0,0,0)
txt = createtext("Stuff")
settextsize(txt,20)
CreateEditBox(1)
SetEditBoxText(1,"")
SetEditBoxPosition(1,10,90)
SetEditBoxSize(1,150,20)
do
if geteditboxchanged(1) = 1
settextstring(txt,geteditboxtext(1))
endif
Sync ( )
loop
// free usages
DeleteEditBox(index)