> >   menuImage =  member("menu item").image.duplicate()
> >   put menuImage
> >   tempImage = member ("menu item").image.duplicate()
> >   put tempImage
>
> It looks to me like your tempImage is only one menu item tall. Try
> making it five times taller.

Thanks Colin (and Kerry and Carl for their personal replies) :)

Since I posted the question I decided not to go the path of imaging lingo
for this project (using James Newton's dropdown menu behavior instead), but
I do want to get the concept right for future reference. I tried changing
the height, by making a new image object, rather then duplicating an
existing one, plus some other changes:

on buildMenu me
  --  savedImage = member("placeHolder").image.duplicate()
  menuImage =  member("menu item").image.duplicate()

  theRect = menuImage.rect

  tempImage =image(theRect.width, theRect.height * 5, 32)

  tempRect = menuImage.rect
  repeat with i = 1 to 5
    tempRect = tempRect.offset (0, tempImage.rect.height)
    put tempRect
    tempImage.copyPixels(menuImage, tempRect, theRect)
  end repeat

  member("placeHolder").image = tempImage

end


Now I'm getting an image of the correct size, except... for some reason it's
all white ?

PS: "menu item" is a black rectangle, "placeHolder" is a single pixel cast
member. And I get the same result using a different cast member for "menu
item", such as a simple red rectanlge drawn in the paint window.

Thanks for all your help,

Karina



[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!]

Reply via email to