How change the rect of an image on an other card ?

Klaus Major k_major at os.surf2000.de
Thu Mar 13 16:05:15 EST 2003


Hi Ken,

> Ludovic,
>
> You need to set the lockLocation of the image to true before you set 
> its
> rect. I don't know why (since if I run your script with a button 
> instead
> of an image I don't need to do anything special),

maybe because an image resets to its original (formatted) size if it is
not "locklocked" and you leave the card it is on and come back...

(Don't we all love these situations when we forgot to "locklock" a very
fine formatted group? ;-)

In this case you already have leaved and you only come back. (??? ;-)

Well, ehm... you know what i mean :-)

And a button can be resized and will not be reset...

> but it DOES work if
> you set the lockLoc to true.
>
> Ken Ray
> Sons of Thunder Software
> Email: kray at sonsothunder.com
> Web Site: http://www.sonsothunder.com/

Have a nice evening...


Regards

Klaus Major
k_major at os.surf2000.de




More information about the use-livecode mailing list