Handbook
Glossary
show-commands-menu ( target commands -- )
Factor handbook
»
UI framework
»
Building user interfaces
»
Pre-made UI gadgets
»
Popup menus
Prev:
show-menu ( owner menu -- )
Vocabulary
ui
.
gadgets
.
menus
Inputs
target
a
gadget
commands
a sequence of commands
Outputs
None
Word description
Displays a popup menu with the given commands. The commands act on the target gadget. This is just a convenience word that combines
<commands-menu>
with
show-menu
.
Notes
Useful for right-click context menus.
Definition
USING:
kernel
;
IN:
ui.gadgets.menus
:
show-commands-menu
( target commands -- )
[
dup
[
]
]
dip
<commands-menu>
show-menu
;