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: Eli Zaretskii
Subject: Re: Change image upon mouse hover
Date: Wed, 06 Dec 2023 05:26:34 +0200

> 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?



reply via email to

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