All Manuals > CAPI User Guide and Reference Manual > 21 CAPI Reference Entries

NextPrevUpTopContentsIndex

merge-menu-bars

Generic Function
Summary

Computes the menu bar for a document-frame on Microsoft Windows.

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.

Notes

merge-menu-bars is implemented only in LispWorks for Windows.

See also

document-frame
interface
menu


CAPI User Guide and Reference Manual (Macintosh version) - 3 Aug 2017

NextPrevUpTopContentsIndex