substack foreground

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
link76
Posts: 99
Joined: Fri Nov 04, 2011 1:52 pm

substack foreground

Post by link76 » Tue May 15, 2012 2:03 pm

Hello,
when I open the sub-stack, it is not in the foreground but behind the main stack,
how can I fix this?

Code: Select all

open stack "mysubstack"

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

Re: substack foreground

Post by Klaus » Tue May 15, 2012 2:16 pm

Hi link76,

welcome to the forum! :D

Make sure the mainstack is NOT a "palette", "sytemwindow" or any other window type that is always n the foreground!
Try:
...
toplevel stack "your substack here"
...


Best

Klaus

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4172
Joined: Sun Jan 07, 2007 9:12 pm

Re: substack foreground

Post by bn » Tue May 15, 2012 2:21 pm

Hi Link76,

try

Code: Select all

go stack "mysubstack"
and see if that helps.

If you issue that in a stack handler of the main stack it works. On the other side if you issue this in a preopenstack handler it will not bring the substack to the foreground.
When and how do you want to show the substack?
Kind regards
Bernd

link76
Posts: 99
Joined: Fri Nov 04, 2011 1:52 pm

Re: substack foreground

Post by link76 » Wed May 16, 2012 7:03 am

I have a main stack, when I click on the button open a substack 1 and close the main stack is ok.

but ... from substack1 I open the substack2 but it is behind

MAIN STACK

Code: Select all

open stack "substack1"
close stack "mainstack"
SUBSTACK1

Code: Select all

on MouseUp
open stack "substack2"
end MouseUP 
substack2 is behind substack1 :cry:

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

Re: substack foreground

Post by Klaus » Wed May 16, 2012 8:41 am

Did you try our proposals?

link76
Posts: 99
Joined: Fri Nov 04, 2011 1:52 pm

Re: substack foreground

Post by link76 » Wed May 16, 2012 8:48 am

Klaus wrote:Did you try our proposals?

Code: Select all

toplevel stack "your substack here"
don't work :cry: and the main stack is not a "palette", "sytemwindow"

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

Re: substack foreground

Post by Klaus » Wed May 16, 2012 9:46 am

Aha.Hmm, that should work, no idea so far...

I could offer to take a look at your stack, if you like!?
Send it to: klaus AT major-k.de

Post Reply