Next Previous Up Top Contents Index

1 CAPI Reference Entries

push-button-panel

Class

Summary

Apush-button-panel is a pane containing a group of buttons.
Superclasses

button-panel

Description

The classpush-button-panel inherits all of its behavior frombutton-panel, which itself inherits most of its behavior fromchoice. Thus, the push button panel can accept items, callbacks, and so on.
Examples

(defun test-callback (data interface)
       (capi:display-message 
                         "Pressed ~S" data))

(capi:contain (make-instance 'capi:push-button-panel :title "Press a button:" :items '("Press Me" "No, Me") :selection-callback 'test-callback))

(capi:contain (make-instance 'capi:push-button-panel :title "Press a button:" :items '("Press Me" "No, Me") :selection-callback 'test-callback :layout-class 'capi:column-layout))

(capi:contain (make-instance 'capi:push-button-panel :title "Press a button:" :items '(1 2 3 4 5 6 7 8 9) :selection-callback 'test-callback :layout-class 'capi:grid-layout :layout-args '(:columns 3)))

See also

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

LispWorks CAPI Reference Manual - 17 Oct 1998

Next Previous Up Top Contents Index

Generated with Harlequin WebMaker