I have a number of objects on my main stack linked to a substack.
I have used the geometry pane to resize to scale on the images on both the main and substack.
However when I resize the main stack the images linked to the substack do not resize as I hoped they would.
Any ideas? Thanks.
Geometry pane for resizing
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: Geometry pane for resizing
You'll need to script it yourself. The geometry manager is ok for very simple setups where you just want to arrange things on the current stack when the stack is resized.
Look at "resizestack" in the dictionary. You can use resize stack to run your custom sizing and positioning code. Without knowing exactly what you want to do, here is a very short simple example.
on resizestack
resizeTheMainStackObjects --run the custom resizing handler for the stack
send "resizeTheSubStackObjects" to me in 1 tick -- run the custom resizing handler for the substack
end resizestack
command resizeTheMainStackObjects -- create a handler and name it whatver.
--size and position all your objects on the main stack
end resizeTheMainStackObjects
command resizeTheSubStackObjects -- this runs after the mainstack is sized, so that its new object sizes and positions can be referenced by the substack
-- put your code to resize the substack here
end resizeTheSubStackObjects
Look at "resizestack" in the dictionary. You can use resize stack to run your custom sizing and positioning code. Without knowing exactly what you want to do, here is a very short simple example.
on resizestack
resizeTheMainStackObjects --run the custom resizing handler for the stack
send "resizeTheSubStackObjects" to me in 1 tick -- run the custom resizing handler for the substack
end resizestack
command resizeTheMainStackObjects -- create a handler and name it whatver.
--size and position all your objects on the main stack
end resizeTheMainStackObjects
command resizeTheSubStackObjects -- this runs after the mainstack is sized, so that its new object sizes and positions can be referenced by the substack
-- put your code to resize the substack here
end resizeTheSubStackObjects