CXMenu:
Filter:
crucial-library/Classes (extension) | Libraries > crucial > deprecated

CXMenu
ExtensionExtension

a basic nav menu

Description

This is an old class. Pending deprecation.

A pop up menu that does its action and closes itself after you select an item.

The difference between this and PopUpMenu is that here there are separate functions for each menu item, and with PopUpMenu there is one action.

Class Methods

.new

Arguments:

... nameFuncs

.newWith

Arguments:

nameFuncs

Instance Methods

.nameFuncs

Arguments:

nf

.layout

.backColor

.stringColor

.closeOnSelect

.gui

Arguments:

parent
windowWidth
height
argButtonWidth

.guiBody

Arguments:

resize

.add

Arguments:

nf

.addToGui

Arguments:

nf
resize

.resize

Arguments:

r

.doAction

.keyDownResponder

.focus

.focusOn

Arguments:

f

Examples

On another layout

You can add things to the menu above m.add(\more->{ "more".postln; });

On a normal Window

Note that the arrow keys work to navigate once you are focused on any of the buttons.