Issue with png images in group and "mouseup" detection
Dan Friedman
dan at clearvisiontech.com
Sat Apr 19 13:51:48 EDT 2025
Jbv,
I know this issue! I don’t know of a way to get the transparent portion of a PNG image to receive a message. So, what I do is use a button instead. Set the icon of the button to the png image and set the button to be transparent. POOF! Problem solved!
Hope that helps.
-Dan
From: use-livecode <use-livecode-bounces at lists.runrev.com> on behalf of jbv via use-livecode <use-livecode at lists.runrev.com>
Date: Saturday, April 19, 2025 at 8:06 AM
To: How to use LiveCode <use-livecode at lists.runrev.com>
Cc: jbv at souslelogo.com <jbv at souslelogo.com>
Subject: Issue with png images in group and "mouseup" detection
Hi list,
I have a group containing several fields and 2 images,
and these images are of png format with some transparent
areas.
I need to detect "mouseup" events on these elements with
a "on mouseup" handler in the group script.
When I click on the transparent area of each image,
"mouseup" is detected and the script runs accordingly,
But when I click on the opaque areas of the images, nothing
happens.
I tried to add a "pass mouseup" handler in the script
of each image, but to no avail.
In other words, I am stuck.
Any suggestion ?
Thank you in advance.
jbv
_______________________________________________
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list