pmenu-help.pd 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. #N canvas 1 53 756 631 10;
  2. #X obj 221 187 key;
  3. #X msg 124 222 clear;
  4. #X obj 221 213 sel 65;
  5. #X text 267 213 <- Shift+A will open the menu;
  6. #X msg 45 63 add a bb ccc dddd eeeee;
  7. #X msg 230 320 2;
  8. #X msg 261 321 3;
  9. #X text 201 62 add items;
  10. #X obj 265 417 r \$0pmenu;
  11. #X obj 332 422 bng 15 250 50 0 \$0pmenu empty empty 17 7 0 10 -262144
  12. -1 -1;
  13. #X msg 291 320 -1;
  14. #X msg 224 287 colors green purple grey;
  15. #X obj 45 459 tof/pmenu 1 1 black white red;
  16. #X text 298 536 3: background color (#000000 html or tk colors);
  17. #X text 296 551 4: foreground color (#000000 hmtl or tk colors);
  18. #X text 298 566 5: highlight color (#000000 html or tk colors);
  19. #X text 222 257 values can be tk colors(red \, blue \, etc) or html
  20. colors (#ffffff);
  21. #X text 221 241 colors: background foreground highlight;
  22. #X text 297 507 2: focus the item that was last selected when the menu
  23. pops. On (1) by default.;
  24. #X text 296 476 1: display the indicator (the little bullet next to
  25. item that was last selected). On (1) by default.;
  26. #X obj 37 18 cnv 15 400 30 empty empty empty 20 12 0 14 -261234 -66577
  27. 0;
  28. #X obj 300 458 cnv 15 400 15 empty empty empty 20 12 0 14 -257985 -66577
  29. 0;
  30. #X text 303 456 Creation arguments:;
  31. #X msg 85 153 add \$1;
  32. #X obj 85 130 cyclone/tosymbol;
  33. #X msg 85 107 with spaces;
  34. #X text 82 87 Adding items with spaces;
  35. #X obj 111 180 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
  36. -1 -1;
  37. #X text 130 176 Pop the menu;
  38. #X text 249 179 You can assign any key to pop the menu (Shift+A) in
  39. this case.;
  40. #X text 322 319 Select and output a menu item by index;
  41. #X msg 276 349 set a;
  42. #X msg 290 371 symbol a;
  43. #X text 346 370 Select an item by name and output it;
  44. #X text 320 349 Select an item by name without outputing it;
  45. #X text 354 420 <- you can pop the menu from any gui by sending a bang
  46. to \$0pmenu (because a receive is associated to it);
  47. #X text 38 18 Description: pops a menu;
  48. #X text 40 31 Tags: ui;
  49. #N canvas 282 163 494 344 META 0;
  50. #X text 12 145 HELP_PATCH_AUTHORS "pd meta" information added by Jonathan
  51. Wilkes for Pd version 0.42.;
  52. #X text 12 125 AUTHOR Thomas Ouellet Fredericks;
  53. #X text 12 45 LICENSE GPL v2;
  54. #X text 12 5 KEYWORDS control GUI user_input;
  55. #X text 12 25 DESCRIPTION pops a menu;
  56. #X text 12 65 INLET_0 bang add clear color;
  57. #X text 12 85 OUTLET_0 float;
  58. #X text 12 105 OUTLET_1 symbol float;
  59. #X restore 700 586 pd META;
  60. #X obj 45 498 print index;
  61. #X obj 144 498 print value;
  62. #X connect 0 0 2 0;
  63. #X connect 1 0 12 0;
  64. #X connect 2 0 12 0;
  65. #X connect 4 0 12 0;
  66. #X connect 5 0 12 0;
  67. #X connect 6 0 12 0;
  68. #X connect 8 0 12 0;
  69. #X connect 10 0 12 0;
  70. #X connect 11 0 12 0;
  71. #X connect 12 0 39 0;
  72. #X connect 12 1 40 0;
  73. #X connect 23 0 12 0;
  74. #X connect 24 0 23 0;
  75. #X connect 25 0 24 0;
  76. #X connect 27 0 12 0;
  77. #X connect 31 0 12 0;
  78. #X connect 32 0 12 0;