All Manuals > CAPI User Guide > 11 Prompting for Input


11.1 Some simple dialogs

The simplest form of dialog is a message dialog. The function display-message behaves very much like format .

(display-message "Hello world")

Figure 11.1 A message dialog

             "This function is ~S"

Figure 11.2 A second message dialog

Another simple dialog asks the user a question and returns t or nil depending on whether the user has chosen yes or no. This function is confirm-yes-or-no .

    "Do you own a pet?")

Figure 11.3 A message dialog prompting for confirmation

For more control over such a dialiog, use the function prompt-for-confirmation . See the LispWorks CAPI Reference Manual for details.

CAPI User Guide (Macintosh version) - 30 Aug 2011