Let's take a closer look at what makes the previous example a menu file.
A DADiSP menu consists of text and special keywords, or characters. In this case, the text is: Maximum, MAX, Minimum, MIN. The menu also contains a special character - the tilde ( ~ ) character.
The idea behind a menu is quite simple:
Text that appears before the ~ (tilde) character is displayed "as is" in the pop up menu.
Text that appears after the ~ executes when you select that particular menu item. Text that appears after the ~ does not appear in the displayed menu.
When you select a menu item by moving the highlighted cursor over the item and pressing [Enter], DADiSP executes the function that appears after the ~ character and then clears the menu from the screen.
Tildes separate the menu file into two parts: what appears in the displayed menu, and what function DADiSP should execute if a particular item is selected.
Note: You must include a newline (carriage return) after the last line of text in the menu file.