1 CAPI Reference Entries
menu-item
are created automatically bydefine-interface
.
item
titled-menu-object
nil
value, first in the menu item, then the menu component (if any) and finally the menu. This allows a whole menu to have, for example,callback-type
:data
without having to specify this in each item. Some items could override this by having theircallback-type
slot non-nil
if needed.
(capi:contain (make-instance 'capi:menu-item :text "Press Me"))(capi:contain (make-instance 'capi:menu-item :data :red :print-function 'string-capitalize))
(capi:contain (make-instance 'capi:menu-item :data :red :print-function 'string-capitalize :callback #'(lambda (data interface) (capi:display-message "Pressed ~S" data))))
capi/elements/menus.lisp
menu
menu-component
choice
Generated with Harlequin WebMaker