1 CAPI Reference Entries

titled-menu-object

Class

Summary

The classtitled-menu-object is a subclass ofmenu-object which supports titles, and it is used by menus, menu components and menu items.

Superclasses

menu-object

Subclasses

menu
menu-component
menu-item

Slots

title
The title for the object.

title-function

Returns the title for the object.

Accessors

menu-title
menu-title-function

Description

The simplest way to give a title to atitled-menu-object is to just supply a title string, and this will then appear as the title of the object. Alternatively, atitle-function can be provided which will be called with the object when the menu is about to appear and which should return the title to use.

Examples

(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)))))


CAPI Reference Manual, Liquid Common Lisp Version 5.0 - 3 OCT 1997

Generated with Harlequin WebMaker