LispWorks CAPI User Guide > 10 Prompting for Input


10.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 10.1 A message dialog

             "This function is ~S"

Figure 10.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 10.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.

LispWorks CAPI User Guide (Windows version) - 22 Dec 2009