Group graphic and resize with group
Posted: Fri Apr 18, 2014 12:35 pm
Hi,
I know this is rather a trivial question but I can't get it to work. I want to create a file system browser. The browser consists of a rectangle in the background and a group that has a vertical scrollbar that contains the rectangle. I would like that if I resize the group the rectangle is resizing to the the same height, width and location of the group. I tried following code inside the group:
When I try to resize the group however the size goes totally mad. It scales like mad and I'm not able to move the object. Can somebody help me with this?
Thanks,
Chris
I know this is rather a trivial question but I can't get it to work. I want to create a file system browser. The browser consists of a rectangle in the background and a group that has a vertical scrollbar that contains the rectangle. I would like that if I resize the group the rectangle is resizing to the the same height, width and location of the group. I tried following code inside the group:
Code: Select all
on resizeControl
set the rect of graphic "fsRect" to the rect of me
end resizeControl
Thanks,
Chris