home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 360b.lha / showfont_v4.1 / sfstructs.c < prev    next >
C/C++ Source or Header  |  1990-01-28  |  46KB  |  1,433 lines

  1. #include "intuition/intuition.h"
  2.  
  3. #define VERSION 4.1        /* these don't do anything, but serve as   */
  4. #define REVDATE 01/17/90    /* reminders for me to change these values */
  5.  
  6. /****************************************************/
  7. /*                            */
  8. /* Most of the structures in this file were created */
  9. /*          with PowerWindows 2.5, by:        */
  10. /*                            */
  11. /*        Inovatronics, Inc.            */
  12. /*        11311 Stemmons Freeway            */
  13. /*        Dallas, TX  75229            */
  14. /*        (214) 241-9515                      */
  15. /*                            */
  16. /****************************************************/
  17.  
  18. USHORT GadgetDownData[] = {
  19.     0xFFFF,0x8001,0x8181,0x8181,0x87E1,0x83C1,0x8181,0x8001,
  20.     0xFFFF
  21. };
  22.  
  23. struct Image GadgetDown = {
  24.     0,0,    /* XY origin relative to container TopLeft */
  25.     16,9,    /* Image width and height in pixels */
  26.     2,    /* number of bitplanes in Image */
  27.     GadgetDownData,     /* pointer to ImageData */
  28.     0x0001,0x0000,    /* PlanePick and PlaneOnOff */
  29.     NULL    /* next Image structure */
  30. };
  31.  
  32. USHORT GadgetUpData[] = {
  33.     0xFFFF,0x8001,0x8181,0x83C1,0x87E1,0x8181,0x8181,0x8001,
  34.     0xFFFF
  35. };
  36.  
  37. struct Image GadgetUp = {
  38.     0,0,    /* XY origin relative to container TopLeft */
  39.     16,9,    /* Image width and height in pixels */
  40.     2,    /* number of bitplanes in Image */
  41.     GadgetUpData,      /* pointer to ImageData */
  42.     0x0001,0x0000,    /* PlanePick and PlaneOnOff */
  43.     NULL    /* next Image structure */
  44. };
  45.  
  46. struct NewScreen NewScreenStructure = {
  47.     0,0,    /* screen XY origin relative to View */
  48.     640,200,    /* screen width and height */
  49.     2,    /* screen depth (number of bitplanes) */
  50.     0,1,    /* detail and block pens */
  51.     HIRES,    /* display modes for this screen */
  52.     CUSTOMSCREEN,    /* screen type */
  53.     NULL,    /* pointer to default screen font */
  54.     "ShowFont 4.1 © 1989, 1990 by Arthur Johnson Jr.",    /* screen title */
  55.     NULL,    /* first in list of custom screen gadgets */
  56.     NULL    /* pointer to custom BitMap structure */
  57. };
  58.  
  59. struct PropInfo PropSInfo = {
  60.     AUTOKNOB+FREEVERT,    /* PropInfo flags */
  61.     -1,-1,    /* horizontal and vertical pot values */
  62.     -1,-1,    /* horizontal and vertical body values */
  63. };
  64.  
  65. struct Image Image1 = {
  66.     0,0,    /* XY origin relative to container TopLeft */
  67.     8,167,    /* Image width and height in pixels */
  68.     0,    /* number of bitplanes in Image */
  69.     NULL,    /* pointer to ImageData */
  70.     0x0000,0x0000,    /* PlanePick and PlaneOnOff */
  71.     NULL    /* next Image structure */
  72. };
  73.  
  74. struct Gadget Prop = {
  75.     NULL,    /* next gadget */
  76.     -18,19, /* origin XY of hit box relative to window TopLeft */
  77.     16,-29, /* hit box width and height */
  78.     GRELRIGHT+GRELHEIGHT,    /* gadget flags */
  79.     RELVERIFY+GADGIMMEDIATE,    /* activation flags */
  80.     PROPGADGET,    /* gadget type flags */
  81.     (APTR)&Image1,  /* gadget border or image to be rendered */
  82.     NULL,    /* alternate imagery for selection */
  83.     NULL,    /* first IntuiText structure */
  84.     NULL,    /* gadget mutual-exclude long word */
  85.     (APTR)&PropSInfo,       /* SpecialInfo structure */
  86.     2,    /* user-definable data */
  87.     NULL    /* pointer to user-definable data */
  88. };
  89.  
  90. struct Gadget Down = {
  91.     &Prop,    /* next gadget */
  92.     -18,-9, /* origin XY of hit box relative to window TopLeft */
  93.     18,9,    /* hit box width and height */
  94.     GADGIMAGE+GRELBOTTOM+GRELRIGHT, /* gadget flags */
  95.     RELVERIFY+GADGIMMEDIATE,    /* activation flags */
  96.     BOOLGADGET,    /* gadget type flags */
  97.     (APTR)&GadgetDown,  /* gadget border or image to be rendered */
  98.     NULL,    /* alternate imagery for selection */
  99.     NULL,    /* first IntuiText structure */
  100.     NULL,    /* gadget mutual-exclude long word */
  101.     NULL,    /* SpecialInfo structure */
  102.     3,    /* user-definable data */
  103.     NULL    /* pointer to user-definable data */
  104. };
  105.  
  106. struct Gadget Up = {
  107.     &Down,    /* next gadget */
  108.     -18,10, /* origin XY of hit box relative to window TopLeft */
  109.     18,9,    /* hit box width and height */
  110.     GADGIMAGE+GRELRIGHT,    /* gadget flags */
  111.     RELVERIFY+GADGIMMEDIATE,    /* activation flags */
  112.     BOOLGADGET,    /* gadget type flags */
  113.     (APTR)&GadgetUp,  /* gadget border or image to be rendered */
  114.     NULL,    /* alternate imagery for selection */
  115.     NULL,    /* first IntuiText structure */
  116.     NULL,    /* gadget mutual-exclude long word */
  117.     NULL,    /* SpecialInfo structure */
  118.     1,    /* user-definable data */
  119.     NULL    /* pointer to user-definable data */
  120. };
  121.  
  122. struct IntuiText IText1 = {
  123.     3,1,COMPLEMENT, /* front and back text pens, drawmode and fill byte */
  124.     0,0,    /* XY origin relative to container TopLeft */
  125.     NULL,    /* font pointer or NULL for default */
  126.     "Screen Format",        /* pointer to text */
  127.     NULL    /* next IntuiText structure */
  128. };
  129.  
  130. struct MenuItem MenuItem1 = {
  131.     NULL,    /* next MenuItem structure */
  132.     0,0,    /* XY of Item hitbox relative to TopLeft of parent hitbox */
  133.     144,8,    /* hit box width and height */
  134.     ITEMTEXT+COMMSEQ+ITEMENABLED+HIGHCOMP,    /* Item flags */
  135.     0,    /* each bit mutually-excludes a same-level Item */
  136.     (APTR)&IText1,  /* Item render  (IntuiText or Image or NULL) */
  137.     NULL,    /* Select render */
  138.     'S',    /* alternate command-key */
  139.     NULL,    /* SubItem list */
  140.     MENUNULL    /* filled in by Intuition for drag selections */
  141. };
  142.  
  143. struct Menu Menu3 = {
  144.     NULL,    /* next Menu structure */
  145.     124,0,    /* XY origin of Menu hit box relative to screen TopLeft */
  146.     55,0,    /* Menu hit box width and height */
  147.     MENUENABLED,    /* Menu flags */
  148.     "Screen",       /* text of Menu name */
  149.     &MenuItem1    /* MenuItem linked list pointer */
  150. };
  151.  
  152. struct IntuiText IText2 = {
  153.     3,1,COMPLEMENT, /* front and back text pens, drawmode and fill byte */
  154.     0,0,    /* XY origin relative to container TopLeft */
  155.     NULL,    /* font pointer or NULL for default */
  156.     "Font Selection",       /* pointer to text */
  157.     NULL    /* next IntuiText structure */
  158. };
  159.  
  160. struct MenuItem MenuItem3 = {
  161.     NULL,    /* next MenuItem structure */
  162.     0,9,    /* XY of Item hitbox relative to TopLeft of parent hitbox */
  163.     176,8,    /* hit box width and height */
  164.     ITEMTEXT+COMMSEQ+ITEMENABLED+HIGHCOMP,    /* Item flags */
  165.     0,    /* each bit mutually-excludes a same-level Item */
  166.     (APTR)&IText2,  /* Item render  (IntuiText or Image or NULL) */
  167.     NULL,    /* Select render */
  168.     'F',    /* alternate command-key */
  169.     NULL,    /* SubItem list */
  170.     MENUNULL    /* filled in by Intuition for drag selections */
  171. };
  172.  
  173. struct IntuiText IText3 = {
  174.     3,1,COMPLEMENT, /* front and back text pens, drawmode and fill byte */
  175.     0,0,    /* XY origin relative to container TopLeft */
  176.     NULL,    /* font pointer or NULL for default */
  177.     "Change FONTS: dir",    /* pointer to text */
  178.     NULL    /* next IntuiText structure */
  179. };
  180.  
  181. struct MenuItem MenuItem2 = {
  182.     &MenuItem3,    /* next MenuItem structure */
  183.     0,0,    /* XY of Item hitbox relative to TopLeft of parent hitbox */
  184.     176,8,    /* hit box width and height */
  185.     ITEMTEXT+COMMSEQ+ITEMENABLED+HIGHCOMP,    /* Item flags */
  186.     0,    /* each bit mutually-excludes a same-level Item */
  187.     (APTR)&IText3,  /* Item render  (IntuiText or Image or NULL) */
  188.     NULL,    /* Select render */
  189.     'C',    /* alternate command-key */
  190.     NULL,    /* SubItem list */
  191.     MENUNULL    /* filled in by Intuition for drag selections */
  192. };
  193.  
  194. struct Menu Menu2 = {
  195.     &Menu3, /* next Menu structure */
  196.     70,0,    /* XY origin of Menu hit box relative to screen TopLeft */
  197.     47,0,    /* Menu hit box width and height */
  198.     MENUENABLED,    /* Menu flags */
  199.     "Fonts",        /* text of Menu name */
  200.     &MenuItem2    /* MenuItem linked list pointer */
  201. };
  202.  
  203. struct IntuiText IText4 = {
  204.     3,1,COMPLEMENT, /* front and back text pens, drawmode and fill byte */
  205.     0,0,    /* XY origin relative to container TopLeft */
  206.     NULL,    /* font pointer or NULL for default */
  207.     "Quit", /* pointer to text */
  208.     NULL    /* next IntuiText structure */
  209. };
  210.  
  211. struct MenuItem MenuItem5 = {
  212.     NULL,    /* next MenuItem structure */
  213.     0,9,    /* XY of Item hitbox relative to TopLeft of parent hitbox */
  214.     80,8,    /* hit box width and height */
  215.     ITEMTEXT+COMMSEQ+ITEMENABLED+HIGHCOMP,    /* Item flags */
  216.     0,    /* each bit mutually-excludes a same-level Item */
  217.     (APTR)&IText4,  /* Item render  (IntuiText or Image or NULL) */
  218.     NULL,    /* Select render */
  219.     'Q',    /* alternate command-key */
  220.     NULL,    /* SubItem list */
  221.     MENUNULL    /* filled in by Intuition for drag selections */
  222. };
  223.  
  224. struct IntuiText IText5 = {
  225.     3,1,COMPLEMENT, /* front and back text pens, drawmode and fill byte */
  226.     0,0,    /* XY origin relative to container TopLeft */
  227.     NULL,    /* font pointer or NULL for default */
  228.     "About",        /* pointer to text */
  229.     NULL    /* next IntuiText structure */
  230. };
  231.  
  232. struct MenuItem MenuItem4 = {
  233.     &MenuItem5,    /* next MenuItem structure */
  234.     0,0,    /* XY of Item hitbox relative to TopLeft of parent hitbox */
  235.     80,8,    /* hit box width and height */
  236.     ITEMTEXT+COMMSEQ+ITEMENABLED+HIGHCOMP,    /* Item flags */
  237.     0,    /* each bit mutually-excludes a same-level Item */
  238.     (APTR)&IText5,  /* Item render  (IntuiText or Image or NULL) */
  239.     NULL,    /* Select render */
  240.     'A',    /* alternate command-key */
  241.     NULL,    /* SubItem list */
  242.     MENUNULL    /* filled in by Intuition for drag selections */
  243. };
  244.  
  245. struct Menu Menu1 = {
  246.     &Menu2, /* next Menu structure */
  247.     0,0,    /* XY origin of Menu hit box relative to screen TopLeft */
  248.     63,0,    /* Menu hit box width and height */
  249.     MENUENABLED,    /* Menu flags */
  250.     "Project",      /* text of Menu name */
  251.     &MenuItem4    /* MenuItem linked list pointer */
  252. };
  253.  
  254. struct NewWindow NewWindowStructure1 = {
  255.     0,0,    /* window XY origin relative to TopLeft of screen */
  256.     640,200,    /* window width and height */
  257.     0,1,    /* detail and block pens */
  258.     MOUSEBUTTONS+GADGETDOWN+GADGETUP+MENUPICK+CLOSEWINDOW,    /* IDCMP flags */
  259.     WINDOWCLOSE+ACTIVATE,    /* other window flags */
  260.     &Up,    /* first gadget in gadget list */
  261.     NULL,    /* custom CHECKMARK imagery */
  262.     NULL,    /* window title */
  263.     NULL,    /* custom screen pointer */
  264.     NULL,    /* custom bitmap */
  265.     -1,-1,    /* minimum width and height */
  266.     -1,-1,    /* maximum width and height */
  267.     CUSTOMSCREEN    /* destination screen type */
  268. };
  269.  
  270. struct Gadget FontStyleDown = {
  271.     NULL,    /* next gadget */
  272.     298,66, /* origin XY of hit box relative to window TopLeft */
  273.     18,9,    /* hit box width and height */
  274.     GADGIMAGE,    /* gadget flags */
  275.     RELVERIFY+GADGIMMEDIATE,    /* activation flags */
  276.     BOOLGADGET+REQGADGET,    /* gadget type flags */
  277.     (APTR)&GadgetDown,      /* gadget border or image to be rendered */
  278.     NULL,    /* alternate imagery for selection */
  279.     NULL,    /* first IntuiText structure */
  280.     NULL,    /* gadget mutual-exclude long word */
  281.     NULL,    /* SpecialInfo structure */
  282.     33,    /* user-definable data */
  283.     NULL    /* pointer to user-definable data */
  284. };
  285.  
  286. struct PropInfo FontFontStyleSInfo = {
  287.     AUTOKNOB+FREEVERT,    /* PropInfo flags */
  288.     -1,-1,    /* horizontal and vertical pot values */
  289.     -1,-1,    /* horizontal and vertical body values */
  290. };
  291.  
  292. struct Image FontImage5 = {
  293.     0,0,    /* XY origin relative to container TopLeft */
  294.     8,48,    /* Image width and height in pixels */
  295.     0,    /* number of bitplanes in Image */
  296.     NULL,    /* pointer to ImageData */
  297.     0x0000,0x0000,    /* PlanePick and PlaneOnOff */
  298.     NULL    /* next Image structure */
  299. };
  300.  
  301. struct Gadget FontStyle = {
  302.     &FontStyleDown, /* next gadget */
  303.     298,14, /* origin XY of hit box relative to window TopLeft */
  304.     16,52,    /* hit box width and height */
  305.     NULL,    /* gadget flags */
  306.     RELVERIFY+GADGIMMEDIATE,    /* activation flags */
  307.     PROPGADGET+REQGADGET,    /* gadget type flags */
  308.     (APTR)&FontImage5,      /* gadget border or image to be rendered */
  309.     NULL,    /* alternate imagery for selection */
  310.     NULL,    /* first IntuiText structure */
  311.     NULL,    /* gadget mutual-exclude long word */
  312.     (APTR)&FontFontStyleSInfo,      /* SpecialInfo structure */
  313.     32,    /* user-definable data */
  314.     NULL    /* pointer to user-definable data */
  315. };
  316.  
  317. struct Gadget FontStyleUp = {
  318.     &FontStyle,    /* next gadget */
  319.     298,5,    /* origin XY of hit box relative to window TopLeft */
  320.     18,9,    /* hit box width and height */
  321.     GADGIMAGE,    /* gadget flags */
  322.     RELVERIFY+GADGIMMEDIATE,    /* activation flags */
  323.     BOOLGADGET+REQGADGET,    /* gadget type flags */
  324.     (APTR)&GadgetUp,      /* gadget border or image to be rendered */
  325.     NULL,    /* alternate imagery for selection */
  326.     NULL,    /* first IntuiText structure */
  327.     NULL,    /* gadget mutual-exclude long word */
  328.     NULL,    /* SpecialInfo structure */
  329.     31,    /* user-definable data */
  330.     NULL    /* pointer to user-definable data */
  331. };
  332.  
  333. SHORT FontBorderVectors1[] = {
  334.     0,0,
  335.     60,0,
  336.     60,16,
  337.     0,16,
  338.     0,0
  339. };
  340. struct Border FontBorder1 = {
  341.     -1,-1,    /* XY origin relative to container TopLeft */
  342.     1,0,JAM1,    /* front pen, back pen and drawmode */
  343.     5,    /* number of XY vectors */
  344.     FontBorderVectors1,    /* pointer to XY vectors */
  345.     NULL    /* next border in list */
  346. };
  347.  
  348. struct IntuiText FontIText6 = {
  349.     1,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  350.     6,4,    /* XY origin relative to container TopLeft */
  351.     NULL,    /* font pointer or NULL for default */
  352.     "Cancel",       /* pointer to text */
  353.     NULL    /* next IntuiText structure */
  354. };
  355.  
  356. struct Gadget FontCancel = {
  357.     &FontStyleUp,    /* next gadget */
  358.     194,79, /* origin XY of hit box relative to window TopLeft */
  359.     59,15,    /* hit box width and height */
  360.     NULL,    /* gadget flags */
  361.     RELVERIFY+ENDGADGET,    /* activation flags */
  362.     BOOLGADGET+REQGADGET,    /* gadget type flags */
  363.     (APTR)&FontBorder1,     /* gadget border or image to be rendered */
  364.     NULL,    /* alternate imagery for selection */
  365.     &FontIText6,    /* first IntuiText structure */
  366.     NULL,    /* gadget mutual-exclude long word */
  367.     NULL,    /* SpecialInfo structure */
  368.     102,    /* user-definable data */
  369.     NULL    /* pointer to user-definable data */
  370. };
  371.  
  372. SHORT FontBorderVectors2[] = {
  373.     0,0,
  374.     60,0,
  375.     60,16,
  376.     0,16,
  377.     0,0
  378. };
  379. struct Border FontBorder2 = {
  380.     -1,-1,    /* XY origin relative to container TopLeft */
  381.     1,0,JAM1,    /* front pen, back pen and drawmode */
  382.     5,    /* number of XY vectors */
  383.     FontBorderVectors2,    /* pointer to XY vectors */
  384.     NULL    /* next border in list */
  385. };
  386.  
  387. struct IntuiText FontIText7 = {
  388.     1,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  389.     20,4,    /* XY origin relative to container TopLeft */
  390.     NULL,    /* font pointer or NULL for default */
  391.     "OK",   /* pointer to text */
  392.     NULL    /* next IntuiText structure */
  393. };
  394.  
  395. struct Gadget FontOK = {
  396.     &FontCancel,    /* next gadget */
  397.     67,79,    /* origin XY of hit box relative to window TopLeft */
  398.     59,15,    /* hit box width and height */
  399.     NULL,    /* gadget flags */
  400.     RELVERIFY+ENDGADGET,    /* activation flags */
  401.     BOOLGADGET+REQGADGET,    /* gadget type flags */
  402.     (APTR)&FontBorder2,     /* gadget border or image to be rendered */
  403.     NULL,    /* alternate imagery for selection */
  404.     &FontIText7,    /* first IntuiText structure */
  405.     NULL,    /* gadget mutual-exclude long word */
  406.     NULL,    /* SpecialInfo structure */
  407.     101,    /* user-definable data */
  408.     NULL    /* pointer to user-definable data */
  409. };
  410.  
  411. struct Gadget FontSizeDown = {
  412.     &FontOK,    /* next gadget */
  413.     232,66, /* origin XY of hit box relative to window TopLeft */
  414.     18,9,    /* hit box width and height */
  415.     GADGIMAGE,    /* gadget flags */
  416.     RELVERIFY+GADGIMMEDIATE,    /* activation flags */
  417.     BOOLGADGET+REQGADGET,    /* gadget type flags */
  418.     (APTR)&GadgetDown,      /* gadget border or image to be rendered */
  419.     NULL,    /* alternate imagery for selection */
  420.     NULL,    /* first IntuiText structure */
  421.     NULL,    /* gadget mutual-exclude long word */
  422.     NULL,    /* SpecialInfo structure */
  423.     23,    /* user-definable data */
  424.     NULL    /* pointer to user-definable data */
  425. };
  426.  
  427. struct PropInfo FontFontSizeSInfo = {
  428.     AUTOKNOB+FREEVERT,    /* PropInfo flags */
  429.     -1,-1,    /* horizontal and vertical pot values */
  430.     -1,-1,    /* horizontal and vertical body values */
  431. };
  432.  
  433. struct Image FontImage8 = {
  434.     0,0,    /* XY origin relative to container TopLeft */
  435.     8,48,    /* Image width and height in pixels */
  436.     0,    /* number of bitplanes in Image */
  437.     NULL,    /* pointer to ImageData */
  438.     0x0000,0x0000,    /* PlanePick and PlaneOnOff */
  439.     NULL    /* next Image structure */
  440. };
  441.  
  442. struct Gadget FontSize = {
  443.     &FontSizeDown,    /* next gadget */
  444.     232,14, /* origin XY of hit box relative to window TopLeft */
  445.     16,52,    /* hit box width and height */
  446.     NULL,    /* gadget flags */
  447.     RELVERIFY+GADGIMMEDIATE,    /* activation flags */
  448.     PROPGADGET+REQGADGET,    /* gadget type flags */
  449.     (APTR)&FontImage8,      /* gadget border or image to be rendered */
  450.     NULL,    /* alternate imagery for selection */
  451.     NULL,    /* first IntuiText structure */
  452.     NULL,    /* gadget mutual-exclude long word */
  453.     (APTR)&FontFontSizeSInfo,       /* SpecialInfo structure */
  454.     22,    /* user-definable data */
  455.     NULL    /* pointer to user-definable data */
  456. };
  457.  
  458. struct Gadget FontSizeUp = {
  459.     &FontSize,    /* next gadget */
  460.     232,5,    /* origin XY of hit box relative to window TopLeft */
  461.     18,9,    /* hit box width and height */
  462.     GADGIMAGE,    /* gadget flags */
  463.     RELVERIFY+GADGIMMEDIATE,    /* activation flags */
  464.     BOOLGADGET+REQGADGET,    /* gadget type flags */
  465.     (APTR)&GadgetUp,      /* gadget border or image to be rendered */
  466.     NULL,    /* alternate imagery for selection */
  467.     NULL,    /* first IntuiText structure */
  468.     NULL,    /* gadget mutual-exclude long word */
  469.     NULL,    /* SpecialInfo structure */
  470.     21,    /* user-definable data */
  471.     NULL    /* pointer to user-definable data */
  472. };
  473.  
  474. struct PropInfo FontFontFontSInfo = {
  475.     AUTOKNOB+FREEVERT,    /* PropInfo flags */
  476.     -1,-1,    /* horizontal and vertical pot values */
  477.     -1,-1,    /* horizontal and vertical body values */
  478. };
  479.  
  480. struct Image FontImage10 = {
  481.     0,0,    /* XY origin relative to container TopLeft */
  482.     8,48,    /* Image width and height in pixels */
  483.     0,    /* number of bitplanes in Image */
  484.     NULL,    /* pointer to ImageData */
  485.     0x0000,0x0000,    /* PlanePick and PlaneOnOff */
  486.     NULL    /* next Image structure */
  487. };
  488.  
  489. struct Gadget FontFont = {
  490.     &FontSizeUp,    /* next gadget */
  491.     176,14, /* origin XY of hit box relative to window TopLeft */
  492.     16,52,    /* hit box width and height */
  493.     NULL,    /* gadget flags */
  494.     RELVERIFY+GADGIMMEDIATE,    /* activation flags */
  495.     PROPGADGET+REQGADGET,    /* gadget type flags */
  496.     (APTR)&FontImage10,     /* gadget border or image to be rendered */
  497.     NULL,    /* alternate imagery for selection */
  498.     NULL,    /* first IntuiText structure */
  499.     NULL,    /* gadget mutual-exclude long word */
  500.     (APTR)&FontFontFontSInfo,       /* SpecialInfo structure */
  501.     12,    /* user-definable data */
  502.     NULL    /* pointer to user-definable data */
  503. };
  504.  
  505. struct Gadget FontFontDown = {
  506.     &FontFont,    /* next gadget */
  507.     176,66, /* origin XY of hit box relative to window TopLeft */
  508.     18,9,    /* hit box width and height */
  509.     GADGIMAGE,    /* gadget flags */
  510.     RELVERIFY+GADGIMMEDIATE,    /* activation flags */
  511.     BOOLGADGET+REQGADGET,    /* gadget type flags */
  512.     (APTR)&GadgetDown,     /* gadget border or image to be rendered */
  513.     NULL,    /* alternate imagery for selection */
  514.     NULL,    /* first IntuiText structure */
  515.     NULL,    /* gadget mutual-exclude long word */
  516.     NULL,    /* SpecialInfo structure */
  517.     13,    /* user-definable data */
  518.     NULL    /* pointer to user-definable data */
  519. };
  520.  
  521. struct Gadget FontFontUp = {
  522.     &FontFontDown,    /* next gadget */
  523.     176,5,    /* origin XY of hit box relative to window TopLeft */
  524.     18,9,    /* hit box width and height */
  525.     GADGIMAGE,    /* gadget flags */
  526.     RELVERIFY+GADGIMMEDIATE,    /* activation flags */
  527.     BOOLGADGET+REQGADGET,    /* gadget type flags */
  528.     (APTR)&GadgetUp,     /* gadget border or image to be rendered */
  529.     NULL,    /* alternate imagery for selection */
  530.     NULL,    /* first IntuiText structure */
  531.     NULL,    /* gadget mutual-exclude long word */
  532.     NULL,    /* SpecialInfo structure */
  533.     11,    /* user-definable data */
  534.     NULL    /* pointer to user-definable data */
  535. };
  536.  
  537. #define FontGadgetList2 FontFontUp
  538.  
  539. SHORT OutlineVectors3[] = {
  540.     0,0,
  541.     39,0,
  542.     39,69,
  543.     0,69,
  544.     0,0
  545. };
  546. struct Border Outline3 = {
  547.     253, 5,  /* XY origin relative to container TopLeft */
  548.     1,0,JAM1,    /* front pen, back pen and drawmode */
  549.     5,    /* number of XY vectors */
  550.     OutlineVectors3, /* pointer to XY vectors */
  551.     NULL    /* next border in list */
  552. };
  553.  
  554. SHORT OutlineVectors2[] = {
  555.     0,0,
  556.     29,0,
  557.     29,69,
  558.     0,69,
  559.     0,0
  560. };
  561. struct Border Outline2 = {
  562.     197, 5,  /* XY origin relative to container TopLeft */
  563.     1,0,JAM1,    /* front pen, back pen and drawmode */
  564.     5,    /* number of XY vectors */
  565.     OutlineVectors2, /* pointer to XY vectors */
  566.     &Outline3     /* next border in list */
  567. };
  568.  
  569. SHORT OutlineVectors1[] = {
  570.     0,0,
  571.     165,0,
  572.     165,69,
  573.     0,69,
  574.     0,0
  575. };
  576. struct Border Outline1 = {
  577.     5, 5,    /* XY origin relative to container TopLeft */
  578.     1,0,JAM1,    /* front pen, back pen and drawmode */
  579.     5,    /* number of XY vectors */
  580.     OutlineVectors1, /* pointer to XY vectors */
  581.     &Outline2     /* next border in list */
  582. };
  583.  
  584. SHORT Fontbordervectors[] = {
  585.     0,0,
  586.     319,0,
  587.     319,99,
  588.     0,99,
  589.     0,0
  590. };
  591. struct Border Fontborder = {
  592.     0, 0,  /* XY origin relative to container TopLeft */
  593.     1,0,JAM1,    /* front pen, back pen and drawmode */
  594.     5,    /* number of XY vectors */
  595.     Fontbordervectors, /* pointer to XY vectors */
  596.     &Outline1    /* next border in list */
  597. };
  598.  
  599. struct Requester FontRequesterStructure2 = {
  600.     NULL,    /* previous requester (filled in by Intuition) */
  601.     160,50, /* requester XY origin relative to TopLeft of window */
  602.     320,100,    /* requester width and height */
  603.     0,0,    /* relative to these mouse offsets if POINTREL is set */
  604.     &FontGadgetList2,    /* gadget list */
  605.     &Fontborder,   /* box's border */
  606.     NULL,    /* requester text */
  607.     NOISYREQ,   /* requester flags */
  608.     0,    /* back-plane fill pen */
  609.     NULL,    /* leave these alone */
  610.     NULL,    /* custom bitmap if PREDRAWN is set */
  611.     NULL    /* leave this alone */
  612. };
  613.  
  614. SHORT AboutBorderVectors3[] = {
  615.     0,0,
  616.     99,0,
  617.     99,25,
  618.     0,25,
  619.     0,0
  620. };
  621. struct Border AboutBorder3 = {
  622.     -1,-1,    /* XY origin relative to container TopLeft */
  623.     1,0,JAM1,    /* front pen, back pen and drawmode */
  624.     5,    /* number of XY vectors */
  625.     AboutBorderVectors3,    /* pointer to XY vectors */
  626.     NULL    /* next border in list */
  627. };
  628.  
  629. struct IntuiText AboutIText8 = {
  630.     1,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  631.     36,8,    /* XY origin relative to container TopLeft */
  632.     NULL,    /* font pointer or NULL for default */
  633.     "DUH",  /* pointer to text */
  634.     NULL    /* next IntuiText structure */
  635. };
  636.  
  637. struct Gadget AboutGadget5 = {
  638.     NULL,    /* next gadget */
  639.     55,65,    /* origin XY of hit box relative to window TopLeft */
  640.     98,24,    /* hit box width and height */
  641.     NULL,    /* gadget flags */
  642.     RELVERIFY+ENDGADGET,    /* activation flags */
  643.     BOOLGADGET+REQGADGET,    /* gadget type flags */
  644.     (APTR)&AboutBorder3,    /* gadget border or image to be rendered */
  645.     NULL,    /* alternate imagery for selection */
  646.     &AboutIText8,    /* first IntuiText structure */
  647.     NULL,    /* gadget mutual-exclude long word */
  648.     NULL,    /* SpecialInfo structure */
  649.     NULL,    /* user-definable data */
  650.     NULL    /* pointer to user-definable data */
  651. };
  652.  
  653. #define AboutGadgetList3 AboutGadget5
  654.  
  655. struct IntuiText AboutIText13 = {
  656.     1,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  657.     80,43,    /* XY origin relative to container TopLeft */
  658.     NULL,    /* font pointer or NULL for default */
  659.     "fonts.",       /* pointer to text */
  660.     NULL    /* next IntuiText structure */
  661. };
  662.  
  663. struct IntuiText AboutIText12 = {
  664.     1,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  665.     20,34,    /* XY origin relative to container TopLeft */
  666.     NULL,    /* font pointer or NULL for default */
  667.     "This program displays",        /* pointer to text */
  668.     &AboutIText13    /* next IntuiText structure */
  669. };
  670.  
  671. struct IntuiText AboutIText11 = {
  672.     1,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  673.     8,19,    /* XY origin relative to container TopLeft */
  674.     NULL,    /* font pointer or NULL for default */
  675.     "Last revision - 01/17/90",     /* pointer to text */
  676.     &AboutIText12    /* next IntuiText structure */
  677. };
  678.  
  679. struct IntuiText AboutIText10 = {
  680.     3,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  681.     20,10,    /* XY origin relative to container TopLeft */
  682.     NULL,    /* font pointer or NULL for default */
  683.     "by Arthur Johnson Jr.",        /* pointer to text */
  684.     &AboutIText11    /* next IntuiText structure */
  685. };
  686.  
  687. struct IntuiText AboutIText9 = {
  688.     3,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  689.     28,2,    /* XY origin relative to container TopLeft */
  690.     NULL,    /* font pointer or NULL for default */
  691.     "ShowFont 4.1 © 1990",  /* pointer to text */
  692.     &AboutIText10    /* next IntuiText structure */
  693. };
  694.  
  695. #define AboutIntuiTextList3 AboutIText9
  696.  
  697. SHORT Aboutbordervectors[] = {
  698.     0,0,
  699.     207,0,
  700.     207,99,
  701.     0,99,
  702.     0,0
  703. };
  704. struct Border Aboutborder = {
  705.     0, 0,  /* XY origin relative to container TopLeft */
  706.     1,0,JAM1,    /* front pen, back pen and drawmode */
  707.     5,    /* number of XY vectors */
  708.     Aboutbordervectors, /* pointer to XY vectors */
  709.     NULL    /* next border in list */
  710. };
  711.  
  712. struct Requester AboutRequesterStructure3 = {
  713.     NULL,    /* previous requester (filled in by Intuition) */
  714.     216,50, /* requester XY origin relative to TopLeft of window */
  715.     208,100,    /* requester width and height */
  716.     0,0,    /* relative to these mouse offsets if POINTREL is set */
  717.     &AboutGadgetList3,    /* gadget list */
  718.     &Aboutborder,    /* box's border */
  719.     &AboutIntuiTextList3,    /* requester text */
  720.     NULL,    /* requester flags */
  721.     0,    /* back-plane fill pen */
  722.     NULL,    /* leave these alone */
  723.     NULL,    /* custom bitmap if PREDRAWN is set */
  724.     NULL    /* leave this alone */
  725. };
  726.  
  727. SHORT FehBorderVectors4[] = {
  728.     0,0,
  729.     61,0,
  730.     61,21,
  731.     0,21,
  732.     0,0
  733. };
  734. struct Border FehBorder4 = {
  735.     -1,-1,    /* XY origin relative to container TopLeft */
  736.     1,0,JAM1,    /* front pen, back pen and drawmode */
  737.     5,    /* number of XY vectors */
  738.     FehBorderVectors4,    /* pointer to XY vectors */
  739.     NULL    /* next border in list */
  740. };
  741.  
  742. struct IntuiText FehIText14 = {
  743.     1,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  744.     18,6,    /* XY origin relative to container TopLeft */
  745.     NULL,    /* font pointer or NULL for default */
  746.     "FEH",  /* pointer to text */
  747.     NULL    /* next IntuiText structure */
  748. };
  749.  
  750. struct Gadget FehGadget6 = {
  751.     NULL,    /* next gadget */
  752.     70,25,    /* origin XY of hit box relative to window TopLeft */
  753.     60,20,    /* hit box width and height */
  754.     NULL,    /* gadget flags */
  755.     RELVERIFY+ENDGADGET,    /* activation flags */
  756.     BOOLGADGET+REQGADGET,    /* gadget type flags */
  757.     (APTR)&FehBorder4,      /* gadget border or image to be rendered */
  758.     NULL,    /* alternate imagery for selection */
  759.     &FehIText14,    /* first IntuiText structure */
  760.     NULL,    /* gadget mutual-exclude long word */
  761.     NULL,    /* SpecialInfo structure */
  762.     NULL,    /* user-definable data */
  763.     NULL    /* pointer to user-definable data */
  764. };
  765.  
  766. #define FehGadgetList4 FehGadget6
  767.  
  768. UBYTE errormessage[20];
  769. struct IntuiText FehIText15 = {
  770.     3,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  771.     40,5,    /* XY origin relative to container TopLeft */
  772.     NULL,    /* font pointer or NULL for default */
  773.     errormessage,       /* pointer to text */
  774.     NULL    /* next IntuiText structure */
  775. };
  776.  
  777. #define FehIntuiTextList4 FehIText15
  778.  
  779. SHORT Fehbordervectors[] = {
  780.     0,0,
  781.     199,0,
  782.     199,49,
  783.     0,49,
  784.     0,0
  785. };
  786. struct Border Fehborder = {
  787.     0, 0,  /* XY origin relative to container TopLeft */
  788.     1,0,JAM1,    /* front pen, back pen and drawmode */
  789.     5,    /* number of XY vectors */
  790.     Fehbordervectors, /* pointer to XY vectors */
  791.     NULL    /* next border in list */
  792. };
  793.  
  794. struct Requester FehRequesterStructure4 = {
  795.     NULL,    /* previous requester (filled in by Intuition) */
  796.     220,75, /* requester XY origin relative to TopLeft of window */
  797.     200,50, /* requester width and height */
  798.     0,0,    /* relative to these mouse offsets if POINTREL is set */
  799.     &FehGadgetList4,    /* gadget list */
  800.     &Fehborder,   /* box's border */
  801.     &FehIntuiTextList4,    /* requester text */
  802.     NULL,    /* requester flags */
  803.     0,    /* back-plane fill pen */
  804.     NULL,    /* leave these alone */
  805.     NULL,    /* custom bitmap if PREDRAWN is set */
  806.     NULL    /* leave this alone */
  807. };
  808.  
  809. SHORT ScreenBorderVectors5[] = {
  810.     0,0,
  811.     79,0,
  812.     79,12,
  813.     0,12,
  814.     0,0
  815. };
  816. struct Border ScreenBorder5 = {
  817.     -1,-1,    /* XY origin relative to container TopLeft */
  818.     1,0,JAM1,    /* front pen, back pen and drawmode */
  819.     5,    /* number of XY vectors */
  820.     ScreenBorderVectors5,    /* pointer to XY vectors */
  821.     NULL    /* next border in list */
  822. };
  823.  
  824. struct IntuiText ScreenIText16 = {
  825.     3,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  826.     3,2,    /* XY origin relative to container TopLeft */
  827.     NULL,    /* font pointer or NULL for default */
  828.     "32 colors",    /* pointer to text */
  829.     NULL    /* next IntuiText structure */
  830. };
  831.  
  832. struct Gadget ScreenGadget17 = {
  833.     NULL,    /* next gadget */
  834.     206,72, /* origin XY of hit box relative to window TopLeft */
  835.     78,11,    /* hit box width and height */
  836.     GADGDISABLED,    /* gadget flags */
  837.     RELVERIFY, /* activation flags */
  838.     BOOLGADGET+REQGADGET,    /* gadget type flags */
  839.     (APTR)&ScreenBorder5,   /* gadget border or image to be rendered */
  840.     NULL,    /* alternate imagery for selection */
  841.     &ScreenIText16, /* first IntuiText structure */
  842.     NULL,    /* gadget mutual-exclude long word */
  843.     NULL,    /* SpecialInfo structure */
  844.     5,   /* user-definable data */
  845.     NULL       /* pointer to user-definable data */
  846. };
  847.  
  848. SHORT ScreenBorderVectors6[] = {
  849.     0,0,
  850.     79,0,
  851.     79,12,
  852.     0,12,
  853.     0,0
  854. };
  855. struct Border ScreenBorder6 = {
  856.     -1,-1,    /* XY origin relative to container TopLeft */
  857.     1,0,JAM1,    /* front pen, back pen and drawmode */
  858.     5,    /* number of XY vectors */
  859.     ScreenBorderVectors6,    /* pointer to XY vectors */
  860.     NULL    /* next border in list */
  861. };
  862.  
  863. struct IntuiText ScreenIText17 = {
  864.     3,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  865.     3,2,    /* XY origin relative to container TopLeft */
  866.     NULL,    /* font pointer or NULL for default */
  867.     "16 colors",    /* pointer to text */
  868.     NULL    /* next IntuiText structure */
  869. };
  870.  
  871. struct Gadget ScreenGadget16 = {
  872.     &ScreenGadget17,    /* next gadget */
  873.     206,56, /* origin XY of hit box relative to window TopLeft */
  874.     78,11,    /* hit box width and height */
  875.     NULL,    /* gadget flags */
  876.     RELVERIFY, /* activation flags */
  877.     BOOLGADGET+REQGADGET,    /* gadget type flags */
  878.     (APTR)&ScreenBorder6,   /* gadget border or image to be rendered */
  879.     NULL,    /* alternate imagery for selection */
  880.     &ScreenIText17, /* first IntuiText structure */
  881.     NULL,    /* gadget mutual-exclude long word */
  882.     NULL,    /* SpecialInfo structure */
  883.     4,   /* user-definable data */
  884.     NULL       /* pointer to user-definable data */
  885. };
  886.  
  887. SHORT ScreenBorderVectors7[] = {
  888.     0,0,
  889.     79,0,
  890.     79,12,
  891.     0,12,
  892.     0,0
  893. };
  894. struct Border ScreenBorder7 = {
  895.     -1,-1,    /* XY origin relative to container TopLeft */
  896.     1,0,JAM1,    /* front pen, back pen and drawmode */
  897.     5,    /* number of XY vectors */
  898.     ScreenBorderVectors7,    /* pointer to XY vectors */
  899.     NULL    /* next border in list */
  900. };
  901.  
  902. struct IntuiText ScreenIText18 = {
  903.     3,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  904.     3,2,    /* XY origin relative to container TopLeft */
  905.     NULL,    /* font pointer or NULL for default */
  906.     " 8 colors",    /* pointer to text */
  907.     NULL    /* next IntuiText structure */
  908. };
  909.  
  910. struct Gadget ScreenGadget15 = {
  911.     &ScreenGadget16,    /* next gadget */
  912.     206,40, /* origin XY of hit box relative to window TopLeft */
  913.     78,11,    /* hit box width and height */
  914.     NULL,    /* gadget flags */
  915.     RELVERIFY, /* activation flags */
  916.     BOOLGADGET+REQGADGET,    /* gadget type flags */
  917.     (APTR)&ScreenBorder7,   /* gadget border or image to be rendered */
  918.     NULL,    /* alternate imagery for selection */
  919.     &ScreenIText18, /* first IntuiText structure */
  920.     NULL,    /* gadget mutual-exclude long word */
  921.     NULL,    /* SpecialInfo structure */
  922.     3,   /* user-definable data */
  923.     NULL       /* pointer to user-definable data */
  924. };
  925.  
  926. SHORT ScreenBorderVectors8[] = {
  927.     0,0,
  928.     79,0,
  929.     79,12,
  930.     0,12,
  931.     0,0
  932. };
  933. struct Border ScreenBorder8 = {
  934.     -1,-1,    /* XY origin relative to container TopLeft */
  935.     1,0,JAM1,    /* front pen, back pen and drawmode */
  936.     5,    /* number of XY vectors */
  937.     ScreenBorderVectors8,    /* pointer to XY vectors */
  938.     NULL    /* next border in list */
  939. };
  940.  
  941. struct IntuiText ScreenIText19 = {
  942.     3,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  943.     3,2,    /* XY origin relative to container TopLeft */
  944.     NULL,    /* font pointer or NULL for default */
  945.     " 4 colors",    /* pointer to text */
  946.     NULL    /* next IntuiText structure */
  947. };
  948.  
  949. struct Gadget ScreenGadget14 = {
  950.     &ScreenGadget15,    /* next gadget */
  951.     206,24, /* origin XY of hit box relative to window TopLeft */
  952.     78,11,    /* hit box width and height */
  953.     SELECTED,    /* gadget flags */
  954.     RELVERIFY, /* activation flags */
  955.     BOOLGADGET+REQGADGET,    /* gadget type flags */
  956.     (APTR)&ScreenBorder8,   /* gadget border or image to be rendered */
  957.     NULL,    /* alternate imagery for selection */
  958.     &ScreenIText19, /* first IntuiText structure */
  959.     NULL,    /* gadget mutual-exclude long word */
  960.     NULL,    /* SpecialInfo structure */
  961.     2,   /* user-definable data */
  962.     NULL       /* pointer to user-definable data */
  963. };
  964.  
  965. SHORT ScreenBorderVectors9[] = {
  966.     0,0,
  967.     79,0,
  968.     79,12,
  969.     0,12,
  970.     0,0
  971. };
  972. struct Border ScreenBorder9 = {
  973.     -1,-1,    /* XY origin relative to container TopLeft */
  974.     1,0,JAM1,    /* front pen, back pen and drawmode */
  975.     5,    /* number of XY vectors */
  976.     ScreenBorderVectors9,    /* pointer to XY vectors */
  977.     NULL    /* next border in list */
  978. };
  979.  
  980. struct IntuiText ScreenIText20 = {
  981.     3,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  982.     3,2,    /* XY origin relative to container TopLeft */
  983.     NULL,    /* font pointer or NULL for default */
  984.     " 2 colors",    /* pointer to text */
  985.     NULL    /* next IntuiText structure */
  986. };
  987.  
  988. struct Gadget ScreenGadget13 = {
  989.     &ScreenGadget14,    /* next gadget */
  990.     206,8,    /* origin XY of hit box relative to window TopLeft */
  991.     78,11,    /* hit box width and height */
  992.     NULL,    /* gadget flags */
  993.     RELVERIFY, /* activation flags */
  994.     BOOLGADGET+REQGADGET,    /* gadget type flags */
  995.     (APTR)&ScreenBorder9,   /* gadget border or image to be rendered */
  996.     NULL,    /* alternate imagery for selection */
  997.     &ScreenIText20, /* first IntuiText structure */
  998.     NULL,    /* gadget mutual-exclude long word */
  999.     NULL,    /* SpecialInfo structure */
  1000.     1,    /* user-definable data */
  1001.     NULL       /* pointer to user-definable data */
  1002. };
  1003.  
  1004. SHORT ScreenBorderVectors10[] = {
  1005.     0,0,
  1006.     79,0,
  1007.     79,12,
  1008.     0,12,
  1009.     0,0
  1010. };
  1011. struct Border ScreenBorder10 = {
  1012.     -1,-1,    /* XY origin relative to container TopLeft */
  1013.     1,0,JAM1,    /* front pen, back pen and drawmode */
  1014.     5,    /* number of XY vectors */
  1015.     ScreenBorderVectors10,    /* pointer to XY vectors */
  1016.     NULL    /* next border in list */
  1017. };
  1018.  
  1019. struct IntuiText ScreenIText21 = {
  1020.     3,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  1021.     3,2,    /* XY origin relative to container TopLeft */
  1022.     NULL,    /* font pointer or NULL for default */
  1023.     "640 x 400",    /* pointer to text */
  1024.     NULL    /* next IntuiText structure */
  1025. };
  1026.  
  1027. struct Gadget ScreenGadget12 = {
  1028.     &ScreenGadget13,    /* next gadget */
  1029.     16,71,    /* origin XY of hit box relative to window TopLeft */
  1030.     78,11,    /* hit box width and height */
  1031.     NULL,    /* gadget flags */
  1032.     RELVERIFY, /* activation flags */
  1033.     BOOLGADGET+REQGADGET,    /* gadget type flags */
  1034.     (APTR)&ScreenBorder10,  /* gadget border or image to be rendered */
  1035.     NULL,    /* alternate imagery for selection */
  1036.     &ScreenIText21, /* first IntuiText structure */
  1037.     NULL,    /* gadget mutual-exclude long word */
  1038.     NULL,    /* SpecialInfo structure */
  1039.     14,   /* user-definable data */
  1040.     NULL      /* pointer to user-definable data */
  1041. };
  1042.  
  1043. SHORT ScreenBorderVectors11[] = {
  1044.     0,0,
  1045.     79,0,
  1046.     79,12,
  1047.     0,12,
  1048.     0,0
  1049. };
  1050. struct Border ScreenBorder11 = {
  1051.     -1,-1,    /* XY origin relative to container TopLeft */
  1052.     1,0,JAM1,    /* front pen, back pen and drawmode */
  1053.     5,    /* number of XY vectors */
  1054.     ScreenBorderVectors11,    /* pointer to XY vectors */
  1055.     NULL    /* next border in list */
  1056. };
  1057.  
  1058. struct IntuiText ScreenIText22 = {
  1059.     3,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  1060.     3,2,    /* XY origin relative to container TopLeft */
  1061.     NULL,    /* font pointer or NULL for default */
  1062.     "640 x 200",    /* pointer to text */
  1063.     NULL    /* next IntuiText structure */
  1064. };
  1065.  
  1066. struct Gadget ScreenGadget11 = {
  1067.     &ScreenGadget12,    /* next gadget */
  1068.     16,50,    /* origin XY of hit box relative to window TopLeft */
  1069.     78,11,    /* hit box width and height */
  1070.     SELECTED,    /* gadget flags */
  1071.     RELVERIFY, /* activation flags */
  1072.     BOOLGADGET+REQGADGET,    /* gadget type flags */
  1073.     (APTR)&ScreenBorder11,  /* gadget border or image to be rendered */
  1074.     NULL,    /* alternate imagery for selection */
  1075.     &ScreenIText22, /* first IntuiText structure */
  1076.     NULL,    /* gadget mutual-exclude long word */
  1077.     NULL,    /* SpecialInfo structure */
  1078.     13,   /* user-definable data */
  1079.     NULL      /* pointer to user-definable data */
  1080. };
  1081.  
  1082. SHORT ScreenBorderVectors12[] = {
  1083.     0,0,
  1084.     79,0,
  1085.     79,12,
  1086.     0,12,
  1087.     0,0
  1088. };
  1089. struct Border ScreenBorder12 = {
  1090.     -1,-1,    /* XY origin relative to container TopLeft */
  1091.     1,0,JAM1,    /* front pen, back pen and drawmode */
  1092.     5,    /* number of XY vectors */
  1093.     ScreenBorderVectors12,    /* pointer to XY vectors */
  1094.     NULL    /* next border in list */
  1095. };
  1096.  
  1097. struct IntuiText ScreenIText23 = {
  1098.     3,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  1099.     3,2,    /* XY origin relative to container TopLeft */
  1100.     NULL,    /* font pointer or NULL for default */
  1101.     "320 x 400",    /* pointer to text */
  1102.     NULL    /* next IntuiText structure */
  1103. };
  1104.  
  1105. struct Gadget ScreenGadget10 = {
  1106.     &ScreenGadget11,    /* next gadget */
  1107.     16,29,    /* origin XY of hit box relative to window TopLeft */
  1108.     78,11,    /* hit box width and height */
  1109.     NULL,    /* gadget flags */
  1110.     RELVERIFY, /* activation flags */
  1111.     BOOLGADGET+REQGADGET,    /* gadget type flags */
  1112.     (APTR)&ScreenBorder12,  /* gadget border or image to be rendered */
  1113.     NULL,    /* alternate imagery for selection */
  1114.     &ScreenIText23, /* first IntuiText structure */
  1115.     NULL,    /* gadget mutual-exclude long word */
  1116.     NULL,    /* SpecialInfo structure */
  1117.     12,   /* user-definable data */
  1118.     NULL      /* pointer to user-definable data */
  1119. };
  1120.  
  1121. SHORT ScreenBorderVectors13[] = {
  1122.     0,0,
  1123.     79,0,
  1124.     79,12,
  1125.     0,12,
  1126.     0,0
  1127. };
  1128. struct Border ScreenBorder13 = {
  1129.     -1,-1,    /* XY origin relative to container TopLeft */
  1130.     1,0,JAM1,    /* front pen, back pen and drawmode */
  1131.     5,    /* number of XY vectors */
  1132.     ScreenBorderVectors13,    /* pointer to XY vectors */
  1133.     NULL    /* next border in list */
  1134. };
  1135.  
  1136. struct IntuiText ScreenIText24 = {
  1137.     3,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  1138.     3,2,    /* XY origin relative to container TopLeft */
  1139.     NULL,    /* font pointer or NULL for default */
  1140.     "320 x 200",    /* pointer to text */
  1141.     NULL    /* next IntuiText structure */
  1142. };
  1143.  
  1144. struct Gadget ScreenGadget9 = {
  1145.     &ScreenGadget10,    /* next gadget */
  1146.     16,8,    /* origin XY of hit box relative to window TopLeft */
  1147.     78,11,    /* hit box width and height */
  1148.     NULL,    /* gadget flags */
  1149.     RELVERIFY, /* activation flags */
  1150.     BOOLGADGET+REQGADGET,    /* gadget type flags */
  1151.     (APTR)&ScreenBorder13,  /* gadget border or image to be rendered */
  1152.     NULL,    /* alternate imagery for selection */
  1153.     &ScreenIText24, /* first IntuiText structure */
  1154.     NULL,    /* gadget mutual-exclude long word */
  1155.     NULL,    /* SpecialInfo structure */
  1156.     11,   /* user-definable data */
  1157.     NULL      /* pointer to user-definable data */
  1158. };
  1159.  
  1160. SHORT ScreenBorderVectors14[] = {
  1161.     0,0,
  1162.     60,0,
  1163.     60,16,
  1164.     0,16,
  1165.     0,0
  1166. };
  1167. struct Border ScreenBorder14 = {
  1168.     -1,-1,    /* XY origin relative to container TopLeft */
  1169.     1,0,JAM1,    /* front pen, back pen and drawmode */
  1170.     5,    /* number of XY vectors */
  1171.     ScreenBorderVectors14,    /* pointer to XY vectors */
  1172.     NULL    /* next border in list */
  1173. };
  1174.  
  1175. struct IntuiText ScreenIText25 = {
  1176.     1,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  1177.     6,4,    /* XY origin relative to container TopLeft */
  1178.     NULL,    /* font pointer or NULL for default */
  1179.     "Cancel",       /* pointer to text */
  1180.     NULL    /* next IntuiText structure */
  1181. };
  1182.  
  1183. struct Gadget ScreenCancel = {
  1184.     &ScreenGadget9, /* next gadget */
  1185.     123,62, /* origin XY of hit box relative to window TopLeft */
  1186.     59,15,    /* hit box width and height */
  1187.     NULL,    /* gadget flags */
  1188.     RELVERIFY+ENDGADGET,    /* activation flags */
  1189.     BOOLGADGET+REQGADGET,    /* gadget type flags */
  1190.     (APTR)&ScreenBorder14,  /* gadget border or image to be rendered */
  1191.     NULL,    /* alternate imagery for selection */
  1192.     &ScreenIText25, /* first IntuiText structure */
  1193.     NULL,    /* gadget mutual-exclude long word */
  1194.     NULL,    /* SpecialInfo structure */
  1195.     102,    /* user-definable data */
  1196.     NULL    /* pointer to user-definable data */
  1197. };
  1198.  
  1199. SHORT ScreenBorderVectors15[] = {
  1200.     0,0,
  1201.     60,0,
  1202.     60,16,
  1203.     0,16,
  1204.     0,0
  1205. };
  1206. struct Border ScreenBorder15 = {
  1207.     -1,-1,    /* XY origin relative to container TopLeft */
  1208.     1,0,JAM1,    /* front pen, back pen and drawmode */
  1209.     5,    /* number of XY vectors */
  1210.     ScreenBorderVectors15,    /* pointer to XY vectors */
  1211.     NULL    /* next border in list */
  1212. };
  1213.  
  1214. struct IntuiText ScreenIText26 = {
  1215.     1,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  1216.     20,4,    /* XY origin relative to container TopLeft */
  1217.     NULL,    /* font pointer or NULL for default */
  1218.     "OK",   /* pointer to text */
  1219.     NULL    /* next IntuiText structure */
  1220. };
  1221.  
  1222. struct Gadget ScreenOK = {
  1223.     &ScreenCancel,    /* next gadget */
  1224.     123,14, /* origin XY of hit box relative to window TopLeft */
  1225.     59,15,    /* hit box width and height */
  1226.     NULL,    /* gadget flags */
  1227.     RELVERIFY+ENDGADGET,    /* activation flags */
  1228.     BOOLGADGET+REQGADGET,    /* gadget type flags */
  1229.     (APTR)&ScreenBorder15,  /* gadget border or image to be rendered */
  1230.     NULL,    /* alternate imagery for selection */
  1231.     &ScreenIText26, /* first IntuiText structure */
  1232.     NULL,    /* gadget mutual-exclude long word */
  1233.     NULL,    /* SpecialInfo structure */
  1234.     101,    /* user-definable data */
  1235.     NULL    /* pointer to user-definable data */
  1236. };
  1237.  
  1238. #define ScreenGadgetList5 ScreenOK
  1239.  
  1240. SHORT Screenbordervectors[] = {
  1241.     0,0,
  1242.     299,0,
  1243.     299,89,
  1244.     0,89,
  1245.     0,0
  1246. };
  1247. struct Border Screenborder = {
  1248.     0, 0,  /* XY origin relative to container TopLeft */
  1249.     1,0,JAM1,    /* front pen, back pen and drawmode */
  1250.     5,    /* number of XY vectors */
  1251.     Screenbordervectors, /* pointer to XY vectors */
  1252.     NULL    /* next border in list */
  1253. };
  1254.  
  1255. struct Requester ScreenRequesterStructure5 = {
  1256.     NULL,    /* previous requester (filled in by Intuition) */
  1257.     170,55, /* requester XY origin relative to TopLeft of window */
  1258.     300,90, /* requester width and height */
  1259.     0,0,    /* relative to these mouse offsets if POINTREL is set */
  1260.     &ScreenGadgetList5,    /* gadget list */
  1261.     &Screenborder,     /* box's border */
  1262.     NULL,    /* requester text */
  1263.     NOISYREQ,   /* requester flags */
  1264.     0,    /* back-plane fill pen */
  1265.     NULL,    /* leave these alone */
  1266.     NULL,    /* custom bitmap if PREDRAWN is set */
  1267.     NULL    /* leave this alone */
  1268. };
  1269.  
  1270. UBYTE DirDirNewDirSIBuff[30];
  1271. struct StringInfo DirDirNewDirSInfo = {
  1272.     DirDirNewDirSIBuff,    /* buffer where text will be edited */
  1273.     NULL,    /* optional undo buffer */
  1274.     0,    /* character position in buffer */
  1275.     30,    /* maximum number of characters to allow */
  1276.     0,    /* first displayed character buffer position */
  1277.     0,0,0,0,0,    /* Intuition initialized and maintained variables */
  1278.     0,    /* Rastport of gadget */
  1279.     0,    /* initial value for integer gadgets */
  1280.     NULL    /* alternate keymap (fill in if you set the flag) */
  1281. };
  1282.  
  1283. SHORT DirBorderVectors16[] = {
  1284.     0,0,
  1285.     159,0,
  1286.     159,11,
  1287.     0,11,
  1288.     0,0
  1289. };
  1290. struct Border DirBorder16 = {
  1291.     -2,-2,    /* XY origin relative to container TopLeft */
  1292.     1,0,JAM1,    /* front pen, back pen and drawmode */
  1293.     5,    /* number of XY vectors */
  1294.     DirBorderVectors16,    /* pointer to XY vectors */
  1295.     NULL    /* next border in list */
  1296. };
  1297.  
  1298. struct Gadget DirNewDir = {
  1299.     NULL,    /* next gadget */
  1300.     22,13,    /* origin XY of hit box relative to window TopLeft */
  1301.     156,10, /* hit box width and height */
  1302.     NULL,    /* gadget flags */
  1303.     NULL,    /* activation flags */
  1304.     STRGADGET + REQGADGET,      /* gadget type flags */
  1305.     (APTR)&DirBorder16,     /* gadget border or image to be rendered */
  1306.     NULL,    /* alternate imagery for selection */
  1307.     NULL,    /* first IntuiText structure */
  1308.     NULL,    /* gadget mutual-exclude long word */
  1309.     (APTR)&DirDirNewDirSInfo,       /* SpecialInfo structure */
  1310.     1,    /* user-definable data */
  1311.     NULL    /* pointer to user-definable data */
  1312. };
  1313.  
  1314. SHORT DirBorderVectors17[] = {
  1315.     0,0,
  1316.     60,0,
  1317.     60,16,
  1318.     0,16,
  1319.     0,0
  1320. };
  1321. struct Border DirBorder17 = {
  1322.     -1,-1,    /* XY origin relative to container TopLeft */
  1323.     1,0,JAM1,    /* front pen, back pen and drawmode */
  1324.     5,    /* number of XY vectors */
  1325.     DirBorderVectors17,    /* pointer to XY vectors */
  1326.     NULL    /* next border in list */
  1327. };
  1328.  
  1329. struct IntuiText DirIText27 = {
  1330.     1,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  1331.     6,4,    /* XY origin relative to container TopLeft */
  1332.     NULL,    /* font pointer or NULL for default */
  1333.     "Cancel",       /* pointer to text */
  1334.     NULL    /* next IntuiText structure */
  1335. };
  1336.  
  1337. struct Gadget DirCancel = {
  1338.     &DirNewDir,    /* next gadget */
  1339.     119,28, /* origin XY of hit box relative to window TopLeft */
  1340.     59,15,    /* hit box width and height */
  1341.     NULL,    /* gadget flags */
  1342.     RELVERIFY+ENDGADGET,    /* activation flags */
  1343.     BOOLGADGET+REQGADGET,    /* gadget type flags */
  1344.     (APTR)&DirBorder17,     /* gadget border or image to be rendered */
  1345.     NULL,    /* alternate imagery for selection */
  1346.     &DirIText27,    /* first IntuiText structure */
  1347.     NULL,    /* gadget mutual-exclude long word */
  1348.     NULL,    /* SpecialInfo structure */
  1349.     102,    /* user-definable data */
  1350.     NULL    /* pointer to user-definable data */
  1351. };
  1352.  
  1353. SHORT DirBorderVectors19[] = {
  1354.     0,0,
  1355.     60,0,
  1356.     60,16,
  1357.     0,16,
  1358.     0,0
  1359. };
  1360. struct Border DirBorder19 = {
  1361.     -1,-1,    /* XY origin relative to container TopLeft */
  1362.     1,0,JAM1,    /* front pen, back pen and drawmode */
  1363.     5,    /* number of XY vectors */
  1364.     DirBorderVectors19,    /* pointer to XY vectors */
  1365.     NULL    /* next border in list */
  1366. };
  1367.  
  1368. struct IntuiText DirIText29 = {
  1369.     1,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  1370.     20,4,    /* XY origin relative to container TopLeft */
  1371.     NULL,    /* font pointer or NULL for default */
  1372.     "OK",   /* pointer to text */
  1373.     NULL    /* next IntuiText structure */
  1374. };
  1375.  
  1376. struct Gadget DirOK = {
  1377.     &DirCancel,    /* next gadget */
  1378.     22,28,    /* origin XY of hit box relative to window TopLeft */
  1379.     59,15,    /* hit box width and height */
  1380.     NULL,    /* gadget flags */
  1381.     RELVERIFY+ENDGADGET,    /* activation flags */
  1382.     BOOLGADGET+REQGADGET,    /* gadget type flags */
  1383.     (APTR)&DirBorder19,     /* gadget border or image to be rendered */
  1384.     NULL,    /* alternate imagery for selection */
  1385.     &DirIText29,    /* first IntuiText structure */
  1386.     NULL,    /* gadget mutual-exclude long word */
  1387.     NULL,    /* SpecialInfo structure */
  1388.     101,    /* user-definable data */
  1389.     NULL    /* pointer to user-definable data */
  1390. };
  1391.  
  1392. #define DirGadgetList6 DirOK
  1393.  
  1394. struct IntuiText DirIText30 = {
  1395.     3,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  1396.     21,3,    /* XY origin relative to container TopLeft */
  1397.     NULL,    /* font pointer or NULL for default */
  1398.     "New FONTS: dir?",     /* pointer to text */
  1399.     NULL    /* next IntuiText structure */
  1400. };
  1401.  
  1402. #define DirIntuiTextList6 DirIText30
  1403.  
  1404. SHORT Dirbordervectors[] = {
  1405.     0,0,
  1406.     199,0,
  1407.     199,49,
  1408.     0,49,
  1409.     0,0
  1410. };
  1411. struct Border Dirborder = {
  1412.     0, 0,  /* XY origin relative to container TopLeft */
  1413.     1,0,JAM1,    /* front pen, back pen and drawmode */
  1414.     5,    /* number of XY vectors */
  1415.     Dirbordervectors, /* pointer to XY vectors */
  1416.     NULL    /* next border in list */
  1417. };
  1418.  
  1419. struct Requester DirRequesterStructure6 = {
  1420.     NULL,    /* previous requester (filled in by Intuition) */
  1421.     220,75, /* requester XY origin relative to TopLeft of window */
  1422.     200,50, /* requester width and height */
  1423.     0,0,    /* relative to these mouse offsets if POINTREL is set */
  1424.     &DirGadgetList6,    /* gadget list */
  1425.     &Dirborder,   /* box's border */
  1426.     &DirIntuiTextList6,    /* requester text */
  1427.     NOISYREQ,   /* requester flags */
  1428.     0,    /* back-plane fill pen */
  1429.     NULL,    /* leave these alone */
  1430.     NULL,    /* custom bitmap if PREDRAWN is set */
  1431.     NULL    /* leave this alone */
  1432. };
  1433.