MENUS ----- The most recent addition is menu support for the GL version (not X). The exectuable irix4/gl4tru* contains this addition. def popup(menu$) where menu$ is in the format: <title>|<item1>|<item2>|<roll1> ( <subtitle>|<item3>) |<item4> returned: #1 #2 #3 #4 #5 the first item becomes the menu header and the following items become elements in the menu. Items are separated by the | symbol. Submenus or roll-over menus are indicated using the open and close parenthesis within an item. The value returned is the number of the element selected. Return values are automatically assigned to selectable items (titles are not selectable). Negative one is returned when no selection is made or when the menu string is not in the correct format. *** Future Releases: The True BASIC Developer's Toolkit for Motif (which of course will be portable to the Macintosh and DOS compatibles) will support the creation of menus with ids that are returned as events. In other words, the format for setting up menus will change. This addition is provided now to enable users to write applications that use menus while the Motif Toolkit is being developed.
Documentation