home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_disks / 200-299 / ff276.lzh / DateRequester / MRDateReq.pw.c < prev    next >
Text File  |  1989-11-09  |  37KB  |  1,029 lines

  1.  
  2. static UBYTE UNDOBUFFER[5];
  3.  
  4. static SHORT BorderVectors1[] = {
  5.   0,0,
  6.   311,0,
  7.   311,123,
  8.   0,123,
  9.   0,0
  10. };
  11. static struct Border Border1 = {
  12.   0,0,  /* XY origin relative to container TopLeft */
  13.   1,0,JAM1,  /* front pen, back pen and drawmode */
  14.   5,  /* number of XY vectors */
  15.   BorderVectors1,  /* pointer to XY vectors */
  16.   NULL  /* next border in list */
  17. };
  18.  
  19. static struct Gadget Gadget30 = {
  20.   NULL,  /* next gadget */
  21.   0,0,  /* origin XY of hit box relative to window TopLeft */
  22.   1,1,  /* hit box width and height */
  23.   GADGHBOX+GADGHIMAGE,  /* gadget flags */
  24.   NULL,  /* activation flags */
  25.   BOOLGADGET+REQGADGET,  /* gadget type flags */
  26.   (APTR)&Border1,  /* gadget border or image to be rendered */
  27.   NULL,  /* alternate imagery for selection */
  28.   NULL,  /* first IntuiText structure */
  29.   NULL,  /* gadget mutual-exclude long word */
  30.   NULL,  /* SpecialInfo structure */
  31.   NULL,  /* user-definable data */
  32.   NULL  /* pointer to user-definable data */
  33. };
  34.  
  35. static UBYTE promptGadgetSIBuff[41] =
  36.   "Select the date and date format:";
  37. static struct StringInfo promptGadgetSInfo = {
  38.   promptGadgetSIBuff,  /* buffer where text will be edited */
  39.   NULL,  /* optional undo buffer */
  40.   0,  /* character position in buffer */
  41.   41,  /* maximum number of characters to allow */
  42.   0,  /* first displayed character buffer position */
  43.   0,0,0,0,0,  /* Intuition initialized and maintained variables */
  44.   0,  /* Rastport of gadget */
  45.   0,  /* initial value for integer gadgets */
  46.   NULL  /* alternate keymap (fill in if you set the flag) */
  47. };
  48.  
  49. static SHORT BorderVectors2[] = {
  50.   0,0,
  51.   292,0,
  52.   292,10,
  53.   0,10,
  54.   0,0
  55. };
  56. static struct Border Border2 = {
  57.   -1,-1,  /* XY origin relative to container TopLeft */
  58.   0,0,JAM1,  /* front pen, back pen and drawmode */
  59.   5,  /* number of XY vectors */
  60.   BorderVectors2,  /* pointer to XY vectors */
  61.   NULL  /* next border in list */
  62. };
  63.  
  64. static struct Gadget promptGadget = {
  65.   &Gadget30,  /* next gadget */
  66.   11,45,  /* origin XY of hit box relative to window TopLeft */
  67.   291,9,  /* hit box width and height */
  68.   NULL,  /* gadget flags */
  69.   NULL,  /* activation flags */
  70.   STRGADGET+REQGADGET,  /* gadget type flags */
  71.   (APTR)&Border2,  /* gadget border or image to be rendered */
  72.   NULL,  /* alternate imagery for selection */
  73.   NULL,  /* first IntuiText structure */
  74.   NULL,  /* gadget mutual-exclude long word */
  75.   (APTR)&promptGadgetSInfo,  /* SpecialInfo structure */
  76.   PROMPT_GADGET,  /* user-definable data */
  77.   NULL  /* pointer to user-definable data */
  78. };
  79.  
  80. static SHORT BorderVectors3[] = {
  81.   0,0,
  82.   65,0,
  83.   65,9,
  84.   0,9,
  85.   0,0
  86. };
  87. static struct Border Border3 = {
  88.   -1,-1,  /* XY origin relative to container TopLeft */
  89.   3,0,JAM1,  /* front pen, back pen and drawmode */
  90.   5,  /* number of XY vectors */
  91.   BorderVectors3,  /* pointer to XY vectors */
  92.   NULL  /* next border in list */
  93. };
  94.  
  95. static struct IntuiText IText1 = {
  96.   2,1,JAM2,  /* front and back text pens, drawmode and fill byte */
  97.   0,0,  /* XY origin relative to container TopLeft */
  98.   NULL,  /* font pointer or NULL for default */
  99.   (UBYTE *)" + WEEK ",  /* pointer to text */
  100.   NULL  /* next IntuiText structure */
  101. };
  102.  
  103. static struct Gadget weekPlusGadget = {
  104.   &promptGadget,  /* next gadget */
  105.   113,56,  /* origin XY of hit box relative to window TopLeft */
  106.   64,8,  /* hit box width and height */
  107.   GADGHBOX,  /* gadget flags */
  108.   RELVERIFY+GADGIMMEDIATE,  /* activation flags */
  109.   BOOLGADGET+REQGADGET,  /* gadget type flags */
  110.   (APTR)&Border3,  /* gadget border or image to be rendered */
  111.   NULL,  /* alternate imagery for selection */
  112.   &IText1,  /* first IntuiText structure */
  113.   NULL,  /* gadget mutual-exclude long word */
  114.   NULL,  /* SpecialInfo structure */
  115.   WEEK_PLUS_GADGET,  /* user-definable data */
  116.   NULL  /* pointer to user-definable data */
  117. };
  118.  
  119. static SHORT BorderVectors4[] = {
  120.   0,0,
  121.   65,0,
  122.   65,9,
  123.   0,9,
  124.   0,0
  125. };
  126. static struct Border Border4 = {
  127.   -1,-1,  /* XY origin relative to container TopLeft */
  128.   3,0,JAM1,  /* front pen, back pen and drawmode */
  129.   5,  /* number of XY vectors */
  130.   BorderVectors4,  /* pointer to XY vectors */
  131.   NULL  /* next border in list */
  132. };
  133.  
  134. static struct IntuiText IText2 = {
  135.   2,1,JAM2,  /* front and back text pens, drawmode and fill byte */
  136.   0,0,  /* XY origin relative to container TopLeft */
  137.   NULL,  /* font pointer or NULL for default */
  138.   (UBYTE *)" - WEEK ",  /* pointer to text */
  139.   NULL  /* next IntuiText structure */
  140. };
  141.  
  142. static struct Gadget weekMinusGadget = {
  143.   &weekPlusGadget,  /* next gadget */
  144.   25,56,  /* origin XY of hit box relative to window TopLeft */
  145.   64,8,  /* hit box width and height */
  146.   GADGHBOX,  /* gadget flags */
  147.   RELVERIFY+GADGIMMEDIATE,  /* activation flags */
  148.   BOOLGADGET+REQGADGET,  /* gadget type flags */
  149.   (APTR)&Border4,  /* gadget border or image to be rendered */
  150.   NULL,  /* alternate imagery for selection */
  151.   &IText2,  /* first IntuiText structure */
  152.   NULL,  /* gadget mutual-exclude long word */
  153.   NULL,  /* SpecialInfo structure */
  154.   WEEK_MINUS_GADGET,  /* user-definable data */
  155.   NULL  /* pointer to user-definable data */
  156. };
  157.  
  158. static UBYTE dayNameGadgetSIBuff[11];
  159. static struct StringInfo dayNameGadgetSInfo = {
  160.   dayNameGadgetSIBuff,  /* buffer where text will be edited */
  161.   NULL,  /* optional undo buffer */
  162.   0,  /* character position in buffer */
  163.   11,  /* maximum number of characters to allow */
  164.   0,  /* first displayed character buffer position */
  165.   0,0,0,0,0,  /* Intuition initialized and maintained variables */
  166.   0,  /* Rastport of gadget */
  167.   0,  /* initial value for integer gadgets */
  168.   NULL  /* alternate keymap (fill in if you set the flag) */
  169. };
  170.  
  171. static struct IntuiText IText3 = {
  172.   2,1,JAM2,  /* front and back text pens, drawmode and fill byte */
  173.   -42,0,  /* XY origin relative to container TopLeft */
  174.   NULL,  /* font pointer or NULL for default */
  175.   (UBYTE *)" Day ",  /* pointer to text */
  176.   NULL  /* next IntuiText structure */
  177. };
  178.  
  179. static struct Gadget dayNameGadget = {
  180.   &weekMinusGadget,  /* next gadget */
  181.   130,96,  /* origin XY of hit box relative to window TopLeft */
  182.   80,8,  /* hit box width and height */
  183.   GADGHBOX+GADGHIMAGE,  /* gadget flags */
  184.   NULL,  /* activation flags */
  185.   STRGADGET+REQGADGET,  /* gadget type flags */
  186.   NULL,  /* gadget border or image to be rendered */
  187.   NULL,  /* alternate imagery for selection */
  188.   &IText3,  /* first IntuiText structure */
  189.   NULL,  /* gadget mutual-exclude long word */
  190.   (APTR)&dayNameGadgetSInfo,  /* SpecialInfo structure */
  191.   DAYNAME_GADGET,  /* user-definable data */
  192.   NULL  /* pointer to user-definable data */
  193. };
  194.  
  195. static SHORT BorderVectors5[] = {
  196.   0,0,
  197.   65,0,
  198.   65,9,
  199.   0,9,
  200.   0,0
  201. };
  202. static struct Border Border5 = {
  203.   -1,-1,  /* XY origin relative to container TopLeft */
  204.   3,0,JAM1,  /* front pen, back pen and drawmode */
  205.   5,  /* number of XY vectors */
  206.   BorderVectors5,  /* pointer to XY vectors */
  207.   NULL  /* next border in list */
  208. };
  209.  
  210. static struct IntuiText IText4 = {
  211.   2,1,JAM2,  /* front and back text pens, drawmode and fill byte */
  212.   0,0,  /* XY origin relative to container TopLeft */
  213.   NULL,  /* font pointer or NULL for default */
  214.   (UBYTE *)" CANCEL ",  /* pointer to text */
  215.   NULL  /* next IntuiText structure */
  216. };
  217.  
  218. static struct Gadget cancelGadget = {
  219.   &dayNameGadget,  /* next gadget */
  220.   10,108,  /* origin XY of hit box relative to window TopLeft */
  221.   64,8,  /* hit box width and height */
  222.   GADGHBOX,  /* gadget flags */
  223.   RELVERIFY+GADGIMMEDIATE+ENDGADGET,  /* activation flags */
  224.   BOOLGADGET+REQGADGET,  /* gadget type flags */
  225.   (APTR)&Border5,  /* gadget border or image to be rendered */
  226.   NULL,  /* alternate imagery for selection */
  227.   &IText4,  /* first IntuiText structure */
  228.   NULL,  /* gadget mutual-exclude long word */
  229.   NULL,  /* SpecialInfo structure */
  230.   CANCEL_GADGET,  /* user-definable data */
  231.   NULL  /* pointer to user-definable data */
  232. };
  233.  
  234. static UBYTE timeGadgetSIBuff[11];
  235. static struct StringInfo timeGadgetSInfo = {
  236.   timeGadgetSIBuff,  /* buffer where text will be edited */
  237.   NULL,  /* optional undo buffer */
  238.   0,  /* character position in buffer */
  239.   11,  /* maximum number of characters to allow */
  240.   0,  /* first displayed character buffer position */
  241.   0,0,0,0,0,  /* Intuition initialized and maintained variables */
  242.   0,  /* Rastport of gadget */
  243.   0,  /* initial value for integer gadgets */
  244.   NULL  /* alternate keymap (fill in if you set the flag) */
  245. };
  246.  
  247. static struct IntuiText IText5 = {
  248.   2,1,JAM2,  /* front and back text pens, drawmode and fill byte */
  249.   -50,0,  /* XY origin relative to container TopLeft */
  250.   NULL,  /* font pointer or NULL for default */
  251.   (UBYTE *)" Time ",  /* pointer to text */
  252.   NULL  /* next IntuiText structure */
  253. };
  254.  
  255. static struct Gadget timeGadget = {
  256.   &cancelGadget,  /* next gadget */
  257.   130,86,  /* origin XY of hit box relative to window TopLeft */
  258.   120,8,  /* hit box width and height */
  259.   GADGHBOX+GADGHIMAGE,  /* gadget flags */
  260.   NULL,  /* activation flags */
  261.   STRGADGET+REQGADGET,  /* gadget type flags */
  262.   NULL,  /* gadget border or image to be rendered */
  263.   NULL,  /* alternate imagery for selection */
  264.   &IText5,  /* first IntuiText structure */
  265.   NULL,  /* gadget mutual-exclude long word */
  266.   (APTR)&timeGadgetSInfo,  /* SpecialInfo structure */
  267.   TIME_GADGET,  /* user-definable data */
  268.   NULL  /* pointer to user-definable data */
  269. };
  270.  
  271. static UBYTE dateGadgetSIBuff[12];
  272. static struct StringInfo dateGadgetSInfo = {
  273.   dateGadgetSIBuff,  /* buffer where text will be edited */
  274.   NULL,  /* optional undo buffer */
  275.   0,  /* character position in buffer */
  276.   12,  /* maximum number of characters to allow */
  277.   0,  /* first displayed character buffer position */
  278.   0,0,0,0,0,  /* Intuition initialized and maintained variables */
  279.   0,  /* Rastport of gadget */
  280.   0,  /* initial value for integer gadgets */
  281.   NULL  /* alternate keymap (fill in if you set the flag) */
  282. };
  283.  
  284. static struct IntuiText IText6 = {
  285.   2,1,JAM2,  /* front and back text pens, drawmode and fill byte */
  286.   -50,0,  /* XY origin relative to container TopLeft */
  287.   NULL,  /* font pointer or NULL for default */
  288.   (UBYTE *)" Date ",  /* pointer to text */
  289.   NULL  /* next IntuiText structure */
  290. };
  291.  
  292. static struct Gadget dateGadget = {
  293.   &timeGadget,  /* next gadget */
  294.   130,76,  /* origin XY of hit box relative to window TopLeft */
  295.   170,8,  /* hit box width and height */
  296.   GADGHBOX+GADGHIMAGE,  /* gadget flags */
  297.   RELVERIFY,  /* activation flags */
  298.   STRGADGET+REQGADGET,  /* gadget type flags */
  299.   NULL,  /* gadget border or image to be rendered */
  300.   NULL,  /* alternate imagery for selection */
  301.   &IText6,  /* first IntuiText structure */
  302.   NULL,  /* gadget mutual-exclude long word */
  303.   (APTR)&dateGadgetSInfo,  /* SpecialInfo structure */
  304.   DATE_GADGET,  /* user-definable data */
  305.   NULL  /* pointer to user-definable data */
  306. };
  307.  
  308. static SHORT BorderVectors6[] = {
  309.   0,0,
  310.   33,0,
  311.   33,9,
  312.   0,9,
  313.   0,0
  314. };
  315. static struct Border Border6 = {
  316.   -1,-1,  /* XY origin relative to container TopLeft */
  317.   3,0,JAM1,  /* front pen, back pen and drawmode */
  318.   5,  /* number of XY vectors */
  319.   BorderVectors6,  /* pointer to XY vectors */
  320.   NULL  /* next border in list */
  321. };
  322.  
  323. static struct IntuiText IText7 = {
  324.   2,1,JAM2,  /* front and back text pens, drawmode and fill byte */
  325.   0,0,  /* XY origin relative to container TopLeft */
  326.   NULL,  /* font pointer or NULL for default */
  327.   (UBYTE *)" OK ",  /* pointer to text */
  328.   NULL  /* next IntuiText structure */
  329. };
  330.  
  331. static struct Gadget okGadget = {
  332.   &dateGadget,  /* next gadget */
  333.   261,108,  /* origin XY of hit box relative to window TopLeft */
  334.   32,8,  /* hit box width and height */
  335.   GADGHBOX,  /* gadget flags */
  336.   RELVERIFY+GADGIMMEDIATE+ENDGADGET,  /* activation flags */
  337.   BOOLGADGET+REQGADGET,  /* gadget type flags */
  338.   (APTR)&Border6,  /* gadget border or image to be rendered */
  339.   NULL,  /* alternate imagery for selection */
  340.   &IText7,  /* first IntuiText structure */
  341.   NULL,  /* gadget mutual-exclude long word */
  342.   NULL,  /* SpecialInfo structure */
  343.   OK_GADGET,  /* user-definable data */
  344.   NULL  /* pointer to user-definable data */
  345. };
  346.  
  347. static struct IntuiText IText9 = {
  348.   1,0,JAM2,  /* front and back text pens, drawmode and fill byte */
  349.   2,0,  /* XY origin relative to container TopLeft */
  350.   NULL,  /* font pointer or NULL for default */
  351.   (UBYTE *)"MM/DD/YY",  /* pointer to text */
  352.   NULL  /* next IntuiText structure */
  353. };
  354.  
  355. static struct IntuiText IText8 = {
  356.   2,1,JAM2,  /* front and back text pens, drawmode and fill byte */
  357.   -106,0,  /* XY origin relative to container TopLeft */
  358.   NULL,  /* font pointer or NULL for default */
  359.   (UBYTE *)" Date Format ",  /* pointer to text */
  360.   &IText9  /* next IntuiText structure */
  361. };
  362.  
  363. static struct Gadget dateFormatGadget = {
  364.   &okGadget,  /* next gadget */
  365.   130,66,  /* origin XY of hit box relative to window TopLeft */
  366.   80,8,  /* hit box width and height */
  367.   GADGHBOX,  /* gadget flags */
  368.   RELVERIFY+GADGIMMEDIATE,  /* activation flags */
  369.   BOOLGADGET+REQGADGET,  /* gadget type flags */
  370.   NULL,  /* gadget border or image to be rendered */
  371.   NULL,  /* alternate imagery for selection */
  372.   &IText8,  /* first IntuiText structure */
  373.   NULL,  /* gadget mutual-exclude long word */
  374.   NULL,  /* SpecialInfo structure */
  375.   DATE_FORMAT_GADGET,  /* user-definable data */
  376.   NULL  /* pointer to user-definable data */
  377. };
  378.  
  379. static SHORT BorderVectors7[] = {
  380.   0,0,
  381.   49,0,
  382.   49,9,
  383.   0,9,
  384.   0,0
  385. };
  386. static struct Border Border7 = {
  387.   -1,-1,  /* XY origin relative to container TopLeft */
  388.   3,0,JAM1,  /* front pen, back pen and drawmode */
  389.   5,  /* number of XY vectors */
  390.   BorderVectors7,  /* pointer to XY vectors */
  391.   NULL  /* next border in list */
  392. };
  393.  
  394. static struct IntuiText IText10 = {
  395.   2,1,JAM2,  /* front and back text pens, drawmode and fill byte */
  396.   0,0,  /* XY origin relative to container TopLeft */
  397.   NULL,  /* font pointer or NULL for default */
  398.   (UBYTE *)" ZERO ",  /* pointer to text */
  399.   NULL  /* next IntuiText structure */
  400. };
  401.  
  402. static struct Gadget zeroGadget = {
  403.   &dateFormatGadget,  /* next gadget */
  404.   254,56,  /* origin XY of hit box relative to window TopLeft */
  405.   48,8,  /* hit box width and height */
  406.   GADGHBOX,  /* gadget flags */
  407.   RELVERIFY+GADGIMMEDIATE,  /* activation flags */
  408.   BOOLGADGET+REQGADGET,  /* gadget type flags */
  409.   (APTR)&Border7,  /* gadget border or image to be rendered */
  410.   NULL,  /* alternate imagery for selection */
  411.   &IText10,  /* first IntuiText structure */
  412.   NULL,  /* gadget mutual-exclude long word */
  413.   NULL,  /* SpecialInfo structure */
  414.   ZERO_GADGET,  /* user-definable data */
  415.   NULL  /* pointer to user-definable data */
  416. };
  417.  
  418. static SHORT BorderVectors8[] = {
  419.   0,0,
  420.   41,0,
  421.   41,9,
  422.   0,9,
  423.   0,0
  424. };
  425. static struct Border Border8 = {
  426.   -1,-1,  /* XY origin relative to container TopLeft */
  427.   3,0,JAM1,  /* front pen, back pen and drawmode */
  428.   5,  /* number of XY vectors */
  429.   BorderVectors8,  /* pointer to XY vectors */
  430.   NULL  /* next border in list */
  431. };
  432.  
  433. static struct IntuiText IText11 = {
  434.   2,1,JAM2,  /* front and back text pens, drawmode and fill byte */
  435.   0,0,  /* XY origin relative to container TopLeft */
  436.   NULL,  /* font pointer or NULL for default */
  437.   (UBYTE *)" NOW ",  /* pointer to text */
  438.   NULL  /* next IntuiText structure */
  439. };
  440.  
  441. static struct Gadget nowGadget = {
  442.   &zeroGadget,  /* next gadget */
  443.   208,56,  /* origin XY of hit box relative to window TopLeft */
  444.   40,8,  /* hit box width and height */
  445.   GADGHBOX,  /* gadget flags */
  446.   RELVERIFY+GADGIMMEDIATE,  /* activation flags */
  447.   BOOLGADGET+REQGADGET,  /* gadget type flags */
  448.   (APTR)&Border8,  /* gadget border or image to be rendered */
  449.   NULL,  /* alternate imagery for selection */
  450.   &IText11,  /* first IntuiText structure */
  451.   NULL,  /* gadget mutual-exclude long word */
  452.   NULL,  /* SpecialInfo structure */
  453.   NOW_GADGET,  /* user-definable data */
  454.   NULL  /* pointer to user-definable data */
  455. };
  456.  
  457. static USHORT ImageData1[] = {
  458.   0x001F,0x00DF,0x03DF,0x0FDF,0x3FDF,0x7FDF,0x3FDF,0x0FDF,
  459.   0x03DF,0x00DF,0x001F
  460. };
  461.  
  462. static struct Image Image1 = {
  463.   0,0,  /* XY origin relative to container TopLeft */
  464.   11,11,  /* Image width and height in pixels */
  465.   2,  /* number of bitplanes in Image */
  466.   ImageData1,  /* pointer to ImageData */
  467.   0x0002,0x0000,  /* PlanePick and PlaneOnOff */
  468.   NULL  /* next Image structure */
  469. };
  470.  
  471. static struct Gadget downSecondGadget = {
  472.   &nowGadget,  /* next gadget */
  473.   261,31,  /* origin XY of hit box relative to window TopLeft */
  474.   11,11,  /* hit box width and height */
  475.   GADGHBOX+GADGIMAGE,  /* gadget flags */
  476.   RELVERIFY,  /* activation flags */
  477.   BOOLGADGET+REQGADGET,  /* gadget type flags */
  478.   (APTR)&Image1,  /* gadget border or image to be rendered */
  479.   NULL,  /* alternate imagery for selection */
  480.   NULL,  /* first IntuiText structure */
  481.   NULL,  /* gadget mutual-exclude long word */
  482.   NULL,  /* SpecialInfo structure */
  483.   DOWN_SECOND_GADGET,  /* user-definable data */
  484.   NULL  /* pointer to user-definable data */
  485. };
  486.  
  487. static USHORT ImageData2[] = {
  488.   0x001F,0x00DF,0x03DF,0x0FDF,0x3FDF,0x7FDF,0x3FDF,0x0FDF,
  489.   0x03DF,0x00DF,0x001F
  490. };
  491.  
  492. static struct Image Image2 = {
  493.   0,0,  /* XY origin relative to container TopLeft */
  494.   11,11,  /* Image width and height in pixels */
  495.   2,  /* number of bitplanes in Image */
  496.   ImageData2,  /* pointer to ImageData */
  497.   0x0002,0x0000,  /* PlanePick and PlaneOnOff */
  498.   NULL  /* next Image structure */
  499. };
  500.  
  501. static struct Gadget downMinuteGadget = {
  502.   &downSecondGadget,  /* next gadget */
  503.   206,31,  /* origin XY of hit box relative to window TopLeft */
  504.   11,11,  /* hit box width and height */
  505.   GADGHBOX+GADGIMAGE,  /* gadget flags */
  506.   RELVERIFY,  /* activation flags */
  507.   BOOLGADGET+REQGADGET,  /* gadget type flags */
  508.   (APTR)&Image2,  /* gadget border or image to be rendered */
  509.   NULL,  /* alternate imagery for selection */
  510.   NULL,  /* first IntuiText structure */
  511.   NULL,  /* gadget mutual-exclude long word */
  512.   NULL,  /* SpecialInfo structure */
  513.   DOWN_MINUTE_GADGET,  /* user-definable data */
  514.   NULL  /* pointer to user-definable data */
  515. };
  516.  
  517. static USHORT ImageData3[] = {
  518.   0x001F,0x00DF,0x03DF,0x0FDF,0x3FDF,0x7FDF,0x3FDF,0x0FDF,
  519.   0x03DF,0x00DF,0x001F
  520. };
  521.  
  522. static struct Image Image3 = {
  523.   0,0,  /* XY origin relative to container TopLeft */
  524.   11,11,  /* Image width and height in pixels */
  525.   2,  /* number of bitplanes in Image */
  526.   ImageData3,  /* pointer to ImageData */
  527.   0x0002,0x0000,  /* PlanePick and PlaneOnOff */
  528.   NULL  /* next Image structure */
  529. };
  530.  
  531. static struct Gadget downHourGadget = {
  532.   &downMinuteGadget,  /* next gadget */
  533.   157,31,  /* origin XY of hit box relative to window TopLeft */
  534.   11,11,  /* hit box width and height */
  535.   GADGHBOX+GADGIMAGE,  /* gadget flags */
  536.   RELVERIFY,  /* activation flags */
  537.   BOOLGADGET+REQGADGET,  /* gadget type flags */
  538.   (APTR)&Image3,  /* gadget border or image to be rendered */
  539.   NULL,  /* alternate imagery for selection */
  540.   NULL,  /* first IntuiText structure */
  541.   NULL,  /* gadget mutual-exclude long word */
  542.   NULL,  /* SpecialInfo structure */
  543.   DOWN_HOUR_GADGET,  /* user-definable data */
  544.   NULL  /* pointer to user-definable data */
  545. };
  546.  
  547. static USHORT ImageData4[] = {
  548.   0x001F,0x00DF,0x03DF,0x0FDF,0x3FDF,0x7FDF,0x3FDF,0x0FDF,
  549.   0x03DF,0x00DF,0x001F
  550. };
  551.  
  552. static struct Image Image4 = {
  553.   0,0,  /* XY origin relative to container TopLeft */
  554.   11,11,  /* Image width and height in pixels */
  555.   2,  /* number of bitplanes in Image */
  556.   ImageData4,  /* pointer to ImageData */
  557.   0x0002,0x0000,  /* PlanePick and PlaneOnOff */
  558.   NULL  /* next Image structure */
  559. };
  560.  
  561. static struct Gadget downDayGadget = {
  562.   &downHourGadget,  /* next gadget */
  563.   107,31,  /* origin XY of hit box relative to window TopLeft */
  564.   11,11,  /* hit box width and height */
  565.   GADGHBOX+GADGIMAGE,  /* gadget flags */
  566.   RELVERIFY,  /* activation flags */
  567.   BOOLGADGET+REQGADGET,  /* gadget type flags */
  568.   (APTR)&Image4,  /* gadget border or image to be rendered */
  569.   NULL,  /* alternate imagery for selection */
  570.   NULL,  /* first IntuiText structure */
  571.   NULL,  /* gadget mutual-exclude long word */
  572.   NULL,  /* SpecialInfo structure */
  573.   DOWN_DAY_GADGET,  /* user-definable data */
  574.   NULL  /* pointer to user-definable data */
  575. };
  576.  
  577. static USHORT ImageData5[] = {
  578.   0x001F,0x601F,0x781F,0x7E1F,0x7F9F,0x7FDF,0x7F9F,0x7E1F,
  579.   0x781F,0x601F,0x001F
  580. };
  581.  
  582. static struct Image Image5 = {
  583.   0,0,  /* XY origin relative to container TopLeft */
  584.   11,11,  /* Image width and height in pixels */
  585.   2,  /* number of bitplanes in Image */
  586.   ImageData5,  /* pointer to ImageData */
  587.   0x0002,0x0000,  /* PlanePick and PlaneOnOff */
  588.   NULL  /* next Image structure */
  589. };
  590.  
  591. static struct Gadget upSecondGadget = {
  592.   &downDayGadget,  /* next gadget */
  593.   273,31,  /* origin XY of hit box relative to window TopLeft */
  594.   11,11,  /* hit box width and height */
  595.   GADGHBOX+GADGIMAGE,  /* gadget flags */
  596.   RELVERIFY,  /* activation flags */
  597.   BOOLGADGET+REQGADGET,  /* gadget type flags */
  598.   (APTR)&Image5,  /* gadget border or image to be rendered */
  599.   NULL,  /* alternate imagery for selection */
  600.   NULL,  /* first IntuiText structure */
  601.   NULL,  /* gadget mutual-exclude long word */
  602.   NULL,  /* SpecialInfo structure */
  603.   UP_SECOND_GADGET,  /* user-definable data */
  604.   NULL  /* pointer to user-definable data */
  605. };
  606.  
  607. static USHORT ImageData6[] = {
  608.   0x001F,0x601F,0x781F,0x7E1F,0x7F9F,0x7FDF,0x7F9F,0x7E1F,
  609.   0x781F,0x601F,0x001F
  610. };
  611.  
  612. static struct Image Image6 = {
  613.   0,0,  /* XY origin relative to container TopLeft */
  614.   11,11,  /* Image width and height in pixels */
  615.   2,  /* number of bitplanes in Image */
  616.   ImageData6,  /* pointer to ImageData */
  617.   0x0002,0x0000,  /* PlanePick and PlaneOnOff */
  618.   NULL  /* next Image structure */
  619. };
  620.  
  621. static struct Gadget upMinuteGadget = {
  622.   &upSecondGadget,  /* next gadget */
  623.   218,31,  /* origin XY of hit box relative to window TopLeft */
  624.   11,11,  /* hit box width and height */
  625.   GADGHBOX+GADGIMAGE,  /* gadget flags */
  626.   RELVERIFY,  /* activation flags */
  627.   BOOLGADGET+REQGADGET,  /* gadget type flags */
  628.   (APTR)&Image6,  /* gadget border or image to be rendered */
  629.   NULL,  /* alternate imagery for selection */
  630.   NULL,  /* first IntuiText structure */
  631.   NULL,  /* gadget mutual-exclude long word */
  632.   NULL,  /* SpecialInfo structure */
  633.   UP_MINUTE_GADGET,  /* user-definable data */
  634.   NULL  /* pointer to user-definable data */
  635. };
  636.  
  637. static USHORT ImageData7[] = {
  638.   0x001F,0x601F,0x781F,0x7E1F,0x7F9F,0x7FDF,0x7F9F,0x7E1F,
  639.   0x781F,0x601F,0x001F
  640. };
  641.  
  642. static struct Image Image7 = {
  643.   0,0,  /* XY origin relative to container TopLeft */
  644.   11,11,  /* Image width and height in pixels */
  645.   2,  /* number of bitplanes in Image */
  646.   ImageData7,  /* pointer to ImageData */
  647.   0x0002,0x0000,  /* PlanePick and PlaneOnOff */
  648.   NULL  /* next Image structure */
  649. };
  650.  
  651. static struct Gadget upHourGadget = {
  652.   &upMinuteGadget,  /* next gadget */
  653.   169,31,  /* origin XY of hit box relative to window TopLeft */
  654.   11,11,  /* hit box width and height */
  655.   GADGHBOX+GADGIMAGE,  /* gadget flags */
  656.   RELVERIFY,  /* activation flags */
  657.   BOOLGADGET+REQGADGET,  /* gadget type flags */
  658.   (APTR)&Image7,  /* gadget border or image to be rendered */
  659.   NULL,  /* alternate imagery for selection */
  660.   NULL,  /* first IntuiText structure */
  661.   NULL,  /* gadget mutual-exclude long word */
  662.   NULL,  /* SpecialInfo structure */
  663.   UP_HOUR_GADGET,  /* user-definable data */
  664.   NULL  /* pointer to user-definable data */
  665. };
  666.  
  667. static USHORT ImageData8[] = {
  668.   0x001F,0x601F,0x781F,0x7E1F,0x7F9F,0x7FDF,0x7F9F,0x7E1F,
  669.   0x781F,0x601F,0x001F
  670. };
  671.  
  672. static struct Image Image8 = {
  673.   0,0,  /* XY origin relative to container TopLeft */
  674.   11,11,  /* Image width and height in pixels */
  675.   2,  /* number of bitplanes in Image */
  676.   ImageData8,  /* pointer to ImageData */
  677.   0x0002,0x0000,  /* PlanePick and PlaneOnOff */
  678.   NULL  /* next Image structure */
  679. };
  680.  
  681. static struct Gadget upDayGadget = {
  682.   &upHourGadget,  /* next gadget */
  683.   119,31,  /* origin XY of hit box relative to window TopLeft */
  684.   11,11,  /* hit box width and height */
  685.   GADGHBOX+GADGIMAGE,  /* gadget flags */
  686.   RELVERIFY,  /* activation flags */
  687.   BOOLGADGET+REQGADGET,  /* gadget type flags */
  688.   (APTR)&Image8,  /* gadget border or image to be rendered */
  689.   NULL,  /* alternate imagery for selection */
  690.   NULL,  /* first IntuiText structure */
  691.   NULL,  /* gadget mutual-exclude long word */
  692.   NULL,  /* SpecialInfo structure */
  693.   UP_DAY_GADGET,  /* user-definable data */
  694.   NULL  /* pointer to user-definable data */
  695. };
  696.  
  697. static USHORT ImageData9[] = {
  698.   0x001F,0x00DF,0x03DF,0x0FDF,0x3FDF,0x7FDF,0x3FDF,0x0FDF,
  699.   0x03DF,0x00DF,0x001F
  700. };
  701.  
  702. static struct Image Image9 = {
  703.   0,0,  /* XY origin relative to container TopLeft */
  704.   11,11,  /* Image width and height in pixels */
  705.   2,  /* number of bitplanes in Image */
  706.   ImageData9,  /* pointer to ImageData */
  707.   0x0002,0x0000,  /* PlanePick and PlaneOnOff */
  708.   NULL  /* next Image structure */
  709. };
  710.  
  711. static struct Gadget downMonthGadget = {
  712.   &upDayGadget,  /* next gadget */
  713.   66,31,  /* origin XY of hit box relative to window TopLeft */
  714.   11,11,  /* hit box width and height */
  715.   GADGHBOX+GADGIMAGE,  /* gadget flags */
  716.   RELVERIFY,  /* activation flags */
  717.   BOOLGADGET+REQGADGET,  /* gadget type flags */
  718.   (APTR)&Image9,  /* gadget border or image to be rendered */
  719.   NULL,  /* alternate imagery for selection */
  720.   NULL,  /* first IntuiText structure */
  721.   NULL,  /* gadget mutual-exclude long word */
  722.   NULL,  /* SpecialInfo structure */
  723.   DOWN_MONTH_GADGET,  /* user-definable data */
  724.   NULL  /* pointer to user-definable data */
  725. };
  726.  
  727. static USHORT ImageData10[] = {
  728.   0x001F,0x601F,0x781F,0x7E1F,0x7F9F,0x7FDF,0x7F9F,0x7E1F,
  729.   0x781F,0x601F,0x001F
  730. };
  731.  
  732. static struct Image Image10 = {
  733.   0,0,  /* XY origin relative to container TopLeft */
  734.   11,11,  /* Image width and height in pixels */
  735.   2,  /* number of bitplanes in Image */
  736.   ImageData10,  /* pointer to ImageData */
  737.   0x0002,0x0000,  /* PlanePick and PlaneOnOff */
  738.   NULL  /* next Image structure */
  739. };
  740.  
  741. static struct Gadget upMonthGadget = {
  742.   &downMonthGadget,  /* next gadget */
  743.   78,31,  /* origin XY of hit box relative to window TopLeft */
  744.   11,11,  /* hit box width and height */
  745.   GADGHBOX+GADGIMAGE,  /* gadget flags */
  746.   RELVERIFY,  /* activation flags */
  747.   BOOLGADGET+REQGADGET,  /* gadget type flags */
  748.   (APTR)&Image10,  /* gadget border or image to be rendered */
  749.   NULL,  /* alternate imagery for selection */
  750.   NULL,  /* first IntuiText structure */
  751.   NULL,  /* gadget mutual-exclude long word */
  752.   NULL,  /* SpecialInfo structure */
  753.   UP_MONTH_GADGET,  /* user-definable data */
  754.   NULL  /* pointer to user-definable data */
  755. };
  756.  
  757. static USHORT ImageData11[] = {
  758.   0x001F,0x00DF,0x03DF,0x0FDF,0x3FDF,0x7FDF,0x3FDF,0x0FDF,
  759.   0x03DF,0x00DF,0x001F
  760. };
  761.  
  762. static struct Image Image11 = {
  763.   0,0,  /* XY origin relative to container TopLeft */
  764.   11,11,  /* Image width and height in pixels */
  765.   2,  /* number of bitplanes in Image */
  766.   ImageData11,  /* pointer to ImageData */
  767.   0x0002,0x0000,  /* PlanePick and PlaneOnOff */
  768.   NULL  /* next Image structure */
  769. };
  770.  
  771. static struct Gadget downYearGadget = {
  772.   &upMonthGadget,  /* next gadget */
  773.   25,31,  /* origin XY of hit box relative to window TopLeft */
  774.   11,11,  /* hit box width and height */
  775.   GADGHBOX+GADGIMAGE,  /* gadget flags */
  776.   RELVERIFY,  /* activation flags */
  777.   BOOLGADGET+REQGADGET,  /* gadget type flags */
  778.   (APTR)&Image11,  /* gadget border or image to be rendered */
  779.   NULL,  /* alternate imagery for selection */
  780.   NULL,  /* first IntuiText structure */
  781.   NULL,  /* gadget mutual-exclude long word */
  782.   NULL,  /* SpecialInfo structure */
  783.   DOWN_YEAR_GADGET,  /* user-definable data */
  784.   NULL  /* pointer to user-definable data */
  785. };
  786.  
  787. static USHORT ImageData12[] = {
  788.   0x001F,0x601F,0x781F,0x7E1F,0x7F9F,0x7FDF,0x7F9F,0x7E1F,
  789.   0x781F,0x601F,0x001F
  790. };
  791.  
  792. static struct Image Image12 = {
  793.   0,0,  /* XY origin relative to container TopLeft */
  794.   11,11,  /* Image width and height in pixels */
  795.   2,  /* number of bitplanes in Image */
  796.   ImageData12,  /* pointer to ImageData */
  797.   0x0002,0x0000,  /* PlanePick and PlaneOnOff */
  798.   NULL  /* next Image structure */
  799. };
  800.  
  801. static struct Gadget upYearGadget = {
  802.   &downYearGadget,  /* next gadget */
  803.   36,31,  /* origin XY of hit box relative to window TopLeft */
  804.   11,11,  /* hit box width and height */
  805.   GADGHBOX+GADGIMAGE,  /* gadget flags */
  806.   RELVERIFY,  /* activation flags */
  807.   BOOLGADGET+REQGADGET,  /* gadget type flags */
  808.   (APTR)&Image12,  /* gadget border or image to be rendered */
  809.   NULL,  /* alternate imagery for selection */
  810.   NULL,  /* first IntuiText structure */
  811.   NULL,  /* gadget mutual-exclude long word */
  812.   NULL,  /* SpecialInfo structure */
  813.   UP_YEAR_GADGET,  /* user-definable data */
  814.   NULL  /* pointer to user-definable data */
  815. };
  816.  
  817. static UBYTE secondGadgetSIBuff[5] =
  818.   "00";
  819. static struct StringInfo secondGadgetSInfo = {
  820.   secondGadgetSIBuff,  /* buffer where text will be edited */
  821.   UNDOBUFFER,  /* optional undo buffer */
  822.   0,  /* character position in buffer */
  823.   5,  /* maximum number of characters to allow */
  824.   0,  /* first displayed character buffer position */
  825.   0,0,0,0,0,  /* Intuition initialized and maintained variables */
  826.   0,  /* Rastport of gadget */
  827.   0,  /* initial value for integer gadgets */
  828.   NULL  /* alternate keymap (fill in if you set the flag) */
  829. };
  830.  
  831. static struct Gadget secondGadget = {
  832.   &upYearGadget,  /* next gadget */
  833.   264,23,  /* origin XY of hit box relative to window TopLeft */
  834.   27,8,  /* hit box width and height */
  835.   NULL,  /* gadget flags */
  836.   RELVERIFY+LONGINT,  /* activation flags */
  837.   STRGADGET+REQGADGET,  /* gadget type flags */
  838.   NULL,  /* gadget border or image to be rendered */
  839.   NULL,  /* alternate imagery for selection */
  840.   NULL,  /* first IntuiText structure */
  841.   NULL,  /* gadget mutual-exclude long word */
  842.   (APTR)&secondGadgetSInfo,  /* SpecialInfo structure */
  843.   SECOND_GADGET,  /* user-definable data */
  844.   NULL  /* pointer to user-definable data */
  845. };
  846.  
  847. static UBYTE minuteGadgetSIBuff[5] =
  848.   "00";
  849. static struct StringInfo minuteGadgetSInfo = {
  850.   minuteGadgetSIBuff,  /* buffer where text will be edited */
  851.   UNDOBUFFER,  /* optional undo buffer */
  852.   0,  /* character position in buffer */
  853.   5,  /* maximum number of characters to allow */
  854.   0,  /* first displayed character buffer position */
  855.   0,0,0,0,0,  /* Intuition initialized and maintained variables */
  856.   0,  /* Rastport of gadget */
  857.   0,  /* initial value for integer gadgets */
  858.   NULL  /* alternate keymap (fill in if you set the flag) */
  859. };
  860.  
  861. static struct Gadget minuteGadget = {
  862.   &secondGadget,  /* next gadget */
  863.   209,23,  /* origin XY of hit box relative to window TopLeft */
  864.   27,8,  /* hit box width and height */
  865.   NULL,  /* gadget flags */
  866.   RELVERIFY+LONGINT,  /* activation flags */
  867.   STRGADGET+REQGADGET,  /* gadget type flags */
  868.   NULL,  /* gadget border or image to be rendered */
  869.   NULL,  /* alternate imagery for selection */
  870.   NULL,  /* first IntuiText structure */
  871.   NULL,  /* gadget mutual-exclude long word */
  872.   (APTR)&minuteGadgetSInfo,  /* SpecialInfo structure */
  873.   MINUTE_GADGET,  /* user-definable data */
  874.   NULL  /* pointer to user-definable data */
  875. };
  876.  
  877. static UBYTE hourGadgetSIBuff[5] =
  878.   "00";
  879. static struct StringInfo hourGadgetSInfo = {
  880.   hourGadgetSIBuff,  /* buffer where text will be edited */
  881.   NULL,  /* optional undo buffer */
  882.   0,  /* character position in buffer */
  883.   5,  /* maximum number of characters to allow */
  884.   0,  /* first displayed character buffer position */
  885.   0,0,0,0,0,  /* Intuition initialized and maintained variables */
  886.   0,  /* Rastport of gadget */
  887.   0,  /* initial value for integer gadgets */
  888.   NULL  /* alternate keymap (fill in if you set the flag) */
  889. };
  890.  
  891. static struct IntuiText IText12 = {
  892.   2,1,JAM2,  /* front and back text pens, drawmode and fill byte */
  893.   -17,-9,  /* XY origin relative to container TopLeft */
  894.   NULL,  /* font pointer or NULL for default */
  895.   (UBYTE *)" Hour Minute Second ",  /* pointer to text */
  896.   NULL  /* next IntuiText structure */
  897. };
  898.  
  899. static struct Gadget hourGadget = {
  900.   &minuteGadget,  /* next gadget */
  901.   160,23,  /* origin XY of hit box relative to window TopLeft */
  902.   27,8,  /* hit box width and height */
  903.   NULL,  /* gadget flags */
  904.   RELVERIFY+LONGINT,  /* activation flags */
  905.   STRGADGET+REQGADGET,  /* gadget type flags */
  906.   NULL,  /* gadget border or image to be rendered */
  907.   NULL,  /* alternate imagery for selection */
  908.   &IText12,  /* first IntuiText structure */
  909.   NULL,  /* gadget mutual-exclude long word */
  910.   (APTR)&hourGadgetSInfo,  /* SpecialInfo structure */
  911.   HOUR_GADGET,  /* user-definable data */
  912.   NULL  /* pointer to user-definable data */
  913. };
  914.  
  915. static UBYTE dayGadgetSIBuff[5] =
  916.   "01";
  917. static struct StringInfo dayGadgetSInfo = {
  918.   dayGadgetSIBuff,  /* buffer where text will be edited */
  919.   UNDOBUFFER,  /* optional undo buffer */
  920.   0,  /* character position in buffer */
  921.   5,  /* maximum number of characters to allow */
  922.   0,  /* first displayed character buffer position */
  923.   0,0,0,0,0,  /* Intuition initialized and maintained variables */
  924.   0,  /* Rastport of gadget */
  925.   0,  /* initial value for integer gadgets */
  926.   NULL  /* alternate keymap (fill in if you set the flag) */
  927. };
  928.  
  929. static struct Gadget dayGadget = {
  930.   &hourGadget,  /* next gadget */
  931.   110,23,  /* origin XY of hit box relative to window TopLeft */
  932.   27,8,  /* hit box width and height */
  933.   NULL,  /* gadget flags */
  934.   RELVERIFY+LONGINT,  /* activation flags */
  935.   STRGADGET+REQGADGET,  /* gadget type flags */
  936.   NULL,  /* gadget border or image to be rendered */
  937.   NULL,  /* alternate imagery for selection */
  938.   NULL,  /* first IntuiText structure */
  939.   NULL,  /* gadget mutual-exclude long word */
  940.   (APTR)&dayGadgetSInfo,  /* SpecialInfo structure */
  941.   DAY_GADGET,  /* user-definable data */
  942.   NULL  /* pointer to user-definable data */
  943. };
  944.  
  945. static UBYTE monthGadgetSIBuff[5] =
  946.   "Jan";
  947. static struct StringInfo monthGadgetSInfo = {
  948.   monthGadgetSIBuff,  /* buffer where text will be edited */
  949.   NULL,  /* optional undo buffer */
  950.   0,  /* character position in buffer */
  951.   5,  /* maximum number of characters to allow */
  952.   0,  /* first displayed character buffer position */
  953.   0,0,0,0,0,  /* Intuition initialized and maintained variables */
  954.   0,  /* Rastport of gadget */
  955.   0,  /* initial value for integer gadgets */
  956.   NULL  /* alternate keymap (fill in if you set the flag) */
  957. };
  958.  
  959. static struct Gadget monthGadget = {
  960.   &dayGadget,  /* next gadget */
  961.   66,23,  /* origin XY of hit box relative to window TopLeft */
  962.   26,8,  /* hit box width and height */
  963.   GADGHBOX+GADGHIMAGE,  /* gadget flags */
  964.   RELVERIFY,  /* activation flags */
  965.   STRGADGET+REQGADGET,  /* gadget type flags */
  966.   NULL,  /* gadget border or image to be rendered */
  967.   NULL,  /* alternate imagery for selection */
  968.   NULL,  /* first IntuiText structure */
  969.   NULL,  /* gadget mutual-exclude long word */
  970.   (APTR)&monthGadgetSInfo,  /* SpecialInfo structure */
  971.   MONTH_GADGET,  /* user-definable data */
  972.   NULL  /* pointer to user-definable data */
  973. };
  974.  
  975. static UBYTE yearGadgetSIBuff[5] =
  976.   "1978";
  977. static struct StringInfo yearGadgetSInfo = {
  978.   yearGadgetSIBuff,  /* buffer where text will be edited */
  979.   UNDOBUFFER,  /* optional undo buffer */
  980.   0,  /* character position in buffer */
  981.   5,  /* maximum number of characters to allow */
  982.   0,  /* first displayed character buffer position */
  983.   0,0,0,0,0,  /* Intuition initialized and maintained variables */
  984.   0,  /* Rastport of gadget */
  985.   0,  /* initial value for integer gadgets */
  986.   NULL  /* alternate keymap (fill in if you set the flag) */
  987. };
  988.  
  989. static struct IntuiText IText13 = {
  990.   2,1,JAM2,  /* front and back text pens, drawmode and fill byte */
  991.   -10,-9,  /* XY origin relative to container TopLeft */
  992.   NULL,  /* font pointer or NULL for default */
  993.   (UBYTE *)" Year Month Day ",  /* pointer to text */
  994.   NULL  /* next IntuiText structure */
  995. };
  996.  
  997. static struct Gadget yearGadget = {
  998.   &monthGadget,  /* next gadget */
  999.   19,23,  /* origin XY of hit box relative to window TopLeft */
  1000.   40,8,  /* hit box width and height */
  1001.   NULL,  /* gadget flags */
  1002.   RELVERIFY+LONGINT,  /* activation flags */
  1003.   STRGADGET+REQGADGET,  /* gadget type flags */
  1004.   NULL,  /* gadget border or image to be rendered */
  1005.   NULL,  /* alternate imagery for selection */
  1006.   &IText13,  /* first IntuiText structure */
  1007.   NULL,  /* gadget mutual-exclude long word */
  1008.   (APTR)&yearGadgetSInfo,  /* SpecialInfo structure */
  1009.   YEAR_GADGET,  /* user-definable data */
  1010.   NULL  /* pointer to user-definable data */
  1011. };
  1012.  
  1013. #define GadgetList1 yearGadget
  1014.  
  1015. static struct Requester RequesterStructure1 = {
  1016.   NULL,  /* previous requester (filled in by Intuition) */
  1017.   4,11,  /* requester XY origin relative to TopLeft of window */
  1018.   312,124,  /* requester width and height */
  1019.   0,0,  /* relative to these mouse offsets if POINTREL is set */
  1020.   &GadgetList1,  /* gadget list */
  1021.   NULL,  /* box's border */
  1022.   NULL,  /* requester text */
  1023.   NULL,  /* requester flags */
  1024.   1,  /* back-plane fill pen */
  1025.   NULL,  /* leave these alone */
  1026.   NULL,  /* custom bitmap if PREDRAWN is set */
  1027.   NULL  /* leave this alone */
  1028. };
  1029.