mirror of
https://github.com/rabbibotton/clog.git
synced 2025-12-06 02:30:42 -08:00
clog-gui-window start
This commit is contained in:
parent
22b64dafe0
commit
c691b40578
7 changed files with 270 additions and 12 deletions
|
|
@ -4,19 +4,24 @@
|
|||
|
||||
(in-package :clog-user)
|
||||
|
||||
(defun on-file-new (body)
|
||||
(setf (set-on-window-size-done (create-gui-window body))
|
||||
(lambda (obj)
|
||||
(print "sized"))))
|
||||
|
||||
(defun on-new-window (body)
|
||||
(clog-gui-initialize body)
|
||||
(add-class body "w3-teal")
|
||||
(let* ((menu (create-gui-menu-bar body))
|
||||
(icon (create-gui-menu-icon menu))
|
||||
(file (create-gui-menu-drop-down menu :content "File"))
|
||||
(new (create-gui-menu-item file :content "New"))
|
||||
(new (create-gui-menu-item file :content "New" :on-click #'on-file-new))
|
||||
(open (create-gui-menu-item file :content "Open"))
|
||||
(save (create-gui-menu-item file :content "Save"))
|
||||
(help (create-gui-menu-drop-down menu :content "Help"))
|
||||
(about (create-gui-menu-item help :content "About"))
|
||||
(fs (create-gui-menu-full-screen menu))))
|
||||
|
||||
|
||||
(run body))
|
||||
|
||||
(defun start-tutorial ()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue