NextPrevUpTopContentsIndex

push-button

Class
Summary

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

Package

capi

Superclasses

button
titled-object

Description

The class push-button inherits most of its behavior from button. Note that it is normally best to use a push-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)))))
 
(capi:apply-in-pane-process
 button #'(setf capi:button-enabled) nil button)
 
(capi:apply-in-pane-process
 button #'(setf capi:button-enabled) t button)
See also

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


LispWorks CAPI Reference Manual - 11 Apr 2005

NextPrevUpTopContentsIndex