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.

_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to