Page 1 of 1

Group graphic and resize with group

Posted: Fri Apr 18, 2014 12:35 pm
by charms
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:

Code: Select all

on resizeControl
   set the rect of graphic "fsRect" to the rect of me
end resizeControl
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

Re: Group graphic and resize with group

Posted: Sat Apr 19, 2014 9:31 am
by jmburnod
Hi Chris,

There are some examples in this thread
http://forums.runrev.com/phpBB2/viewtop ... oom#p79421

Best regards
Jean-Marc