1 CAPI Reference Entries

confirm-yes-or-no

Function

Summary

The functionconfirm-yes-or-no pops up a dialog button containing a message and a Yes and No button.

Syntax

confirm-yes-or-no format-string &rest format-args

Description

This pops up a dialog box containing a message and the buttons Yes and No, returnst when the Yes button is clicked, andnil when the No button is clicked. The message is obtained by applying the format-string and the format-args to the Common Lisp functionformat.

This function is actually a convenient version ofprompt-for-confirmation, but has the disadvantage that you cannot specify any customization arguments. For more flexibility, useprompt-for-confirmation itself.

Example

(setq pane (capi:contain
             (make-instance 'capi:text-input-pane)
                            :title "Test Interface"))

(when (capi:confirm-yes-or-no "Close ~S?" pane) (capi:quit-interface pane))

See Also

prompt-for-confirmation
display-dialog
popup-confirmer


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

Generated with Harlequin WebMaker