ModalDialog:
Filter:
Description
Class methods
new
Inherited class methods
Instance methods
Inherited instance methods
Examples
Classes (extension)
|
Libraries
>
crucial
>
GUI
|
GUI
>
Accessories
ModalDialog
:
Object
Extension
dialog window utility with OK and cancel functions
Source:
Dialogs.sc
See also:
Sheet
Description
dialog window utility with OK and cancel functions
Class Methods
ModalDialog.
new
(
buildDialog
,
okFunc
,
name: "?"
,
cancelFunc
)
Arguments:
buildDialog
okFunc
name
cancelFunc
Inherited class methods
Instance Methods
Inherited instance methods
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:
/home/stefan/.local/share/SuperCollider/downloaded-quarks/crucial-library/HelpSource/Classes/ModalDialog.schelp
link::Classes/ModalDialog::