Next Prev Up Top Contents Index

destroy

Generic Function
Summary

The generic function destroy closes the window associated with an interface and then calls the interface's destroy-callback .

Syntax

destroy interface

Description

This closes the window associated with interface , and then calls the interface's destroy-callback if it has one. There is a complementary function quit-interface which calls the interface's confirm-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's confirm-destroy-function is ignored.

Example
(setq interface
      (capi:display (make-instance
                     'capi:interface
                     :title "Test Interface"
                     :destroy-callback
                       #'(lambda (interface)
                           (capi:display-message
                             "Quitting ~S"
                              interface)))))
(capi:destroy interface)
See also

interface
quit-interface


LispWorks CAPI Reference Manual - 14 Dec 2001

Next Prev Up Top Contents Index