Multi Window/Card App

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
2hup
Posts: 24
Joined: Tue Nov 17, 2015 8:03 pm

Multi Window/Card App

Post by 2hup » Tue Nov 17, 2015 8:15 pm

Hello LiveCoders,
I am working on a pretty simple mac(for now) app and I would like the main app to be a control window (card) that the user interacts with, and I want a display card that shows results from the interactions. I need to, after the user selects from a list in the control card, display the other card with information based on the interaction.

My questions:
1. Should this be architected with the display card as another card in the same stack, or a card in a substack?
2. Once the user interacts sufficiently with the control card, how do I show the display card.

I appreciate any input!

Brad

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

Re: Multi Window/Card App

Post by dunbarx » Tue Nov 17, 2015 8:44 pm

Hi.

If you want to show two separate cards at the same time, they must be separate stacks. The xTalk paradigm (which often throws new users) says that the card IS the stack, or vice-versa. Know that even such "native" gadgets as the "answer" dialog, for example, are in fact separate stacks.

Navigation from one stack to another is straightforward. as is hiding one or the other as required, and you therefore have complete control over the look and feel of the app with just one or two lines of code.

The "secondary" stack has all its own properties, like size and location, and all its own functionality. This actually is a feature, and a big one, not a hassle. Learning is trivial, after just a minute or two of fooling around.


Craig Newman

2hup
Posts: 24
Joined: Tue Nov 17, 2015 8:03 pm

Re: Multi Window/Card App

Post by 2hup » Tue Nov 17, 2015 9:31 pm

Thanks Craig! That helped get me moving.

Post Reply