-
... itClass { makeViewFuncDict = ( 'button': { |parent, label| if( label.notNil ) { StaticText( parent, labelWidth@16 ).string_( label.asString ++ " " ).align_( \right ); }; Button( parent, if( label.notNil ) { labelWidth@16 } { 20@16 }) .state ...
-
... t, Rect(0, 0, width, bounds.height)).resize_(5); view.addFlowLayout; nameView = StaticText(view, Rect(0,0, 90, 20)) .string_("<name>"); idView = StaticText(view, Rect(0,0, 30, 20)) .string_("<id>"); StaticText(view, Rect(0,0, 40, 20)) .stri ...
-
... tln.includes(but.states[0][0].asSymbol) }; }; w.view.layout = HLayout( VLayout( StaticText(w).string_("modes"), *modebuts = mf.modes.keys(Array).sort.collect { |modeName| Button(w).states_([[ modeName ], [modeName, Color.white, Color.red]]) ...
-
... llect{ |p| putStrLn("mouse pos is: "++p) }.enOut; })).start; ) // is down ( t = StaticText(); w = Window().layout_(HLayout(t)).front; ENdef(\x,{ var pos = w.view.enMouseIsDown; pos.collect{ |b| IO{ t.string_("mouse is down: "++b) } }.enOut; ...
-
... r nb2 = NumberBox(); w = Window(bounds:Rect(200,200,200,100)).layout_( HLayout( StaticText().string_("In:"), nb1, StaticText().string_("Out:"), nb2 ) ); //Setup Event Network //network ENdef(\x, { var sumSig, sum; //in var nb1ES = nb1.enIn; ...
-
... winRect); win.layout= HLayout( VLayout( //--amplitude control section HLayout( StaticText().string_("Amplitude control").fixedWidth_(120), *ampSelectButtons= #["targets", "random", "ramp", "wave", "lines"].collect{|x| Button().states_([ [" ...
-
... ize(320, 240)).background_(Color.grey(0.9, 0.5)), infoTextElementString.addView(StaticText().fixedHeight_(" ".bounds(fnt).height*2) .align_(\topLeft).background_(Color.grey(0.9, 0.5))) ); win.onClose= { NetAddr.localAddr.sendMsg(\closed, \s ...
-
... tion_{|view| RedMst.next}; this.prInitMetro(size); win.view.decorator.nextLine; StaticText(win, (size*4)@(size*1.5)).string_("sect:"); guiSection= StaticText(win, (size*2)@(size*1.5)); guiMaxSection= StaticText(win, (size*3.25)@(size*1.5)); ...
-
... Devices ) { font = RoundView.skin.font ?? { Font( Font.defaultSansFace, 11 ) }; StaticText( parent, labelWidth @ 14 ) .string_( "% in " .format( label ) ) .align_( \right ) .applySkin( RoundView.skin ); vw.inPu = UPopUpMenu( parent, Rect( l ...
-
... winRect); win.layout= HLayout( VLayout( //--amplitude control section HLayout( StaticText().string_("Amplitude control").fixedWidth_(120), *ampSelectButtons= #["targets", "random", "ramp", "wave", "lines"].collect{|x| Button().states_([ [" ...