home *** CD-ROM | disk | FTP | other *** search
- A DEMONSTRATION OF THE MENU DISPLAY CAPABILITIES
- OF WINDOWS FOR C
-
- This demonstration program illustrates how the functions of Windows
- for C can be used to simplify programming sophisticated
- menu-selection displays.
-
- Two different files are available for viewing through the window in
- which you are reading.
-
- F1 function key will bring in a new file for viewing.
-
- F2 function key will return this file for viewing.
-
- F10 function key will exit the program.
-
- The cursor controls used in "demo_wn" are available here. To read
- more of this file, scroll or page the window down.
-
- Remember to press F1 to view the second file, which contains the
- reference text that accompanies the source code of dem_menu.
-
- ***************
-
- This demonstration program shows how a menu can overlay screen
- information without permanently losing that information. Functions
- provided by Windows for C allow screen data to be stored in user
- memory and restored to the screen at a later time.
-
- Press F9 to bring the menu to the screen.
-
- Press the Enter key to "select" a menu item and remove the
- menu from the screen.
-
- The cursor-pad keys can be used to move in the menu exactly as
- in the other windows. NOTE: THE MENU IS THREE LINES LONG. To
- read the third line, use down arrow, End, or PgDn keys.
-
- When the enter key is pressed while the menu is on the screen, the
- highlighted item is "selected;" the item number of the selected item
- is passed to the calling program, where it could be used to determine
- the next step in the program. In this demonstration, the item number
- is not used by the program; but it is displayed on a status line.
-
- As can be seen, as soon as a menu item is selected, the menu
- disappears and the original screen data is restored.
-
- The screen cursor is removed when the menu is activated by F9. It is
- restored to its original location when the menu is removed.
-
- The menu location could easily be programmed to avoid overlaying the
- screen cursor, if this were desired.
-
- With the screen restoration capability provided by Windows for C,
- menus do not need to be allocated a permanent place on a screen, but
- can be called up onto the working area of the screen by the user as
- needed.
-