-
... ob ( ~win = Window("model", Rect(100, 100, 400, 40)).front; ~responderDisplay = StaticText(~win, Rect(7, 7, ~win.bounds.width-14, ~win.bounds.height-14)) .background_(Color.white) .font_(Font("Andale Mono", 10)); ) // a simple monitor displ ...
-
... ) ( // to attach to MainMenu use *newMenuOnly var pamenu; FlowView.new.flow{|w| StaticText(w, 300@30).string_("Look at the macOS menu")}; pamenu=PathActionQMenu.newMenuOnly("Open Files and Dirs",[ 'An Action'->{|action,what,val|[action,what ...
-
... (n, Rect(0, i * 20, 200, 20)).background_(Color.rand).align_(\center) }.dup(5); StaticText.new(n, 200@150).string_("hold down cmd and drag points from the slider to the drag slots, or reverse").stringColor_(Color.white); w.front; ) ⧉ ✔ Shap ...
-
... _(false).enabled_(false); ~ampView.numberView.canFocus_(false).enabled_(false); StaticText(~w, 295@5).background_(Color.gray); ~threshView = EZSlider(~w, 295@30, "threshold", \amp, action: { |ez| ~ampSynth.set(\thresh, ez.value); }, initVal ...
-
... ; // SCWindow w.view.background = Color.white; (0,2..arr.size-1).do{|index| GUI.staticText.new(w, Rect( arr[index] * 600 / 2, 600 - (arr[index+1] + 1 * 300), 10, 10)).string_("x") // SCStaticText }; w.front; }.defer}) ) // How do the errors ...
-
... text menu and shortcut key support to a View. ( View().layout_(HLayout( ~text = StaticText().string_("Right-click me").minWidth_(100) )).front; ~text.setContextMenuActions( MenuAction("Red", { ~text.background = Color.red }), MenuAction("Gr ...
-
... ical layout for the plot and its text getPlotLay = { |plot, text| VLayout(plot, StaticText().string_(text).maxHeight_(50).align_(\center), 10) }; ~multiPlot = { |func, data, txt, min, max| var res, params, samps, clumped, pltr; var gridcol ...
-
... e Discussion: example: ( w = Window.new.front; w.view.background_(Color.white); StaticText(w, Rect(0, 0, 200, 20)) .string_(" Change Line Cap & Join Styles: "); y = PopUpMenu(w, Rect(200, 0, 130, 20)) .items_(["Butt - Miter", "Round - Round ...
-
... class) TextViewBase - (Undocumented class) QTextViewBase - (Undocumented class) StaticText - A view displaying non-editable text QStaticText - (Undocumented class) TextField - A view displaying editable text DragView - (Undocumented class) ...