all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Change image upon mouse hover
Date: Wed, 06 Dec 2023 05:26:34 +0200	[thread overview]
Message-ID: <83v89c3tat.fsf@gnu.org> (raw)
In-Reply-To: <75069cb4-f9bd-4834-bf0d-38a23c331073@gmail.com> (message from Yuan Fu on Tue, 5 Dec 2023 13:24:29 -0800)

> 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	other threads:[~2023-12-06  3:26 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-05  5:44 Change image upon mouse hover Yuan Fu
2023-12-05 13:00 ` Eli Zaretskii
2023-12-05 21:24   ` Yuan Fu
2023-12-06  3:26     ` Eli Zaretskii [this message]
2023-12-07  1:45       ` Yuan Fu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83v89c3tat.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.