home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 194.lha / sfstruct.c < prev    next >
C/C++ Source or Header  |  1988-04-28  |  31KB  |  787 lines

  1. #include "intuition/intuition.h"
  2.  
  3. /****************************************************/
  4. /* All screen/window/gadget structures created with */
  5. /*              PowerWindows 2.0,  by:              */
  6. /* Inovatronics, Inc.                               */
  7. /* 11311 Stemmons Freeway                           */
  8. /* Dallas, TX  75229                                */
  9. /* (214) 241-9515                                   */
  10. /****************************************************/
  11.  
  12. struct NewScreen newscreen = {
  13.         0,0,    /* screen XY origin relative to View */
  14.         640,200,        /* screen width and height */
  15.         2,      /* screen depth (number of bitplanes) */
  16.         0,1,    /* detail and block pens */
  17.         HIRES,  /* display modes for this screen */
  18.         CUSTOMSCREEN,   /* screen type */
  19.         NULL,   /* pointer to default screen font */
  20.         "ShowFont 3.1", /* screen title */
  21.         NULL,   /* first in list of custom screen gadgets */
  22.         NULL    /* pointer to custom BitMap structure */
  23. };
  24.  
  25. struct PropInfo W_PropSInfo = {
  26.         AUTOKNOB+FREEVERT,      /* PROPINFO flags */
  27.         -1,-1,  /* horizontal and vertical pot values */
  28.         -1,-1,  /* horizontal and vertical body values */
  29. };
  30.  
  31. struct Image Image1 = {
  32.         0,0,    /* XY origin relative to container TopLeft */
  33.         8,167,  /* Image width and height in pixels */
  34.         0,      /* number of bitplanes in Image */
  35.         NULL,   /* pointer to ImageData */
  36.         0x0000,0x0000,  /* PlanePick and PlaneOnOff */
  37.         NULL    /* next Image structure */
  38. };
  39.  
  40. struct Gadget W_Prop = {
  41.         NULL,   /* next gadget */
  42.         619,19, /* origin XY of hit box relative to window TopLeft */
  43.         16,171, /* hit box width and height */
  44.         NULL,   /* gadget flags */
  45.         GADGIMMEDIATE,  /* activation flags */
  46.         PROPGADGET,     /* gadget type flags */
  47.         (APTR)&Image1,  /* gadget border or image to be rendered */
  48.         NULL,   /* alternate imagery for selection */
  49.         NULL,   /* first IntuiText structure */
  50.         NULL,   /* gadget mutual-exclude long word */
  51.         (APTR)&W_PropSInfo,     /* SpecialInfo structure */
  52.         2,      /* user-definable data */
  53.         NULL    /* pointer to user-definable data */
  54. };
  55.  
  56. USHORT GadgetDownData[] = {
  57.         0xFFFF,0x8001,0x8181,0x8181,0x87E1,0x83C1,0x8181,0x8001,
  58.         0xFFFF
  59. };
  60.  
  61. struct Image GadgetDown = {
  62.         0,0,    /* XY origin relative to container TopLeft */
  63.         16,9,   /* Image width and height in pixels */
  64.         2,      /* number of bitplanes in Image */
  65.         GadgetDownData,     /* pointer to ImageData */
  66.         0x0001,0x0000,  /* PlanePick and PlaneOnOff */
  67.         NULL    /* next Image structure */
  68. };
  69.  
  70. struct Gadget W_Down = {
  71.         &W_Prop,        /* next gadget */
  72.         619,190,        /* origin XY of hit box relative to window TopLeft */
  73.         16,9,   /* hit box width and height */
  74.         GADGIMAGE,      /* gadget flags */
  75.         GADGIMMEDIATE,  /* activation flags */
  76.         BOOLGADGET,     /* gadget type flags */
  77.         (APTR)&GadgetDown,  /* gadget border or image to be rendered */
  78.         NULL,   /* alternate imagery for selection */
  79.         NULL,   /* first IntuiText structure */
  80.         NULL,   /* gadget mutual-exclude long word */
  81.         NULL,   /* SpecialInfo structure */
  82.         3,      /* user-definable data */
  83.         NULL    /* pointer to user-definable data */
  84. };
  85.  
  86. USHORT GadgetUpData[] = {
  87.         0xFFFF,0x8001,0x8181,0x83C1,0x87E1,0x8181,0x8181,0x8001,
  88.         0xFFFF
  89. };
  90.  
  91. struct Image GadgetUp = {
  92.         0,0,    /* XY origin relative to container TopLeft */
  93.         16,9,   /* Image width and height in pixels */
  94.         2,      /* number of bitplanes in Image */
  95.         GadgetUpData,     /* pointer to ImageData */
  96.         0x0001,0x0000,  /* PlanePick and PlaneOnOff */
  97.         NULL    /* next Image structure */
  98. };
  99.  
  100. struct Gadget W_Up = {
  101.         &W_Down,        /* next gadget */
  102.         619,10, /* origin XY of hit box relative to window TopLeft */
  103.         16,9,   /* hit box width and height */
  104.         GADGIMAGE,      /* gadget flags */
  105.         GADGIMMEDIATE,  /* activation flags */
  106.         BOOLGADGET,     /* gadget type flags */
  107.         (APTR)&GadgetUp,  /* gadget border or image to be rendered */
  108.         NULL,   /* alternate imagery for selection */
  109.         NULL,   /* first IntuiText structure */
  110.         NULL,   /* gadget mutual-exclude long word */
  111.         NULL,   /* SpecialInfo structure */
  112.         1,      /* user-definable data */
  113.         NULL    /* pointer to user-definable data */
  114. };
  115.  
  116. #define GadgetList1 W_Up
  117.  
  118. struct IntuiText IText1 = {
  119.         3,1,COMPLEMENT, /* front and back text pens, drawmode and fill byte */
  120.         19,0,   /* XY origin relative to container TopLeft */
  121.         NULL,   /* font pointer or NULL for default */
  122.         "640 x 400",    /* pointer to text */
  123.         NULL    /* next IntuiText structure */
  124. };
  125.  
  126. struct MenuItem MenuItem4 = {
  127.         NULL,   /* next MenuItem structure */
  128.         0,27,   /* XY of Item hitbox relative to TopLeft of parent hitbox */
  129.         91,8,   /* hit box width and height */
  130.         CHECKIT+ITEMTEXT+ITEMENABLED+HIGHCOMP,  /* Item flags */
  131.         7,      /* each bit mutually-excludes a same-level Item */
  132.         (APTR)&IText1,  /* Item render  (IntuiText or Image or NULL) */
  133.         NULL,   /* Select render */
  134.         NULL,   /* alternate command-key */
  135.         NULL,   /* SubItem list */
  136.         MENUNULL        /* filled in by Intuition for drag selections */
  137. };
  138.  
  139. struct IntuiText IText2 = {
  140.         3,1,COMPLEMENT, /* front and back text pens, drawmode and fill byte */
  141.         19,0,   /* XY origin relative to container TopLeft */
  142.         NULL,   /* font pointer or NULL for default */
  143.         "640 x 200",    /* pointer to text */
  144.         NULL    /* next IntuiText structure */
  145. };
  146.  
  147. struct MenuItem MenuItem3 = {
  148.         &MenuItem4,     /* next MenuItem structure */
  149.         0,18,   /* XY of Item hitbox relative to TopLeft of parent hitbox */
  150.         91,8,   /* hit box width and height */
  151.         CHECKIT+ITEMTEXT+ITEMENABLED+HIGHCOMP+CHECKED,  /* Item flags */
  152.         11,     /* each bit mutually-excludes a same-level Item */
  153.         (APTR)&IText2,  /* Item render  (IntuiText or Image or NULL) */
  154.         NULL,   /* Select render */
  155.         NULL,   /* alternate command-key */
  156.         NULL,   /* SubItem list */
  157.         MENUNULL        /* filled in by Intuition for drag selections */
  158. };
  159.  
  160. struct IntuiText IText3 = {
  161.         3,1,COMPLEMENT, /* front and back text pens, drawmode and fill byte */
  162.         19,0,   /* XY origin relative to container TopLeft */
  163.         NULL,   /* font pointer or NULL for default */
  164.         "320 x 400",    /* pointer to text */
  165.         NULL    /* next IntuiText structure */
  166. };
  167.  
  168. struct MenuItem MenuItem2 = {
  169.         &MenuItem3,     /* next MenuItem structure */
  170.         0,9,    /* XY of Item hitbox relative to TopLeft of parent hitbox */
  171.         91,8,   /* hit box width and height */
  172.         CHECKIT+ITEMTEXT+ITEMENABLED+HIGHCOMP,  /* Item flags */
  173.         13,     /* each bit mutually-excludes a same-level Item */
  174.         (APTR)&IText3,  /* Item render  (IntuiText or Image or NULL) */
  175.         NULL,   /* Select render */
  176.         NULL,   /* alternate command-key */
  177.         NULL,   /* SubItem list */
  178.         MENUNULL        /* filled in by Intuition for drag selections */
  179. };
  180.  
  181. struct IntuiText IText4 = {
  182.         3,1,COMPLEMENT, /* front and back text pens, drawmode and fill byte */
  183.         19,0,   /* XY origin relative to container TopLeft */
  184.         NULL,   /* font pointer or NULL for default */
  185.         "320 x 200",    /* pointer to text */
  186.         NULL    /* next IntuiText structure */
  187. };
  188.  
  189. struct MenuItem MenuItem1 = {
  190.         &MenuItem2,     /* next MenuItem structure */
  191.         0,0,    /* XY of Item hitbox relative to TopLeft of parent hitbox */
  192.         91,8,   /* hit box width and height */
  193.         CHECKIT+ITEMTEXT+ITEMENABLED+HIGHCOMP,  /* Item flags */
  194.         14,     /* each bit mutually-excludes a same-level Item */
  195.         (APTR)&IText4,  /* Item render  (IntuiText or Image or NULL) */
  196.         NULL,   /* Select render */
  197.         NULL,   /* alternate command-key */
  198.         NULL,   /* SubItem list */
  199.         MENUNULL        /* filled in by Intuition for drag selections */
  200. };
  201.  
  202. struct Menu Menu3 = {
  203.         NULL,   /* next Menu structure */
  204.         146,0,  /* XY origin of Menu hit box relative to screen TopLeft */
  205.         66,0,   /* Menu hit box width and height */
  206.         MENUENABLED,    /* Menu flags */
  207.         "Screen",       /* text of Menu name */
  208.         &MenuItem1      /* MenuItem linked list pointer */
  209. };
  210.  
  211. struct IntuiText IText5 = {
  212.         3,1,COMPLEMENT, /* front and back text pens, drawmode and fill byte */
  213.         0,0,    /* XY origin relative to container TopLeft */
  214.         NULL,   /* font pointer or NULL for default */
  215.         "Font Selection",       /* pointer to text */
  216.         NULL    /* next IntuiText structure */
  217. };
  218.  
  219. struct MenuItem MenuItem6 = {
  220.         NULL,   /* next MenuItem structure */
  221.         0,9,    /* XY of Item hitbox relative to TopLeft of parent hitbox */
  222.         152,8,  /* hit box width and height */
  223.         ITEMTEXT+COMMSEQ+HIGHCOMP,      /* Item flags */
  224.         0,      /* each bit mutually-excludes a same-level Item */
  225.         (APTR)&IText5,  /* Item render  (IntuiText or Image or NULL) */
  226.         NULL,   /* Select render */
  227.         'F',    /* alternate command-key */
  228.         NULL,   /* SubItem list */
  229.         MENUNULL        /* filled in by Intuition for drag selections */
  230. };
  231.  
  232. struct IntuiText IText6 = {
  233.         3,1,COMPLEMENT, /* front and back text pens, drawmode and fill byte */
  234.         0,0,    /* XY origin relative to container TopLeft */
  235.         NULL,   /* font pointer or NULL for default */
  236.         "Read FONTS:",  /* pointer to text */
  237.         NULL    /* next IntuiText structure */
  238. };
  239.  
  240. struct MenuItem MenuItem5 = {
  241.         &MenuItem6,     /* next MenuItem structure */
  242.         0,0,    /* XY of Item hitbox relative to TopLeft of parent hitbox */
  243.         152,8,  /* hit box width and height */
  244.         ITEMTEXT+COMMSEQ+ITEMENABLED+HIGHCOMP,  /* Item flags */
  245.         0,      /* each bit mutually-excludes a same-level Item */
  246.         (APTR)&IText6,  /* Item render  (IntuiText or Image or NULL) */
  247.         NULL,   /* Select render */
  248.         'R',    /* alternate command-key */
  249.         NULL,   /* SubItem list */
  250.         MENUNULL        /* filled in by Intuition for drag selections */
  251. };
  252.  
  253. struct Menu Menu2 = {
  254.         &Menu3, /* next Menu structure */
  255.         82,0,   /* XY origin of Menu hit box relative to screen TopLeft */
  256.         57,0,   /* Menu hit box width and height */
  257.         MENUENABLED,    /* Menu flags */
  258.         "Fonts",        /* text of Menu name */
  259.         &MenuItem5      /* MenuItem linked list pointer */
  260. };
  261.  
  262. struct IntuiText IText7 = {
  263.         3,1,COMPLEMENT, /* front and back text pens, drawmode and fill byte */
  264.         0,0,    /* XY origin relative to container TopLeft */
  265.         NULL,   /* font pointer or NULL for default */
  266.         "Quit", /* pointer to text */
  267.         NULL    /* next IntuiText structure */
  268. };
  269.  
  270. struct MenuItem MenuItem8 = {
  271.         NULL,   /* next MenuItem structure */
  272.         0,9,    /* XY of Item hitbox relative to TopLeft of parent hitbox */
  273.         80,8,   /* hit box width and height */
  274.         ITEMTEXT+COMMSEQ+ITEMENABLED+HIGHCOMP,  /* Item flags */
  275.         0,      /* each bit mutually-excludes a same-level Item */
  276.         (APTR)&IText7,  /* Item render  (IntuiText or Image or NULL) */
  277.         NULL,   /* Select render */
  278.         'Q',    /* alternate command-key */
  279.         NULL,   /* SubItem list */
  280.         MENUNULL        /* filled in by Intuition for drag selections */
  281. };
  282.  
  283. struct IntuiText IText8 = {
  284.         3,1,COMPLEMENT, /* front and back text pens, drawmode and fill byte */
  285.         0,0,    /* XY origin relative to container TopLeft */
  286.         NULL,   /* font pointer or NULL for default */
  287.         "About",        /* pointer to text */
  288.         NULL    /* next IntuiText structure */
  289. };
  290.  
  291. struct MenuItem MenuItem7 = {
  292.         &MenuItem8,     /* next MenuItem structure */
  293.         0,0,    /* XY of Item hitbox relative to TopLeft of parent hitbox */
  294.         80,8,   /* hit box width and height */
  295.         ITEMTEXT+COMMSEQ+ITEMENABLED+HIGHCOMP,  /* Item flags */
  296.         0,      /* each bit mutually-excludes a same-level Item */
  297.         (APTR)&IText8,  /* Item render  (IntuiText or Image or NULL) */
  298.         NULL,   /* Select render */
  299.         'A',    /* alternate command-key */
  300.         NULL,   /* SubItem list */
  301.         MENUNULL        /* filled in by Intuition for drag selections */
  302. };
  303.  
  304. struct Menu Menu1 = {
  305.         &Menu2, /* next Menu structure */
  306.         0,0,    /* XY origin of Menu hit box relative to screen TopLeft */
  307.         75,0,   /* Menu hit box width and height */
  308.         MENUENABLED,    /* Menu flags */
  309.         "Project",      /* text of Menu name */
  310.         &MenuItem7      /* MenuItem linked list pointer */
  311. };
  312.  
  313. #define MenuList1 Menu1
  314.  
  315. struct NewWindow newwindow = {
  316.         0,0,    /* window XY origin relative to TopLeft of screen */
  317.         640,200,        /* window width and height */
  318.         0,1,    /* detail and block pens */
  319.         MOUSEBUTTONS+GADGETDOWN+GADGETUP+MENUPICK+CLOSEWINDOW,  /* IDCMP flags */
  320.         WINDOWCLOSE+ACTIVATE,   /* other window flags */
  321.         &W_Up,  /* first gadget in gadget list */
  322.         NULL,   /* custom CHECKMARK imagery */
  323.         "ShowFont 3.1 by Arthur Johnson Jr.", /* window title */
  324.         NULL,   /* custom screen pointer */
  325.         NULL,   /* custom bitmap */
  326.         -1,-1,  /* minimum width and height */
  327.         -1,-1,  /* maximum width and height */
  328.         CUSTOMSCREEN    /* destination screen type */
  329. };
  330.  
  331. struct Gadget R_StyleDown = {
  332.         NULL,   /* next gadget */
  333.         298,55, /* origin XY of hit box relative to window TopLeft */
  334.         16,9,   /* hit box width and height */
  335.         GADGIMAGE,      /* gadget flags */
  336.         GADGIMMEDIATE,  /* activation flags */
  337.         BOOLGADGET+REQGADGET,   /* gadget type flags */
  338.         (APTR)&GadgetDown,  /* gadget border or image to be rendered */
  339.         NULL,   /* alternate imagery for selection */
  340.         NULL,   /* first IntuiText structure */
  341.         NULL,   /* gadget mutual-exclude long word */
  342.         NULL,   /* SpecialInfo structure */
  343.         33,     /* user-definable data */
  344.         NULL    /* pointer to user-definable data */
  345. };
  346.  
  347. struct PropInfo R_StyleSInfo = {
  348.         AUTOKNOB+FREEVERT,      /* PROPINFO flags */
  349.         -1,-1,  /* horizontal and vertical pot values */
  350.         -1,-1,  /* horizontal and vertical body values */
  351. };
  352.  
  353. struct Image Image5 = {
  354.         0,0,    /* XY origin relative to container TopLeft */
  355.         8,37,   /* Image width and height in pixels */
  356.         0,      /* number of bitplanes in Image */
  357.         NULL,   /* pointer to ImageData */
  358.         0x0000,0x0000,  /* PlanePick and PlaneOnOff */
  359.         NULL    /* next Image structure */
  360. };
  361.  
  362. struct Gadget R_Style = {
  363.         &R_StyleDown,   /* next gadget */
  364.         298,14, /* origin XY of hit box relative to window TopLeft */
  365.         16,41,  /* hit box width and height */
  366.         NULL,   /* gadget flags */
  367.         GADGIMMEDIATE,  /* activation flags */
  368.         PROPGADGET+REQGADGET,   /* gadget type flags */
  369.         (APTR)&Image5,  /* gadget border or image to be rendered */
  370.         NULL,   /* alternate imagery for selection */
  371.         NULL,   /* first IntuiText structure */
  372.         NULL,   /* gadget mutual-exclude long word */
  373.         (APTR)&R_StyleSInfo,    /* SpecialInfo structure */
  374.         32,     /* user-definable data */
  375.         NULL    /* pointer to user-definable data */
  376. };
  377.  
  378. struct Gadget R_StyleUp = {
  379.         &R_Style,       /* next gadget */
  380.         298,5,  /* origin XY of hit box relative to window TopLeft */
  381.         16,9,   /* hit box width and height */
  382.         GADGIMAGE,      /* gadget flags */
  383.         GADGIMMEDIATE,  /* activation flags */
  384.         BOOLGADGET+REQGADGET,   /* gadget type flags */
  385.         (APTR)&GadgetUp,  /* gadget border or image to be rendered */
  386.         NULL,   /* alternate imagery for selection */
  387.         NULL,   /* first IntuiText structure */
  388.         NULL,   /* gadget mutual-exclude long word */
  389.         NULL,   /* SpecialInfo structure */
  390.         31,     /* user-definable data */
  391.         NULL    /* pointer to user-definable data */
  392. };
  393.  
  394. SHORT BorderVectors1[] = {
  395.         0,0,
  396.         60,0,
  397.         60,16,
  398.         0,16,
  399.         0,0
  400. };
  401. struct Border Border1 = {
  402.         -2,-1,  /* XY origin relative to container TopLeft */
  403.         1,0,JAM1,       /* front pen, back pen and drawmode */
  404.         5,      /* number of XY vectors */
  405.         BorderVectors1, /* pointer to XY vectors */
  406.         NULL    /* next border in list */
  407. };
  408.  
  409. struct IntuiText IText9 = {
  410.         1,0,JAM2,       /* front and back text pens, drawmode and fill byte */
  411.         6,4,    /* XY origin relative to container TopLeft */
  412.         NULL,   /* font pointer or NULL for default */
  413.         "Cancel",       /* pointer to text */
  414.         NULL    /* next IntuiText structure */
  415. };
  416.  
  417. struct Gadget R_Cancel = {
  418.         &R_StyleUp,     /* next gadget */
  419.         195,74, /* origin XY of hit box relative to window TopLeft */
  420.         57,15,  /* hit box width and height */
  421.         NULL,   /* gadget flags */
  422.         RELVERIFY+ENDGADGET,    /* activation flags */
  423.         BOOLGADGET+REQGADGET,   /* gadget type flags */
  424.         (APTR)&Border1, /* gadget border or image to be rendered */
  425.         NULL,   /* alternate imagery for selection */
  426.         &IText9,        /* first IntuiText structure */
  427.         NULL,   /* gadget mutual-exclude long word */
  428.         NULL,   /* SpecialInfo structure */
  429.         102,    /* user-definable data */
  430.         NULL    /* pointer to user-definable data */
  431. };
  432.  
  433. SHORT BorderVectors2[] = {
  434.         0,0,
  435.         60,0,
  436.         60,16,
  437.         0,16,
  438.         0,0
  439. };
  440. struct Border Border2 = {
  441.         -2,-1,  /* XY origin relative to container TopLeft */
  442.         1,0,JAM1,       /* front pen, back pen and drawmode */
  443.         5,      /* number of XY vectors */
  444.         BorderVectors2, /* pointer to XY vectors */
  445.         NULL    /* next border in list */
  446. };
  447.  
  448. struct IntuiText IText10 = {
  449.         1,0,JAM2,       /* front and back text pens, drawmode and fill byte */
  450.         20,4,   /* XY origin relative to container TopLeft */
  451.         NULL,   /* font pointer or NULL for default */
  452.         "OK",   /* pointer to text */
  453.         NULL    /* next IntuiText structure */
  454. };
  455.  
  456. struct Gadget R_OK = {
  457.         &R_Cancel,      /* next gadget */
  458.         68,74,  /* origin XY of hit box relative to window TopLeft */
  459.         57,15,  /* hit box width and height */
  460.         NULL,   /* gadget flags */
  461.         RELVERIFY+ENDGADGET,    /* activation flags */
  462.         BOOLGADGET+REQGADGET,   /* gadget type flags */
  463.         (APTR)&Border2, /* gadget border or image to be rendered */
  464.         NULL,   /* alternate imagery for selection */
  465.         &IText10,       /* first IntuiText structure */
  466.         NULL,   /* gadget mutual-exclude long word */
  467.         NULL,   /* SpecialInfo structure */
  468.         101,    /* user-definable data */
  469.         NULL    /* pointer to user-definable data */
  470. };
  471.  
  472. struct Gadget R_SizeDown = {
  473.         &R_OK,  /* next gadget */
  474.         174,55, /* origin XY of hit box relative to window TopLeft */
  475.         16,9,   /* hit box width and height */
  476.         GADGIMAGE,      /* gadget flags */
  477.         GADGIMMEDIATE,  /* activation flags */
  478.         BOOLGADGET+REQGADGET,   /* gadget type flags */
  479.         (APTR)&GadgetDown,  /* gadget border or image to be rendered */
  480.         NULL,   /* alternate imagery for selection */
  481.         NULL,   /* first IntuiText structure */
  482.         NULL,   /* gadget mutual-exclude long word */
  483.         NULL,   /* SpecialInfo structure */
  484.         23,     /* user-definable data */
  485.         NULL    /* pointer to user-definable data */
  486. };
  487.  
  488. struct PropInfo R_SizeSInfo = {
  489.         AUTOKNOB+FREEVERT,      /* PROPINFO flags */
  490.         -1,-1,  /* horizontal and vertical pot values */
  491.         -1,-1,  /* horizontal and vertical body values */
  492. };
  493.  
  494. struct Image Image8 = {
  495.         0,0,    /* XY origin relative to container TopLeft */
  496.         8,37,   /* Image width and height in pixels */
  497.         0,      /* number of bitplanes in Image */
  498.         NULL,   /* pointer to ImageData */
  499.         0x0000,0x0000,  /* PlanePick and PlaneOnOff */
  500.         NULL    /* next Image structure */
  501. };
  502.  
  503. struct Gadget R_Size = {
  504.         &R_SizeDown,    /* next gadget */
  505.         174,14, /* origin XY of hit box relative to window TopLeft */
  506.         16,41,  /* hit box width and height */
  507.         NULL,   /* gadget flags */
  508.         GADGIMMEDIATE,  /* activation flags */
  509.         PROPGADGET+REQGADGET,   /* gadget type flags */
  510.         (APTR)&Image8,  /* gadget border or image to be rendered */
  511.         NULL,   /* alternate imagery for selection */
  512.         NULL,   /* first IntuiText structure */
  513.         NULL,   /* gadget mutual-exclude long word */
  514.         (APTR)&R_SizeSInfo,     /* SpecialInfo structure */
  515.         22,     /* user-definable data */
  516.         NULL    /* pointer to user-definable data */
  517. };
  518.  
  519. struct Gadget R_SizeUp = {
  520.         &R_Size,        /* next gadget */
  521.         174,5,  /* origin XY of hit box relative to window TopLeft */
  522.         16,9,   /* hit box width and height */
  523.         GADGIMAGE,      /* gadget flags */
  524.         GADGIMMEDIATE,  /* activation flags */
  525.         BOOLGADGET+REQGADGET,   /* gadget type flags */
  526.         (APTR)&GadgetUp,  /* gadget border or image to be rendered */
  527.         NULL,   /* alternate imagery for selection */
  528.         NULL,   /* first IntuiText structure */
  529.         NULL,   /* gadget mutual-exclude long word */
  530.         NULL,   /* SpecialInfo structure */
  531.         21,     /* user-definable data */
  532.         NULL    /* pointer to user-definable data */
  533. };
  534.  
  535. struct PropInfo R_FontSInfo = {
  536.         AUTOKNOB+FREEVERT,      /* PROPINFO flags */
  537.         -1,-1,  /* horizontal and vertical pot values */
  538.         -1,-1,  /* horizontal and vertical body values */
  539. };
  540.  
  541. struct Image Image10 = {
  542.         0,0,    /* XY origin relative to container TopLeft */
  543.         8,37,   /* Image width and height in pixels */
  544.         0,      /* number of bitplanes in Image */
  545.         NULL,   /* pointer to ImageData */
  546.         0x0000,0x0000,  /* PlanePick and PlaneOnOff */
  547.         NULL    /* next Image structure */
  548. };
  549.  
  550. struct Gadget R_Font = {
  551.         &R_SizeUp,      /* next gadget */
  552.         122,14, /* origin XY of hit box relative to window TopLeft */
  553.         16,41,  /* hit box width and height */
  554.         NULL,   /* gadget flags */
  555.         GADGIMMEDIATE,  /* activation flags */
  556.         PROPGADGET+REQGADGET,   /* gadget type flags */
  557.         (APTR)&Image10, /* gadget border or image to be rendered */
  558.         NULL,   /* alternate imagery for selection */
  559.         NULL,   /* first IntuiText structure */
  560.         NULL,   /* gadget mutual-exclude long word */
  561.         (APTR)&R_FontSInfo,     /* SpecialInfo structure */
  562.         12,     /* user-definable data */
  563.         NULL    /* pointer to user-definable data */
  564. };
  565.  
  566. struct Gadget R_FontDown = {
  567.         &R_Font,        /* next gadget */
  568.         122,55, /* origin XY of hit box relative to window TopLeft */
  569.         16,9,   /* hit box width and height */
  570.         GADGIMAGE,      /* gadget flags */
  571.         GADGIMMEDIATE,  /* activation flags */
  572.         BOOLGADGET+REQGADGET,   /* gadget type flags */
  573.         (APTR)&GadgetDown, /* gadget border or image to be rendered */
  574.         NULL,   /* alternate imagery for selection */
  575.         NULL,   /* first IntuiText structure */
  576.         NULL,   /* gadget mutual-exclude long word */
  577.         NULL,   /* SpecialInfo structure */
  578.         13,     /* user-definable data */
  579.         NULL    /* pointer to user-definable data */
  580. };
  581.  
  582. struct Gadget R_FontUp = {
  583.         &R_FontDown,    /* next gadget */
  584.         122,5,  /* origin XY of hit box relative to window TopLeft */
  585.         16,9,   /* hit box width and height */
  586.         GADGIMAGE,      /* gadget flags */
  587.         GADGIMMEDIATE,  /* activation flags */
  588.         BOOLGADGET+REQGADGET,   /* gadget type flags */
  589.         (APTR)&GadgetUp, /* gadget border or image to be rendered */
  590.         NULL,   /* alternate imagery for selection */
  591.         NULL,   /* first IntuiText structure */
  592.         NULL,   /* gadget mutual-exclude long word */
  593.         NULL,   /* SpecialInfo structure */
  594.         11,     /* user-definable data */
  595.         NULL    /* pointer to user-definable data */
  596. };
  597.  
  598. #define GadgetList2 R_FontUp
  599.  
  600. SHORT req2bordervectors[] = {
  601.         0,0,
  602.         319,0,
  603.         319,99,
  604.         0,99,
  605.         0,0
  606. };
  607. struct Border req2border = {
  608.         0, 0,  /* XY origin relative to container TopLeft */
  609.         1,0,JAM1,       /* front pen, back pen and drawmode */
  610.         5,      /* number of XY vectors */
  611.         req2bordervectors, /* pointer to XY vectors */
  612.         NULL    /* next border in list */
  613. };
  614.  
  615. struct Requester requester2 = {
  616.         NULL,   /* previous requester (filled in by Intuition) */
  617.         160,50, /* requester XY origin relative to TopLeft of window */
  618.         320,100,        /* requester width and height */
  619.         0,0,    /* relative to these mouse offsets if POINTREL is set */
  620.         &GadgetList2,   /* gadget list */
  621.         &req2border,   /* box's border */
  622.         NULL,   /* requester text */
  623.         NOISYREQ,   /* requester flags */
  624.         0,      /* back-plane fill pen */
  625.         NULL,   /* leave these alone */
  626.         NULL,   /* custom bitmap if PREDRAWN is set */
  627.         NULL    /* leave this alone */
  628. };
  629.  
  630. SHORT BorderVectors3[] = {
  631.         0,0,
  632.         99,0,
  633.         99,25,
  634.         0,25,
  635.         0,0
  636. };
  637. struct Border Border3 = {
  638.         -2,-1,  /* XY origin relative to container TopLeft */
  639.         1,0,JAM1,       /* front pen, back pen and drawmode */
  640.         5,      /* number of XY vectors */
  641.         BorderVectors3, /* pointer to XY vectors */
  642.         NULL    /* next border in list */
  643. };
  644.  
  645. struct IntuiText IText11 = {
  646.         1,0,JAM2,       /* front and back text pens, drawmode and fill byte */
  647.         36,8,   /* XY origin relative to container TopLeft */
  648.         NULL,   /* font pointer or NULL for default */
  649.         "DUH",  /* pointer to text */
  650.         NULL    /* next IntuiText structure */
  651. };
  652.  
  653. struct Gadget Gadget20 = {
  654.         NULL,   /* next gadget */
  655.         56,65,  /* origin XY of hit box relative to window TopLeft */
  656.         96,24,  /* hit box width and height */
  657.         NULL,   /* gadget flags */
  658.         RELVERIFY+ENDGADGET,    /* activation flags */
  659.         BOOLGADGET+REQGADGET,   /* gadget type flags */
  660.         (APTR)&Border3, /* gadget border or image to be rendered */
  661.         NULL,   /* alternate imagery for selection */
  662.         &IText11,       /* first IntuiText structure */
  663.         NULL,   /* gadget mutual-exclude long word */
  664.         NULL,   /* SpecialInfo structure */
  665.         NULL,   /* user-definable data */
  666.         NULL    /* pointer to user-definable data */
  667. };
  668.  
  669. #define GadgetList3 Gadget20
  670.  
  671. struct IntuiText IText16 = {
  672.         1,0,JAM2,       /* front and back text pens, drawmode and fill byte */
  673.         80,43,  /* XY origin relative to container TopLeft */
  674.         NULL,   /* font pointer or NULL for default */
  675.         "fonts.",       /* pointer to text */
  676.         NULL    /* next IntuiText structure */
  677. };
  678.  
  679. struct IntuiText IText15 = {
  680.         1,0,JAM2,       /* front and back text pens, drawmode and fill byte */
  681.         20,34,  /* XY origin relative to container TopLeft */
  682.         NULL,   /* font pointer or NULL for default */
  683.         "This program displays",        /* pointer to text */
  684.         &IText16        /* next IntuiText structure */
  685. };
  686.  
  687. struct IntuiText IText14 = {
  688.         1,0,JAM2,       /* front and back text pens, drawmode and fill byte */
  689.         8,19,   /* XY origin relative to container TopLeft */
  690.         NULL,   /* font pointer or NULL for default */
  691.         "Last revision - 11/27/88",     /* pointer to text */
  692.         &IText15        /* next IntuiText structure */
  693. };
  694.  
  695. struct IntuiText IText13 = {
  696.         3,0,JAM2,       /* front and back text pens, drawmode and fill byte */
  697.         20,10,  /* XY origin relative to container TopLeft */
  698.         NULL,   /* font pointer or NULL for default */
  699.         "by Arthur Johnson Jr.",        /* pointer to text */
  700.         &IText14        /* next IntuiText structure */
  701. };
  702.  
  703. struct IntuiText IText12 = {
  704.         3,0,JAM2,       /* front and back text pens, drawmode and fill byte */
  705.         56,2,   /* XY origin relative to container TopLeft */
  706.         NULL,   /* font pointer or NULL for default */
  707.         "ShowFont 3.1", /* pointer to text */
  708.         &IText13        /* next IntuiText structure */
  709. };
  710.  
  711. #define IntuiTextList3 IText12
  712.  
  713. SHORT req3bordervectors[] = {
  714.         0,0,
  715.         207,0,
  716.         207,99,
  717.         0,99,
  718.         0,0
  719. };
  720. struct Border req3border = {
  721.         0, 0,  /* XY origin relative to container TopLeft */
  722.         1,0,JAM1,       /* front pen, back pen and drawmode */
  723.         5,      /* number of XY vectors */
  724.         req3bordervectors, /* pointer to XY vectors */
  725.         NULL    /* next border in list */
  726. };
  727.  
  728. struct Requester requester3 = {
  729.         NULL,   /* previous requester (filled in by Intuition) */
  730.         216,50, /* requester XY origin relative to TopLeft of window */
  731.         208,100,        /* requester width and height */
  732.         0,0,    /* relative to these mouse offsets if POINTREL is set */
  733.         &GadgetList3,   /* gadget list */
  734.         &req3border,   /* box's border */
  735.         &IntuiTextList3,        /* requester text */
  736.         NULL,   /* requester flags */
  737.         0,      /* back-plane fill pen */
  738.         NULL,   /* leave these alone */
  739.         NULL,   /* custom bitmap if PREDRAWN is set */
  740.         NULL    /* leave this alone */
  741. };
  742.  
  743. SHORT OutlineVectors3[] = {
  744.         0,0,
  745.         100,0,
  746.         100,58,
  747.         0,58,
  748.         0,0
  749. };
  750. struct Border Outline3 = {
  751.         194,5,  /* XY origin relative to container TopLeft */
  752.         1,0,JAM1,       /* front pen, back pen and drawmode */
  753.         5,      /* number of XY vectors */
  754.         OutlineVectors3, /* pointer to XY vectors */
  755.         NULL    /* next border in list */
  756. };
  757.  
  758. SHORT OutlineVectors2[] = {
  759.         0,0,
  760.         27,0,
  761.         27,58,
  762.         0,58,
  763.         0,0
  764. };
  765. struct Border Outline2 = {
  766.         143,5,  /* XY origin relative to container TopLeft */
  767.         1,0,JAM1,       /* front pen, back pen and drawmode */
  768.         5,      /* number of XY vectors */
  769.         OutlineVectors2, /* pointer to XY vectors */
  770.         &Outline3        /* next border in list */
  771. };
  772.  
  773. SHORT OutlineVectors1[] = {
  774.         0,0,
  775.         108,0,
  776.         108,58,
  777.         0,58,
  778.         0,0
  779. };
  780. struct Border Outline1 = {
  781.         10,5,   /* XY origin relative to container TopLeft */
  782.         1,0,JAM1,       /* front pen, back pen and drawmode */
  783.         5,      /* number of XY vectors */
  784.         OutlineVectors1, /* pointer to XY vectors */
  785.         &Outline2        /* next border in list */
  786. };
  787.