Substack not showing

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
ibe
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 61
Joined: Sun Oct 04, 2009 12:15 pm

Substack not showing

Post by ibe » Thu Aug 18, 2011 12:38 pm

I must be missing something obvious, but my problem is the following:
1. create main stack "abc"
2. create new substack of "abc" called "def"

both stacks are shown on the screen. Save and close Livecode. Next time I open stack "abc" only it is displayed. If i got to Application Browser and double-click on "def" it pops up.

How do I get the stack "def" to show automatically?

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

Re: Substack not showing

Post by Klaus » Thu Aug 18, 2011 12:43 pm

Hi ibe,

when you open a stackfile, only the mainstack will be opened automatically,
so add a script to your mainstack that opens the substack! :D
Mainstacks stack script:

Code: Select all

on openstack
  go stack "def"
  ## More openstack stuff here...
end openstack
Done!


Best

Klaus

ibe
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 61
Joined: Sun Oct 04, 2009 12:15 pm

Re: Substack not showing

Post by ibe » Thu Aug 18, 2011 4:21 pm

:-) Thanks.

Post Reply