1 CAPI Reference Entries

list-panel

Class

Summary

The classlist-panel is a pane that can display a group of items and provides support for selecting items and performing actions on them.

Superclasses

choice
titled-pane

Subclasses

list-view

Description

The classlist-panel gains most of its behavior fromchoice, which is an abstract class that handles items and their selection. By default, a list panel has both horizontal and vertical scrollbars.

Thelist-panel class does not support the:no-selection interaction style. For a non-interactive list use a display pane.

Example

(setq list (capi:contain
             (make-instance 'capi:list-panel
                            :items '(:red :blue :green)
                            :print-function
                              'string-capitalize)))

(setf (capi:choice-selected-item list) :red)

(setf (capi:choice-selected-item list) :green)

(capi:contain (make-instance 'capi:list-panel :items '(:red :blue :green) :print-function 'string-capitalize :selection-callback #'(lambda (data interface) (capi:display-message "~S" data))))

Example File

capi/elements/list-panels.lisp

See Also

button-panel


CAPI Reference Manual, Liquid Common Lisp Version 5.0 - 3 OCT 1997

Generated with Harlequin WebMaker