-
... xtendable handle. It can have horizontal or vertical orientation, meaning the direction in which the handle moves and extends. Dragging the mouse pointer on either end of the range moves the end by itself. Dragging in the middle of the rang ...
-
... then. ( // example is mac-only d = (a: 12, b: 24); d.win = SCWindow ( "dict" , Rect (0,0,200,60)).front; d.views = [ \a , \b ].collect { |name, i| SCStaticText (d.win, Rect (i * 100,0,96,20)) .background_( Color .yellow).align_(0).string_( ...
-
... in ?? { 30 @ 30 }; xmargin = margin.x; ymargin = margin.y; bounds = bounds ?? { Rect(20, 30, 800, 300) }; window = Window(name, bounds); window.front; window.background = backgroundColor; userView = UserView(window, Rect(0,0,window.bounds.w ...
-
... meanrand(0.0, 1.0, inf); c = a.asStream.nextN(500); w = Window.new("Pmeanrand", Rect(10, 10, 540, 800)); // plot the values c.plot(bounds: Rect(10, 10, 520, 380), discrete: true, parent: w); // a histogram of the values c.histo(500).plot(bo ...
-
... tmap Images so } bitsPerSample { ^scns_obj.invoke("bitsPerSample"); } bounds { ^Rect(0,0,this.width, this.height); } drawAtPoint { |aPoint| Pen.use { Pen.translate(aPoint.x, this.height+aPoint.y); Pen.scale(1.0, -1.0); scns_obj.invoke("draw ...
-
... t { var bnd, cmWin, tBox; bnd = Window.screenBounds; cmWin = Window("Command:", Rect((bnd.width/2) - 100, (bnd.height/2), 200, 40), resizable: false); tBox = TextField(cmWin, Rect(10, 10, 180, 20)).focus(true) .action_ ({|txt| Executor.last ...
-
... } show { |name, bounds| if (w.isNil or: { w.isClosed }) { bounds = bounds ?? { Rect(20, 20, 300, 100) }; w = Window("osc msg mon", bounds).front; w.addFlowLayout; Button(w, Rect(0,0, 45, 20)).states_( [[\on, Color.black, Color.grey(0.7)], ...
-
... clean string.".postln; }); } *makeCleanerWindow { var w; w = Window("cleaner", Rect(0,0,140, 60)).front; w.view.decorator = FlowLayout(w.bounds.copy.left_(0).top_(0)); Button(w, Rect(0,0,120,20)) .states_([["clean current doc"]]) .action_ ...
-
... clean string.".postln; }); } *makeCleanerWindow { var w; w = Window("cleaner", Rect(0,0,140, 60)).front; w.view.decorator = FlowLayout(w.bounds.copy.left_(0).top_(0)); Button(w, Rect(0,0,120,20)) .states_([["clean current doc"]]) .action_ ...
-
... n = val . visible . visible = flag Examples ( w = Window.new("EZScroller test", Rect(100, 400, 200, 100)).front; // 5 displays v = { |i| DragBoth.new(w, Rect(0, i * 20, 100, 20)) }.dup(5); // 12 items a = (1..12); e = EZScroller(w, Rect(100 ...