-
... s; origin = ( origin ?? { Point( 0,0 ) } ).asPoint; lines = this.split( $\n ); ^Rect( origin.x, origin.y, this.class.widthM9( lines.collect( _.size ).maxItem ), this.class.heightM9( lines.size ) ); */ origin = ( origin ?? { Point( 0,0 ) } ) ...
-
... new main window (called ~mainScreen) ~mainScreen = Window.new("Chord Crafter", Rect.new(Window.screenBounds.width/2 -350, Window.screenBounds.height/2 - 175, 700, 350), false) .alwaysOnTop = (true); ~velocity = 60; ~velocitySlider = ...
-
+ StoredList { *boundsAround { |loc, winSize, flip = true| var rect; loc = loc ?? { Window.screenBounds.center }; rect = Rect.aboutPoint(loc, winSize.x * 0.5, winSize.y * 0.5); if (flip) { rect = Window.flipY(rect) }; ^rect } storeDialog { ...
-
... and-drop sources and destinations. They are graphically represented as a simple rectangle, and their specialty is that they do not require the Cmd/Ctrl key to be held down to initiate dragging . Akin to StaticText they can store arbitrary c ...
-
... unitWidth = 60, unitHeight = 40, gap = 2@2; var w = Window("VG Tuning Editor", Rect(400,800,totalWidth, 700)).front; var argNames = tree.argNames; var editorNames = tree.branchNames; var comp, makeEditor; comp = CompositeView(w, Rect(4,4, ...
-
... be identical" + TestSCScrollView + "test_nestingRelVsAbs"; w = SCWindow(title, Rect(10 + relativeOrigin.if(600,0), 10, 600, 600)); lastView = w; while { x < 299 } { b = relativeOrigin.if( {Rect(x - lastx, (x - lastx) * ratio, 600 - (2*x), ...
-
... sources/TrBtn_record_on_p.tiff" ) \ ]\ ];\ \ w = SCWindow ( "Drawing Options" , Rect (310, 500, 500, 300)).front;\ w.view.background_( Color .white);\ w.onClose = \\ resources.do\\ |img| \ if(img.isKindOf( Image ), \img.release\);\ if(img.i ...
-
... ight = skin.headHeight; var flow = zone.decorator; // top line StaticText(zone, Rect(0,0, 30, butHeight)).string_("curr") .background_(skin.foreground) .font_(font).align_(\center) .mouseDownAction = { var name = setLPop.item.asSymbol; "%: ...
-
... ( var data; data = {{2.0.rand2}!3}!150; w = GUI.window.new( "3D Scatterplot" , Rect (40,40, 500, 500)).front; a = ScatterView3d (w, Rect (10,10, 450, 450), data, [-2, 2].asSpec); a.drawMethod = \fillRect ; a.symbolSize = 3; a.symbolColor = ...
-
... Name, 13); fontbig = Font(g.fontName, 16); q.inph.ioWin = w = Window("inphlux", Rect.aboutPoint( (bnds.width * 0.5) @ (bnds.height - size), size2, size); ).front; q.inph.ioWin.background_(Color.grey(0.8)); q.inph.ioWin.alpha_(NTMI.g.alpha); ...