Page 1 of 1

Can cards in a stack be different sizes?

Posted: Tue Dec 06, 2011 1:54 am
by urbaud
Is it possible to have a stack with say 4 cards in it and each card is a different size than the others. If this can be done, what would the code look like? I can't seem to find anything in the dictionary that tells how to make each card a different size. If there is a reference in the dictionary I would appreciate its location. Thanks in advance for any help, code or suggestions.

Re: Can cards in a stack be different sizes?

Posted: Tue Dec 06, 2011 2:03 am
by mwieder
No.

You can resize the stack in the preOpenCard handler of each card and do the job that way, or you can have four substacks, each of a different size. But technically speaking each card in a stack is the same size.

Re: Can cards in a stack be different sizes?

Posted: Tue Dec 06, 2011 2:59 pm
by dunbarx
Mark is correct, and he does soften his "No" with a perfect workAround, to change the stack size on the fly as you open cards as you need to.

I just want to make sure you appreciate what he said, that in effect you can do just what you want to, because LC gives the tools to do it.

Craig Newman

Re: Can cards in a stack be different sizes?

Posted: Tue Dec 06, 2011 4:18 pm
by FourthWorld
What does it mean to have cards of different sizes if the window size is the same? Do you want to scroll the contents of the window, or have the window resize? Both can be done in LC.