A button with a popup menu.
capi
:menu |
A menu or nil . |
:menu-function |
A function designator or nil . |
popup-menu-button-menu
popup-menu-button-menu-function
The class popup-menu-button
provides a button with a popup menu, which is displayed when the user clicks on the button.
If menu-function is non-nil, it should be function of one argument (the pane) and should return a menu object. Otherwise, menu should be a menu object.
popup-menu-button
inherits from item, so you can supply text, data and so on.
Do not use popup-menu-button
inside toolbars. Use toolbar-button instead.
(example-edit-file "capi/elements/popup-menu-button")
CAPI User Guide and Reference Manual (Macintosh version) - 01 Dec 2021 19:31:27