1 CAPI Reference Entries
destroy
closes the window associated with an interface and then calls the interface'sdestroy-callback
.
destroy interface
destroy-callback
if it has one. There is a complementary functionquit-interface
which calls the interface'sconfirm-destroy-function
to confirm that the destroy should be done, and it is advisable to always use this unless you want to make sure that the interface'sconfirm-destroy-function
is ignored.
(setq interface (capi:display (make-instance 'capi:interface :title "Test Interface" :destroy-callback #'(lambda (interface) (capi:display-message "Quitting ~S" interface)))))(capi:destroy interface)
interface
quit-interface
Generated with Harlequin WebMaker