Resize a specific card in a stack

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
timbrian
Posts: 6
Joined: Sat Jan 17, 2015 12:51 am

Resize a specific card in a stack

Post by timbrian » Sun Feb 22, 2015 9:36 pm

Is there a way to resize a specific card within a stack without affecting all cards in the stack?
What I am wanting to do is click on a button on a card (card A) and have another card (card B) pop up in
front of the other card in a slightly smaller format without hiding Card A. Card A 1080 x 760, Card B 1080 X 380.
Tim
Louisville, Ky

SparkOut
Posts: 2947
Joined: Sun Sep 23, 2007 4:58 pm

Re: Resize a specific card in a stack

Post by SparkOut » Sun Feb 22, 2015 11:05 pm

No, sorry, all cards are the same size as the current stack size. You could overlay another stack or substack to have the same display effect, but not on mobile. On mobile devices only one stack window can be active, and will always size to the full screen (even though you may need to play with the fullscreenmode auto resizing options to get the card objects to fit)

Randy Hengst
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 157
Joined: Thu Jun 29, 2006 4:16 pm

Re: Resize a specific card in a stack

Post by Randy Hengst » Tue Feb 24, 2015 3:15 pm

Would it work for what you’re trying to accomplish if “Card B” was a group you displayed on top of Card A?

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

Re: Resize a specific card in a stack

Post by dunbarx » Tue Feb 24, 2015 6:40 pm

To enlarge upon what Sparkout mentioned, when you asked for one card to "overlay" another, so that one can be seen behind another, you are automatically talking about two stacks.

It is certainly possible to modify the size of a stack as you display different cards. This is uncommon, but there is nothing to stop you from doing so. But you cannot have it both ways. Whatever size the stack (and its cards) are at any given time, then that is it, the size of the stack. Only one card can be "shown" at a time, and that fact is unrelated to stack size.

Craig Newman

timbrian
Posts: 6
Joined: Sat Jan 17, 2015 12:51 am

Re: Resize a specific card in a stack

Post by timbrian » Wed Feb 25, 2015 3:56 pm

Thanks Randy....your suggestion did the trick. I appreciate the help!
Tim
Louisville, Ky

Post Reply