Makes a menu or a menu-component for a pane.
capi
make-menu-for-pane pane items &key title menu-name component-p => menu
pane⇩ |
A pane. |
items⇩ |
A list of menu-objects. |
title⇩ |
A string or nil . |
menu-name⇩ |
A string or nil . |
component-p⇩ |
A boolean. |
menu⇩ |
A menu or a menu-component. |
The function make-menu-for-pane
makes a menu or a menu-component for the pane pane with the items specified by items.
items should be a list in which each element is a menu-item, menu-component or menu.
title and menu-name provide a title and name for menu. title and menu-name both default to nil
.
If component-p is true, then make-menu-for-pane
creates a menu-component rather than a menu. The default value of component-p is nil
.
menu is set up so that by default each callback inside it is done on the pane pane itself. This is the useful feature of make-menu-for-pane
because it avoids the need to set up items to do their callbacks on pane explicitly.
Note that this is merely the default behavior. You can specify different callback behavior on a per-item basis, using setup-callback-argument and callback-data-function (see menu-object), callback-type (see callbacks) and data for menu-item (see item).
make-pane-popup-menu
pane-popup-menu-items
8.12 Popup menus for panes
CAPI User Guide and Reference Manual (Windows version) - 01 Dec 2021 19:33:57