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

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: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: List of substacks

Post by Klaus » Tue Jan 27, 2015 4:28 pm

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: 10052
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: List of substacks

Post by FourthWorld » Tue Jan 27, 2015 5:16 pm

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: 10331
Joined: Wed May 06, 2009 2:28 pm

Re: List of substacks

Post by dunbarx » Tue Jan 27, 2015 6:14 pm

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 » Wed Jan 28, 2015 5:27 pm

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 » Sat Jan 31, 2015 11:00 am

FourthWorld wrote:What platform are you running LiveCode on?
On Windows XP. :)

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

Re: List of substacks

Post by FourthWorld » Sun Feb 01, 2015 4:27 am

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

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

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