Multiple 'document' windows

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
dglass
Posts: 519
Joined: Thu Sep 24, 2009 9:10 pm
Contact:

Multiple 'document' windows

Post by dglass » Sat Jul 02, 2011 6:56 pm

I tried searching for this, but 'documents' is not a very good search term. :roll:

It seems that a multiple document application is not possible with LC given that a stack can only be loaded/opened once. Is this correct?

To be clear, I'm not talking about a Multiple Document Interface (MDI), the unpleasantness that Microsoft used for Word and other Office applications not so long ago. Rather, just the ability to have more than one of the same type of document window open.

In its simplest form, a text editor which allows multiple text documents to be open at once.

If I make a document editor stack (scrolling field for entry, and some controls for formatting, for example), and then want to open multiple new 'documents' it seems I would be trying to open the document editor stack multiple times.

I get the feeling the IDE dodged this issue by putting the script editor in a tabbed interface, but that doesn't let a user compare two scripts side-by-side as two separate windows would.

Bleh.

That was kind of 'rambly', but hopefully it makes sense, and somebody can provide some insight. :)

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Multiple 'document' windows

Post by Klaus » Sat Jul 02, 2011 7:08 pm

Well, why not go to the LiveCode prefs -> Script Editor and
select "Scripts open in:" -> "New window", if that helps 8)


Best

Klaus

dglass
Posts: 519
Joined: Thu Sep 24, 2009 9:10 pm
Contact:

Re: Multiple 'document' windows

Post by dglass » Sat Jul 02, 2011 7:44 pm

Well, it shows that it is possible, which was my literal question, but doesn't give any indication about how to implement it.

Unless the subtext suggestion was to rip open the actual script editor stack of the IDE, which is not something I am enthusiastic about.

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

Re: Multiple 'document' windows

Post by FourthWorld » Sat Jul 02, 2011 9:23 pm

You could make a stack that acts as a sort of template, using the clone command to make a copy for each document.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

shaosean
Posts: 906
Joined: Thu Nov 04, 2010 7:53 am

Re: Multiple 'document' windows

Post by shaosean » Sat Jul 02, 2011 9:26 pm

You might want to look at the clone command..

dglass
Posts: 519
Joined: Thu Sep 24, 2009 9:10 pm
Contact:

Re: Multiple 'document' windows

Post by dglass » Sat Jul 02, 2011 11:00 pm

Thanks!

I'll see what I can accomplish.

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Multiple 'document' windows

Post by Klaus » Sat Jul 02, 2011 11:23 pm

Yep, that's what the IDE does! Clone a pre-made substack, rename it, set some custom properties, and there you go :D

dglass
Posts: 519
Joined: Thu Sep 24, 2009 9:10 pm
Contact:

Re: Multiple 'document' windows

Post by dglass » Sat Jul 02, 2011 11:35 pm

Ah, and then with either 'openStacks' or 'substacks', one can get the last increment, so to speak, so that new windows can open with "Document X" as their title, and X will increment appropriately.

Splendid! That should be painlessly workable.

Thanks again!

Post Reply