home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / MISC / NETWORK / TEL23SRC.ZIP / INCLUDE / MENU.H < prev    next >
Encoding:
C/C++ Source or Header  |  1990-08-26  |  1.1 KB  |  32 lines

  1. /***********************************************************************/
  2. /*  menu support header file
  3. *   New 5/22/88 - TK
  4. *   Provide menus with a reasonable user interface for the user to
  5. *   select colors or other parameters.
  6. *
  7. *   This menu system provides two types of entries.
  8. *   1. Up to sixteen static choices, 0-15.  Each static choice is encoded
  9. *      into the data structure and automatically rotated by the user.
  10. *      The user cannot select an illegal value.
  11. *   2. A string choice.  A maximum string length is honored.
  12. *   There must be at least 20 characters open for each field, longer
  13. *   if the field is longer.  Static choices cannot be longer than 20 chars.
  14. *
  15. *    Code Cleanup for 2.3 release - 6/89 QK
  16. */
  17.  
  18. #ifndef MENU_H
  19.  
  20. /*
  21. *  structure for the menu entries
  22. */
  23. struct pt {
  24.     int posx,posy,        /* row and col position on screen for field */
  25.         choice,            /* which is the currently visible selection */
  26.         replen;            /* length of reply if a string is allowed to be entered */
  27.     char *vals[17];        /* pointers to the actual choices */
  28. };
  29.  
  30. #define MENU_H
  31. #endif
  32.