Can cards in a stack be of different sizes

Ray G. Miller rgmiller at pacbell.net
Mon Nov 3 16:44:35 EST 2003


From: Wilhelm Sanke <sanke at hrz.uni-kassel.de>
> Subject: Re: Can cards in a stack be of different sizes
>>On Nov 2, 2003, at 11:47 AM, Russell wrote:
>>
>>
>>>Hello people
>>>
>>>Can cards in a stack be of different sizes
>>
>>Nope
>>
>>(snip)
>>
>>Alex Rice
>>
> 
> Sure, they can:
> 
> Have a look at the Glossary stack. All cards have different sizes.


(Gosh, Captain Marvel, are they allowed to do that?)

> 
> In the preopencard handler you may find  some hints:
> 
>  " -- set the height of the card to the total needed height
> 
>   put the top of this stack into savedTop
>   set the height of this window to the formattedHeight of this card
>   set the height of graphic "Border" to the formattedHeight of this card
> 
>   set the top of graphic "Border" to zero
>   set the top of this stack to savedTop"
> 


Yep, you can resize each card, but it'll drive the user nuts. Test it 
yourself; build a stack with twenty cards with stuff on each. Test the 
above script for two days straight and see if YOU survive... ;-0




Ray G. Miller
__________________
Turtlelips Productions
4009 Everett Ave.
Oakland, CA 94602
MailTo:rgmiller at pacbell.net
(V) 510.530.1971
(F) 510.482.3491



More information about the use-livecode mailing list