-
... xtView { getLine { var lineSize = 0, index = 0, actualLine ; var lineArr = this.string.split($\n) ; var incrementArr = lineArr.collect({|l| lineSize = lineSize+l.size+1}) ; while ({ incrementArr[index] <= this.selectionStart }, { index = in ...
-
... xtView { getLine { var lineSize = 0, index = 0, actualLine ; var lineArr = this.string.split($\n) ; var incrementArr = lineArr.collect({|l| lineSize = lineSize+l.size+1}) ; while ({ incrementArr[index] <= this.selectionStart }, { index = in ...
-
... n drape, 2004-2007 // Return the <Integer> rate number of a named rate value. + String { rateNumber { if(this == "audio", { ^2; }); if(this == "control", { ^1; }); if(this == "demand", { ^3; }); if(this == "scalar", { ^0; }); if(this == "tr ...
-
+ String { //old version ////add back in \ before any spaces //asUnixPath { //// var output = ""; //// var temp = this.split(32.asAscii); //// //// temp.do{|str, i| //// //// if(i<(temp.size-1)) { //// //// output = output++str++"\\ "; //// ...
-
... 4 ); StaticText( views[ cat ], (bounds.width - (18 + scrollerMargin + 6))@18 ) .string_( " " ++ cat.asString ) .applySkin( RoundView.skin ? () ); udefs.do({ |udef| var hasFile = false, wd = 36; if( GUI.id == \qt ) { wd = 44 }; if( udef.isKi ...
-
... t have non-numeric values, just pass values thru map and unmap maybe useful for string values like ip addresses etc PassSpec.map(1235); PassSpec.unmap(1235); PassSpec.unmap(["hi", "lily", "hi", "lily", "hilo"]); PassSpec.asSpec */ PassSpec ...
-
+ Object { say { |voiceOrIndex, lang, wait = false, cmds| this.asString.say(voiceOrIndex, lang, wait, cmds); } } + String { say { |voiceOrIndex, lang, wait = false, cmds| var event = (\type: \say, voice: voiceOrIndex, lang: lang, wait: wait ...
-
... versions of methods, for sc-book chapter // *setMessage { |message| // txtView.string_(message.asString) // } // *new { |message="�Shout'er!"| // shouts.add(message); // // if (win.isNil or: { win.isClosed }) { // this.makeWin(message); // ...
-
... Platform.userAppSupportDir ++ "/ExtensionsWorkdir/SCM_CaACLib/" ++ this.class.asString ++ "/"; File.mkdir(persistanceDir); // Create if not exists. persistanceFile = persistanceDir ++ this.class.asString + ".state"; } initialize { this.load ...
-
... k addPost clear clearFrom deviation doAddLine doAddPost fork initBasicClass megaString time Examples Description An additional window that can be used as a post window in other environments. Class Methods * new ( window , bounds , font , qp ...