Next Previous Up Top Contents Index

1 CAPI Reference Entries

push-button

Class

Summary

Apush-button is a pane that displays either a piece of text or a generic image and when it is pressed it performs an action.
Superclasses

button
titled-pane

Description

The classpush-button inherits most of its behavior frombutton. Note that it is normally best to use apush-button-panel rather than make the individual buttons yourself, as the button panel provides functionality for handling groups of buttons. However, push buttons can be used if you need to have more control over the button's behavior.
Example

(setq button (capi:contain
               (make-instance 
                'capi:push-button
                :text "Press Me"
                :data '(:some :data)
                :callback #'(lambda (data interface)
                                     (capi:display-message
                                      "Pressed ~S"
                                      data)))))

(setf (capi:button-enabled button) nil)

(setf (capi:button-enabled button) t)

See also

radio-button
check-button
button-panel
push-button-panel

LispWorks CAPI Reference Manual - 17 Oct 1998

Next Previous Up Top Contents Index

Generated with Harlequin WebMaker