NextPrevUpTopContentsIndex

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

(display-message
             "This function is ~S"
             'display-message)

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 .

(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 (Macintosh version) - 17 Mar 2008

NextPrevUpTopContentsIndex