Page 1 of 1

getting to substack

Posted: Tue Dec 01, 2015 10:35 pm
by Da_Elf
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

Re: getting to substack

Posted: Tue Dec 01, 2015 11:10 pm
by dunbarx
Hi.

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

Craig Newman

Re: getting to substack

Posted: Tue Dec 01, 2015 11:36 pm
by Da_Elf
the other stack is tiny. its just to be able to select between two different substacks. so it cant be hiding the substack

Re: getting to substack

Posted: Tue Dec 01, 2015 11:57 pm
by dunbarx
OK.

So what is its loc?

Craig

Re: getting to substack

Posted: Wed Dec 02, 2015 12:13 am
by Da_Elf
on openstack i set it to sxreen loc. its bigger than the screen though since its for printing reports

Re: getting to substack

Posted: Wed Dec 02, 2015 12:24 am
by Da_Elf
i used
on openStack
set the location of this stack to the screenLoc
end openStack

Re: getting to substack

Posted: Wed Dec 02, 2015 3:41 am
by dunbarx
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

Re: getting to substack

Posted: Wed Dec 02, 2015 11:45 pm
by Da_Elf
but a substack is not inside of a stack or anything. its a window of it own

Re: getting to substack

Posted: Thu Dec 03, 2015 1:14 am
by dunbarx
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

Re: getting to substack

Posted: Thu Dec 03, 2015 2:05 am
by Da_Elf
the big one is the substack. its separate to the small one
\
screen.JPG

Re: getting to substack

Posted: Thu Dec 03, 2015 3:13 am
by dunbarx
So, what is the issue now? Both stacks are visible. What do you still need?

Craig

Re: getting to substack

Posted: Thu Dec 03, 2015 11:07 am
by Da_Elf
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

Re: getting to substack

Posted: Thu Dec 03, 2015 11:48 am
by Da_Elf
finally found it. i tried the go stack "my stack" think but i needed to add toplevel to it

Re: getting to substack

Posted: Thu Dec 03, 2015 2:52 pm
by dunbarx
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