unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* How to create SVG image as clickable button?
@ 2022-09-24  5:26 Jean Louis
  2022-09-24 21:46 ` Jean Louis
  0 siblings, 1 reply; 4+ messages in thread
From: Jean Louis @ 2022-09-24  5:26 UTC (permalink / raw)
  To: Help GNU Emacs

I would like to generate various buffers with menus of clickable
images.

I see that SVG is not recognized as image.

(insert-image "/home/data1/protected/Programming/git/haiku-icons/svg/Action_GoBack_3_Large.svg")

Debugger entered--Lisp error: (error "Not an image: /home/data1/protected/Programming/git/haiku-icons/svg/Action_GoBack_3_Large.svg")
  signal(error ("Not an image: /home/data1/protected/Programming/gi..."))
  error("Not an image: %s" "/home/data1/protected/Programming/git/haiku-icons/...")
  insert-image("/home/data1/protected/Programming/git/haiku-icons/...")

Even if not, I would like to be able to insert images and make them
clickable button.

Is there any working example anywhere?

I make buttons anywhere, but not as image.

This is my failed attempt:

(insert-button "Image"
 'display '(image . (:file "/home/data1/protected/Programming/git/haiku-icons/svg/Action_GoBack_3_Large.svg")))


Jean

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

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



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-09-25 11:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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).