diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2007-12-01 05:36:24 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2007-12-01 05:36:24 +0000 |
commit | bcb01904ea65007aaa53313c8d8a70252f97fe45 (patch) | |
tree | 23956788bbb44abb2b205dbf038253d2e81450e2 | |
parent | 321a85a07d3cfa191ddef88b2b8225ca2a0de7bc (diff) |
added commas and semi-colons using ascii values
svn path=/trunk/externals/tkwidgets/; revision=9068
-rw-r--r-- | text-help.pd | 21 | ||||
-rw-r--r-- | text-test.pd | 10 |
2 files changed, 20 insertions, 11 deletions
diff --git a/text-help.pd b/text-help.pd index b8d2221..eed5fae 100644 --- a/text-help.pd +++ b/text-help.pd @@ -143,24 +143,26 @@ TkWidget library; #X msg 471 75 black; #N canvas 410 182 450 300 adding 0; #X obj 90 229 text 200 60 0; -#X text 53 23 You can add text one character at a time using the "key" +#X text 53 3 You can add text one character at a time using the "key" message. It works either with the character itself or the ASCII value of the character:; -#X msg 90 102 key \$1; -#X obj 94 77 hsl 128 15 0 127 0 0 empty empty empty -2 -8 0 10 -262144 +#X msg 90 82 key \$1; +#X obj 94 57 hsl 128 15 0 127 0 0 empty empty empty -2 -8 0 10 -262144 -1 -1 0 1; #X msg 126 202 key "; #X msg 169 202 key a; #X msg 215 202 key B; -#X msg 145 102 key 10; +#X msg 145 82 key 10; #X msg 259 202 key [; -#X msg 145 122 key 32; -#X text 198 103 carriage return; -#X text 198 122 space; -#X msg 145 142 key 100; -#X text 198 142 letter "d"; +#X msg 145 102 key 32; +#X text 198 83 carriage return; +#X text 198 102 space; #X msg 145 163 key 92; #X text 199 161 backslash; +#X msg 145 143 key 59; +#X text 199 141 semicolon; +#X msg 145 122 key 44; +#X text 198 122 comma; #X connect 2 0 0 0; #X connect 3 0 2 0; #X connect 4 0 0 0; @@ -171,6 +173,7 @@ of the character:; #X connect 9 0 0 0; #X connect 12 0 0 0; #X connect 14 0 0 0; +#X connect 16 0 0 0; #X restore 199 -200 pd adding with the key message; #X obj 107 -177 loadbang; #X connect 0 0 2 0; diff --git a/text-test.pd b/text-test.pd index 56148ea..5926ed9 100644 --- a/text-test.pd +++ b/text-test.pd @@ -1,5 +1,5 @@ -#N canvas 88 197 538 519 10; -#X obj 165 127 text 227 97 1; +#N canvas 525 280 538 519 10; +#X obj 169 112 text 227 97 1; #X msg 174 40 bang; #X msg 289 83 key \$1; #X msg 273 48 123; @@ -10,6 +10,10 @@ #X obj 177 367 text 200 60 0; #X obj 190 283 loadbang; #X msg 182 319 set blah blah blah; +#X msg 425 48 59; +#X msg 397 47 44; +#X obj 169 219 pddp/print; +#X connect 0 0 13 0; #X connect 1 0 0 0; #X connect 2 0 0 0; #X connect 3 0 2 0; @@ -19,3 +23,5 @@ #X connect 7 0 2 0; #X connect 9 0 10 0; #X connect 10 0 8 0; +#X connect 11 0 2 0; +#X connect 12 0 2 0; |