resizing image icons

Mark Mitchell mark_mitchell at kmug.org
Wed Jun 26 05:24:01 EDT 2002


>>someone writes:
>on resizeImage theRatio theImage
>  set the defaultStack to "alphabet"
>  set the width of image id theImage to theRatio * item 1 of the mySize of
>image id  theImage
>  set the height of image id theImage to theRatio * item 2 of the   mySize
of image id  theImage
end resizeImage
ETC....ETC....!

I write:

Or you can collapse those handlers into one simpler one:

repeat with i = 1 to the number of buttons
put the icon of button i into myIcon
set the width of image id myIcon to the formattedWidth of button i
set the height of image id myIcon to the formattedHeight of button i
end repeat

Kanpai!
mark mitchell
Japan
 




More information about the use-livecode mailing list