home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c003 / 1.ddi / DEMOS / MENU_HLP.DOC < prev    next >
Encoding:
Text File  |  1986-11-26  |  2.4 KB  |  58 lines

  1.           A DEMONSTRATION OF THE MENU DISPLAY CAPABILITIES
  2.               OF WINDOWS FOR C
  3.  
  4.       This demonstration program illustrates how the functions of Windows
  5.       for C can be used to simplify programming sophisticated
  6.       menu-selection displays.
  7.  
  8.       Two different files are available for viewing through the window in
  9.       which you are reading.
  10.  
  11.        F1 function key will bring in a new file for viewing.
  12.  
  13.        F2 function key will return this file for viewing.
  14.  
  15.        F10 function key will exit the program.
  16.  
  17.       The cursor controls used in "demo_wn" are available here.  To read
  18.       more of this file, scroll or page the window down.
  19.  
  20.       Remember to press F1 to view the second file, which contains the
  21.       reference text that accompanies the source code of dem_menu.
  22.  
  23.                 ***************
  24.  
  25.       This demonstration program shows how a menu can overlay screen
  26.       information without permanently losing that information.    Functions
  27.       provided by Windows for C allow screen data to be stored in user
  28.       memory and restored to the screen at a later time.
  29.  
  30.        Press F9 to bring the menu to the screen.
  31.  
  32.        Press the Enter key to "select" a menu item and remove the
  33.        menu from the screen.
  34.  
  35.        The cursor-pad keys can be used to move in the menu exactly as
  36.        in the other windows. NOTE: THE MENU IS THREE LINES LONG.  To
  37.        read the third line, use down arrow, End, or PgDn keys.
  38.  
  39.       When the enter key is pressed while the menu is on the screen, the
  40.       highlighted item is "selected;" the item number of the selected item
  41.       is passed to the calling program, where it could be used to determine
  42.       the next step in the program.  In this demonstration, the item number
  43.       is not used by the program; but it is displayed on a status line.
  44.  
  45.       As can be seen, as soon as a menu item is selected, the menu
  46.       disappears and the original screen data is restored.
  47.  
  48.       The screen cursor is removed when the menu is activated by F9.  It is
  49.       restored to its original location when the menu is removed.
  50.  
  51.       The menu location could easily be programmed to avoid overlaying the
  52.       screen cursor, if this were desired.
  53.  
  54.       With the screen restoration capability provided by Windows for C,
  55.       menus do not need to be allocated a permanent place on a screen, but
  56.       can be called up onto the working area of the screen by the user as
  57.       needed.
  58.