Can cards in a stack be of different sizes
Jim Hurley
jhurley at infostations.com
Sat Nov 1 19:50:28 EST 2003
>
>Message: 6
>Date: Sun, 2 Nov 2003 13:47:33 -0500
>From: "Russell" <rxfeldman at comcast.net>
>Subject: Can cards in a stack be of different sizes
>To: <use-revolution at lists.runrev.com>
>Message-ID: <001a01c3a171$c73dfa50$6501a8c0 at S0031724895>
>Content-Type: text/plain; charset="iso-8859-1"
>
>Hello people
>
>Can cards in a stack be of different sizes
>
>What is a substack and how do you use it
>
>Thanks
>
>Russ
Russ,
Not really, but you can effectively make every card in your stack a
different size. You might do something like this in the card script:
Card 1
on preOpenStack
--Increase the width and height by 100
put the rect of this stack into tRect
add 100 to item 3 of tRect
add 100 to item 4 of tRect
set the rect of this stack to tRect
end preOpenStack
Card 2
on preOpenStack
--Decrease the width and height by 100
put the rect of this stack into tRect
add -100 to item 3 of tRect
add -100 to item 4 of tRect
set the rect of this stack to tRect
end preOpenStack
You can also "set the width of this stack to ..." & "set the height
of this stack to..."
But you might want to use the rect of the stack to fix the upper left
corner (put the rect of this stack into tRect; set the top of this
stack to item 2 of tRect; set the left of this stack to item 1 of
tRect)
Create cards of arbitrary size (within the bounds of the stack max
and min heights and widths as well as arbitrary location.)
Jim
More information about the use-livecode
mailing list