mirror of
https://github.com/rabbibotton/clog.git
synced 2025-12-06 02:30:42 -08:00
custom boot page export
This commit is contained in:
parent
b17bfe1036
commit
67cee3fa86
2 changed files with 20 additions and 3 deletions
|
|
@ -1121,11 +1121,28 @@ of controls and double click to select control."
|
|||
(btn-rndr (create-button tool-bar :content "Rndr"))
|
||||
(btn-save (create-button tool-bar :content "Save"))
|
||||
(btn-load (create-button tool-bar :content "Load"))
|
||||
(btn-exp (create-button tool-bar :content "Export"))
|
||||
(wcontent (center-panel pbox)))
|
||||
(create-div wcontent :content
|
||||
"<br><center>Drop and work with controls on it's window.</center>")
|
||||
(setf (background-color tool-bar) :silver)
|
||||
;; setup tool bar events
|
||||
(set-on-click btn-exp (lambda (obj)
|
||||
(server-file-dialog obj "Export as Boot HTML" "./"
|
||||
(lambda (filename)
|
||||
(when filename
|
||||
(maphash
|
||||
(lambda (html-id control)
|
||||
(declare (ignore html-id))
|
||||
(place-inside-bottom-of (bottom-panel box)
|
||||
(get-placer control)))
|
||||
(get-control-list app panel-id))
|
||||
(save-body-to-file filename :body body :if-exists :rename)
|
||||
(maphash
|
||||
(lambda (html-id control)
|
||||
(declare (ignore html-id))
|
||||
(place-after control (get-placer control)))
|
||||
(get-control-list app panel-id)))))))
|
||||
(set-on-click btn-copy (lambda (obj)
|
||||
(declare (ignore obj))
|
||||
(when (current-control app)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue