Page 1 of 1

have two stacks active?

Posted: Sun Jan 12, 2014 5:43 pm
by jalz
Hi Guys,

Just wondering, is it possible to have two stacks active, or focussed on. I'm planning to have one main stack as my navigation, buttons which then open up the the relevant substack screens/modules. The only thing is, when the other substacks are opened, the main stack seems to lose focus and go in the background still open but dimmed out. I'd ideally like it to remain at the front, and not dimmed out I suppose a bit like the tools palette in the live code editor if that makes sense. I'm just looking at navigation options here, but what I suggest, is that possible with live code easily?

Thanks

Jalz

Re: have two stacks active?

Posted: Sun Jan 12, 2014 5:57 pm
by dunbarx
Hi.

I think what you may need is a palette, which can float above your main stack and still appear "focussed".

This is a stack property.

Craig Newman

Re: have two stacks active?

Posted: Sun Jan 12, 2014 5:57 pm
by FourthWorld
Stacks have modes, including toplevel, modal, modeless, and palette.

To comply with the HIGs of the platforms it supports, only one stack can have true focus at any given time (that is, only one focus for keyboard events).

But you can avoid having a stack overlap another by having one of them opened in palette mode. As with any other app, you would still need to click in each window to give it focus for key events, but palette windows are always on top of others within a given app.

If needed, you can even have a stack above all others in the OS by setting its systemWindow property to true. Probably not needed for what you're looking for, but good to know about in case you may wish to make system-wide utilities down the road.

Re: have two stacks active?

Posted: Sun Jan 12, 2014 5:59 pm
by robl
You can set the Navigation stack as a pallete.

Code: Select all

go to stack "Navigation" as palette
or

Code: Select all

palette stack "Navigation"
This will keep the navigation stack active on the screen, much like the LiveCode tool palette.

Re: have two stacks active?

Posted: Sun Jan 12, 2014 8:14 pm
by jalz
Thankyou all for answering, this gives me a couple options for my interface