Geometry

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am

Geometry

Post by Dixie » Fri Oct 15, 2010 9:46 pm

Hi...

Is it possible to set the geometry of a object by script so that the settings are reflected in that objects' inspector ?

be well

Dixie

WaltBrown
Posts: 466
Joined: Mon May 11, 2009 9:12 pm

Re: Geometry

Post by WaltBrown » Fri Oct 15, 2010 11:41 pm

Hi Dixie.

Set the geometry of an object, then check out it's custom properties in the Property Inspector. You will find a new property set called "cRevGeometry" which you should be able to address.

Walt
Walt Brown
Omnis traductor traditor

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Geometry

Post by Mark » Sun Oct 17, 2010 10:30 am

Hi,

This really is a big hassle. You'd have to set several cRevGeneral, cRevGeometry and cRevGeometryCache proprties by script. It is possible but really compliated.

Alternatively, you might try to create a copy of an existing field, which has its geometry settings already. After creating is, call the revUpdateGeometry and revCacheGeometry commands. I can't guarantee that it works, but you might give it a try.

I'm pretty much an opponent of using the geometry manager. In more complicated projects, there is always a moment when it breaks. I always write my own script to manage object sizes and locations. It is faster, more reliable and easier to maintain in the end.

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am

Re: Geometry

Post by Dixie » Sun Oct 17, 2010 12:10 pm

Hello Walt... Mark...

Thanks for the replies.. I had realised that trying to have geometry settings reflected in the property inspector was going to be a problem when creating a field by script... but I had to ask... I will maintain the geometry by writing my own script..

thanks

Dixie

Post Reply