-
... ion_({ Synth(\GMhelp, [\env, env]); }); // Nest it inside a Layout win.layout_( HLayout() .margins_(0) .spacing_(0) .add(button) .add(envView) ); win.front; // Useful when developping CmdPeriod.doOnce({ win.close; }); }); ) ⧉ ✔ A more compl ...
-
... iElements[\arrayButtons].add(thisButton); guiElements[\playersView].layout.add( HLayout( thisButton.maxWidth_(300), nil, thisKnob.labelView, thisKnob.knobView, thisKnob.numberView.maxWidth_(40) ), ); }); }); }; //GUI window = Window.new("Pi ...
-
... Button().states_([["+"]]); b = Button().states_([["-"]]); w = Window().layout_(HLayout(a,b)).front; ) //sum and subtract ( ENdef(\x).clear; ENdef(\x, { var aES = a.enIn.collect{{|x| x+1 }}; var bES = b.enIn.collect{{|x| x-1 }}; (aES |+| bE ...
-
... ronment. ( s.waitForBoot{ var l,r,l2,r2; Window("visualization").front.layout_( HLayout( VLayout(StaticText().string_("left amp"), l=LevelIndicator()), VLayout(StaticText().string_("right db"), r=LevelIndicator()), VLayout(StaticText().stri ...
-
... dding of interactive components to a Menu or ToolBar . ( ~view = View().layout_(HLayout( ToolBar( MenuAction("Min", { ~slider.value = 0 }), MenuAction("Max", { ~slider.value = 1 }), CustomViewAction( ~slider = Slider().orientation_(\horizon ...
-
... Assign a state switchButton.state_(3); // Nest it inside a Layout win.layout_( HLayout( switchButton, ).margins_(0)); win.front; // Useful when developping CmdPeriod.doOnce({ win.close; }); ) ⧉ ✔ Assigning states without specifying colors ...
-
... on closeButton.action_({ win.close; }); // Nest it inside a Layout win.layout_( HLayout( closeButton, ).margins_(0)); win.front; // Useful when developping CmdPeriod.doOnce({ win.close; }); ) ⧉ ✔ helpfile source: /tmp/scquark_hs/GraphicalMo ...
-
... ot, right, transferPlot; var boxes = [], sliders = Dictionary.new; var layout = HLayout([ left = VLayout(StaticText().string_("List of Windows").maxHeight_(50).align_(\topLeft)), stretch: 1 ], [ VLayout( mid = CompositeView(), StaticText(). ...
-
... onnections directly. ( ~slider = Slider(); ~view = View(bounds:600@200).layout_(HLayout(~slider)).front; ~connection = ~slider.connectTo({ |slider| "Slider changed: %".format(slider.value).postln; }); ~slider.action = { |v| v.changed(\value ...
-
... avorite color !".postln; "".postln; }); // Nest it inside a Layout win.layout_( HLayout( colorPicker, ).margins_(0)); win.front; // Useful when developping CmdPeriod.doOnce({ win.close; }); ) ⧉ ✔ helpfile source: /tmp/scquark_hs/GraphicalMo ...