Unable to place a menu item before a set of sub-menus

Running this code:

filemenubar "all",
    menuitem("Refresh procedure list","code",{call .Initialize}) +
    
    submenu("Shippers")+
        menuitem("Airborne")+
        menuitem("Fedex")+
        menuitem("US Postal Service")+
        menuitem("UPS") +
    menu("NewMenu") + 
        menuitem("Shippers","SUBMENU","Shippers") +

    menuitem("Remove this menu","code",{filemenubar "all",""})

produces a custom menu like this:

37%20pm

so it would appear that it’s not possible to specify a menu item prior to a set of sub-menus. Is this deliberate? Both the documentation and the training video are silent on this topic.

Part of the answer to my question is that my first menuitem( function has no menu( function to attach itself to so it can’t be implemented.

So my real question is, is it possible to specify a menu item prior to a set of sub-menus the same as Panorama X’s standard menus do?

Change the order:

filemenubar "all",
    
    submenu("Shippers")+
        menuitem("Airborne")+
        menuitem("Fedex")+
        menuitem("US Postal Service")+
        menuitem("UPS") +

    menu("NewMenu") + 
        menuitem("Refresh procedure list","code",{call .Initialize})+
        menuitem("Shippers","SUBMENU","Shippers") +
        menuitem("Remove this menu","code",{filemenubar "all",""})
1 Like

Aha! Thank you Gary.