Page 1 of 1
Embedding a sub stack
Posted: Wed Jun 10, 2009 4:17 am
by bidgeeman
Hi.
Warning: New user question here

I'm trying to embed a substack in a mainstack so I can navigate between the substacks cards while working in the main window. Is there a way to do this or is there a bettwer way to go about it?
I followed the basic video tutorial on Tabs but they use a button to called them from a seperate stack. I would like the tabs to be there all the time set to ehave as a background but with it's own set of cards.
Many thanks
Bidge
Posted: Wed Jun 10, 2009 8:15 am
by Mark
Hi Bidge,
I'm not sure what you mean. You should probably reconsider your interface. One possibility is to use a palette with buttons for navigation.
Best,
Mark
Posted: Wed Jun 10, 2009 9:24 am
by bidgeeman
Hi Mark.
Yes....you're probably right about reconsidering the interface.
Is it possible to have two stacks locked together? So that when you move the mainstack the second stack follows it?
Cheers
Bidge
Posted: Thu Jun 11, 2009 12:23 pm
by Klaus
Hi Bidge,
well, I also do not understand what you are after from your first post here?
bidgeeman wrote:Hi Mark.
Yes....you're probably right about reconsidering the interface.
Is it possible to have two stacks locked together?
So that when you move the mainstack the second stack follows it?
Cheers
Bidge
But this is definitively possible, see "movestack" in the docs.
This message is being sent continuously to a stack as long as the
user moves the window on the screen.
Example:
1. You have stack "A" and "B".
2. You want to stick stack "B" to the right side of stack "A" when the user moves stack "A".
3. Put this into the stack script of stack "A":
Code: Select all
on movestack
## Important!
## First check if stack "B" is really open!
if "B" is not in the openstacks then
exit movestack
end if
## Stack "B" is open:
set the topleft of stack "B" to the topright of stack "A"
end movestack
Now move your ass and your mind will follow!
Erm... I mean of course: move stack "A" and stack "B" will follow
Best from germany
Klaus
Posted: Thu Jun 11, 2009 12:42 pm
by bidgeeman
Ahh...thanks Klause.
The word I was looking for as "Dock" sorry

Is it possible to dock a sub stack to a main stack.
I shall now go and move.....er....dock my Ass
Many thanks
Bidge
Posted: Thu Jun 11, 2009 12:56 pm
by Klaus
Hi Bidge,
bidgeeman wrote:Ahh...thanks Klause.
The word I was looking for as "Dock" sorry

Is it possible to dock a sub stack to a main stack.
Well, if you position your stack_to_dock "on preopenstack" where you want it
(like in the movestack handler) and with the above mentioned "movestack"
handler you should have the "dock" functionality, right?
There is no built-in "dock" thingie!
bidgeeman wrote:...
I shall now go and move.....er....dock my Ass
Many thanks
Bidge
Yeah, funky, funky
Best
Klaus
Posted: Thu Jun 11, 2009 3:43 pm
by WaltBrown
Docking a substack/palette in a main stack window (like having an undockable "stack field" object) would be very interesting. The Rev IDE is a good example - I use a large second monitor where I "park" the things I am working on, and move whatever is current to my main monitor. I would like to be able to just drag all of the Rev IDE between monitors at one time.
Posted: Fri Jun 12, 2009 12:01 am
by bidgeeman
Hi Walt. Yes you're right...That, (Rev interface), is exaclty what made me think of it. I have another program that I use a lot written in Lua. It feature floating and dockable windows. I thought there may be a function in Rev thsat was similar.
Cheers
Bidge