List of substacks

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
D4vidrim
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 61
Joined: Fri May 31, 2013 9:32 am

List of substacks

Post by D4vidrim »

Hi,
is there a way to get a list of all opened substack?

My problem is that sometimes I open a substack and its location goes wrong so that it opens outside the visible screen.
I think its a bug on the engine (it's a random issue and I never change size or location of any substacks/cards).

I'd like to tell to all the substacks to be on the screen.

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

Re: List of substacks

Post by Klaus »

HI D4vidrim,

you can get a list of all open stacks with:
...
put the openstacks into tListOfOpenStacks
...
Will give you a CR delimited list of the names of all open stacks.
But you need to check if they are main- or substacks by yourself, if neccessary at all.


Best

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

Re: List of substacks

Post by FourthWorld »

What platform are you running LiveCode on?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10502
Joined: Wed May 06, 2009 2:28 pm

Re: List of substacks

Post by dunbarx »

There is a "subStacks" property. See the dictionary.

Craig Newman
MaxV
Posts: 1580
Joined: Tue May 28, 2013 2:20 pm
Contact:

Re: List of substacks

Post by MaxV »

I prefer this solution using the menu: Tools -> Application browser
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
D4vidrim
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 61
Joined: Fri May 31, 2013 9:32 am

Re: List of substacks

Post by D4vidrim »

FourthWorld wrote:What platform are you running LiveCode on?
On Windows XP. :)
FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10103
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: List of substacks

Post by FourthWorld »

Do you have more than one monitor?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
D4vidrim
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 61
Joined: Fri May 31, 2013 9:32 am

Re: List of substacks

Post by D4vidrim »

FourthWorld wrote:Do you have more than one monitor?
Yes, I do. I compile my app on a computer with 2 monitors.
But the problem rises with the standalone randomly on other computers too (with one monitor).
Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: List of substacks

Post by Simon »

Is the solution for this to put

Code: Select all

set the loc of this stack to the screenLoc
in each stack (pre/openStack)

or did I get it all wrong again?

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
Post Reply