Page 1 of 1

opening 2 cards

Posted: Sun Mar 04, 2018 2:11 am
by marksmithhfx
I'd like to try something I've never done before, and I'm not sure how to get started. I'd like to store examples of a number of custom field definitions on a card, and then have that card open while I develop and copy and paste objects from this "object library" card to the application I am working on. To me it doesn't sound much different than having the script or property window open while you work (you can have both open on the screen at once, with your application open) but so far my experience with LC is that whenever I open a new card it doesn't open in a new window, it just replaces the card that I have open. That won't really work in this case. I'd like to have the "object library" card open (similar to having the tools palette open) while I work, so it's handy.

Any suggestions as to how to get this to work? I guess, now that I think about, what I am saying is I want to have my own customs tool palette open with custom field objects on it that I can just drag into my application window. Is there a tutorial around on how to develop something like that?

Many thanks

Re: opening 2 cards

Posted: Sun Mar 04, 2018 2:59 am
by Klaus
Hi Mark,

bad luck, a stack = a window and only one card per window!


Best

Klaus

Re: opening 2 cards

Posted: Sun Mar 04, 2018 3:22 am
by FourthWorld
If you want it in a new window, it's gotta be in a new window. Cards are bound to a stack, one stack per window.

Is there a reason this couldn't work as a substack?

Re: opening 2 cards

Posted: Mon Mar 05, 2018 5:58 am
by dunbarx
What everyone said.

So can't you "rethink" your issue about having a card in the same stack open in a new window? In other words, what is the difference? That definitions"" card NEED not be part of the stack, right?

I have often cut through a lot of convoluted development (and often trashed a lot of work, happily, though, in the end) by just starting over with a little new thinking.

Craig Newman

Re: opening 2 cards

Posted: Mon Mar 05, 2018 11:45 am
by [-hh]
Just for fun:
Of course it is possible to look at two cards of the same stack at the same time.

Simply open a new instance of LiveCode and open the same stack.
As long as you don't save it with the second instance there will be no problem.

Re: opening 2 cards

Posted: Mon Mar 05, 2018 2:38 pm
by marksmithhfx
Good suggestion Richard, thanks. I'm working on it. Haven't got it finished yet but will let you know how it goes.

Mark