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 »

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

Re: getting to substack

Post by dunbarx »

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 »

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

Re: getting to substack

Post by dunbarx »

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 »

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 »

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

Re: getting to substack

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

Re: getting to substack

Post by Da_Elf »

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

Re: getting to substack

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

Re: getting to substack

Post by Da_Elf »

the big one is the substack. its separate to the small one
\
screen.JPG
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10502
Joined: Wed May 06, 2009 2:28 pm

Re: getting to substack

Post by dunbarx »

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 »

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 »

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

Re: getting to substack

Post 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
Post Reply