Setting Location of a Stack Relative to Location of Another Stack
Klaus Major
klaus at major-k.de
Sun Jun 22 10:31:32 EDT 2008
Hi Steven,
> 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"
...
set itemdel to ","
## in case this is set to something else...
put the loc of stack "DEF" into old_loc
add 20 to item 1 of old_loc
add 20 to item 2 of old_loc
set the loc of stack "ABC" to old_loc
...
Hope that helps.
> Thanks,
>
> Steve Axtell
Best
Klaus Major
klaus at major-k.de
http://www.major-k.de
More information about the use-livecode
mailing list