
1 CAPI Reference Entries
item groups together a title, some data and some callbacks into a single object for use in collections and choices.
callbacks
capi-object
menu-item
button
item-pinboard-object
data
textnil).
print-functionIf no text, this is called to print the data.
selectedt the item is selected.
item-data
item-text
item-print-function
item-selected
print-function will either be the one specified in the item, or else theprint-function for its parent collection.
selected slot in an item is non-nil if the item is currently selected. The accessoritem-selected is provided to access and to set this value.
(defun main-callback (data interface)
(capi:display-message "Main callback: ~S"
data))
(defun item-callback (data interface)
(capi:display-message "Item callback: ~S"
data))
(capi:contain (make-instance
'capi:list-panel
:items (list
(make-instance
'capi:item
:text "Item"
:data '(some data)
:selection-callback
'item-callback)
"Non-Item 1"
"Non-Item 2")
:selection-callback 'main-callback))
itempcollectionchoice

Generated with Harlequin WebMaker