mirror of
https://github.com/rabbibotton/clog.git
synced 2025-12-06 02:30:42 -08:00
Added has-pin option on title bar
This commit is contained in:
parent
90aa969fd1
commit
19adb38982
2 changed files with 33 additions and 30 deletions
|
|
@ -43,17 +43,13 @@
|
|||
(setf (box-height movie) "100%")))
|
||||
|
||||
(defun on-file-pinned (obj)
|
||||
(let ((win (create-gui-window obj :title "Pinned"
|
||||
(let ((win (create-gui-window obj :title "Pin me!"
|
||||
:has-pinner t
|
||||
:top 200
|
||||
:left 0
|
||||
:width 100
|
||||
:height 100)))
|
||||
(flet ((can-not-do (obj)(declare (ignore obj))()))
|
||||
(set-on-window-can-maximize win #'can-not-do)
|
||||
(set-on-window-can-close win #'can-not-do)
|
||||
(set-on-window-can-size win #'can-not-do))
|
||||
(window-keep-on-top win)
|
||||
(create-div win :content "I am pinned")))
|
||||
:width 200
|
||||
:height 200)))
|
||||
(create-div win :content "I can be pinned. Just click the pin on window bar.")))
|
||||
|
||||
(defun on-dlg-alert (obj)
|
||||
(alert-dialog obj "This is a modal alert box"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue