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

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

How to create SVG image as clickable button?


From: Jean Louis
Subject: How to create SVG image as clickable button?
Date: Sat, 24 Sep 2022 08:26:17 +0300

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/



reply via email to

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