Can cards in a stack be different sizes?

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
urbaud
Posts: 120
Joined: Tue Feb 24, 2009 12:10 am

Can cards in a stack be different sizes?

Post by urbaud » Tue Dec 06, 2011 1:54 am

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

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Contact:

Re: Can cards in a stack be different sizes?

Post by mwieder » Tue Dec 06, 2011 2:03 am

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.

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10330
Joined: Wed May 06, 2009 2:28 pm

Re: Can cards in a stack be different sizes?

Post by dunbarx » Tue Dec 06, 2011 2:59 pm

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

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10052
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Can cards in a stack be different sizes?

Post by FourthWorld » Tue Dec 06, 2011 4:18 pm

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

Post Reply