[sharing is fun] multi-textedit

Mar 13, 2008 at 6:13am

[sharing is fun] multi-textedit

This patch uses tab and shift+tab to navigate between a set of textedit objects. It’s designed to be pattr friendly. The pattr object won’t “commit” changes until you hit enter or tab (or click somewhere). Before you commit changes you can hit esc to undo.

Weird detail: I store ” ” in the pattr when the textedit is empty because of this issue: http://www.cycling74.com/forums/index.php?t=msg&th=31908
Otherwise, when recalling a preset with a blank value it won’t overwrite whatever’s in the textedit. That might be desirable in some situations…

Limitation: You can’t enter numbers outside the range −2147483648 to 2147483647 (32-bit int range). It will wrap around. I tried to defeat this with “output as symbol” mode but that causes other problems. You can enter things like “10000000000000000″ if you use quotes.

Hopefully this makes up for all my complaints about textedit lately ;)

#P window setfont “Sans Serif” 9.;
#P user textedit 23 30 123 80 32772 3 9;
#X setrgb 0 0 0 255 255 255;
#P objectname editor;
#P window linecount 1;
#P hidden newex 631 478 18 196617 t i;
#P hidden message 192 414 37 196617 select;
#P comment 45 177 156 196617 esc: undo current edit;
#P comment 45 157 156 196617 shift + tab: prev textedit;
#P hidden newex 192 391 50 196617 deferlow;
#P hidden message 207 323 22 196617 set;
#N vpatcher 195 202 509 536;
#P window setfont “Sans Serif” 9.;
#P window linecount 0;
#P newex 127 72 56 196617 route text;
#P newex 33 106 84 196617 if $i1==1 then 1;
#P newex 33 83 34 196617 zl len;
#P newex 156 115 21 196617 t 2;
#P newex 127 115 21 196617 t 1;
#P window linecount 1;
#P newex 127 93 39 196617 sel ” “;
#P newex 142 200 20 196617 t b;
#P newex 182 32 40 196617 t s s s;
#P newex 142 177 50 196617 gate 2;
#P newex 189 228 62 196617 prepend set;
#P message 142 225 22 196617 set;
#P newex 189 204 56 196617 route text;
#P inlet 182 12 15 0;
#P outlet 160 275 15 0;
#P connect 6 1 11 0;
#P connect 11 0 12 0;
#P connect 6 2 13 0;
#P connect 13 0 8 0;
#P connect 8 0 9 0;
#P connect 12 0 5 0;
#P connect 9 0 5 0;
#P connect 10 0 5 0;
#P connect 5 0 7 0;
#P connect 7 0 3 0;
#P connect 8 1 10 0;
#P connect 4 0 0 0;
#P connect 3 0 0 0;
#P connect 1 0 6 0;
#P connect 6 0 5 1;
#P connect 5 1 2 0;
#P connect 2 0 4 0;
#P pop;
#P hidden newobj 425 471 77 196617 p space2empty;
#P message 560 40 78 196617 storagewindow;
#P hidden message 450 411 29 196617 text;
#P hidden newex 450 386 48 196617 loadbang;
#P hidden message 709 144 49 196617 store $1;
#P hidden newex 709 116 27 196617 + 1;
#P hidden newex 751 117 27 196617 + 1;
#P comment 745 30 38 196617 recall;
#P user radiogroup 751 47 18 64;
#X size 4;
#X offset 16;
#X inactive 0;
#X itemtype 0;
#X flagmode 0;
#X set 0;
#X done;
#P user radiogroup 709 47 18 64;
#X size 4;
#X offset 16;
#X inactive 0;
#X itemtype 0;
#X flagmode 0;
#X set 0;
#X done;
#P hidden newex 286 420 67 196617 switch 4 1;
#P message 488 40 69 196617 clientwindow;
#P hidden comment 568 255 23 196617 tab;
#P hidden newex 299 114 27 196617 t i b;
#P hidden message 362 85 14 196617 3;
#P user ubutton 332 30 100 50 0 0;
#P hidden message 259 84 14 196617 2;
#P user ubutton 229 30 100 50 0 0;
#P hidden message 156 86 14 196617 1;
#P user ubutton 126 30 100 50 0 0;
#P hidden message 53 86 14 196617 0;
#P user ubutton 23 30 100 50 0 0;
#P hidden newex 163 440 27 196617 – 3;
#P hidden message 163 465 145 196617 script move highlighter $1 27;
#P hidden newex 650 449 27 196617 – 1;
#P hidden newex 622 425 38 196617 gate 2;
#P hidden newex 622 379 27 196617 + 1;
#P hidden newex 622 327 66 196617 modifiers;
#P hidden message 9 474 125 196617 script bringtofront editor;
#P hidden message 45 363 14 196617 5;
#P hidden newex 562 292 53 196617 t b b b b;
#P hidden newex 244 182 37 196617 + 400;
#P hidden newex 244 161 154 196617 if $i1 < 0 then $i1 else out2 $i1;
#P hidden newex 530 357 45 196617 onebang;
#P hidden newex 562 383 27 196617 int;
#P number 244 141 35 9 -2 5 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P objectname active_idx;
#P hidden newex 622 451 27 196617 + 1;
#P hidden message 244 118 39 196617 set $1;
#P hidden newex 579 328 30 196617 grab;
#P hidden newex 562 269 46 196617 select 9;
#P hidden newex 244 210 27 196617 % 4;
#P hidden newex 244 236 40 196617 t i b i;
#P hidden newex 300 299 54 196617 gate 4 1;
#P hidden newex 300 323 84 196617 pvar textedit[1];
#P hidden newex 314 347 84 196617 pvar textedit[2];
#P hidden newex 328 370 84 196617 pvar textedit[3];
#P hidden newex 342 393 84 196617 pvar textedit[4];
#P newex 488 59 204 196617 pattrstorage @autorestore 0 @savemode 0;
#X client_rect 798 252 1438 492;
#X storage_rect 10 59 650 299;
#P objectname u205000038;
#P hidden newex 108 414 40 196617 t b b i;
#P hidden newex 274 263 27 196617 + 1;
#P hidden newex 485 169 172 196617 pattr textedit.4 @bindto textedit[4];
#P objectname textedit.4;
#P hidden newex 484 148 172 196617 pattr textedit.3 @bindto textedit[3];
#P objectname textedit.3;
#P hidden newex 484 125 172 196617 pattr textedit.2 @bindto textedit[2];
#P objectname textedit.2;
#P hidden newex 484 104 172 196617 pattr textedit.1 @bindto textedit[1];
#P objectname textedit.1;
#P hidden newex 425 230 70 196617 pvar editor 2;
#P user textedit 332 30 432 80 32773 3 9;
#X setrgb 0 0 0 240 240 240;
#P objectname textedit[4];
#P user textedit 229 30 329 80 32773 3 9;
#X setrgb 0 0 0 240 240 240;
#P objectname textedit[3];
#P user textedit 126 30 226 80 32773 3 9;
#X setrgb 0 0 0 240 240 240;
#P objectname textedit[2];
#P hidden newex 108 360 98 196617 expr 103*$i1 + 23;
#P user textedit 23 30 123 80 32773 3 9;
#X setrgb 0 0 0 240 240 240;
#P objectname textedit[1];
#P hidden message 161 505 124 196617 script move editor $1 30;
#N thispatcher;
#Q end;
#P hidden newobj 125 528 61 196617 thispatcher;
#P hidden newex 440 263 52 196617 select 27;
#P hidden newex 425 448 36 196617 zl reg;
#P hidden comment 458 282 32 196617 esc;
#N vpatcher 10 59 229 393;
#P window setfont “Sans Serif” 9.;
#P newex 50 199 20 196617 t b;
#P newex 90 50 30 196617 t s s;
#P newex 50 147 27 196617 + 1;
#P newex 50 176 50 196617 gate 2;
#P newex 97 224 62 196617 prepend set;
#P message 50 224 40 196617 set ” “;
#P newex 97 200 56 196617 route text;
#P newex 50 122 27 196617 > 1;
#P newex 50 99 34 196617 zl len;
#P inlet 90 30 15 0;
#P outlet 75 274 15 0;
#P connect 9 1 2 0;
#P connect 2 0 3 0;
#P connect 3 0 8 0;
#P connect 8 0 7 0;
#P connect 7 0 10 0;
#P connect 10 0 5 0;
#P connect 5 0 0 0;
#P connect 6 0 0 0;
#P connect 1 0 9 0;
#P connect 9 0 7 1;
#P connect 7 1 4 0;
#P connect 4 0 6 0;
#P pop;
#P hidden newobj 344 263 77 196617 p empty2space;
#P window linecount 2;
#P hidden comment 633 350 49 196617 shift key down?;
#P user panel 20 27 105 56;
#X brgb 202 228 244;
#X frgb 0 0 0;
#X border 0;
#X rounded 0;
#X shadow 1;
#X done;
#P objectname highlighter;
#P window linecount 3;
#P hidden comment 30 323 47 196617 There’s really 5 textedits;
#P window linecount 1;
#P comment 707 29 30 196617 store;
#P comment 46 136 156 196617 tab: next textedit;
#P comment 25 116 100 196617 Special Keys;
#P comment 167 13 124 196617 Click on a box to edit it;
#P hidden connect 64 0 66 0;
#P hidden connect 67 0 68 0;
#P hidden connect 63 0 67 0;
#P hidden connect 47 1 48 0;
#P hidden connect 38 0 47 1;
#P hidden connect 48 0 78 0;
#P hidden connect 36 0 78 0;
#P hidden connect 47 0 36 0;
#P hidden connect 46 0 47 0;
#P hidden connect 45 0 46 0;
#P hidden connect 42 3 45 0;
#P hidden fasten 34 0 39 0 584 352 535 352;
#P hidden connect 34 0 38 1;
#P hidden connect 42 0 34 0;
#P hidden connect 42 1 39 1;
#P hidden fasten 39 0 38 0 535 380 567 380;
#P hidden connect 33 0 42 0;
#P hidden connect 18 1 10 0;
#P hidden connect 18 1 33 0;
#P hidden connect 66 0 25 0;
#P hidden connect 68 0 25 0;
#P connect 61 0 25 0;
#P fasten 71 0 25 0 565 56 493 56;
#P hidden connect 69 0 70 0;
#P hidden connect 9 0 72 0;
#P hidden fasten 18 0 7 0 430 253 349 253;
#P hidden connect 18 0 9 0;
#P hidden fasten 62 0 9 0 291 440 430 440;
#P hidden connect 10 0 9 0;
#P hidden connect 70 0 9 0;
#P hidden connect 77 0 18 0;
#P lcolor 7;
#P hidden fasten 72 0 18 0 430 495 526 495 526 225 430 225;
#P hidden fasten 42 2 18 0 595 313 636 313 636 225 430 225;
#P hidden fasten 59 1 18 0 321 136 430 136;
#P hidden connect 57 1 58 0;
#P hidden connect 7 0 30 1;
#P hidden fasten 31 1 30 1 264 289 349 289;
#P hidden connect 26 0 62 4;
#P hidden connect 73 0 29 0;
#P hidden connect 73 0 28 0;
#P hidden connect 73 0 27 0;
#P hidden connect 73 0 26 0;
#P hidden connect 30 3 26 0;
#P hidden connect 27 0 62 3;
#P hidden connect 30 2 27 0;
#P hidden connect 28 0 62 2;
#P hidden connect 30 1 28 0;
#P hidden connect 29 0 62 1;
#P hidden connect 30 0 29 0;
#P hidden connect 23 0 62 0;
#P hidden connect 23 0 30 0;
#P hidden fasten 58 0 59 0 367 109 304 109;
#P hidden fasten 56 0 59 0 264 109 304 109;
#P hidden fasten 54 0 59 0 161 109 304 109;
#P hidden fasten 52 0 59 0 58 109 304 109;
#P hidden connect 31 2 23 0;
#P hidden connect 55 1 56 0;
#P hidden fasten 32 0 35 0 249 231 239 231 239 116 249 116;
#P hidden connect 32 0 31 0;
#P hidden connect 41 0 32 0;
#P hidden connect 40 1 32 0;
#P hidden connect 40 0 41 0;
#P hidden connect 78 0 40 0;
#P lcolor 10;
#P hidden connect 37 0 40 0;
#P hidden connect 34 1 37 0;
#P lcolor 6;
#P hidden connect 35 0 37 0;
#P hidden fasten 59 0 37 0 304 137 249 137;
#P hidden connect 74 0 77 0;
#P hidden connect 24 0 74 0;
#P hidden connect 50 0 49 0;
#P hidden connect 24 2 50 0;
#P hidden connect 24 2 12 0;
#P hidden connect 53 1 54 0;
#P hidden connect 12 0 11 0;
#P hidden connect 44 0 11 0;
#P hidden connect 49 0 11 0;
#P hidden connect 14 0 24 0;
#P hidden connect 31 0 14 0;
#P hidden connect 43 0 14 0;
#P hidden connect 51 1 52 0;
#P hidden connect 24 1 44 0;
#P window clipboard copycount 80;

