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

radio-button Class

Summary

A button that can be either selected or deselected, but when selecting it any other buttons in its group will be cleared.

Package

capi

Superclasses

button
titled-object

Description

The class radio-button inherits most of its behavior from button. Note that it is normally best to use a radio-button-panel rather than make the individual buttons yourself, as the button-panel provides functionality for handling groups of buttons. However, radio buttons are provided in case you need to have more control over the button's behavior.

Examples
(setq button (capi:contain
              (make-instance 'capi:radio-button
                             :text "Press Me")))
 
(capi:apply-in-pane-process
 button #'(setf capi:button-selected) t button)
 
(capi:apply-in-pane-process 
 button #'(setf capi:button-selected) nil button)
 
(capi:apply-in-pane-process 
 button #'(setf capi:button-enabled) nil button)
 
(capi:apply-in-pane-process 
 button #'(setf capi:button-enabled) t button)

There is a further example here:

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

push-button
check-button
button-panel
radio-button-panel
3.10 Button elements


CAPI User Guide and Reference Manual (Macintosh version) - 01 Dec 2021 19:31:27