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

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

Re: How to create SVG image as clickable button?


From: Jean Louis
Subject: Re: How to create SVG image as clickable button?
Date: Sun, 25 Sep 2022 14:07:01 +0300
User-agent: Mutt/+ () (2022-06-11)

* 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 via email to

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