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


CAPI Reference Manual, Liquid Common Lisp Version 5.0 - 3 OCT 1997

Generated with Harlequin WebMaker