Re: Mobile Rotation Redux

2018-09-05 Thread Brian Milby via use-livecode
With an astute observation from Jaque, I was able to figure out why the messages didn't seem to be flowing properly. Since I only read the openBackground entry, I missed the note about needing to pass the message for other backgrounds to handle. I've updated the file that I posted. Eventually I

Re: Mobile Rotation Redux

2018-09-05 Thread Brian Milby via use-livecode
I've posted an updated version of the stack: https://milby.us/lc/MobileDemo2.livecode This version uses the new properties for orientation rects which causes the engine to send resizestack messages on rotation. I've also moved the buttons into a background groups with a behavior that handles the

Re: Mobile Rotation Redux

2018-09-03 Thread Brian Milby via use-livecode
Thanks for running the tests! I've been working on this stack for the past 2 days. I've made quite a bit of progress and switched to using the new handler to set orientation rects. That simplifies things a bit. I had to write some code to figure out the rect to use for device native though

Re: Mobile Rotation Redux

2018-09-03 Thread J. Landman Gay via use-livecode
I ran both stacks on my Pixel and they got exactly the same results you reported; in other words, everything worked just fine. I decided to try my theory that we could combine fullscreenMode with individual object placement and we can. This will prevent the tiny image when the device is

Re: Mobile Rotation Redux

2018-09-01 Thread Brian Milby via use-livecode
As I like to do, I decided to really over-do the demo test stacks. The one I mentioned initially is: https://milby.us/lc/RotationDemo.livecode The one I just finished working on does a bit more: https://milby.us/lc/MobileDemo.livecode I built both to test resizeStack and rotation on Android.

Re: Mobile Rotation Redux

2018-08-31 Thread J. Landman Gay via use-livecode
On 8/30/18 8:46 PM, Brian Milby via use-livecode wrote: I'll post the stack file if anyone wants to see it. On the one Android device I have available it works correctly. Resizestack handlers fire correctly. So I guess I need to find something with a later OS to test against to see the

Mobile Rotation Redux

2018-08-30 Thread Brian Milby via use-livecode
I finally installed Android Studio. I have API 28, 26, and 15 installed. Everything else was pretty much the defaults. (Hint: you don't need to move the sdk directory out of your Library, just create an alias and put it on your desktop. When you select the alias, LC will resolve it and store