All Manuals > CAPI User Guide and Reference Manual > 21 CAPI Reference Entries

confirm-yes-or-no Function

Summary

Pops up a dialog button containing a message and a Yes and No button.

Package

capi

Signature

confirm-yes-or-no format-string &rest format-args => result

Arguments
format-string
A string.
format-args
Lisp objects.
Values
result
t or nil,.
Description

The function confirm-yes-or-no pops up a dialog box containing a message and the buttons Yes and No, returns t when the Yes button is clicked, and nil when the No button is clicked. The message is obtained by calling the Common Lisp function format with format-string and objects in format-args.

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

Examples
(setq pane (capi:contain
             (make-instance 'capi:text-input-pane)
                            :title "Test Interface"))
(when (capi:confirm-yes-or-no "Close ~S?" pane)
  (capi:apply-in-pane-process 
   pane 'capi:quit-interface pane))
See also

prompt-for-confirmation
display-dialog
popup-confirmer
10 Dialogs: Prompting for Input


CAPI User Guide and Reference Manual (Windows version) - 01 Dec 2021 19:33:57