Geometry support

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
andyh1234
Posts: 476
Joined: Mon Aug 13, 2007 4:44 pm
Contact:

Geometry support

Post by andyh1234 » Wed Jun 01, 2011 12:01 pm

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

BvG
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1239
Joined: Sat Apr 08, 2006 1:10 pm
Contact:

Re: Geometry support

Post by BvG » Wed Jun 01, 2011 4:20 pm

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).
Various teststacks and stuff:
http://bjoernke.com

Chat with other RunRev developers:
chat.freenode.net:6666 #livecode

andyh1234
Posts: 476
Joined: Mon Aug 13, 2007 4:44 pm
Contact:

Re: Geometry support

Post by andyh1234 » Wed Jun 01, 2011 4:41 pm

Thanks,

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

Andy

rozek
Posts: 151
Joined: Mon Jun 19, 2006 2:29 pm
Contact:

Re: Geometry support

Post by rozek » Wed Jun 01, 2011 5:03 pm

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
Kind regards,

Andreas Rozek

Post Reply