Code: Select all
show myObjectName
Walt
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Code: Select all
show myObjectName
Code: Select all
on mouseUp
open stack "Untitled 2" in the window of stack "Untitled 1"
end mouseUp
Klaus wrote:Hi Mark,
maybe:
...
palette "Quicktagger"
...
will work for you?
Or dou you mean the stack is really not "visible" which IS indeed a porperty of a stack?
Best
Klaus
Code: Select all
on openStack
set the raisePalettes to true -- Make inner stacks float in their own layer above the outer stack
positionInnerStacks the left of me, the top of me -- ensure that all the inner stacks are shown correctly
end openStack
on moveStack newStackLeft,newStackTop
positionInnerStacks newStackLeft, newStackTop -- ensure that all the inner stacks are shown correctly
end moveStack
on positionInnerStacks outerStackLeft,outerStackTop
put the substacks of me into innerStackNames
-- To change the layout, simply edit the top-left corner coordinates on the next line
put "0 0, 402 0, 0 302, 402 302" into innerStackLocations -- Be sure they are in substacks order
send "showInnerStacks" to me in 1 second -- Prevent flickering
repeat with i = 1 to the number of lines in innerStackNames
put line i of innerStackNames into innerStackName
-- Prepare inner stack
set the shadow of stack innerStackName to false -- Usually looks better
palette stack innerStackName -- Causes palette behavior
hide stack innerStackName -- Prevent flickering
-- Position inner stack
put item i of innerStackLocations into hv
set the left of stack innerStackName to outerStackLeft + word 1 of hv
set the top of stack innerStackName to outerStackTop + word 2 of hv
end repeat
end positionInnerStacks
on showInnerStacks -- Prevent flickering
repeat for each line innerStackName in the substacks of me
show stack innerStackName
end repeat
end showInnerStacks
Code: Select all
open stack "Untitled 2" in the window of stack "Untitled 1"
In a subsequent message, one containing illustrations, pmc further clarified the requirement. I believe that my solution addresses it. Yours is much shorter than mine, but when I try to incorporate it into a real-world example, it doesn't do what I think pmc wanted.I want my substack to be inside the panel of the Mainstack, which does not go beyond it(the mainstack). Something like an object, eg. Tab panel, which you put into a card. You see, the tab panel which you put in a card does not 'move' out from this card, it stayed inside it. And furthermore, you are able to specify the size and position of the tab panel in the card.
Code: Select all
open stack "Outer" -- works as expected
open stack "Upper Left" in the window of stack "Outer" -- Changes the title and content of the window "Outer" to that of the stack "Upper Left"
open stack "Lower Left" in the window of stack "Outer" -- Message execution error: Error description: go: error in window expression
open stack "Outer" -- Opens the stack "Outer" in a new (yet another) window
This replaces the content of stack "B" (what you see on the screen, not the actual file) with the content of stack "A".. This is a nice method to open a new stack in the same location and size as a previous stack but without all the flickering..open stack "A" in the window of stack "B"
Code: Select all
set the destroyStack of this stack to true