help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Change image upon mouse hover


From: Yuan Fu
Subject: Re: Change image upon mouse hover
Date: Wed, 6 Dec 2023 17:45:33 -0800
User-agent: Mozilla Thunderbird



On 12/5/23 7:26 PM, Eli Zaretskii wrote:
Date: Tue, 5 Dec 2023 13:24:29 -0800
From: Yuan Fu <casouri@gmail.com>

I want to change the left one to the right one when mouse hovers over
it. Is it possible? What's the best way to do it?
Did you try to use the help-echo text property?  Its value can be a
function, see "Special Properties" in the ELisp manual.

Thanks, this works brilliantly! However, now I realized that there's
another problem: I need to change the image back to the one with no
background when cursor leaves the button.
I guess you'd need a timer to do that?

Why didn't I think of that? Yes, that works great! Thanks! I was trying crazy hacks on track-mouse and read-events and had no luck ;-)

Yuan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]