Butz:
Filter:
adclib/Classes (extension) | Utilities

Butz
ExtensionExtension

Dynamic list of buttons with actions

Description

Butz is a global collection of actions which is shown on a GUI as buttons. This is useful for opening multiple guis only when needed, such as multiple instrument setups and their GUIs, opening utilities such as meters, custom scopes, mixers, guis for testing setup parts (speakers), etc etc.

It shows the actions as buttons with a given style, and updates dynamically when items are added.

Butz has a top instance where global actions go, and it can switch between different Butzes as groups of actions to show.

First code examples:

Class Methods

.add

add a named global action to Butz(\top)

Arguments:

name

a Symbol

action

a function

.remove

remove an global action by name

Arguments:

name

a Symbol

.run

Arguments:

name

run the global action at that name

.show

show the Butz window, or make it if necessary

.makeWin

make the window

.numButz

set and get number of buttons to show

.style

lookup and set style options for the butz window

.w

the butz window

.butz

the list of buttons

.setButton

Arguments:

index

set the button at index to show the name stored at that index

.update

update the Butz window