NextPrevUpTopContentsIndex

merge-menu-bars

Generic Function
Summary

Computes the menu bar for a document-frame.

Package

capi

Signature

merge-menu-bars frame document => menus

Arguments

frame

A document-frame.

document

An interface or nil .

Values

menus

A list of menu objects.

Description

The generic function merge-menu-bars is called by the system to compute the menu bar for a document-frame interface.

The set of visible menus in such an interface is typically made up from those of the frame and those of the active document within it.

There is a built-in unspecialized method that appends the menu bars of the two interfaces and is equivalent to this:

(defmethod capi:merge-menu-bars ((frame t)
                                 (document t))
  (append 
   (capi:interface-menu-bar-items frame)
   (and document
        (capi:interface-menu-bar-items document))))

You can customize the menu bar by adding methods which specialize on particular frame and document interface classes.

See also

document-frame
interface
menu


LispWorks CAPI Reference Manual - 25 Jul 2006

NextPrevUpTopContentsIndex