Hi Paul,
Thanks for this - this was the perfect solution for my needs.
(I just modified the loading script to add three lines: grab the alphaData,
replace numtobyte(0) with numtobyte(1), put it back...).
cheers,
Ben
On 03/04/2017 04:29, Paul Hibbert via use-livecode wrote:
Ben, if you coul
Ben, if you could edit the PNGs to add a 1% tone to the transparent areas
(maybe with a batch process) this allows LC to accept the clicks within the
image area.
The advantage of this is you could have a 1 % tone inside the area you need be
active and completely transparent where you don’t want
Place a grc of the right size behind the image. Make sure the grc is set to
opaque. Group the grc and the image and place your mouseup handler in the
group. If they click a visible portion of the image it'll fire the groups
mouseup, if they click a trasnarent spot, the (blended and invisible) grc
I have a group containing a grid of square images.
Some of the images are gifs, some are pngs, and some of the latter have an
alpha channel with some transparent bits.
The images are all used as buttons, to control something else - the images in
essence are labels or icons for the buttons. Th