#N struct template8 float x float y float w float h float q;
#N canvas 330 164 520 488 12;
#X floatatom 91 364 0 0 0 0 - - -;
#X floatatom 91 316 0 0 0 0 - - -;
#X floatatom 91 268 0 0 0 0 - - -;
#X floatatom 91 220 0 0 0 0 - - -;
#X floatatom 371 304 0 0 0 0 - - -;
#X floatatom 332 304 0 0 0 0 - - -;
#X floatatom 292 304 0 0 0 0 - - -;
#X floatatom 253 304 0 0 0 0 - - -;
#X floatatom 411 304 0 0 0 0 - - -;
#X floatatom 91 411 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 55 183 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 404 365 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 225 pd template8;
#X text 46 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 46 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 292 423 updated for Pd version 0.39;
#X text 47 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 connect 0 0 16 0;
#X connect 1 0 15 0;
#X connect 2 0 14 0;
#X connect 3 0 13 0;
#X connect 9 0 17 0;
#X connect 11 0 13 1;
#X connect 11 0 14 1;
#X connect 11 0 15 1;
#X connect 11 0 16 1;
#X connect 11 0 17 1;
#X connect 11 0 18 0;
#X connect 18 0 7 0;
#X connect 18 1 6 0;
#X connect 18 2 5 0;
#X connect 18 3 4 0;
#X connect 18 4 8 0;
