aboutsummaryrefslogtreecommitdiff
path: root/help/menubutton-help.pd
blob: 538514fabcce1b60774b7246ae350170eeb8de68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#N canvas 1323 101 834 600 10;
#X obj 54 358 tof/menubutton 132 22 empty empty 1 #000000 #ffffff #ff0000
#3a12ff a b c d e f;
#X msg 80 33 add a b c d e f;
#X msg 52 11 clear;
#X msg 142 124 saveitems \$1;
#X obj 142 106 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X floatatom 208 509 5 0 0 0 - - -;
#X text 95 10 Clear menu items;
#X text 184 31 Add menu items;
#X obj 59 477 r \$0s;
#X obj 208 538 send \$0r;
#X text 188 368 [tof/menubutton] creation arguments:;
#X text 415 373 1: width;
#X text 415 387 2: height;
#X text 415 400 3: send name;
#X text 415 412 4: receive name;
#X text 229 111 Set the saving of the menu items in the patch. Off
by default.;
#X text 313 324 To move the menubutton \, switch to edit mode and draw
a selection rectangle around it. A blue handle will appear. Drag this
handle to move the menubutton.;
#X floatatom 264 243 5 0 0 0 - - -;
#X obj 54 405 unpack f s;
#X floatatom 54 428 5 0 0 0 - - -;
#X symbolatom 113 426 10 0 0 0 - - -;
#X floatatom 59 544 5 0 0 0 - - -;
#X symbolatom 116 542 10 0 0 0 - - -;
#X obj 59 513 unpack f s;
#X text 304 242 Select and output a menu item;
#X msg 289 268 set b;
#X text 338 270 Select an item without outputing it;
#X msg 308 292 set 2;
#X text 459 174 values can be tk colors(red \, blue \, etc) or html
colors (#ffffff);
#X msg 260 215 colors default;
#X text 199 147 colors: background foreground highlight contour;
#X text 415 422 5: save menu items;
#X text 414 434 6: background color;
#X text 414 447 7: foreground color;
#X text 414 458 8: highlight color;
#X text 413 480 10+: menu items;
#X text 415 469 9: contour color;
#X msg 202 170 colors green red orange purple;
#X msg 222 195 colors #000000 #ffffff #ff0000 #3a12ff;
#X text 182 55 Set its size;
#X msg 103 56 size 102 32;
#X text 202 77 Set its size;
#X msg 123 78 size 132 22;
#N canvas 0 0 742 557 test 1;
#X coords 0 -1 1 1 300 200 1;
#X restore 556 538 pd test;
#X connect 0 0 18 0;
#X connect 1 0 0 0;
#X connect 2 0 0 0;
#X connect 3 0 0 0;
#X connect 4 0 3 0;
#X connect 5 0 9 0;
#X connect 8 0 23 0;
#X connect 17 0 0 0;
#X connect 18 0 19 0;
#X connect 18 1 20 0;
#X connect 23 0 21 0;
#X connect 23 1 22 0;
#X connect 25 0 0 0;
#X connect 27 0 0 0;
#X connect 29 0 0 0;
#X connect 37 0 0 0;
#X connect 38 0 0 0;
#X connect 40 0 0 0;
#X connect 42 0 0 0;