Code: Select all
on resizeControl
put the rect of me into grploc
put the width of me into grpwidth
put the height of me into grpheight
put (item 1 of grploc) + (grpwidth * .25) into pt1
put (item 2 of grploc) + (grpheight * .15) into pt2
put (item 3 of grploc) - (grpwidth * .25) into pt3
put (item 4 of grploc) - (grpheight * .6) into pt4
put pt1,pt2,pt3,pt4 into newloc
set the rect of graphic "knob" to newloc
end resizeControl