have two stacks active?

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
jalz
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 340
Joined: Fri Sep 12, 2008 11:04 pm

have two stacks active?

Post 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
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10501
Joined: Wed May 06, 2009 2:28 pm

Re: have two stacks active?

Post 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
FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10103
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: have two stacks active?

Post 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.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
robl
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 62
Joined: Wed Dec 22, 2010 9:50 pm

Re: have two stacks active?

Post 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.
jalz
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 340
Joined: Fri Sep 12, 2008 11:04 pm

Re: have two stacks active?

Post by jalz »

Thankyou all for answering, this gives me a couple options for my interface
Post Reply