-
... ) }; if (toPost) { post.post } } *makePost { |parent, bounds| bounds = bounds ? Rect(0,0,400, 320); if (parent.isNil) { rePostWin = parent = Window("RePost", bounds).front; rePostWin.alpha_(0.8); bounds = bounds.moveTo(0,0); }; ^rePost = Te ...
-
... width= 500, height= 500, w, world, n= 20; //--world w= RedWindow("janus bunch", Rect(0, 64, width, height)).front; world= RedWorld3(RedVector2D[width, height], nil, inf, 0); //dim,grav,maxvel,damp //--init objects n.do{|i| RedOscillator2(wo ...
-
... eDur}, {view.frameRate})} stop {isPlaying= false} resize {|redVec| view.bounds= Rect(view.bounds.left, view.bounds.top, redVec[0], redVec[1]); } isOpen {^view.isClosed.not} clear {view.clearDrawing} mouseDownAction_ {|func| view.mouseDownAc ...
-
... ack, Color(1, 0.7, 0)]]); but.action_(func); } ); butZone = CompositeView(zone, Rect(0,0, 110, bounds.height - (skin.margin.y * 2))); butZone.addFlowLayout; buttons = numItems.collect { Button.new(butZone, Rect(0,0, 100, skin.buttonHeight)) ...
-
... put x.gui; // gui without styling y.gui; ( // gui with styling w = Window( "x", Rect( 300,25,200,300 ) ).front; RoundView.useWithSkin( ( labelWidth: 40, font: Font( Font.defaultSansFace, 10 ), hiliteColor: Color.gray(0.33) ), { x.gui(w); }; ...
-
... ; }; } init { |inParent, score| if( inParent.isNil ) { parent = Window( bounds: Rect(530, 580, 390, 140) ).front; parent.addFlowLayout; } { parent = inParent; }; this.makeViews( score ); } makeCurrent { current = this } close { var win; win ...
-
... put x.gui; // gui without styling y.gui; ( // gui with styling w = Window( "x", Rect( 300,25,200,300 ) ).front; RoundView.useWithSkin( ( labelWidth: 40, font: Font( Font.defaultSansFace, 10 ), hiliteColor: Color.gray(0.33) ), { x.gui(w); }; ...
-
... ; }; } init { |inParent, score| if( inParent.isNil ) { parent = Window( bounds: Rect(530, 580, 390, 140) ).front; parent.addFlowLayout; } { parent = inParent; }; this.makeViews( score ); } makeCurrent { current = this } close { var win; win ...
-
... (win.notNil) { try { win.close } }; win = Window.new("CodingDojo_" ++ userName, Rect(0,0, 200, 150), false, false); win.front; win.alwaysOnTop = true; win.alpha_(0.7); uv = UserView.new(win, Rect(0,0,200,150)); uv.background = Color.red; uv ...
-
... me, windowTitle; var specsList, specsListSpecs, selectMatch, thisSpec; var cNameRect, cNameEnterTextRect, specEnterTextRect, specSelectRect, wdgtTypeRect, enterTabRect; var staticTextFont, staticTextColor, textFieldFont, selectFont, textFie ...