-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathicon.lisp
28 lines (22 loc) · 812 Bytes
/
icon.lisp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
;;; Generated from org-mode, do not edit
(eval-when (:compile-toplevel :load-toplevel :execute)
(ql:quickload '("iup" "iup-im")))
(defpackage #:iup-examples.icon
(:use #:common-lisp)
(:export #:icon))
(in-package #:iup-examples.icon)
(defun icon ()
(iup:with-iup ()
(let ((icon (iup-im:load-image (asdf:system-relative-pathname "iup" "examples/lispalien.ico"))))
(setf (iup:handle "lispalien") icon))
(let* ((label (iup:flat-label :image "lispalien" :expand :yes))
(dialog (iup:dialog label :title "Icon from File"
:icon "lispalien"
:size "THIRDxTHIRD")))
(iup:show dialog)
(iup:main-loop))))
#-sbcl (icon)
#+sbcl
(sb-int:with-float-traps-masked
(:divide-by-zero :invalid)
(icon))