Page 1 of 1

substack foreground

Posted: Tue May 15, 2012 2:03 pm
by link76
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"

Re: substack foreground

Posted: Tue May 15, 2012 2:16 pm
by Klaus
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

Re: substack foreground

Posted: Tue May 15, 2012 2:21 pm
by bn
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

Re: substack foreground

Posted: Wed May 16, 2012 7:03 am
by link76
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:

Re: substack foreground

Posted: Wed May 16, 2012 8:41 am
by Klaus
Did you try our proposals?

Re: substack foreground

Posted: Wed May 16, 2012 8:48 am
by link76
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"

Re: substack foreground

Posted: Wed May 16, 2012 9:46 am
by Klaus
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