1 CAPI Reference Entries
button-panelis a pane containing a number of buttons that are laid out in a particular style, and that have group behavior.
button-panelinherits most of its behavior from
choice, which is an abstract class providing support for handling items and selections. By default, a button panel is single selection (meaning that only one of the buttons can be selected at any one time), but this can be changed by specifying an interaction.
check-button-panelare provided as convenience classes, but they are just button panels with different interactions (
layout-class(which defaults to
row-layout) but this can be changed to be any other CAPI layout. When the layout is created, the list of keyword arguments
layout-argsis passed to the
callbacksis specified. This should be a list of callbacks (one per button) which if non-
nilwill be used for the
:max-width nilin the
(capi:contain (make-instance 'capi:button-panel :items '(:red :green :blue) :print-function 'string-capitalize))
(setq buttons (capi:contain (make-instance 'capi:button-panel :items '(:red :green :blue) :print-function 'string-capitalize :interaction :multiple-selection)))
(setf (capi:choice-selected-items buttons) '(:red :green))
(capi:contain (make-instance 'capi:button-panel :items '(1 2 3 4 5 6 7 8 9) :layout-class 'capi:grid-layout :layout-args '(:columns 3)))
Generated with Harlequin WebMaker