All Manuals > CAPI User Guide and Reference Manual > 21 CAPI Reference Entries

NextPrevUpTopContentsIndex

radio-button-panel

Class
Summary

A pane containing a group of buttons of which only one can be selected at any time.

Package

capi

Superclasses

button-panel

Description

The class radio-button-panel inherits all of its behavior from button-panel, which itself inherits most of its behavior from choice. Thus, the radio button panel can accept items, callbacks, and so forth.

Example
(capi:contain (make-instance 
               'capi:radio-button-panel
               :title "Select a color:"
               :items '(:red :green :blue)
               :print-function 'string-capitalize))
(setq buttons (capi:contain
                (make-instance 
                 'capi:radio-button-panel
                 :title "Select a color:"
                 :items '(:red :green :blue)
                 :print-function 'string-capitalize
                  :layout-class 'capi:column-layout)))
(capi:choice-selected-item buttons)

There is a further example here:

(example-edit-file "capi/buttons/buttons")
See also

radio-button
push-button-panel
check-button-panel
Choices - panes with items


CAPI User Guide and Reference Manual (Unix version) - 25 Feb 2015

NextPrevUpTopContentsIndex