unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Jean Louis <bugs@gnu.support>
To: Felix Dietrich <felix.dietrich@sperrhaken.name>
Cc: Help GNU Emacs <help-gnu-emacs@gnu.org>
Subject: Re: How to create SVG image as clickable button?
Date: Sun, 25 Sep 2022 14:07:01 +0300	[thread overview]
Message-ID: <YzA2VUoHe8G4Z8pn@protected.localdomain> (raw)
In-Reply-To: <87leq7bzfg.fsf@sperrhaken.name>

* Felix Dietrich <felix.dietrich@sperrhaken.name> [2022-09-25 12:02]:


    (let* ((path "/home/data1/protected/hyperscope/7/2/7/8/1/2022/09/2022-09-25/1608839248781.jpg")
           (image (create-image path)))
      ;; (insert-button (propertize " " 'display image)
      ;;                'action …
      (insert-button " "
                     'display image
                     'action (lambda (button)
                               (hyperscope 1))))) 

Thank you, that works so well. It will help me make more visual menus.

In particular I wish to have simple text with images displayed, for
purpose of fancy menus and purpose of displaying people profiles,
akin to FBI files.

-- 
Jean

Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns

In support of Richard M. Stallman
https://stallmansupport.org/
 



      reply	other threads:[~2022-09-25 11:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-24  5:26 How to create SVG image as clickable button? Jean Louis
2022-09-24 21:46 ` Jean Louis
2022-09-25  9:01   ` Felix Dietrich
2022-09-25 11:07     ` Jean Louis [this message]

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=YzA2VUoHe8G4Z8pn@protected.localdomain \
    --to=bugs@gnu.support \
    --cc=felix.dietrich@sperrhaken.name \
    --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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).