Page 1 of 1

Geometry support

Posted: Wed Jun 01, 2011 12:01 pm
by andyh1234
Hi,

Does anyone know if geometry is supported in the iOS build, or does anyone have it working?

I cannot see a mention of it being in, or out in the release notes but ive recently started working on an iPad conversion and it would be very handy to handle rotation changes.

I can see the resizestack event fires, but a simple rectangle locked to the sides is not being scaled, just checking to see if this is an error somewhere on my system, or if it is a function that is not available yet.

Thanks

Andy

Re: Geometry support

Posted: Wed Jun 01, 2011 4:20 pm
by BvG
you need to react to those events yourself, and set (for example) the "rectangle" of your controls. there's a message being sent when the screen rotates on mobile platforms, it's mentioned in the mobile notes (which pdf accessible from the help menu).

Re: Geometry support

Posted: Wed Jun 01, 2011 4:41 pm
by andyh1234
Thanks,

Resizestack still gets called on the device, so I can use that.

Andy

Re: Geometry support

Posted: Wed Jun 01, 2011 5:03 pm
by rozek
Andy,

as the LiveCode geometry support does not (yet) work on the iPhone, I wrote my own geometry handler as part of the "iPhone Control Kit" which I have announced today. This handler may also be used without the controls in that kit - it is of general use.

If interested, just have a look at http://87.106.227.245/LiveCode/iPhoneCo ... ex_en.html