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
have two stacks active?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: have two stacks active?
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
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
-
- VIP Livecode Opensource Backer
- Posts: 10052
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: have two stacks active?
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.
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
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: have two stacks active?
You can set the Navigation stack as a pallete.
or
This will keep the navigation stack active on the screen, much like the LiveCode tool palette.
Code: Select all
go to stack "Navigation" as palette
Code: Select all
palette stack "Navigation"
Re: have two stacks active?
Thankyou all for answering, this gives me a couple options for my interface