Page 1 of 1

Question about Image transparency and MouseOverAction

Posted: July 14th, 2017, 10:09 pm
by Gchef65
I've been modifying a simple launcher to have one button open a list of other buttons, when the cursor hovers over it. I was trying to use some transparent background images to bridge the gap between text and to expand the area that you can hover in, like I have in this gif. The green box uses MouseOverAction to keep the list unhidden and MouseLeaveAction to hide it again.

Image

However, whenever I make the green box transparent, MouseOverAction doesn't doesn't work, Like in this gif. The only thing I changed was to set the transparency to 0.

Image

Can anyone give me any suggestions on how to get this to work or on a better way of doing this? I can provide the code if you need it. Thanks a lot for your help.

Edit: I also have a image from the word Games to the next column that has a MouseOverAction to unhide the games list.

Re: Question about Image transparency and MouseOverAction

Posted: July 14th, 2017, 10:27 pm
by mak_kawa
What if you set the transparency to 1?

Re: Question about Image transparency and MouseOverAction

Posted: July 14th, 2017, 10:27 pm
by jsmorley
Set the opacity to "1", not "0". Then it will be "invisible", but still react to the mouse.

Re: Question about Image transparency and MouseOverAction

Posted: July 14th, 2017, 11:13 pm
by Gchef65
That worked thanks a lot. Kind of an odd issue to me. Does rainmeter just ignore images with 0 transparency?

Re: Question about Image transparency and MouseOverAction

Posted: July 15th, 2017, 12:27 pm
by jsmorley
Gchef65 wrote:That worked thanks a lot. Kind of an odd issue to me. Does rainmeter just ignore images with 0 transparency?
Yes it does. Fully transparent areas of the skin, with an opacity of "0", are not detected by the mouse. This is of great benefit in many cases, but must be considered when changing something between "visible" and "invisible". An opacity of "1" is how you deal with that.