home *** CD-ROM | disk | FTP | other *** search
- on getButtonRect whichMember, shiftAmount
- global mapRegPoint, slideShiftH
- if voidp(shiftAmount) then
- set shiftAmount to 0
- end if
- set shiftAmount to shiftAmount * slideShiftH
- set nextMemNumber to the number of member whichMember
- set nextRegPoint to the regPoint of cast nextMemNumber
- set nextWidth to the width of cast nextMemNumber
- set nextHeight to the height of cast nextMemNumber
- set centerH to getAt(nextRegPoint, 1) - shiftAmount
- set centerV to getAt(nextRegPoint, 2)
- set leftH to getAt(mapRegPoint, 1) - centerH
- set rightH to leftH + nextWidth
- set topV to getAt(mapRegPoint, 2) - centerV
- set bottomV to topV + nextHeight
- set theRect to rect(leftH, topV, rightH, bottomV)
- return theRect
- end
-