-
... h + buttonsWidth }; parent = inparent ?? { parent = Window(this.class.asString, Rect(40, 700, width + 8, height + 8) ).front; parent.view.decorator = FlowLayout(parent.bounds.moveTo(0,0), 2@2, 2@2); parent; }; comp = CompositeView(parent, R ...
-
... n ) .string_( " units" ) .align_( \left ) .resize_(2); io = SmoothButton( comp, Rect( comp.bounds.right - 40, 1, 40, 12 ) ) .label_( "i/o" ) .radius_( 2 ) .action_({ UChainIOGUI( this.window.name, originalBounds, chain, replaceCurrent: true ...
-
... h * names.first.size; parent = parent ?? { parent = Window(this.class.asString, Rect(440,800, width + 4 , 200)).front; parent.view.decorator = FlowLayout(parent.bounds.moveTo(0,0), gap, gap); parent; }; comp = comp ?? { comp = CompositeView ...
-
... rammatically, using the arrow keys, or using the number keys to set the value directly. The Ctrl and Alt keys change the step value when changing the value via mouse. See also: CV NumberBox Creation / Class Methods *new (parent, bounds) par ...
-
... 600, height= 300, w, world, n= 15, att; //--world w= RedWindow("boids test 1d", Rect(128, 64, width, height)).front; world= RedWorld3(RedVector[width], nil, 10, 0); //dim,grav,maxvel,damp //--objects { var loc= RedVector[width].rand; var ve ...
-
... 600, height= 300, w, world, n= 15, att; //--world w= RedWindow("boids test 1d", Rect(128, 64, width, height)).front; world= RedWorld3(RedVector[width], nil, 10, 0); //dim,grav,maxvel,damp //--objects { var loc= RedVector[width].rand; var ve ...
-
... bounds.width; thisHeight = bounds.height; }); parent ?? { parent = Window(name, Rect(thisX, thisY, thisWidth+14, thisHeight+7), server: server); }; // parent.acceptsMouseOver_(true); cvcGui ?? { parent.onClose_({ if(this.editor.notNil, { if ...
-
... var <tabLabel = \Tab; *new{|bounds| var newTab; //Default bounds and convert to rect if it is a point if(bounds == nil, {bounds = Rect(0,0,512,805)} ); if(bounds.class == Point, {bounds = bounds.asRect} ); newTab = super.newCopyArgs(bounds) ...
-
... stance methods Examples Basic Example ( w = Window.new.front; a = StaticText(w, Rect(10, 10, 200, 20)); a.string = "Rolof's Rolex"; ) // adjust look, alignment and content a.background = Color.grey; a.align = \center; a.font = Font("Monaco" ...
-
... world, wgrav, objs, sprs, trg, mp, n= 8; //--world w= RedWindow("more springs", Rect(128, 64, width, height)).front; mp= w.mouse; wgrav= RedVector2D[0, 0]; //no gravity world= RedWorld1(RedVector2D[width, height], wgrav, 30, 0.8); //dim,gra ...