aboutsummaryrefslogtreecommitdiff
path: root/tof/pmenu-help.pd
blob: 2c28f38ab0b9733874ab82f3a903e69662427f9b (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
#N canvas 1074 57 756 631 10;
#X obj 221 187 key;
#X msg 126 222 clear;
#X obj 221 213 sel 65;
#X text 267 213 <- Shift+A will open the menu;
#X msg 47 63 add a bb ccc dddd eeeee;
#X obj 45 498 print;
#X msg 230 320 2;
#X msg 261 321 3;
#X text 201 62 add items;
#X obj 265 417 r \$0pmenu;
#X obj 332 422 bng 15 250 50 0 \$0pmenu empty empty 17 7 0 10 -262144
-1 -1;
#X msg 291 320 -1;
#X msg 224 287 colors green purple grey;
#X obj 45 459 tof/pmenu 1 1 black white red;
#X text 298 536 3: background color (#000000 html or tk colors);
#X text 296 551 4: foreground color (#000000 hmtl or tk colors);
#X text 298 566 5: highlight color (#000000 html or tk colors);
#X text 222 257 values can be tk colors(red \, blue \, etc) or html
colors (#ffffff);
#X text 221 241 colors: background foreground highlight;
#X text 297 507 2: focus the item that was last selected when the menu
pops. On (1) by default.;
#X text 296 476 1: display the indicator (the little bullet next to
item that was last selected). On (1) by default.;
#X obj 37 18 cnv 15 400 30 empty empty empty 20 12 0 14 -261234 -66577
0;
#X obj 300 458 cnv 15 400 15 empty empty empty 20 12 0 14 -257985 -66577
0;
#X text 303 456 Creation arguments:;
#X msg 87 153 add \$1;
#X obj 87 130 cyclone/tosymbol;
#X msg 87 107 with spaces;
#X text 84 87 Adding items with spaces;
#X obj 113 180 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
-1 -1;
#X text 132 176 Pop the menu;
#X text 249 179 You can assign any key to pop the menu (Shift+A) in
this case.;
#X text 322 319 Select and output a menu item by index;
#X msg 276 349 set a;
#X msg 290 371 symbol a;
#X text 346 370 Select an item by name and output it;
#X text 320 349 Select an item by name without outputing it;
#X text 85 501 Output: index name;
#X text 354 420 <- you can pop the menu from any gui by sending a bang
to \$0pmenu (because a receive is associated to it);
#X text 38 18 Description: pops a menu;
#X text 40 31 Tags: ui;
#X connect 0 0 2 0;
#X connect 1 0 13 0;
#X connect 2 0 13 0;
#X connect 4 0 13 0;
#X connect 6 0 13 0;
#X connect 7 0 13 0;
#X connect 9 0 13 0;
#X connect 11 0 13 0;
#X connect 12 0 13 0;
#X connect 13 0 5 0;
#X connect 24 0 13 0;
#X connect 25 0 24 0;
#X connect 26 0 25 0;
#X connect 28 0 13 0;
#X connect 32 0 13 0;
#X connect 33 0 13 0;