-
... values, bounds ) creates a new SCImageKernel shader - optional. the shader code string. nil by default values - optional. the values that match the kernel proc function defined in the shader string. nil by default bounds - optional. not use ...
-
... rrentDrag.asInteger ].postln; }; }) ) // here the list view is made to export a string when dragged from. // the action button is accepting strings dragged to it. ( Sheet({ arg f; a = SCListView(f,100@100); a.items = ["a","b","c"]; a.beginD ...
-
... lors defining the states ofthe button array - an Array of arrays of the form [ [String, strColor, bgColor] , .... ] value Returns the index of the current state. This will not evaluate the function assigned to action (see SCView ). value_ ( ...
-
... o be evaluated when OK is pressed. The selected paths are passed as an Array of Strings as the first argument. cancelFunc - A Function to be evaluated if Cancel is pressed. allowsMultiple - A Boolean indicating whether the dialog allows the ...
-
... 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 ...
-
... ! See also: Button Description Size is automatic based on the size of the title string. Class Methods . new Arguments: layout the parent view, FlowView or window title action a function to execute when the button is pressed bounds nil = aut ...
-
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 ...