mobileControlCreate issue...
Posted: Fri Oct 09, 2015 12:11 am
Hi everyone,
I'm trying to create mobile fields (which i've done in previous applications) but they do not seem to create when i launch the application in the iPhone simulator....
here's what i've got... Maybe you guys can see if i'm missing something here...
i'm kind of at a loss on this one... any insight is greatly appreciated.
-Sean
I'm trying to create mobile fields (which i've done in previous applications) but they do not seem to create when i launch the application in the iPhone simulator....
here's what i've got... Maybe you guys can see if i'm missing something here...
Code: Select all
on preOpenCard
if the environment is "mobile" then
mobileSetAllowedOrientations "landscape left,landscape right"
hide field "email"
hide field "password"
mobileControlCreate "input", "userName"
put the result into theEmail
mobileControlSet sinputId, "rect", "256,140,760,182"
mobileControlSet sinputId, "visible", "true"
mobileControlSet sinputId, "opaque", "true"
mobileControlCreate "input", "password"
put the result into thePassword
mobileControlSet sinputId, "rect", "256,264,760,306"
mobileControlSet sinputId, "visible", "true"
mobileControlSet sinputId, "opaque", "true"
end if
end preOpenCard
-Sean