home *** CD-ROM | disk | FTP | other *** search
/ Fish 'n' More 2 / fishmore-publicdomainlibraryvol.ii1991xetec.iso / dirs / parm_375.lzh / ParM / Menus.c < prev    next >
C/C++ Source or Header  |  1989-06-06  |  5KB  |  158 lines

  1. /*
  2.  *    Menus.c - Copyright © 1990 by S.R. & P.C.
  3.  *
  4.  *    Created:    16 Jun 1990
  5.  *    Modified:    07 Jul 1990
  6.  *
  7.  *    Make>> make
  8.  */
  9.  
  10. /*
  11. #include <intuition/intuition.h>
  12. #include <intuition/intuitionbase.h>
  13. */
  14.  
  15. struct TextAttr TOPAZ80 = {
  16.     (STRPTR)"topaz.font",
  17.     TOPAZ_EIGHTY,0,0
  18. };
  19.  
  20. static struct IntuiText IText5 = {
  21.     3,2,JAM1,    /* front and back text pens, drawmode and fill byte */
  22.     1,1,    /* XY origin relative to container TopLeft */
  23.     &TOPAZ80,    /* font pointer or NULL for default */
  24.     (UBYTE *)"Quit",    /* pointer to text */
  25.     NULL    /* next IntuiText structure */
  26. };
  27.  
  28. static struct MenuItem MenuItem5 = {
  29.     NULL,    /* next MenuItem structure */
  30.     0,55,    /* XY of Item hitbox relative to TopLeft of parent hitbox */
  31.     104,10,    /* hit box width and height */
  32.     ITEMTEXT+COMMSEQ+ITEMENABLED+HIGHCOMP,    /* Item flags */
  33.     0,    /* each bit mutually-excludes a same-level Item */
  34.     (APTR)&IText5,    /* Item render  (IntuiText or Image or NULL) */
  35.     NULL,    /* Select render */
  36.     'Q',    /* alternate command-key */
  37.     NULL,    /* SubItem list */
  38.     MENUNULL    /* filled in by Intuition for drag selections */
  39. };
  40.  
  41. static struct IntuiText IText41 = {
  42.     3,2,JAM1,    /* front and back text pens, drawmode and fill byte */
  43.     0,9,    /* XY origin relative to container TopLeft */
  44.     &TOPAZ80,    /* font pointer or NULL for default */
  45.     (UBYTE *)"-------------",    /* pointer to text */
  46.     NULL    /* next IntuiText structure */
  47. };
  48.  
  49. static struct IntuiText IText4 = {
  50.     3,2,JAM1,    /* front and back text pens, drawmode and fill byte */
  51.     1,1,    /* XY origin relative to container TopLeft */
  52.     &TOPAZ80,    /* font pointer or NULL for default */
  53.     (UBYTE *)"Change Dir",    /* pointer to text */
  54.     &IText41    /* next IntuiText structure */
  55. };
  56.  
  57. static struct MenuItem MenuItem4 = {
  58.     &MenuItem5,    /* next MenuItem structure */
  59.     0,40,    /* XY of Item hitbox relative to TopLeft of parent hitbox */
  60.     104,10,    /* hit box width and height */
  61.     ITEMTEXT+ITEMENABLED+HIGHCOMP,    /* Item flags */
  62.     0,    /* each bit mutually-excludes a same-level Item */
  63.     (APTR)&IText4,    /* Item render  (IntuiText or Image or NULL) */
  64.     NULL,    /* Select render */
  65.     NULL,    /* alternate command-key */
  66.     NULL,    /* SubItem list */
  67.     MENUNULL    /* filled in by Intuition for drag selections */
  68. };
  69.  
  70. static struct IntuiText IText31 = {
  71.     3,2,JAM1,    /* front and back text pens, drawmode and fill byte */
  72.     0,9,    /* XY origin relative to container TopLeft */
  73.     &TOPAZ80,    /* font pointer or NULL for default */
  74.     (UBYTE *)"-------------",    /* pointer to text */
  75.     NULL    /* next IntuiText structure */
  76. };
  77.  
  78. static struct IntuiText IText3 = {
  79.     3,2,JAM1,    /* front and back text pens, drawmode and fill byte */
  80.     1,1,    /* XY origin relative to container TopLeft */
  81.     &TOPAZ80,    /* font pointer or NULL for default */
  82.     (UBYTE *)"Command",    /* pointer to text */
  83.     &IText31    /* next IntuiText structure */
  84. };
  85.  
  86. static struct MenuItem MenuItem3 = {
  87.     &MenuItem4,    /* next MenuItem structure */
  88.     0,25,    /* XY of Item hitbox relative to TopLeft of parent hitbox */
  89.     104,10,    /* hit box width and height */
  90.     ITEMTEXT+COMMSEQ+ITEMENABLED+HIGHCOMP,    /* Item flags */
  91.     0,    /* each bit mutually-excludes a same-level Item */
  92.     (APTR)&IText3,    /* Item render  (IntuiText or Image or NULL) */
  93.     NULL,    /* Select render */
  94.     'C',    /* alternate command-key */
  95.     NULL,    /* SubItem list */
  96.     MENUNULL    /* filled in by Intuition for drag selections */
  97. };
  98.  
  99. static struct IntuiText IText21 = {
  100.     3,2,JAM1,    /* front and back text pens, drawmode and fill byte */
  101.     0,9,    /* XY origin relative to container TopLeft */
  102.     &TOPAZ80,    /* font pointer or NULL for default */
  103.     (UBYTE *)"-------------",    /* pointer to text */
  104.     NULL    /* next IntuiText structure */
  105. };
  106.  
  107. static struct IntuiText IText2 = {
  108.     3,2,JAM1,    /* front and back text pens, drawmode and fill byte */
  109.     1,1,    /* XY origin relative to container TopLeft */
  110.     &TOPAZ80,    /* font pointer or NULL for default */
  111.     (UBYTE *)"UpDate",    /* pointer to text */
  112.     &IText21    /* next IntuiText structure */
  113. };
  114.  
  115. static struct MenuItem MenuItem2 = {
  116.     &MenuItem3,    /* next MenuItem structure */
  117.     0,10,    /* XY of Item hitbox relative to TopLeft of parent hitbox */
  118.     104,10,    /* hit box width and height */
  119.     ITEMTEXT+COMMSEQ+ITEMENABLED+HIGHCOMP,    /* Item flags */
  120.     0,    /* each bit mutually-excludes a same-level Item */
  121.     (APTR)&IText2,    /* Item render  (IntuiText or Image or NULL) */
  122.     NULL,    /* Select render */
  123.     'U',    /* alternate command-key */
  124.     NULL,    /* SubItem list */
  125.     MENUNULL    /* filled in by Intuition for drag selections */
  126. };
  127.  
  128. static struct IntuiText IText1 = {
  129.     3,2,JAM1,    /* front and back text pens, drawmode and fill byte */
  130.     1,1,        /* XY origin relative to container TopLeft */
  131.     &TOPAZ80,    /* font pointer or NULL for default */
  132.     (UBYTE *)"Open",    /* pointer to text */
  133.     NULL        /* next IntuiText structure */
  134. };
  135.  
  136. static struct MenuItem MenuItem1 = {
  137.     &MenuItem2,    /* next MenuItem structure */
  138.     0,0,        /* XY of Item hitbox relative to TopLeft of parent hitbox */
  139.     104,10,        /* hit box width and height */
  140.     ITEMTEXT+COMMSEQ+ITEMENABLED+HIGHCOMP,    /* Item flags */
  141.     0,            /* each bit mutually-excludes a same-level Item */
  142.     (APTR)&IText1,    /* Item render  (IntuiText or Image or NULL) */
  143.     NULL,        /* Select render */
  144.     'O',        /* alternate command-key */
  145.     NULL,        /* SubItem list */
  146.     MENUNULL    /* filled in by Intuition for drag selections */
  147. };
  148.  
  149. struct Menu Menu1 = {
  150.     NULL,        /* next Menu structure */
  151.     0,0,        /* XY origin of Menu hit box relative to screen TopLeft */
  152.     48,0,        /* Menu hit box width and height */
  153.     MENUENABLED,    /* Menu flags */
  154.     "ParM",    /* text of Menu name */
  155.     &MenuItem1    /* MenuItem linked list pointer */
  156. };
  157.  
  158.