Hi all,
I am trying to construct a menu that looks like:
Code:
- Toplevel 1
- Nested
- Inner
- Toplevel 2
The menu syntax for showmenu() says to prefix the item with < to indicate it's the last item in a submenu. However above I want 'Inner' to terminate
two submenus (Nested and Toplevel 1).
Near as I can tell, Reaper doesn't support this kind of structure? I have tried the obvious:
Code:
>Toplevel 1|>Nested|<<Inner|Toplevel 2
To no avail. The only workaround I could see is:
Code:
>Toplevel 1|>Nested|<Inner|<|Toplevel 2
But because of the empty item, there is a separator at the bottom of Submenu.
I think this could be fixed easily enough: just have |<| semantically mean terminate a submenu. This would also allow this grammar, equivalent to the above, which is superior IMO as it's more friendly to programmatic generation of the menu string.
Code:
>Toplevel 1|>Nested|Inner|<|<|Toplevel 2