Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER Bug Reports

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 12-11-2016, 08:21 PM   #1
tack
Human being with feelings
 
tack's Avatar
 
Join Date: Jan 2014
Location: Ontario, Canada
Posts: 1,619
Default gfx.showmenu() and nested submenu bug? (FIXED)

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

Last edited by tack; 12-11-2016 at 08:32 PM.
tack is offline   Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 08:35 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.