Can cards in a stack be of different sizes

Alex Rice alex at mindlube.com
Sun Nov 2 18:03:24 EST 2003


On Nov 2, 2003, at 3:46 PM, Wilhelm Sanke wrote:
> Sure, they can:
>
> Have a look at the Glossary stack. All cards have different sizes.
>
> 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"

I've looked, and I have no idea where you pulled that code from. What 
you show above is just "change the size of the stack window as we go 
along". So yes, you can fake it but the stack has to be resized by 
scripting, right?

Alex Rice <alex at mindlube.com> | Mindlube Software | 
<http://mindlube.com>

what a waste of thumbs that are opposable
to make machines that are disposable  -Ani DiFranco



More information about the use-livecode mailing list