RE: Geometry settings...

2010-10-16 Thread Damien Girard

Hi Dixie,

It is not possible easily with the LiveCode geometry manager. (I do not know
even how to do it).

But NativeGeometry, that is a geometry manager for LiveCode works like that,
all geometry relations are scripts and the GUI is just here to help you
working faster.

Sample:
Set the nGeometry of button toto to set the bottom of me to the
bottomPadding of this stack; set the left of me to the rightPadding of
button 'titi'
- Resize the stack
- Open the NativeGeometry geometry inspector, then you will see the script
that you have designed.

http://www.nativesoft.fr/nativegeometry

Kind Regards,

Damien Girard
NativeSoft, France.

-Message d'origine-
De : use-revolution-boun...@lists.runrev.com
[mailto:use-revolution-boun...@lists.runrev.com] De la part de John Dixon
Envoyé : samedi 16 octobre 2010 00:39
À : use-revolution@lists.runrev.com
Objet : RE: Geometry settings...



Hi Devin...

Thanks for the reply.. I have not explained what I want to do too well. What
I would like to be able to do is set the 'geometry' in the geometry pane
that are in the objects' inspector so, if I create a field by script, I
can also set its geometry in the geometry pane...

Is it now a little clearer than mud ?

Dixie



 On Oct 15, 2010, at 4:08 PM, John Dixon wrote:

  Hi...
  
  Is it possible to set the geometry of an object by script so that the
settings are then reflected in that objects' inspector ?
  
  be well
 
 Yes. There are many properties that can be set, like height, width,
rectangle, left, right, etc. Usually after you've set them by script you
have to force the property inspector to update itself before the new
settings are shown. For example, you could close and reopen the inspector,
or switch to another pane of the inspector then switch back.
 
 Regards,
 
 Devin

 Devin Asay
 Humanities Technology and Research Support Center
 Brigham Young University

 
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Geometry settings...

2010-10-16 Thread Mark Schonewille
Hi Dixie,

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.

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Download the Installer Maker plugin for Runtime Revolution at http://qurl.tk/ce 
Create installers for Mac and Windows on *every* Rev-compatible platform. No 
additional software needed.

On 16 okt 2010, at 00:08, John Dixon wrote:

 
 Hi...
 
 Is it possible to set the geometry of an object by script so that the 
 settings are then reflected in that objects' inspector ?
 
 be well
 
 Dixie
 

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Geometry settings...

2010-10-15 Thread Devin Asay

On Oct 15, 2010, at 4:08 PM, John Dixon wrote:

 
 Hi...
 
 Is it possible to set the geometry of an object by script so that the 
 settings are then reflected in that objects' inspector ?
 
 be well

Yes. There are many properties that can be set, like height, width, rectangle, 
left, right, etc. Usually after you've set them by script you have to force the 
property inspector to update itself before the new settings are shown. For 
example, you could close and reopen the inspector, or switch to another pane of 
the inspector then switch back.

Regards,

Devin




Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: Geometry settings...

2010-10-15 Thread John Dixon

Hi Devin...

Thanks for the reply.. I have not explained what I want to do too well. What I 
would like to be able to do is set the 'geometry' in the geometry pane that are 
in the objects' inspector so, if I create a field by script, I can also set 
its geometry in the geometry pane...

Is it now a little clearer than mud ?

Dixie



 On Oct 15, 2010, at 4:08 PM, John Dixon wrote:

  Hi...
  
  Is it possible to set the geometry of an object by script so that the 
  settings are then reflected in that objects' inspector ?
  
  be well
 
 Yes. There are many properties that can be set, like height, width, 
 rectangle, left, right, etc. Usually after you've set them by script you have 
 to force the property inspector to update itself before the new settings are 
 shown. For example, you could close and reopen the inspector, or switch to 
 another pane of the inspector then switch back.
 
 Regards,
 
 Devin

 Devin Asay
 Humanities Technology and Research Support Center
 Brigham Young University

  
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution