-
... ; views[ cat ].button.background = nil; views[ cat ].addFlowLayout( 0@0, 4@4 ); StaticText( views[ cat ], (bounds.width - (18 + scrollerMargin + 6))@18 ) .string_( " " ++ cat.asString ) .applySkin( RoundView.skin ? () ); udefs.do({ |udef| v ...
-
... sible = true ; // show first one a.front; ) Nested Example In this example, the StaticText accepts mouse clicks, since container views can't: ( w= Window .new.front; v= CompositeView .new(w,w.view.bounds.insetBy(10)).background_( Color .ran ...
-
... er", Rect.new(x, y, yStep*11.5, wi)) ; runnerArray.do({ arg runner, index ; GUI.staticText.new(w, Rect(0, index*yStep, yStep*2, yStep)) .string_(" "+runner.name.asString) ; GUI.button.new(w, Rect(yStep*2, index*yStep, yStep, yStep)) .states ...
-
... enBounds.height-200,300,150)).front; w.view.background_( Color .grey(0.9)); a = StaticText (w, Rect (45, 10, 200, 20)).background_( Color .rand); a.string = "Current Frequency" ; Button .new(w, Rect (45, 70, 200, 20)).states_([[ "close" , C ...
-
... .window.asHSV[2] > 0.5) {-0.5} {0.3}; view = View().layout_(VLayout( heading = (StaticText() .string_(name) .font_(font) .stringColor_(Color.grey) .align_(\center) ), number = (StaticText() .font_(font.boldVariant.size_(font.size + 2)) .str ...
-
... }; }; }; //--menus pw= win.bounds.width*0.144; po= win.bounds.width-((pw+2)*3); StaticText(win, Rect(po, 1, pw, 20)).align_(\center).string_("Vert Scale"); StaticText(win, Rect((pw+2)+po, 1, pw, 20)).align_(\center).string_("Window"); Stati ...
-
... le = true; // show first one a.front; ) ⧉ ✔ Nested Example In this example, the StaticText accepts mouse clicks, since container views can't: ( w = Window.new.front; v = CompositeView.new(w, w.view.bounds.insetBy(10)).background_(Color.rand ...
-
... ListView , where items is simply an array of strings. If label is nil, then no staticText is created. Creation / Class Methods *new (parentView, bounds, label, items, globalAction, initVal, initAction, labelWidth, labelHeight,layout,gap) p ...
-
... var vw_array = []; view.decorator = FlowLayout( view.bounds.moveTo(0,0) ); GUI.staticText.new( view, 35@14 ).font_( eq[ \font ] ).align_( \right ).string_( "freq:" ); vw_array = vw_array.add( NumberBox( view, 40@14 ).font_( eq[ \font ] ).v ...
-
... olor.rand) .resize_(i); y.decorator = FlowLayout(y.bounds).gap_(0.0 @ 0.0); t = StaticText(y, Rect(0, 0, 40, 40)) .background_(Color.rand.alpha_(0.8)) .resize_(i) .string_(i) .font_(Font("Helvetica", 26)); p=PopUpMenu(y,40@40).items_((1..9) ...