Can cards in a stack be different sizes?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Can cards in a stack be different sizes?
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.
urbaud
Re: Can cards in a stack be different sizes?
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.
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?
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
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
-
- VIP Livecode Opensource Backer
- Posts: 10052
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: Can cards in a stack be different sizes?
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.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn