-
... (true) .autohidesScrollers_(true) .usesTabToFocusNextView_(false) .focus(true) .string_(params[0][0]) .keyUpAction_({ codeList[selectedChannel] = txtv.string; // if code not run, store string anyway in list }); StaticText(win, Rect(115, 339 ...
-
... ews; var <>action; var <viewHeight = 14; var <>autoCreateSndFile = false; var <>stringColor; var <>plotWindow; *new { |parent, bounds, action, sndFile| ^super.new.init( parent, bounds, action ).value_( sndFile ).addToAll; } init { |parent, ...
-
... Rect(15, 15, 700, 50)) .resize_(2) .background_(colorSet1[1]) .align_(\center) .string_("drop file here") .action_({|obj| obj.string.postln; if(obj.string.isSoundFile){ //using wslib sfw = SoundFileView(win, Rect(15, 80, win.bounds.width-30 ...
-
SWDataStringNode : SWDataNode { var <type = 1; initSlots{ slots.do{ |it,i| slots.put( i, SWDataStringSlot.new([id,i]) ); }; } data_{ |indata| if ( indata.size == slots.size , { // data = indata * scale; // no scaling with strings data = ind ...
-
... ame = name ?? { Array.rand(8, 97, 122).collect(_.asAscii).join }; txt.textField.string = name; txt.textField.action = { |tf| "% - adding setting: ".postf(this); this.add(tf.string.asSymbol.postcs, newset); txt.textField.parent.parent.close; ...
-
... eamButtonElements= {SGUIelement()}!16; //but only 15 working var infoTextElementString= SGUIelementString(); var win= Window("sGreybox", winRect); win.layout= VLayout( onButton= Button().states_([ [" Greybox", palette.buttonText, palette.bu ...
-
... ol.bufferPoolItemViews collect: { |view| format("% - %", view.labelBufferNumber.string, view.labelName.string); }; if (tmp.notNil, { var index; popupMenuBuffers.items do: { |item, i| if( item == tmp, { index = i; }); }; popupMenuBuffers.val ...
-
... cw.background = Color.gray(0.8); GUI.staticText.new( cw, Rect( 0, 0, 25, 16 )).string_( slot.id[1].asString ).font_( font ).align_( \right ); key = GUI.textField.new( cw, Rect( 0, 0, 65, 16 )).string_( slot.key.asString ).action_( { |tf| s ...
-
... t= GridLayout.rows( [ VLayout( //--sentograph (3d sensor) HLayout( StaticText().string_("Pitch (X)").fixedWidth_(70), pitchElement.addView(Slider().orientation_(\horizontal)) //Sentro X-axis (c_2), Sento-PitchBend (c_2) ), HLayout( StaticTe ...
-
... item| var button = Button.new .action_({ midiOut.control(0, item + 100, 0); }) .string_(item + 1).minHeight_(36).minWidth_(36); button.states_([[item + 1, Color.black, Color.gray(0.9)]]); midiControlButtons.add(button); }); reshapedMidiCont ...