Seting an object's geometry by script

Devin Asay devin_asay at byu.edu
Wed Jun 8 17:24:59 EDT 2005


On Jun 8, 2005, at 2:55 PM, Éric Miclo wrote:

> Hello,
>
> Does someone know if there is a way to set an object's geometry by  
> script and where I can find some documentation to write the  
> corresponding scripts.

Éric,

Check out these properties that all objects have:

the rect(angle)
the loc(ation)
the height
the width
the top
the bottom

This is not a complete list but should let you set almost any aspect  
of the object's size and location.

For example:
   set the rect of fld "myField" to 100,100,400,300

   set the height of fld "myField" to 100
   set the top of fld "myField" to the bottom of btn "myButton" + 10

HTH
Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University



More information about the use-livecode mailing list