Next Previous Up Top Contents Index

1 CAPI Reference Entries

destroy

Generic Function

Summary

The generic functiondestroy closes the window associated with an interface and then calls the interface'sdestroy-callback.
Syntax

destroy interface

Description

This closes the window associated with interface, and then calls the interface'sdestroy-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.
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 - 17 Oct 1998

Next Previous Up Top Contents Index

Generated with Harlequin WebMaker