-
... er { classvar global; var <>dict; *new { ^super.new.clear } // use this as your view's keyDownAction in place of a function // view.keyDownAction = unicodeResponder value { arg view, char, modifier, unicode, keycode; ^this.at(unicode).value ...
-
... licenses/>. */ UAbstractWindow { classvar <currentDict, <allDict; var <window, <view; *initClass { currentDict = (); allDict = (); } *current { ^currentDict[this] } *current_ { |x| currentDict[this] = x } *all { ^allDict[this] } toFront { i ...
-
/* CompassView -- a view for GamePad compasses. // tests w = Window("Compass").front; z = CompassView(w.view, Rect( 100, 100,100,100)); z.action = { |comp| comp.dump }; z.nameView.string = "test"; z.value = 0; z.value = rrand(1, 8); z.value ...
-
... itColors; var <>max = 7; var <>allBuses; var <>usedBuses; var <>setMaxFunc; makeViews { |bounds| allBuses = []; usedBuses = []; setMaxFunc = nil; RoundView.useWithSkin( skin ++ (RoundView.skin ? ()), { this.prMakeViews( bounds ); }); this.u ...
-
... s/>. */ UGUI { classvar <>nowBuildingUnit; var <unit; var <parent, <composite, <views, <controller; var <viewHeight = 14, <labelWidth = 100; var <>action; var <>mapSetAction, <>mapCheckers; *new { |parent, bounds, unit, filterArgs| ^super.n ...
-
... curID, xys); if(guiOn, { { guiWin.refresh; }.defer; }); ^this; }); } *gui { var view; guiWin = Window("MultiTouchPad", Rect(100, 100, 525, 375)).onClose_({ guiOn = false; }); view = UserView(guiWin, guiWin.view.bounds).background_(Color.whi ...
-
... curID, xys); if(guiOn, { { guiWin.refresh; }.defer; }); ^this; }); } *gui { var view; guiWin = Window("MultiTouchPad", Rect(100, 100, 525, 375)).onClose_({ guiOn = false; }); view = UserView(guiWin, guiWin.view.bounds).background_(Color.whi ...
-
... ut( nil, (recButton= SGUIrecord(s, SInstruments.recordingsDir, "sInstrument_")).view .states_([ ["rec", palette.buttonText, Color.red], ["rec", palette.button, Color.red] ]).fixedWidth_(30), onoffButton= Button().states_([ ["on", palette.bu ...
-
// note: the window's width is not fixed, but the width of the master flowview // inside the window is fixed FixedWidthMultiPageLayout : MultiPageLayout { *new { arg title,bounds,margin,background,scroll=true,front=true; var new; "FixedWidt ...
-
// note: the window's width is not fixed, but the width of the master flowview // inside the window is fixed FixedWidthMultiPageLayout : MultiPageLayout { *new { arg title,bounds,margin,background,scroll=true,front=true; var new; "FixedWidt ...