Content is just a single text field.
I can save the loc and use that next time the window opens,
but since the loc numbers are based on the center of the object,
this stack jumps all over, depending on the sequence of the content size.
I'm really stumped here. How can I save the location a or stack
based on just one corner? (top, left would be ideal)
This code resizes the stack nicely, but I can't save a consistent loc value
because the center of the stack is always changing.
Code: Select all
set the width of fld "msg.text" to the width of this stack
set the height of field "msg.text" to the formattedheight of field "msg.text"
set the height of this stack to the height of fld "msg.text"
set the width of this stack to the width of fld "msg.text"
put the rect of fld "msg.text" into temp
replace item 1 of temp with "1" in temp
replace item 2 of temp with "1" in temp
set the rect of fld "msg.text" to temp