Changing the width of a stack

Richmond richmondmathewson at gmail.com
Sat Jun 27 15:59:01 EDT 2015


On 27/06/15 22:31, Richmond wrote:
> Probably misunderstood what you want:
>
> https://www.dropbox.com/sh/ja47l87gg87sn0q/AAAIj99kEQVOb8ev3jz8C5ORa?dl=0
>
> File: Two_Way_Stretch.zip
>
> Richmond.

I read your posting a bit more carefully, and have uploaded a revised 
stack that, in a very simple way, keeps
the stack aligned with its initial left position when it is resized:

1    on mouseUp
2       set the moveSpeed to 65000
3       set the lockscreen to true
4       if the width of stack "2WS" > 290 then
5          put the left of stack "2WS" into LL
6          put the left of stack "2WS" into fld "LL"
7       set the width of stack "2WS" to 280
8       set the left of stack "2WS" to LL
9       move img "mb" to 140, 374
10       move img "both" to 140, 650
11       move img "fash" to 140, 297
12    else
13       set the width of stack "2WS" to 1024
14       move img "mb" to 512, 374
15       move img "both" to 512, 650
16       move img "fash" to 512, 297
17       put fld "LL" into LL
18       set the left of stack "2WS" to LL
19    end if
20    set the lockscreen to false
21    end mouseUp

Have a CLOSE LOOK at lines 5,6,8,17 and 18

Richmond.




More information about the Use-livecode mailing list