Resizing stack and group positions...
Posted: Mon Oct 31, 2011 2:24 pm
Hi there,
I already read that the position of a grp/img will be resetted if I resize a stack. Further I read that I have to lock size and position to prevent this. But I got a problem with that.
In my little teststack I got a single picture which contains the following script:
The drag&drop works fine but when I resize the stack the img-position will be resetted. I want that the image will be shown on his relative stackposition after rsizing the stack (I use the geometry manager). For example, if I drag the image to middle of the stack and resize the stack, the img shall already be in the middle of the stack.
Edit: I tested a bit more. It seems that it works when I only use the geometry manager for changing the horizontal position of the image. But if I want to change both coords (x and y) when the stack is reasized the image will be resetted to the position where it was before I drag it.
Any ideas?
Thanks alot Thomas
note: I tested it with Livecode 4.6.3 on windows 7.
I already read that the position of a grp/img will be resetted if I resize a stack. Further I read that I have to lock size and position to prevent this. But I got a problem with that.
In my little teststack I got a single picture which contains the following script:
Code: Select all
on mousedown
set the LockLocation of me to false
grab me
set the LockLocation of me to true
end mousedown
Edit: I tested a bit more. It seems that it works when I only use the geometry manager for changing the horizontal position of the image. But if I want to change both coords (x and y) when the stack is reasized the image will be resetted to the position where it was before I drag it.
Any ideas?
Thanks alot Thomas
note: I tested it with Livecode 4.6.3 on windows 7.