#36327
Mar 13, 2008 at 6:18am

Heads up: when I copy the patch from the forum and do “New from clipboard”, the patcher window isn’t big enough. If you scroll right it will screw up the patch (I move objects around with thispatcher and absolute coordinates).

Resize the window before doing anything. Don’t scroll the patch window.

#124571
Mar 13, 2008 at 10:20am

On 13 Mar 2008, at 06:13, Adam Murray wrote:

> Hopefully this makes up for all my complaints about textedit lately ;)

Nice patch – very swan-like. (Serene on top, paddling like mad
underneath.)

– N.

Nick Rothwell – nick@cassiel.comhttp://www.cassiel.com
— open-source goodies for MaxMSP: Python, Groovy, Nixie Tubes,
— rotatable text bricks, databases: all at http://www.loadbang.net

#124572
Jan 28, 2009 at 10:36am

Hi, very nice patch!

I have a question about a possible add-on, related to the ubutton.
The right outlet of the ubutton claims to send a ’0′ if I click outside the button…but it doesn’t…

If that would work, you could also deselect a button if you click ‘somewhere else’. Who can solve this?

Kind regards,
Bas

#124573
Jan 28, 2009 at 11:05am

Quote: Adam Murray wrote on Thu, 13 March 2008 00:18
—————————————————-
> Heads up: …..(I move objects around with thispatcher and absolute coordinates)…..

