1 CAPI Reference Entries

define-menu

Macro

Summary

Thedefine-menu macro defines a menu function.

Syntax

define-menu function-name (self) title menu-body &rest menu-options

Description

The macrodefine-menu defines a function called function-name with a single argument self that will make a menu. The parameters title, menu-body and menu-options take the same form as the:menus section ofdefine-interface.

Example

(capi:define-menu make-test-menu (self)
   "Test"
   ("Item1"
    "Item2"
    "Item3"
    (:component
     ("Item4"
      "Item5")
   :interaction :single-selection)))

(setq interface (make-instance 'capi:interface))

(setf (capi:interface-menu-bar-items interface) (list (make-test-menu interface))) (capi:display interface)

See Also

define-interface
menu


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

Generated with Harlequin WebMaker