| United States-English |
|
|
|
![]() |
HP 9000 Networking: Supervising the Network > Chapter 6 Creating MenusGetting Acquainted with NMENU |
|
Since the sole function of NMENU is to cause a scripted file to execute, there is little to learn about NMENU.BAT except its syntax. The command is followed by the menu filename. Figure 6-1 shows the display created by a single-window menu with only three options. Whether a menu displays one or more windows, the top and bottom bars of the screen remain the same. The top bar always displays the NMENU version number on the left and the day, date, and time on the right. The bottom bar displays the available options. When you create menus with multiple windows, the windows cascade from left to right. Window sizing is automatically determined by the content of each window. You create menu files with a text editor and save the file with an .SRC extension. Then you use the MENUMAKE program to compile the file. It is given a .DAT extension and, as a compiled file, is no longer editable. Any edits must be made to the .SRC file and then the .SRC file must be recompiled. There are three primary elements to every menu: MENU, ITEM, and EXEC. As these elements are expanded and repeated, controlled options are displayed within each window. Figure 6-2 shows the .SRC file used to create the menu in Figure 6-1. This file shows how these three elements are used. Details about these elements and their options are covered later in the chapter.
Figure 6-3 illustrates a menu with 10 windows, created by including 10 MENU commands in the same file. Each window is automatically sized and cascaded across the screen. There are generally six steps to follow when considering a new menu. The relationship among steps is shown in Figure 6-4. Each step in the flowchart is explained next.
Following these six steps can help you learn how to use the scripting language and how to manage the menu files you create. Use of the NMENU program is almost unlimited. When considering the uses for menus, remember that they can be as simple as presenting available application programs (see Figure 6-5). Menus also can be more complex, such as guiding data entry for cataloging (see Figure 6-6). The text used to create the four menus shown in this section (Figure 6-1, Figure 6-3, Figure 6-5, and Figure 6-6) is included in "Example Menu Programs" in this chapter. Before you look at how these menus were created, however, you should be familiar with the guidelines for planning menus and also with the scripting language rules. |
|||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||