NextPrevTopContentsIndex

9 Prompting for Input

A dialog is a window that receives some input from the user and returns it to the application. For instance, if the application wants to know where to save a file, it could prompt the user with a file dialog. Dialogs can also be cancelled, meaning that the application should cancel the current operation.

In order to let you know whether or not the dialog was cancelled, CAPI dialogs always return two values. The first value is the return value itself, and the second value is t if the dialog returned normally and nil if the dialog was cancelled.

The CAPI provides both a large set of predefined dialogs and the means to create your own. This chapter takes you through some example uses of the predefined dialogs, and then shows you how to create custom built dialogs.

9.1 Some simple dialogs

9.2 Prompting for values

9.3 Dialog Owners

9.4 Creating your own dialogs


LispWorks CAPI User Guide (Windows version) - 8 Apr 2005

NextPrevTopContentsIndex