home *** CD-ROM | disk | FTP | other *** search
/ Software 2000 / Software 2000 Volume 1 (Disc 1 of 2).iso / utilities / u599.dms / in.adf / Printer / print.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-08-03  |  3.0 KB  |  91 lines

  1.  
  2. USHORT BorderVectors1[] = {0,0,56,0,56,11,0,11,0,0};
  3. struct Border Border1 = {
  4.     -2,-1,    /* border XY origin relative to container TopLeft */
  5.     2,0,JAM1,    /* front pen, back pen and drawmode */
  6.     5,    /* number of XY vectors */
  7.     BorderVectors1,    /* pointer to XY vectors */
  8.     NULL    /* next border in list */
  9. };
  10.  
  11. struct IntuiText IText1 = {
  12.     3,0,JAM2,    /* front and back text pens and drawmode */
  13.     18,1,    /* XY origin relative to container TopLeft */
  14.     NULL,    /* font pointer or NULL for defaults */
  15.     "LF",    /* pointer to text */
  16.     NULL    /* next IntuiText structure */
  17. };
  18.  
  19. struct Gadget Gadget5 = {
  20.     NULL,    /* next gadget */
  21.     82,15,    /* origin XY of hit box relative to window TopLeft */
  22.     53,10,    /* hit box width and height */
  23.     GADGHCOMP,    /* gadget flags */
  24.     RELVERIFY,    /* activation flags */
  25.     BOOLGADGET,    /* gadget type */
  26.     (APTR)&Border1,    /* gadget border or image to be rendered */
  27.     NULL,    /* alternate imagery for selection */
  28.     &IText1,    /* first IntuiText structure */
  29.     0,    /* gadget mutual-exclude long word */
  30.     NULL,    /* SpecialInfo structure for string gadgets */
  31.     5,    /* user-definable data (ordinal gadget number) */
  32.     NULL    /* pointer to user-definable data */
  33. };
  34.  
  35. USHORT BorderVectors2[] = {0,0,56,0,56,11,0,11,0,0};
  36. struct Border Border2 = {
  37.     -2,-1,    /* border XY origin relative to container TopLeft */
  38.     2,0,JAM1,    /* front pen, back pen and drawmode */
  39.     5,    /* number of XY vectors */
  40.     BorderVectors2,    /* pointer to XY vectors */
  41.     NULL    /* next border in list */
  42. };
  43.  
  44. struct TextAttr TOPAZ60 = {
  45.     (STRPTR)"topaz.font",
  46.     TOPAZ_SIXTY,0,0
  47. };
  48. struct IntuiText IText2 = {
  49.     3,0,JAM2,    /* front and back text pens and drawmode */
  50.     18,1,    /* XY origin relative to container TopLeft */
  51.     &TOPAZ60,    /* font pointer or NULL for defaults */
  52.     "FF",    /* pointer to text */
  53.     NULL    /* next IntuiText structure */
  54. };
  55.  
  56. struct Gadget Gadget4 = {
  57.     &Gadget5,    /* next gadget */
  58.     15,15,    /* origin XY of hit box relative to window TopLeft */
  59.     53,10,    /* hit box width and height */
  60.     GADGHCOMP,    /* gadget flags */
  61.     RELVERIFY,    /* activation flags */
  62.     BOOLGADGET,    /* gadget type */
  63.     (APTR)&Border2,    /* gadget border or image to be rendered */
  64.     NULL,    /* alternate imagery for selection */
  65.     &IText2,    /* first IntuiText structure */
  66.     0,    /* gadget mutual-exclude long word */
  67.     NULL,    /* SpecialInfo structure for string gadgets */
  68.     4,    /* user-definable data (ordinal gadget number) */
  69.     NULL    /* pointer to user-definable data */
  70. };
  71.  
  72. /* Gadget list */
  73.  
  74. struct NewWindow NewWindowStructure = {
  75.     405,0,    /* window XY origin relative to TopLeft of screen */
  76.     149,31,    /* window width and height */
  77.     2,1,    /* detail and block pens */
  78.     GADGETDOWN+GADGETUP+CLOSEWINDOW,    /* IDCMP flags */
  79.     WINDOWDRAG+WINDOWDEPTH+WINDOWCLOSE,    /* other window flags */
  80.     &Gadget4,    /* first gadget in gadget list */
  81.     NULL,    /* custom CHECKMARK imagery */
  82.     "Printer",    /* window title */
  83.     NULL,    /* custom screen */
  84.     NULL,    /* custom bitmap */
  85.     5,5,    /* minimum width and height */
  86.     640,200,    /* maximum width and height */
  87.     WBENCHSCREEN    /* destination screen type */
  88. };
  89.  
  90. /* end of PowerWindows source generation */
  91.