-
... ( 2 ); cw.decorator = FlowLayout(Rect( xpos, ypos, xsize, ysize), 2@2, 2@2); cw.background = Color.white; decorator = cw.decorator; addrIP = GUI.staticText.new( cw, Rect( 0, 0, 100, 16 )).string_( client.addr.ip.asString ).font_( font ).ali ...
-
... w.skin ) .string_( ( \seconds: " s", \frames: " pt" )[ this.class.timeMode ] ) .background_( Color.white.alpha_( 0.25 ) ) .resize_( 3 ) .mouseDownAction_({ var actions, selected; actions = [ \seconds, \frames ].collect({ |item| MenuAction( ...
-
... olor, selcolortext *prColorCmds { cW.add(\color, [\str, \str], {|str1, str2| cW.background(Color.newName(str2);); }); cW.add(\colortext, [\str, \str], {|str1, str2| cW.fontColor(Color.newName(str2);); }); cW.add(\colors, [\str], {|str1| cW. ...
-
... ][ 0 ] = res; vws.setViews; vws.doAction; }); }) .applySkin( RoundView.skin ) .background_( Color.white.alpha_(0.25) ); vws[ \device ].setProperty(\wordWrap, false); vws[ \setViews ] = { { vws[ \device ].string = " device: %".format( vws[ ...
-
... drag on the slider too but it didn't work init: { |view| view.knobColor_(green).background_(sBkColor) }, spec: [0, 1] )) .add("/1/toggle%".format(~padString.(i+9, 2)).asSymbol).add(( bounds: Rect.fromPoints( origin + Point(gap + ~sliderWidt ...
-
... cs", Rect(0,0,400,400)).front; ~uv = UserView.new(~win, Rect(0,0,400,400)); ~uv.background = Color.white; // tell it what to draw: ~uv.drawFunc = { Pen.strokeRect(Rect(10,10,380,380)); }; ~uv.refresh; // now trigger drawing // strings ~uv.d ...
-
... s[i] = val; busMessage.(i, val); }; fullAction.(i, val); }).canFocus_( false ) .background_( Color.gray ).hilightColor_( Color.blue.alpha_(0.5) ); }); midiFunc = {arg src, chan, num, vel; var val; if(chan < nC) { val = num / maxMIDIVal; if( ...
-
... .draw.demoUV = UserView(q.draw.demoWin, Rect(0,0,400,400)).front; q.draw.demoUV.background = Color.black; q.draw.demoUV.resize_(5); // tell it to always render 30 frames per second q.draw.demoUV.frameRate = 30; // now run q.draw.demoUV.anim ...
-
... le", Rect(rrand(0, 50), rrand(10, 500), width, height), false ).front; win.view.background_(Color.new255(240, 240, 240)); // grey win.view.decorator=FlowLayout(win.view.bounds, (edge/2)@(edge/2), edge@(edge/4) ); }); radius = size/2.25; set ...
-
... \center ) .toolTip_( "Snap resolution and mode" ) .applySkin( RoundView.skin ) .background_( Color.white.alpha_(0.25) ) .mouseDownAction_({ if( menu.notNil ) { menu.deepDestroy }; menu = Menu( Menu( *snapLabels.collect({ |item, i| MenuActio ...