umenu formatting

elmiller's icon

Hello,

I have a umenu with 32 items in it, and I would like when it is opened to display as two columns with 16 elements in each, rather than the default on column of 32 elements. I'm sure it's simple, but I couldn't find the answer in the documentation.

Thanks,
Eric

Anthony Prechtl's icon

It's not possible using umenu, so you would have to construct your own menu. One method would be to use a series of textbuttons inside of a named bpatcher, and another button in the main patch. When you click the button in the main patch, send the message "script show [the bpatcher's name]" to thispatcher, and when you click the button again, send the message "script hide [the bpatcher's name]." Unfortunately, it might be complicated for a dynamic number of menu items.

elmiller's icon

Thanks for the response, Anthony. It does seem a bit complicated, but I will try it.