Ubumenu autopopulate with empty first entry


    Jan 31 2006 | 12:31 pm
    I would like to use the functionality of the ubumenu to create some nice file selectors. Only without seeing the files right away. Like what is common among some dropdowns is to have the standard selected on a white block and not on the first item.
    Does this functionality exists with ubumenu or should I look towards other objects with autopopulate functionality?
    Thnx

    • Jan 31 2006 | 12:35 pm
      well, jit.cellblock might be a bit better a choice, being as such that scrollbars and the ability to see multiple files at once always is probably better for files, unless space is a concern.
    • Jan 31 2006 | 12:51 pm
      I'm just fine tuning my interface. So space is of some importance. I
      want to know which places I filled in already. But because you always
      see the first entry and not a blank dropdown I sometimes get confused
      which have already been selected.
      jit.cellblock is not an option. But thnx for the suggestion.
    • Jan 31 2006 | 12:56 pm
      can you explain what you need a bit better?
    • Jan 31 2006 | 1:06 pm
      I have rows of ubumenu's which i autopopulate to have te content of
      several folders.
      When you do such a thing the first file is always shown by the
      ubumenu. If I haven't selected a file from the ubumenu yet I want the
      interface to be empty so that I do not see the first item of the
      ubumenu.
      Grtz
    • Jan 31 2006 | 1:11 pm
      well, I am not sure, but I am assuming that autopopulate is restored when you open a patch automatically, so what I would do is, encapsulate each umenu in a bpatcher and parse the folder I wanted to use as an argument with extra arguments being file types to pass through. This way, when you bang folder you can have the clear message that comes out of folder also prepend a blank index to the start of the list. Or, I think also possible to add stuff and have the index move up. Hrm, does autopopulate disable editing the contents as its refered, sort of like jit.cellblock to colls?
    • Jan 31 2006 | 1:12 pm
      Couldn't you prepend a generic name as "folder" or something. or even
      "//////". Maybe not visually very nice, but you would easily know if
      one sample is selected or not ?
      just my two cents.
      julien.
    • Jan 31 2006 | 1:17 pm
      prepend doesn't work with ubumenu, only append.
    • Jan 31 2006 | 1:28 pm
      I could also just send an append after the autopopulate and then set
      it to that value. But then I would have to check whether the selected
      value is empty and then don't process it. That seems like a basic
      workaround but not a very beautiful one.
    • Jan 31 2006 | 1:30 pm
      well since autopopulate is an internal command and won't let you access the stream of messages used to populate the menu, my suggestion is you use the "folder" object instead of autopopulate so you have control over the first message to be added to the menu.
    • Jan 31 2006 | 1:32 pm
      This is a workaround of sorts, though I would argue it's better than a blank
      list element.
      This example adds a "message" list element to locate on when populating the
      ubumenu then deletes the element after first use. In my example, it adds a
      "Select_File" list element and locates on that.
      I think this is better user interface than a blank list-element. Gives the
      user some feedback on what to do.
      Adam
      max v2;
    • Jan 31 2006 | 1:51 pm
    • Jan 31 2006 | 2:28 pm
      You might fill it with the aid of the folder object and avoid
      autopopulate. Then you can set the first element to be empty and fill
      the rest.
      You can also use umenu for that:
      --
      [][] [][][] [][] [][][] [][] [][][] [][] [][][]
      [][][][][][][][][][][][][][][][][][][][][][][][][][][][]
      Stefan Tiedje
      Klanggestalter
      Electronic Composition
      &
      Improvisation
      /~~~~~
      \ /|() ()|
      ))))) )| | |( \
      /// _/)/ )))))
      ___/ ///
      -------------------------x---
      --_____-----------|----------
      --(_|_ ----|-----|-----()---
      -- _|_)----|-----()----------
      ----------()------------x----
      14, Av. Pr. Franklin Roosevelt, 94320 Thiais, France
      Phone at CCMIX +33-1-49 77 51 72
    • Jan 31 2006 | 3:48 pm
      how about a hack based on colors?
      set the text color same as background color, and first time something gets
      out of the menu, put text color back again:
    • Feb 01 2006 | 11:38 am
      But if you want to select it only one time you can't really read it that well..
    • Feb 01 2006 | 3:28 pm
      well, i've said it's just a hack, but i'm sure you are able to adjust
      colors(through inspector, for instance) to achieve higher contrast.
      nesa