1 CAPI Reference Entries
push-buttonis a pane that displays either a piece of text or a generic image and when it is pressed it performs an action.
push-buttoninherits most of its behavior from
button. Note that it is normally best to use a
push-button-panelrather 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.
(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)
Generated with Harlequin WebMaker