<commands-menu> ( target hook commands -- menu )
Factor handbook » UI framework » Building user interfaces » Pre-made UI gadgets » Popup menus

Next:show-menu ( owner menu -- )


Vocabulary
ui.gadgets.menus

Inputs
targetan object
hooka quotation with stack effect ( button -- )
commandsa sequence of commands


Outputs
menua new gadget


Word description
Creates a popup menu of commands which are to be invoked on target. The hook quotation is run before a command is invoked.

Definition