-
... onments. Class Methods * new ( window , bounds , font , qpalette ) Create a new TextView for a post window. Arguments: window A Window in which to place the TextView. bounds A Rect for the TextView font A Font. qpalette A QPalette. * window ...
-
... Window("Chatty Betty").front; ~win.layout = VLayout(~textField = TextField(), ~textView = TextView()); ~textField.action_({|v| ~chatter.send(v.string); v.string = "" }); // to get updates, just add a dependant ~chatter.addDependant({|chatt ...
-
... "colliding_" ++ app.id ++ "_" ++ tab.id; var defStr = tab.track.makeDefStr(tab.textView.string, name, play); tab.post("compiling"); try{ def = tab.track.makeDef(defStr, name, play); }; if (def.notNil){ view.stringColor_(Color.white); view. ...
-
+ TextView { addString {arg string; this.setString((string ++ ""), this.selectionStart); } backspace { this.setString("", this.selectionStart - 1, this.selectionStart); } }
-
/* FILENAME: TextViewFactory DESCRIPTION: Factory class AUTHOR: Marinus Klaassen (2021Q4) */ TextViewFactory { *createInstance { |caller, class| var newInstance = TextView(); class = class.asString(); if (class.contains("text-patternbox-env ...
-
... Window("Chatty Betty").front; ~win.layout = VLayout(~textField = TextField(), ~textView = TextView()); ~textField.action_({|v| ~chatter1.send(v.string); v.string = "" }); // to get updates, just add a dependant ~chatter1.addDependant({|cha ...
-
... 23, b: 234); b = 1 c = 2 d = 4 f = 1234 // * try changing the window size - the textviews adjust. // // * try writing into a textfield and evaluating // - this should set the global variables. To check, do: this.dump
-
... rWeight = 1; classvar <> keyCmds; var <name, <center, <size, <rect, <rectArea, <textView; var <touching, <aura; var <weights; *initClass { all = (); allTouching = (); auras = (); keyCmds = ( $.: { MultiTouchPad.stop }, $ : { MultiTouchPad.s ...
-
... 50, 240, 300)); w.front; // replace dummy Republic post view with RePost q.pr = TextView(w, Rect(0,0,500,200)); q.pr.string_("... Republic posts here ..."); q.pr.background_(Color.grey(0.8)).stringColor_(Color.black); // example buttons ( q ...
-
... ckground_(Color(0.1, 0.7, 0.1)); }; view.decorator.shift(0, 5); chatViewWrite = TextView(view, Rect(0, 0, width, 24)).resize_(8); chatView = TextView(view, Rect(0, 0, width, 170)).resize_(8); chatViewWrite.font = Font("Helvetica", 14); chat ...