ModalDialog:
Filter:
Description
Class methods
new
Examples
crucial-library/Classes (extension)
|
Libraries
>
crucial
>
GUI
|
GUI
>
Accessories
ModalDialog
Extension
dialog window utility with OK and cancel functions
See also:
Sheet
Description
dialog window utility with OK and cancel functions
Class Methods
.
new
Arguments:
buildDialog
okFunc
name
cancelFunc
Examples
( ModalDialog({ arg layout; // pops a small window for you var choices; choices= [ BooleanEditor([true,false].choose), BooleanEditor([true,false].choose), BooleanEditor([true,false].choose), BooleanEditor([true,false].choose), BooleanEditor([true,false].choose), BooleanEditor([true,false].choose) ]; choices.do({ arg c,i; c.gui(layout); }); choices // return your objects },{ // ok function arg choices; // receives those objects choices.sum({ arg boolgui,i; boolgui.value.binaryValue * (2**i) }).postln }); )
helpfile source:
HelpSource/Classes/ModalDialog.schelp
link::crucial-library/Classes/ModalDialog::