Bring a stack to front when it is already open

Richard Gaskin ambassador at fourthworld.com
Mon Oct 28 19:45:35 EDT 2024


Bob wrote:

> This may seem simple, but for some reason it’s not working. I have a
> Views function that can open multiple windows in one click, but
> sometimes stacks can be obscured by others, so I have a Modules Menu
> where you can select a stack and it will open it. 
>
> The problem is, Open Stack and Go Card x Of Stack are not bringing
> the stack I select to the front, and neither is topLevel which only
> works if the stack is not already open. 

"open stack <stackname>" works. If it's not working there something else is in play.


Quick verification:

1. Create a stack, name it "AAA"
2. Create a bunch of other stacks, so "AAA" is behind them
3. Run this in the Message Box:

   open stack "AAA"

Result: "AAA" comes to the front of all stack windows

--
Richard Gaskin
FourthWorld.com



More information about the use-livecode mailing list