Group graphic and resize with group

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
charms
Posts: 122
Joined: Mon Feb 10, 2014 6:21 pm
Contact:

Group graphic and resize with group

Post by charms » 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:

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
Attachments
resizeGroupAndRect.livecode.zip
(939 Bytes) Downloaded 194 times

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: Group graphic and resize with group

Post by jmburnod » Sat Apr 19, 2014 9:31 am

Hi Chris,

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

Best regards
Jean-Marc
https://alternatic.ch

Post Reply