Geoff,

Thanks for the reply (and good to hear from you!)  I put this in:

repeat until the effective working screenRect <> tRect
  wait 1 tick
end repeat

If just stuck in the loop forever.

-Dan


> This is just a guess, but the keyboard takes time to pop out. If you check 
> without waiting, the keyboard might not have deployed yet. I'm curious what 
> would happen if you did a repeat with a 1 tick delay and grabbed the text 
> into an array. Would it be same, same, same, same, changed all the way, same 
> new value, same new value? Or would it be same, same, a little different, a 
> little more different, still more different, mostly different, nearly done, 
> all done, all done, all done?
> 
> Sent from my iPad
>> 
>> On Aug 9, 2013, at 8:47 PM, Dan Friedman <dan at clearvisiontech.comwrote:
>> 
>> Greetings!
>> 
>> Anyone know what am I doing wrong?  Here's the script I am running on a 
>> iPhone 4 (works fine in the Simulator):
>> 
>> put the effective working screenRect into tRect
>> mobileControlCreate "multiline","myTextField"
>> mobileControlSet "myTextField", "fontSize", 15
>> mobileControlSet "myTextField", "visible", true
>> mobileControlDo "myTextField", "focus"
>> put the effective working screenRect into rRect
>> 
>> tRect is 0,0,320,480
>> rRect is also 0,0,320,480  (It should be the rect with the keyboard removed.)
>> 
>> I found that if I wait 20 ticks before I get the effective working 
>> screenRect again, it returns the correct value.
>> 
>> Anyone know the story on this?
>> 
>> 
>> Thanks in advance!
>> 
>> -Dan

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to