-
... ter = 0.5, ctlCenter; w = Window ("bilin", Rect(100, 100, 200, 100)).front; a = Slider (w, Rect (20, 20, 150, 20)).value_(0.5); b = Slider (w, Rect (20, 45, 150, 20)).value_(0.5); b.action = { center = b.value }; a.mouseDownAction = { ctlCe ...
-
... tion in response to user input of some sort. Typically a view like SCButton , SCSlider , SCPopUpMenu , etc, use action to store the function to be performed on user input. Many views only call doAction if their value has changed. action act ...
-
... showPauseSend: false ); // the GUI functions: ProxyMonitorGui (~test); // left slider is vol ~test.vol_(0.1); ~test.vol_(0.25); ~test.stop; // play / stop button: ~test.playN; // ~test.end; // alt-stop fully ends the proxy. ~test.playN(vol ...
-
... p must be explicitly set for the defautlKeyDownAction to work. See also: SCMultiSliderView , SCEnvelopeEdit Creation / Class Methods *new (parent, bounds) parent - The parent view. bounds - An instance of Rect , or a Point indicating width@ ...
-
... o allow value to be quantized. thumbSize is used for both width and height of a slider thumb, while thumbWidth or thumbHeight are typically used for only one dimension. x and y are used for mouse clicks. Take a look at a similar SC widget t ...
-
... ed the EZNumber instance as its argument. initVal - The value to initialize the slider and number box with. If nil, then it uses the ControlSpec's default value. initAction - A Boolean indicating whether the action function should be called ...
-
... rators, wave samples, points, rectangles, graphical windows, graphical buttons, sliders and much more. Operations upon objects are invoked by messages. A message is a request for an object, called the receiver , to perform one of its operat ...
-
... they work w.view.decorator = FlowLayout ( w.view.bounds, 10@10, 20@5 ); 16.do{ Slider2D ( w.view,80@80 ).background_( Color .rand ) }; ) You can also write: ( w = Window .new.front; w.addFlowLayout( 10@10, 20@5 ); // a shortcut method, see ...
-
... Y ( var controlWindow, w; var r, a, b, c, d, matrix = [1, 0, 0, 1, 10, 10]; var sliders, spex, name; w = Window .new.front; w.view.background_( Color .white); // create a controller-window controlWindow = Window ( "matrix controls" , Rect ( ...
-
... w = Window (scroll: true ); // you must set this when the window is created c = Slider2D (w, Rect (0, 0, 1500, 300)); d = Slider (w, Rect (0, 310, 20, 300)); c.background = Color .grey.alpha = 0.6; d.background = Color .grey.alpha = 0.6; w. ...