#N struct template8 float x float y float w float h float q;
#N canvas 349 131 520 488 12;
#X floatatom 91 220 4 0 0 0 - - - 0;
#X floatatom 253 304 4 0 0 0 - - - 0;
#N canvas 926 152 388 446 data8 1;
#X scalar template8 29 182 0 16 917 \;;
#X scalar template8 290 272 0 32 66 \;;
#X scalar template8 186 29 46 71 78 \;;
#X scalar template8 21 318 49 42 220 \;;
#X scalar template8 112 201 28 72 634 \;;
#X scalar template8 250 125 46 11 48 \;;
#X scalar template8 26 62 70 11 903 \;;
#X scalar template8 260 36 10 4 169 \;;
#X scalar template8 230 175 25 27 710 \;;
#X scalar template8 282 266 50 25 612 \;;
#X scalar template8 54 184 62 51 421 \;;
#X scalar template8 177 241 39 66 866 \;;
#X scalar template8 145 96 27 27 125 \;;
#X scalar template8 116 85 66 32 319 \;;
#X scalar template8 135 61 50 25 454 \;;
#X scalar template8 275 117 21 45 583 \;;
#X scalar template8 270 230 25 38 548 \;;
#X scalar template8 217 249 24 73 214 \;;
#X scalar template8 214 312 50 78 652 \;;
#X scalar template8 288 91 72 19 325 \;;
#X restore 396 386 pd data8;
#N canvas 280 471 467 248 template8 0;
#X obj 75 160 filledpolygon q 0 1 0 0 w 0 w h 0 h;
#X obj 76 187 drawnumber q 0 0 0;
#X obj 32 19 struct template8 float x float y float w float h float
q;
#X obj 32 74 route select;
#X obj 32 103 outlet;
#X obj 40 46 print struct-template8;
#X text 136 78 "struct" outputs messages notifying you when objects
of this structure are selected or deselected. Here we only catch selection.
, f 44;
#X connect 2 0 3 0;
#X connect 2 0 5 0;
#X connect 3 0 4 0;
#X restore 253 205 pd template8;
#X text 41 15 This patch demonstrates catching the selection so you
can make control panels to edit parameters. The "struct" object outputs
a pointer to any selected object of type struct8., f 62;
#X obj 91 244 set template8 x;
#X obj 91 292 set template8 y;
#X obj 91 340 set template8 w;
#X obj 91 387 set template8 h;
#X obj 91 434 set template8 q;
#X obj 253 276 get template8 x y w h q;
#X text 41 68 To try it \, unlock the subpatch (data8) and select something.
The 5 parameters should show up under the "get" object in this window
\, and you should be able to change them with the "set" object., f
62;
#X text 42 136 The blue "selection" rectangle ought to notice when
the object that got selected gets moved or resized \, but this isn't
done yet (as of Pd version 0.39)., f 62;
#X floatatom 91 268 4 0 0 0 - - - 0;
#X floatatom 91 316 4 0 0 0 - - - 0;
#X floatatom 91 364 4 0 0 0 - - - 0;
#X floatatom 91 411 4 0 0 0 - - - 0;
#X floatatom 371 304 4 0 0 0 - - - 0;
#X floatatom 332 304 4 0 0 0 - - - 0;
#X floatatom 292 304 4 0 0 0 - - - 0;
#X floatatom 411 304 4 0 0 0 - - - 0;
#X text 293 435 updated for Pd version 0.39;
#X connect 0 0 5 0;
#X connect 3 0 5 1;
#X connect 3 0 6 1;
#X connect 3 0 7 1;
#X connect 3 0 8 1;
#X connect 3 0 9 1;
#X connect 3 0 10 0;
#X connect 10 0 1 0;
#X connect 10 1 19 0;
#X connect 10 2 18 0;
#X connect 10 3 17 0;
#X connect 10 4 20 0;
#X connect 13 0 6 0;
#X connect 14 0 7 0;
#X connect 15 0 8 0;
#X connect 16 0 9 0;
