diff options
Diffstat (limited to 'test/toxy/popup-test.pd')
-rw-r--r-- | test/toxy/popup-test.pd | 90 |
1 files changed, 51 insertions, 39 deletions
diff --git a/test/toxy/popup-test.pd b/test/toxy/popup-test.pd index 7f49162..ff8df82 100644 --- a/test/toxy/popup-test.pd +++ b/test/toxy/popup-test.pd @@ -1,39 +1,51 @@ -#N canvas 356 9 338 241 12; -#X obj 38 104 r rpop; -#X floatatom 38 142 5 0 0 0 - - -; -#X floatatom 120 142 5 0 0 0 - - -; -#X obj 120 104 r rpop1; -#X floatatom 210 142 5 0 0 0 - - -; -#X obj 210 104 r rpop2; -#N canvas 12 11 293 279 blackpanel 1; -#X obj 23 111 widget menubutton mb -menu .-.pop -bg green -activebackground -yellow -width 5 -text one @float if .(.#1 >= 1.) .(.-.pop invoke .#1.) -; -#X obj 23 12 loadbang; -#X obj 96 110 widget pop1 p1; -#X obj 188 110 widget pop2 p2; -#X msg 23 41 ini ::toxy::popup .- .| rpop [list one two three four five] --bg green -activebackground yellow .: destroy .^.m .: .^.scrollvert -configure -width 0 .: .^.scrollhort configure -width 0 .: .^.c configure --bg black; -#X obj 23 150 r topop; -#X obj 96 150 r topop1; -#X obj 188 150 r topop2; -#X connect 1 0 4 0; -#X connect 4 0 0 0; -#X connect 5 0 0 0; -#X connect 6 0 2 0; -#X connect 7 0 3 0; -#X restore 95 198 pd blackpanel; -#X floatatom 38 24 5 0 0 0 - - -; -#X floatatom 120 24 5 0 0 0 - - -; -#X floatatom 210 24 5 0 0 0 - - -; -#X obj 38 58 s topop; -#X obj 120 58 s topop1; -#X obj 210 58 s topop2; -#X connect 0 0 1 0; -#X connect 3 0 2 0; -#X connect 5 0 4 0; -#X connect 7 0 10 0; -#X connect 8 0 11 0; -#X connect 9 0 12 0; +#N canvas 80 56 700 405 12; +#X obj 17 17 widget popup p #items [.- config] -width 20; +#X obj 20 130 tow . popup p; +#X floatatom 20 71 5 0 0 0 - - -; +#X obj 437 287 tow . popup q; +#X obj 271 17 widget popup q -width 40; +#X obj 20 208 t 0 0; +#X obj 150 130 r rdefault; +#X msg 55 249 list rdefault \$1 3; +#X msg 20 287 list rcurrent \$1 4; +#X msg 89 71 tot pd [concat \$1 set [lindex [.- config [lindex [lindex +[.- config] \$2] 0]] \$3] .`.:]; +#X obj 20 170 - 1; +#X obj 331 130 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 +1; +#X obj 405 130 r rcurrent; +#X msg 150 170; +#X msg 405 170; +#X obj 225 213 route set; +#X obj 331 249 random 20; +#X msg 437 249 tot .-.pop add separator; +#X msg 225 330 tot .-.pop add command -label \$1 .: set [.- cget -textvariable] +\$1; +#X obj 490 208 sel 1; +#X obj 331 170 t 0 0; +#X obj 331 208 metro 500; +#X obj 225 249 route float; +#X obj 308 287 symbol; +#X connect 1 0 10 0; +#X connect 2 0 1 0; +#X connect 5 0 8 0; +#X connect 5 1 7 0; +#X connect 6 0 13 0; +#X connect 7 0 9 0; +#X connect 8 0 9 0; +#X connect 9 0 1 0; +#X connect 10 0 5 0; +#X connect 11 0 20 0; +#X connect 12 0 14 0; +#X connect 12 0 15 0; +#X connect 15 0 22 0; +#X connect 16 0 8 0; +#X connect 17 0 3 0; +#X connect 18 0 3 0; +#X connect 19 0 17 0; +#X connect 20 0 21 0; +#X connect 20 1 19 0; +#X connect 21 0 16 0; +#X connect 22 0 18 0; +#X connect 22 1 23 0; +#X connect 23 0 18 0; |