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
Geometry
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: Geometry
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
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
Omnis traductor traditor
Re: Geometry
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
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
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
Re: Geometry
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
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