Page 1 of 1

Put some text into an IOS text input field ?

Posted: Fri Feb 10, 2012 3:32 am
by FireWorx
This is probably a simple question but was wondering exactly how to place some text into an IOS text field. I have gone through the dictionary, searched the IOS release notes and searched the forum.

I have established the field with the script below.

on inputCreate
if "testinput" is among the lines of iphoneControls() then
inputDelete
end if
  iphoneControlCreate "multiline", "testinput"
iphoneControlSet "testinput", "rect", the rect of graphic "InputRect"
iphoneControlSet "testinput", "visible", true
end inputCreate

So how would I go about placing vis script the text "My text data to enter" into that field?

Thanks
Dave

Re: Put some text into an IOS text input field ?

Posted: Fri Feb 10, 2012 3:51 am
by Dixie
Dave...

Code: Select all

global inputID
on mouseUp
      iphoneControlSet inputID, "text", "Boo-hoo"
end mouseUp
This will put 'Boo-hoo' into the UITextfield inputID

be well

Dixie

Re: Put some text into an IOS text input field ?

Posted: Fri Feb 10, 2012 4:57 am
by FireWorx
=] Thanks!

Re: Put some text into an IOS text input field ?

Posted: Fri Feb 10, 2012 7:49 am
by Jellicle
You can use the same method to change almost all the properties of native controls. See the release notes for details :)

g