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

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
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 frame.

The set of visible menus in such an interface is typically made up from those of frame and those of the active document 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) - 01 Dec 2021 19:31:27