more iOS questions

2012-10-31 Thread Lars Brehmer
I am slowly getting there on this first iPad project, but things that should be 
fairly easy simply aren't for me.

First the keyboard

I now know about the on keyboardActivated on keyboardDeactivated handlers, but 
I can''t figure out how to use it. In some cases I want the app to slide up 
with the keyboard. I seemed to me that in that handler I should set loc the 
bottom of the stack to to the top of the keyboard, so I tried setting item 2 in 
the bottomLeft of the stack to item 2 in the topLeft of the keyboard. But the 
script editor doesn't accept calling the keyboard the keyboard. How does one 
refer to the native keyboard? Or is this aproach just plain wrong?

Returning to the app from another app

How does one get the app to be suspended and then resumed? Everytime I return 
to the app its seems to have quit and it restarts. In the liveCode dictionary, 
suspend and resume don't apply to mobile systems. How is this done?

MobGui

I couldn't make a native scroller myself, so I tried mobGui. Is it not possible 
to try before you buy? Because I followed the simple instructions for a native 
scrolling text field, but on the iPad it made no difference whatsoever. Can't 
one try mobGui on a device begore you buy it? I plan to buy it, but I'd like to 
at least see if these things work before I do.

Cheers,


Lars



___
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


Re: more iOS questions

2012-10-31 Thread J. Landman Gay

On 10/31/12 10:19 AM, Lars Brehmer wrote:


I now know about the on keyboardActivated on keyboardDeactivated
handlers, but I can''t figure out how to use it. In some cases I want
the app to slide up with the keyboard. I seemed to me that in that
handler I should set loc the bottom of the stack to to the top of the
keyboard, so I tried setting item 2 in the bottomLeft of the stack to
item 2 in the topLeft of the keyboard. But the script editor doesn't
accept calling the keyboard the keyboard. How does one refer to the
native keyboard? Or is this aproach just plain wrong?


The latest release has added the effective working screenrect which 
gives you the useable dimensions of the screen when the keyboard is 
showing. The second item in the rect would be the top of the keyboard.




Returning to the app from another app

How does one get the app to be suspended and then resumed? Everytime
I return to the app its seems to have quit and it restarts. In the
liveCode dictionary, suspend and resume don't apply to mobile
systems. How is this done?


Apps will always quit, the engine doesn't yet support suspend. To return 
to where the user left off, trap the shutdown message and save the 
current state of the app to a file on disk. On preOpenStack, restore it.




MobGui

I couldn't make a native scroller myself, so I tried mobGui. Is it
not possible to try before you buy? Because I followed the simple
instructions for a native scrolling text field, but on the iPad it
made no difference whatsoever. Can't one try mobGui on a device
begore you buy it? I plan to buy it, but I'd like to at least see if
these things work before I do.


The last time I checked, MobGUI was fully functional even if 
unregistered, but on a device or in a simulator it showed a dialog when 
the app launched that said it was an unlicensed version. If you aren't 
seeing anything at all, there might be a problem with the stack or the 
scripts.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
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


Re: more iOS questions

2012-10-31 Thread J. Landman Gay

On 10/31/12 4:35 PM, J. Landman Gay wrote:

On 10/31/12 10:19 AM, Lars Brehmer wrote:


I now know about the on keyboardActivated on keyboardDeactivated
handlers, but I can''t figure out how to use it. In some cases I want
the app to slide up with the keyboard. I seemed to me that in that
handler I should set loc the bottom of the stack to to the top of the
keyboard, so I tried setting item 2 in the bottomLeft of the stack to
item 2 in the topLeft of the keyboard. But the script editor doesn't
accept calling the keyboard the keyboard. How does one refer to the
native keyboard? Or is this aproach just plain wrong?


The latest release has added the effective working screenrect which
gives you the useable dimensions of the screen when the keyboard is
showing. The second item in the rect would be the top of the keyboard.


Oops. The fourth item. Sorry.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
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