effective working screenRect

Dan Friedman dan at clearvisiontech.com
Fri Aug 9 21:47:01 EDT 2013


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



More information about the use-livecode mailing list