Page 1 of 1

List of substacks

Posted: Tue Jan 27, 2015 4:22 pm
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

Re: List of substacks

Posted: Tue Jan 27, 2015 4:28 pm
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

Re: List of substacks

Posted: Tue Jan 27, 2015 5:16 pm
by FourthWorld
What platform are you running LiveCode on?

Re: List of substacks

Posted: Tue Jan 27, 2015 6:14 pm
by dunbarx
There is a "subStacks" property. See the dictionary.

Craig Newman

Re: List of substacks

Posted: Wed Jan 28, 2015 5:27 pm
by MaxV
I prefer this solution using the menu: Tools -> Application browser

Re: List of substacks

Posted: Sat Jan 31, 2015 11:00 am
by D4vidrim
FourthWorld wrote:What platform are you running LiveCode on?
On Windows XP. :)

Re: List of substacks

Posted: Sun Feb 01, 2015 4:27 am
by FourthWorld
Do you have more than one monitor?

Re: List of substacks

Posted: Mon Feb 02, 2015 9:07 pm
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).

Re: List of substacks

Posted: Mon Feb 02, 2015 10:31 pm
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