Setting Location of a Stack Relative to Location of Another Stack

Dave dave at looktowindward.com
Sun Jun 22 10:29:40 EDT 2008


Hi,

This should do it:

put the rect of stack "DEF" into myRect
add 20 to item 1 of myRect
add 20 to item 2 of myRect
add 20 to item 3 of myRect
add 20 to item 4 of myRect
set the rect of stack "ABC" to myRect

All the Best
Dave


On 22 Jun 2008, at 15:09, Steven Axtell wrote:

> Is there a way to set the location of a stack relative the location  
> of another stack?  I know the following code is not correct (Rev  
> applied it but did nothing with it), but I'm trying to do something  
> like this:
>
> set the location of stack "ABC" to 20,20 from the location of stack  
> "DEF"
>
> Thanks,
>
> Steve Axtell
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution





More information about the use-livecode mailing list