Move stack window to front

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
lohill
Posts: 770
Joined: Tue Dec 08, 2009 6:37 pm

Move stack window to front

Post by lohill » Thu Jan 10, 2013 8:10 pm

I am opening a stack by double-clicking on a row of a datagrid in stack A. When stack B opens there is some processing that takes place there and when all is said and done stack B ends up being behind stack A. I want stack B to be the active stack at that point that is to say I want stack B to be in from of stack A. What command can I use to get it there?

Thanks,
Larry

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Move stack window to front

Post by Mark » Thu Jan 10, 2013 9:00 pm

Hi Larry,

Use the go or show command to make a stack the front window. The go command can change the mode of a stack, which is why sometimes the show command is better.

Kind regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

lohill
Posts: 770
Joined: Tue Dec 08, 2009 6:37 pm

Re: Move stack window to front

Post by lohill » Fri Jan 11, 2013 12:17 am

Thanks Mark,
Use the go or show command to make a stack the front window. The go command can change the mode of a stack, which is why sometimes the show command is better.
I tried both in multiple places with no luck. Finally when I commented out a 'pass doubleMouseUp" it began to stay in front.

Larry

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Move stack window to front

Post by Mark » Fri Jan 11, 2013 12:41 am

Hi Larry,

Apparently, you have a mouseDoubleUp handler somewhere, which puts the wrong stack in front. By removing the pass command, you don't run that handler anymore.

Kind regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Post Reply