getting to substack

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
Da_Elf
Posts: 311
Joined: Sun Apr 27, 2014 2:45 am

getting to substack

Post by Da_Elf » Tue Dec 01, 2015 10:35 pm

when i run the program the substack is not visible. i put a button that uses both setting the substack to visible as well as trying to use go to card (main card of that substack) but still cant get it to display. in livecode when i rightclick on the substack and click go to it will pop it up

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10331
Joined: Wed May 06, 2009 2:28 pm

Re: getting to substack

Post by dunbarx » Tue Dec 01, 2015 11:10 pm

Hi.

What is the loc of the substack? Is it in front (top)?

Craig Newman

Da_Elf
Posts: 311
Joined: Sun Apr 27, 2014 2:45 am

Re: getting to substack

Post by Da_Elf » Tue Dec 01, 2015 11:36 pm

the other stack is tiny. its just to be able to select between two different substacks. so it cant be hiding the substack

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10331
Joined: Wed May 06, 2009 2:28 pm

Re: getting to substack

Post by dunbarx » Tue Dec 01, 2015 11:57 pm

OK.

So what is its loc?

Craig

Da_Elf
Posts: 311
Joined: Sun Apr 27, 2014 2:45 am

Re: getting to substack

Post by Da_Elf » Wed Dec 02, 2015 12:13 am

on openstack i set it to sxreen loc. its bigger than the screen though since its for printing reports

Da_Elf
Posts: 311
Joined: Sun Apr 27, 2014 2:45 am

Re: getting to substack

Post by Da_Elf » Wed Dec 02, 2015 12:24 am

i used
on openStack
set the location of this stack to the screenLoc
end openStack

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10331
Joined: Wed May 06, 2009 2:28 pm

Re: getting to substack

Post by dunbarx » Wed Dec 02, 2015 3:41 am

Hi.

The screenloc is the center of the screen, not the center of the card window. Try setting the loc of the missing stack to something nice, like a point within the window:

Code: Select all

set the loc of whomeEver to the width of this stack div 2 & "," & the height of this stack div 2
Craig

Da_Elf
Posts: 311
Joined: Sun Apr 27, 2014 2:45 am

Re: getting to substack

Post by Da_Elf » Wed Dec 02, 2015 11:45 pm

but a substack is not inside of a stack or anything. its a window of it own

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10331
Joined: Wed May 06, 2009 2:28 pm

Re: getting to substack

Post by dunbarx » Thu Dec 03, 2015 1:14 am

but a substack is not inside of a stack or anything. its a window of it own
Right.

So if you set the loc of the substack to a point in the interior of the mainstack, and make sure it is on top, and visible, and has a rect of some greater than zero size, I bet you will see it. Are all those little necessities in place?

Craig

Da_Elf
Posts: 311
Joined: Sun Apr 27, 2014 2:45 am

Re: getting to substack

Post by Da_Elf » Thu Dec 03, 2015 2:05 am

the big one is the substack. its separate to the small one
\
screen.JPG

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10331
Joined: Wed May 06, 2009 2:28 pm

Re: getting to substack

Post by dunbarx » Thu Dec 03, 2015 3:13 am

So, what is the issue now? Both stacks are visible. What do you still need?

Craig

Da_Elf
Posts: 311
Joined: Sun Apr 27, 2014 2:45 am

Re: getting to substack

Post by Da_Elf » Thu Dec 03, 2015 11:07 am

sigh... when i first open livecode or when i create the stand alone. the mainstack is shown but not the substack. the only way to get the substact to show is in livecode when i have to right click on the stack in the builder and click "Go". then it pops up

Da_Elf
Posts: 311
Joined: Sun Apr 27, 2014 2:45 am

Re: getting to substack

Post by Da_Elf » Thu Dec 03, 2015 11:48 am

finally found it. i tried the go stack "my stack" think but i needed to add toplevel to it

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10331
Joined: Wed May 06, 2009 2:28 pm

Re: getting to substack

Post by dunbarx » Thu Dec 03, 2015 2:52 pm

Ah. I had said:
..., and make sure it is on top,
It's always something. Usually it's me. This time it's you.

Craig

Post Reply