Cool patch!. I thought it’d be a lot more useful to not depend on absolute coordinates because any layout change will involve changing the code. Here’s a version that moves based on the position of the textedit boxes, and hence does not suffer the problem you mention – you can also position the editors wherever you wish. Resizing is also possible without necessarily needing to recode, as long as you resize all the boxes to the same size, other thsn the highlighter which needs to be 6 pixels bigger than your textedit size in each dimension….

#P window setfont “Sans Serif” 9.;
#P user textedit 332 30 432 80 32772 3 9 hjsdk;
#X setrgb 0 0 0 255 255 255;
#P objectname editor;
#P window linecount 1;
#P hidden newex 141 501 197 196617 sprintf script offsetfrom editor %s 0 0 0;
#P hidden newex 186 480 228 196617 sprintf script offsetfrom highlighter %s 0 -3 -3;
#P hidden newex 161 305 105 196617 sprintf textedit[%ld];
#P hidden newex 166 277 27 196617 + 1;
#P hidden newex 631 478 18 196617 t i;
#P hidden message 192 414 37 196617 select;
#P comment 45 177 156 196617 esc: undo current edit;
#P comment 45 157 156 196617 shift + tab: prev textedit;
#P hidden newex 192 391 50 196617 deferlow;
#P hidden message 232 338 22 196617 set;
#N vpatcher 195 202 509 536;
#P window setfont “Sans Serif” 9.;
#P window linecount 0;
#P newex 127 72 56 196617 route text;
#P newex 33 106 84 196617 if $i1==1 then 1;
#P newex 33 83 34 196617 zl len;
#P newex 156 115 21 196617 t 2;
#P newex 127 115 21 196617 t 1;
#P window linecount 1;
#P newex 127 93 39 196617 sel ” “;
#P newex 142 200 20 196617 t b;
#P newex 182 32 40 196617 t s s s;
#P newex 142 177 50 196617 gate 2;
#P newex 189 228 62 196617 prepend set;
#P message 142 225 22 196617 set;
#P newex 189 204 56 196617 route text;
#P inlet 182 12 15 0;
#P outlet 160 275 15 0;
#P connect 6 1 11 0;
#P connect 11 0 12 0;
#P connect 6 2 13 0;
#P connect 13 0 8 0;
#P connect 8 0 9 0;
#P connect 10 0 5 0;
#P connect 9 0 5 0;
#P connect 12 0 5 0;
#P connect 5 0 7 0;
#P connect 7 0 3 0;
#P connect 8 1 10 0;
#P connect 3 0 0 0;
#P connect 4 0 0 0;
#P connect 1 0 6 0;
#P connect 6 0 5 1;
#P connect 5 1 2 0;
#P connect 2 0 4 0;
#P pop;
#P hidden newobj 425 471 77 196617 p space2empty;
#P message 560 40 78 196617 storagewindow;
#P hidden message 450 411 29 196617 text;
#P hidden newex 450 386 48 196617 loadbang;
#P hidden message 709 144 49 196617 store $1;
#P hidden newex 709 116 27 196617 + 1;
#P hidden newex 751 117 27 196617 + 1;
#P comment 745 30 38 196617 recall;
#P user radiogroup 751 47 18 64;
#X size 4;
#X offset 16;
#X inactive 0;
#X itemtype 0;
#X flagmode 0;
#X set 0;
#X done;
#P user radiogroup 709 47 18 64;
#X size 4;
#X offset 16;
#X inactive 0;
#X itemtype 0;
#X flagmode 0;
#X set 0;
#X done;
#P hidden newex 286 420 67 196617 switch 4 1;
#P message 488 40 69 196617 clientwindow;
#P hidden comment 568 255 23 196617 tab;
#P hidden newex 299 114 27 196617 t i b;
#P hidden message 362 85 14 196617 3;
#P user ubutton 332 30 100 50 0 0;
#P hidden message 259 84 14 196617 2;
#P user ubutton 229 30 100 50 0 0;
#P objectname edit3;
#P hidden message 156 86 14 196617 1;
#P user ubutton 126 30 100 50 0 0;
#P objectname edit2;
#P hidden message 53 86 14 196617 0;
#P user ubutton 23 30 100 50 0 0;
#P objectname edit1;
#P hidden newex 650 449 27 196617 – 1;
#P hidden newex 622 425 38 196617 gate 2;
#P hidden newex 622 379 27 196617 + 1;
#P hidden newex 622 327 66 196617 modifiers;
#P hidden message 9 474 125 196617 script bringtofront editor;
#P hidden newex 562 292 53 196617 t b b b b;
#P hidden newex 244 182 37 196617 + 400;
#P hidden newex 244 161 154 196617 if $i1 < 0 then $i1 else out2 $i1;
#P hidden newex 530 357 45 196617 onebang;
#P hidden newex 562 383 27 196617 int;
#P number 244 141 35 9 -2 5 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P objectname active_idx;
#P hidden newex 622 451 27 196617 + 1;
#P hidden message 244 118 39 196617 set $1;
#P hidden newex 579 328 30 196617 grab;
#P hidden newex 562 269 46 196617 select 9;
#P hidden newex 244 210 27 196617 % 4;
#P hidden newex 244 236 40 196617 t i b i;
#P hidden newex 300 299 54 196617 gate 4 1;
#P hidden newex 300 323 84 196617 pvar textedit[1];
#P hidden newex 314 347 84 196617 pvar textedit[2];
#P hidden newex 328 370 84 196617 pvar textedit[3];
#P hidden newex 342 393 84 196617 pvar textedit[4];
#P newex 488 59 204 196617 pattrstorage @autorestore 0 @savemode 0;
#X client_rect 798 252 1438 492;
#X storage_rect 10 59 650 299;
#P objectname u756000002;
#P hidden newex 108 414 40 196617 t b b s;
#P hidden newex 274 263 27 196617 + 1;
#P hidden newex 485 169 172 196617 pattr textedit.4 @bindto textedit[4];
#X prestore 1 0 hjsdk;
#P objectname textedit.4;
#P hidden newex 484 148 172 196617 pattr textedit.3 @bindto textedit[3];
#X prestore 1 0 hjsd;
#P objectname textedit.3;
#P hidden newex 484 125 172 196617 pattr textedit.2 @bindto textedit[2];
#X prestore 1 0 ” “;
#P objectname textedit.2;
#P hidden newex 484 104 172 196617 pattr textedit.1 @bindto textedit[1];
#X prestore 1 0 sdfdfj;
#P objectname textedit.1;
#P hidden newex 425 230 70 196617 pvar editor 2;
#P user textedit 332 30 432 80 32773 3 9 hjsdk;
#X setrgb 0 0 0 240 240 240;
#P objectname textedit[4];
#P user textedit 229 30 329 80 32773 3 9 hjsd;
#X setrgb 0 0 0 240 240 240;
#P objectname textedit[3];
#P user textedit 126 30 226 80 32773 3 9 ” “;
#X setrgb 0 0 0 240 240 240;
#P objectname textedit[2];
#P user textedit 23 30 123 80 32773 3 9 sdfdfj;
#X setrgb 0 0 0 240 240 240;
#P objectname textedit[1];
#N thispatcher;
#Q end;
#P hidden newobj 125 528 61 196617 thispatcher;
#P hidden newex 440 263 52 196617 select 27;
#P hidden newex 425 448 36 196617 zl reg;
#P hidden comment 458 282 32 196617 esc;
#N vpatcher 10 59 229 393;
#P window setfont “Sans Serif” 9.;
#P newex 50 199 20 196617 t b;
#P newex 90 50 30 196617 t s s;
#P newex 50 147 27 196617 + 1;
#P newex 50 176 50 196617 gate 2;
#P newex 97 224 62 196617 prepend set;
#P message 50 224 40 196617 set ” “;
#P newex 97 200 56 196617 route text;
#P newex 50 122 27 196617 > 1;
#P newex 50 99 34 196617 zl len;
#P inlet 90 30 15 0;
#P outlet 75 274 15 0;
#P connect 9 1 2 0;
#P connect 2 0 3 0;
#P connect 3 0 8 0;
#P connect 8 0 7 0;
#P connect 7 0 10 0;
#P connect 10 0 5 0;
#P connect 6 0 0 0;
#P connect 5 0 0 0;
#P connect 1 0 9 0;
#P connect 9 0 7 1;
#P connect 7 1 4 0;
#P connect 4 0 6 0;
#P pop;
#P hidden newobj 344 263 77 196617 p empty2space;
#P window linecount 2;
#P hidden comment 633 350 49 196617 shift key down?;
#P user panel 329 27 105 56;
#X brgb 202 228 244;
#X frgb 0 0 0;
#X border 0;
#X rounded 0;
#X shadow 1;
#X done;
#P objectname highlighter;
#P window linecount 3;
#P hidden comment 30 323 47 196617 There’s really 5 textedits;
#P window linecount 1;
#P comment 707 29 30 196617 store;
#P comment 46 136 156 196617 tab: next textedit;
#P comment 25 116 100 196617 Special Keys;
#P comment 167 13 124 196617 Click on a box to edit it;
#P hidden connect 22 2 77 0;
#P hidden connect 22 2 76 0;
#P hidden connect 76 0 11 0;
#P hidden connect 77 0 11 0;
#P hidden connect 75 0 22 0;
#P hidden connect 22 0 69 0;
#P hidden connect 22 1 41 0;
#P hidden connect 74 0 75 0;
#P hidden connect 29 0 74 0;
#P hidden connect 46 1 47 0;
#P hidden connect 41 0 11 0;
#P hidden connect 48 1 49 0;
#P hidden connect 69 0 72 0;
#P hidden fasten 54 0 35 0 304 137 249 137;
#P hidden connect 33 0 35 0;
#P hidden connect 32 1 35 0;
#P lcolor 6;
#P hidden connect 35 0 38 0;
#P hidden connect 73 0 38 0;
#P lcolor 10;
#P hidden connect 38 0 39 0;
#P hidden connect 38 1 30 0;
#P hidden connect 39 0 30 0;
#P hidden connect 30 0 29 0;
#P hidden fasten 30 0 33 0 249 231 239 231 239 116 249 116;
#P hidden connect 50 1 51 0;
#P hidden connect 29 2 21 0;
#P hidden fasten 47 0 54 0 58 109 304 109;
#P hidden fasten 49 0 54 0 161 109 304 109;
#P hidden fasten 51 0 54 0 264 109 304 109;
#P hidden fasten 53 0 54 0 367 109 304 109;
#P hidden connect 21 0 28 0;
#P hidden connect 21 0 57 0;
#P hidden connect 28 0 27 0;
#P hidden connect 27 0 57 1;
#P hidden connect 28 1 26 0;
#P hidden connect 26 0 57 2;
#P hidden connect 28 2 25 0;
#P hidden connect 25 0 57 3;
#P hidden connect 28 3 24 0;
#P hidden connect 68 0 24 0;
#P hidden connect 68 0 25 0;
#P hidden connect 68 0 26 0;
#P hidden connect 68 0 27 0;
#P hidden connect 24 0 57 4;
#P hidden fasten 29 1 28 1 264 289 349 289;
#P hidden connect 7 0 28 1;
#P hidden connect 52 1 53 0;
#P hidden fasten 54 1 16 0 321 136 430 136;
#P hidden fasten 40 2 16 0 595 313 636 313 636 225 430 225;
#P hidden fasten 67 0 16 0 430 495 526 495 526 225 430 225;
#P hidden connect 72 0 16 0;
#P lcolor 7;
#P hidden connect 65 0 9 0;
#P hidden connect 10 0 9 0;
#P hidden fasten 57 0 9 0 291 440 430 440;
#P hidden connect 16 0 9 0;
#P hidden fasten 16 0 7 0 430 253 349 253;
#P hidden connect 9 0 67 0;
#P hidden connect 64 0 65 0;
#P fasten 66 0 23 0 565 56 493 56;
#P connect 56 0 23 0;
#P hidden connect 63 0 23 0;
#P hidden connect 61 0 23 0;
#P hidden connect 16 1 31 0;
#P hidden connect 16 1 10 0;
#P hidden connect 31 0 40 0;
#P hidden fasten 37 0 36 0 535 380 567 380;
#P hidden connect 40 1 37 1;
#P hidden connect 40 0 32 0;
#P hidden connect 32 0 36 1;
#P hidden fasten 32 0 37 0 584 352 535 352;
#P hidden connect 40 3 42 0;
#P hidden connect 42 0 43 0;
#P hidden connect 43 0 44 0;
#P hidden connect 44 0 34 0;
#P hidden connect 34 0 73 0;
#P hidden connect 45 0 73 0;
#P hidden connect 36 0 44 1;
#P hidden connect 44 1 45 0;
#P hidden connect 58 0 62 0;
#P hidden connect 62 0 63 0;
#P hidden connect 59 0 61 0;
#P window clipboard copycount 79;

#124574
Jan 28, 2009 at 10:50pm

#124575
Jan 29, 2009 at 6:27am

Quote: AlexHarker wrote on Wed, 28 January 2009 03:05
—————————————————-
> Cool patch!. I thought it’d be a lot more useful to not depend on absolute coordinates because any layout change will involve changing the code. Here’s a version that moves based on the position of the textedit boxes, and hence does not suffer the problem you mention – you can also position the editors wherever you wish. Resizing is also possible without necessarily needing to recode, as long as you resize all the boxes to the same size, other thsn the highlighter which needs to be 6 pixels bigger than your textedit size in each dimension….
>

Very nice improvement. Thanks for sharing.

#124576
Jan 30, 2009 at 8:16am

Thanks Stefan!

#124577

You must be logged in to reply to this topic.