15 Example: Using The Interface Builder

15.6 Defining the callbacks

This section shows you how to create the callback functions you need to define in order to complete the working example.

1. Choose File > New in the editor to create a new file.

2. Choose File > Save to save the file. Save it in the same directory you savedib-example.lisp, and call this new fileib-callbacks.lisp.

3. In the editor, specify the package for the callback definitions by typing the following into theib-callbacks.lisp file:

(in-package "COMMON-LISP-USER")

4. Type the function definitions given in the rest of this section.

5. Choose File > Save to save the file when you have typed in all the function definitions.

The functions that you need to define in this file are divided into the following categories:

15.6.1 - Callbacks to update the display pane
15.6.2 - Callbacks to display data in a dialog
15.6.3 - Callbacks for menu items
15.6.4 - Other miscellaneous functions

Common LispWorks User Guide, Liquid Common Lisp Version 5.0 - 18 OCT 1996

Generated with Harlequin WebMaker