Hi guys,
I'm totally stumped... :(
The following handler is supposed to copy a bunch of rectangles (from the
"menu item" cast member) one after the other, into a single pixel cast
member. Right now, it only copies one of them (or all of them into the same
rectangle area, I don't know...)
Can anyone tell me what I'm doing wrong? My time is desperately running out
on this!
on buildMenu
-- savedImage = member("placeHolder").image.duplicate()
menuImage = member("menu item").image.duplicate()
put menuImage
tempImage = member ("menu item").image.duplicate()
put tempImage
tempRect = menuImage.rect
tempHeight = 0
repeat with i = 1 to 5
tempRect = tempRect.offset (0, tempHeight)
put tempRect
tempImage.copyPixels(menuImage, tempRect, member("menu
item").image.rect)
tempHeight = tempHeight + menuImage.height
end repeat
member("placeHolder").image = tempImage
end
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]