Transparent Images
Rob Cozens
rcozens at pon.net
Wed Nov 13 13:17:15 EST 2002
>All transparent pixels in images ignore mouse events.
>How can I change this?
>I wuold like transparent pixels of my images answer to mouse events and I
>do not want to set the image as the icon of a button.
>Place a button with this handler behind the image:
>
>on mouseUp
> send mouseUp to image [your image name or "id" + image id here]
>end mouseUp
I should have noted that the handler assumes a rectangular image the
same size as the button. If your image is irregular, you would need
to test the mouseLoc and determine whether it is within the image
before sending mouseUp to the image.
--
Rob Cozens
CCW, Serendipity Software Company
http://www.oenolog.com/who.htm
"And I, which was two fooles, do so grow three;
Who are a little wise, the best fooles bee."
from "The Triple Foole" by John Donne (1572-1631)
More information about the use-livecode
mailing list