9.1 Simple use of the class browser

9.1.3 Filtering slot information

The Filter area can be used to filter out information about slots you are not interested in. This is especially useful if you are examining classes which contain a large number of slots.

The example below shows you how to create an instance of a CAPI object, and then limit the display in the class browser so that the only slots displayed are those you are interested in:

1. In a listener, create a button object by typing the following:

(capi:contain (make-instance 'capi:list-panel
                             :items '("Apple" "Orange" "Pear")))

This creates a list panel object and displays it on your screen.

2. Choose Values > Class in the listener to examine the class of the object in the class browser.

3. Choose View > Initargs to switch to the initargs view.

Suppose you are only interested in seeing the callbacks that can be defined in a list panel.

4. Typecallback in the Filter area and press Return.

Figure 9.3 Using filters to limit the display in the class browser

You can immediately see the types of callback that are available to CAPI list panel objects. See the CAPI Reference Manual for details about callbacks.

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

Generated with Harlequin WebMaker