1 CAPI Reference Entries
titled-menu-objectis a subclass of
menu-objectwhich supports titles, and it is used by menus, menu components and menu items.
Returns the title for the object.
titled-menu-objectis to just supply a title string, and this will then appear as the title of the object. Alternatively, a
title-functioncan be provided which will be called with the object when the menu is about to appear and which should return the title to use.
(capi:contain (make-instance 'capi:menu-item :title "Press Me"))
(capi:contain (make-instance 'capi:menu-item :title-function #'(lambda (item) (princ-to-string (random 5)))))
Generated with Harlequin WebMaker