home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / busi / ezhelp.zip / EZHELP.H < prev    next >
Text File  |  1990-03-15  |  3KB  |  67 lines

  1. /* EZhelp.h
  2. **
  3. ** help system definitions
  4. ** (C) Copyright 1990, Brain Child Systems.
  5. ** All rights reserved.
  6. */
  7.  
  8. typedef unsigned char pairtype[2];
  9. typedef pairtype linetype[80];
  10. typedef linetype scrntype[25];
  11.  
  12. /*=====================================================================*/
  13. typedef struct {
  14.  
  15.            char  tx_mnunum;         /* menu number (level) */
  16.            char  tx_mnuord;         /* menu topic sequence number */
  17.            char  tx_lbl[15];        /* topic choice */
  18.            char  tx_mnulnk;         /* subsequent menu (if any) */
  19.   unsigned int   tx_lbloff;         /* offset of topic in help text */
  20.            int   tx_lbllen;         /* length of topic in help text */
  21.            int   tx_lineno;         /* line number beginning topic */
  22.            int   tx_linect;         /* number of lines of text */
  23.   unsigned int   tx_txtlen;         /* size of help text in bytes */
  24.  
  25. } indextype;               /* 28 bytes */
  26.  
  27.  
  28. /*=====================================================================*/
  29. typedef struct {
  30.  
  31.            char menulink[3];        /* menu, order, next */
  32.            char menunext[3];        /* next, (obtained from menulink) */
  33.            char topic[15];          /* string of chosen topic */
  34.  
  35.            int  xcnt;               /* menu number of columns */
  36.            int  ycnt;               /* menu number of rows */
  37.            int  framex;             /* x coordinate of window frame */
  38.            int  framey;             /* y coordinate of window frame */
  39.  
  40.            int  defapos;            /* what position to return to */
  41.            int  lblset;             /* how many topics in menu set */
  42.            int  frst_lbl;           /* first topic of menu set */
  43.            char *scrn_buf;          /* pointer to screen text under menu */
  44.  
  45. } menu_env;        /* 36 bytes */
  46.  
  47.  
  48. /*=====================================================================*/
  49. typedef struct {
  50.  
  51.            char ref_file[41];       /* path and name of reference file */
  52.            char bar_colo;           /* color of menu highlight bar */
  53.            char win_colo;           /* color of help text */
  54.            char start_menu;         /* startup menu number */
  55.            char jump_to;            /* jump directly to a topic in a
  56.                                        menu? 0 or the topic number of
  57.                                        the startup menu to jump to */
  58.            char show_errors;        /* 1 = display errors */
  59.            int  window_size;        /* size of window 5 - 23 */
  60.            int  window_style;       /* style of window character 0 - 8 */
  61.            int  topic_cnt;          /* number of topics in index */
  62.  
  63.            int  anchor_flag;        /* anchor on which quadrant of screen */
  64.                                     /* 1 - 4 clockwise, 5 = center */
  65. } ezhelp_env;
  66.  
  67.