home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_disks / 200-299 / ff227.lzh / PickPacket / src / reqgen.h < prev    next >
Text File  |  1989-06-25  |  5KB  |  152 lines

  1.  
  2. static SHORT BorderVectors1[] = {
  3.    0,0,
  4.    52,0,
  5.    52,18,
  6.    0,18,
  7.    0,0
  8. };
  9. static struct Border Border1 = {
  10.    -1,-1,   /* XY origin relative to container TopLeft */
  11.    3,0,JAM1,   /* front pen, back pen and drawmode */
  12.    5,   /* number of XY vectors */
  13.    BorderVectors1,   /* pointer to XY vectors */
  14.    NULL   /* next border in list */
  15. };
  16.  
  17. static struct IntuiText IText1 = {
  18.    3,0,JAM2,   /* front and back text pens, drawmode and fill byte */
  19.    2,5,   /* XY origin relative to container TopLeft */
  20.    NULL,   /* font pointer or NULL for default */
  21.    "CANCEL",   /* pointer to text */
  22.    NULL   /* next IntuiText structure */
  23. };
  24.  
  25. static struct Gadget BLCAN = {
  26.    NULL,   /* next gadget */
  27.    204,80,   /* origin XY of hit box relative to window TopLeft */
  28.    51,17,   /* hit box width and height */
  29.    NULL,   /* gadget flags */
  30.    RELVERIFY,   /* activation flags */
  31.    BOOLGADGET+REQGADGET,   /* gadget type flags */
  32.    (APTR)&Border1,   /* gadget border or image to be rendered */
  33.    NULL,   /* alternate imagery for selection */
  34.    &IText1,   /* first IntuiText structure */
  35.    NULL,   /* gadget mutual-exclude long word */
  36.    NULL,   /* SpecialInfo structure */
  37.    GAD_BLCAN,   /* user-definable data */
  38.    NULL   /* pointer to user-definable data */
  39. };
  40.  
  41. static SHORT BorderVectors2[] = {
  42.    0,0,
  43.    52,0,
  44.    52,18,
  45.    0,18,
  46.    0,0
  47. };
  48. static struct Border Border2 = {
  49.    -1,-1,   /* XY origin relative to container TopLeft */
  50.    3,0,JAM1,   /* front pen, back pen and drawmode */
  51.    5,   /* number of XY vectors */
  52.    BorderVectors2,   /* pointer to XY vectors */
  53.    NULL   /* next border in list */
  54. };
  55.  
  56. static struct IntuiText IText2 = {
  57.    3,0,JAM2,   /* front and back text pens, drawmode and fill byte */
  58.    19,5,   /* XY origin relative to container TopLeft */
  59.    NULL,   /* font pointer or NULL for default */
  60.    "OK",   /* pointer to text */
  61.    NULL   /* next IntuiText structure */
  62. };
  63.  
  64. static struct Gadget BLOK = {
  65.    &BLCAN,   /* next gadget */
  66.    51,79,   /* origin XY of hit box relative to window TopLeft */
  67.    51,17,   /* hit box width and height */
  68.    NULL,   /* gadget flags */
  69.    RELVERIFY,   /* activation flags */
  70.    BOOLGADGET+REQGADGET,   /* gadget type flags */
  71.    (APTR)&Border2,   /* gadget border or image to be rendered */
  72.    NULL,   /* alternate imagery for selection */
  73.    &IText2,   /* first IntuiText structure */
  74.    NULL,   /* gadget mutual-exclude long word */
  75.    NULL,   /* SpecialInfo structure */
  76.    GAD_BLOK,   /* user-definable data */
  77.    NULL   /* pointer to user-definable data */
  78. };
  79.  
  80. static UBYTE BUFLENSIBuff[50] =
  81.    "256";
  82. static struct StringInfo BUFLENSInfo = {
  83.    BUFLENSIBuff,   /* buffer where text will be edited */
  84.    NULL,   /* optional undo buffer */
  85.    0,   /* character position in buffer */
  86.    50,   /* maximum number of characters to allow */
  87.    0,   /* first displayed character buffer position */
  88.    0,0,0,0,0,   /* Intuition initialized and maintained variables */
  89.    0,   /* Rastport of gadget */
  90.    0,   /* initial value for integer gadgets */
  91.    NULL   /* alternate keymap (fill in if you set the flag) */
  92. };
  93.  
  94. static SHORT BorderVectors3[] = {
  95.    0,0,
  96.    217,0,
  97.    217,10,
  98.    0,10,
  99.    0,0
  100. };
  101. static struct Border Border3 = {
  102.    -1,-1,   /* XY origin relative to container TopLeft */
  103.    3,0,JAM1,   /* front pen, back pen and drawmode */
  104.    5,   /* number of XY vectors */
  105.    BorderVectors3,   /* pointer to XY vectors */
  106.    NULL   /* next border in list */
  107. };
  108.  
  109. static struct IntuiText IText3 = {
  110.    3,0,JAM2,   /* front and back text pens, drawmode and fill byte */
  111.    23,-15,   /* XY origin relative to container TopLeft */
  112.    NULL,   /* font pointer or NULL for default */
  113.    "Buffer size in bytes:",   /* pointer to text */
  114.    NULL   /* next IntuiText structure */
  115. };
  116.  
  117. static struct Gadget BUFLEN = {
  118.    &BLOK,   /* next gadget */
  119.    50,46,   /* origin XY of hit box relative to window TopLeft */
  120.    216,9,   /* hit box width and height */
  121.    SELECTED,   /* gadget flags */
  122.    RELVERIFY+STRINGCENTER+LONGINT,   /* activation flags */
  123.    STRGADGET+REQGADGET,   /* gadget type flags */
  124.    (APTR)&Border3,   /* gadget border or image to be rendered */
  125.    NULL,   /* alternate imagery for selection */
  126.    &IText3,   /* first IntuiText structure */
  127.    NULL,   /* gadget mutual-exclude long word */
  128.    (APTR)&BUFLENSInfo,   /* SpecialInfo structure */
  129.    GAD_BUFLEN,   /* user-definable data */
  130.    NULL   /* pointer to user-definable data */
  131. };
  132.  
  133. #define GadgetList1 BUFLEN
  134.  
  135. static struct Requester RequesterStructure1 = {
  136.    NULL,   /* previous requester (filled in by Intuition) */
  137.    75,35,   /* requester XY origin relative to TopLeft of window */
  138.    311,107,   /* requester width and height */
  139.    0,0,   /* relative to these mouse offsets if POINTREL is set */
  140.    &GadgetList1,   /* gadget list */
  141.    NULL,   /* box's border */
  142.    NULL,   /* requester text */
  143.    NULL,   /* requester flags */
  144.    1,   /* back-plane fill pen */
  145.    NULL,   /* leave these alone */
  146.    NULL,   /* custom bitmap if PREDRAWN is set */
  147.    NULL   /* leave this alone */
  148. };
  149.  
  150.  
  151. /* end of PowerWindows source generation */
  152.