From 6adfba996c34b2c78515e8a50ad5928188d78612 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Thu, 7 Feb 2008 23:05:57 +0000 Subject: reorganizing svn path=/trunk/; revision=9376 --- extensions/xgui/doc/02_behaviors.pd | 49 +++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 extensions/xgui/doc/02_behaviors.pd (limited to 'extensions/xgui/doc/02_behaviors.pd') diff --git a/extensions/xgui/doc/02_behaviors.pd b/extensions/xgui/doc/02_behaviors.pd new file mode 100644 index 00000000..8c4367ab --- /dev/null +++ b/extensions/xgui/doc/02_behaviors.pd @@ -0,0 +1,49 @@ +#N canvas 418 -8 563 706 10; +#X obj 22 628 light_over; +#X text 404 671 dh20020212; +#X text 7 30 This example shows the diferent properties oand methodes +of a seg object; +#X floatatom 87 651 1 0 1; +#X obj 22 588 spigot; +#X floatatom 59 564 1 0 1; +#X msg 27 166 show; +#X msg 67 166 hide; +#X msg 27 89 show; +#X msg 67 89 hide; +#X text 9 9 Patch "pdx_connect.pd" must be loaded and connected; +#X text 244 88 First create the canvas.; +#X text 246 108 uses the show method; +#X text 255 171 then you can draw a segment into it.; +#X text 20 315 You'll receive here all the event from the seg windows +; +#X msg 111 90 size 500 500; +#X obj 24 270 alias a_seg; +#X obj 25 292 print a_seg; +#X obj 24 384 alias a_seg; +#X obj 24 474 alias a_seg; +#X text 50 404 a_seg detect a move; +#X text 49 451 and send it to himselve; +#X text 116 474 this way you can drag and drop the seg; +#X msg 152 170 width 20; +#X obj 22 537 alias a_seg; +#X obj 22 675 alias a_seg; +#X text 81 567 breaking the link is killing the behavior; +#X text 61 334 Try to move the segment with your mouse !; +#X obj 24 427 dragable; +#X text 101 427 dragable is a behaviors; +#X obj 27 120 canvas */my_canvas; +#X obj 26 208 seg a_seg */my_canvas/a_seg; +#X connect 0 0 25 0; +#X connect 0 1 3 0; +#X connect 4 0 0 0; +#X connect 5 0 4 1; +#X connect 6 0 31 0; +#X connect 7 0 31 0; +#X connect 8 0 30 0; +#X connect 9 0 30 0; +#X connect 15 0 30 0; +#X connect 16 0 17 0; +#X connect 18 0 28 0; +#X connect 23 0 31 0; +#X connect 24 0 4 0; +#X connect 28 0 19 0; -- cgit v1.2.1