-
... .rand(0.7)); v.decorator = n = FlowLayout(v.bounds, margin: 0@0, gap: 5@5); a = StaticText(v, Rect(20, 70, 90, 20)).string_(" xZoom = 1").background_(Color.rand); m = Slider(v, Rect(20, 60, 285, 20)).background_(a.background).action_({ func ...
-
... rray.fill(n, { |v| 0.5+((0.3*v).sin*0.25) }); m.action = { |q|q.value.postln }; StaticText(w, 380@18).string_("indexThumbSize or thumbSize"); Slider(w, 580@10).action_({ |sl| m.indexThumbSize = sl.value*24 }).value_(0.5); StaticText(w, 380@ ...
-
... der(); b = Slider(); w = Window(bounds:Rect(200,200,200,100)).layout_( HLayout( StaticText().string_("In:"), a, StaticText().string_("Out:"), b ) ); w.front; ) //start event graph ( ENdef(\graph1,{ //in var aSig = a.enIn; //try changing the ...
-
... umber.action= {|view| view.value= view.value.max(0); flt.factor= view.value; }; StaticText(win, Rect(110, 10, 300, 20)).string_("factor. lower is smoother"); slider= Slider(win, Rect(10, 40, 20, 350)); slider.value= flt.val; plot= MultiSlid ...
-
... do not require the Cmd/Ctrl key to be held down to initiate dragging . Akin to StaticText they can store arbitrary content in the -object variable, and display it using Object: -asString . You can set the displayed text separately using -s ...
-
... is is the simplest example about view composition: a Slider , a TextField and a StaticText . Not much to say here, the code mostly speaks for itself. The only thing to remember is to have the Slider and the TextField update each other accor ...
-
... e following example shows a window containing a Button, a Slider and a group of StaticText views contained in a CompositeView. When the button is clicked the visibility of the CompositeView is toggled, while interacting with the Slider will ...
-
... 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 ...
-
... 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) ...
-
... . Here is an example of manually using the sizeHint : // Create a Window with a StaticText ( w=Window().alwaysOnTop_(true); t=StaticText(w); w.front; ) // There's no text set yet. Post the sizeHint of StaticText: t.sizeHint // Set the text, ...