home *** CD-ROM | disk | FTP | other *** search
/ Gold Fish 2 / goldfish_vol2_cd1.bin / files / dev / src / amilock / headers / login.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-07-03  |  7.4 KB  |  180 lines

  1.  
  2. static UBYTE UNDOBUFFER[100];
  3.  
  4. static USHORT __chip ImageData1[] = {
  5.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  6.     0x0000,0x0000,0x0000,0x1000,0x0000,0x0000,0x0000,0x0000,
  7.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x3000,
  8.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  9.     0x0000,0x0000,0x0000,0x3000,0x0000,0x0000,0x0000,0x0000,
  10.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x3000,
  11.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  12.     0x0000,0x0000,0x0000,0x3000,0x0000,0x0000,0x0000,0x0000,
  13.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x3000,
  14.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  15.     0x0000,0x0000,0x0000,0x3000,0x0000,0x0000,0x0000,0x0000,
  16.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x3000,
  17.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  18.     0x0000,0x0000,0x0000,0x3000,0x7FFF,0xFFFF,0xFFFF,0xFFFF,
  19.     0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xF000,
  20.     0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,
  21.     0xFFFF,0xFFFF,0xFFFF,0xE000,0xC000,0x0000,0x0000,0x0000,
  22.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  23.     0xC000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  24.     0x0000,0x0000,0x0000,0x0000,0xC000,0x0000,0x0000,0x0000,
  25.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  26.     0xC000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  27.     0x0000,0x0000,0x0000,0x0000,0xC000,0x0000,0x0000,0x0000,
  28.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  29.     0xC000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  30.     0x0000,0x0000,0x0000,0x0000,0xC000,0x0000,0x0000,0x0000,
  31.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  32.     0xC000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  33.     0x0000,0x0000,0x0000,0x0000,0x8000,0x0000,0x0000,0x0000,
  34.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000
  35. };
  36.  
  37. static struct Image Image1 = {
  38.     -2,-1, /* XY origin relative to container TopLeft */
  39.     180,10,    /* Image width and height in pixels */
  40.     2,    /* number of bitplanes in Image */
  41.     ImageData1,    /* pointer to ImageData */
  42.     0x0003,0x0000,    /* PlanePick and PlaneOnOff */
  43.     NULL    /* next Image structure */
  44. };
  45.  
  46. static USHORT __chip ImageData2[] = {
  47.     0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,
  48.     0xFFFF,0xFFFF,0xFFFF,0xE000,0xC000,0x0000,0x0000,0x0000,
  49.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  50.     0xC000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  51.     0x0000,0x0000,0x0000,0x0000,0xC000,0x0000,0x0000,0x0000,
  52.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  53.     0xC000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  54.     0x0000,0x0000,0x0000,0x0000,0xC000,0x0000,0x0000,0x0000,
  55.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  56.     0xC000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  57.     0x0000,0x0000,0x0000,0x0000,0xC000,0x0000,0x0000,0x0000,
  58.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  59.     0xC000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  60.     0x0000,0x0000,0x0000,0x0000,0x8000,0x0000,0x0000,0x0000,
  61.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  62.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  63.     0x0000,0x0000,0x0000,0x1000,0x0000,0x0000,0x0000,0x0000,
  64.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x3000,
  65.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  66.     0x0000,0x0000,0x0000,0x3000,0x0000,0x0000,0x0000,0x0000,
  67.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x3000,
  68.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  69.     0x0000,0x0000,0x0000,0x3000,0x0000,0x0000,0x0000,0x0000,
  70.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x3000,
  71.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  72.     0x0000,0x0000,0x0000,0x3000,0x0000,0x0000,0x0000,0x0000,
  73.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x3000,
  74.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  75.     0x0000,0x0000,0x0000,0x3000,0x7FFF,0xFFFF,0xFFFF,0xFFFF,
  76.     0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xF000
  77. };
  78.  
  79. static struct Image Image2 = {
  80.     -2,-1,    /* XY origin relative to container TopLeft */
  81.     180,10,    /* Image width and height in pixels */
  82.     2,    /* number of bitplanes in Image */
  83.     ImageData2,    /* pointer to ImageData */
  84.     0x0003,0x0000,    /* PlanePick and PlaneOnOff */
  85.     NULL    /* next Image structure */
  86. };
  87.  
  88. static struct IntuiText IText1 = {
  89.     3,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  90.     1,0,    /* XY origin relative to container TopLeft */
  91.     NULL,    /* font pointer or NULL for default */
  92.     NULL,    /* pointer to text */
  93.     NULL    /* next IntuiText structure */
  94. };
  95.  
  96. static struct Gadget Gadget2 = {
  97.     NULL,    /* next gadget */
  98.     12,31,    /* origin XY of hit box relative to window TopLeft */
  99.     180,10,    /* hit box width and height */
  100.     GADGHIMAGE+GADGIMAGE,    /* gadget flags */
  101.     RELVERIFY+TOGGLESELECT,    /* activation flags */
  102.     BOOLGADGET,    /* gadget type flags */
  103.     (APTR)&Image1,    /* gadget border or image to be rendered */
  104.     (APTR)&Image2,    /* alternate imagery for selection */
  105.     &IText1,    /* first IntuiText structure */
  106.     NULL,    /* gadget mutual-exclude long word */
  107.     NULL,    /* SpecialInfo structure */
  108.     NULL,    /* user-definable data */
  109.     NULL    /* pointer to user-definable data */
  110. };
  111.  
  112. static UBYTE Gadget1SIBuff[100];
  113. static struct StringInfo Gadget1SInfo = {
  114.     Gadget1SIBuff,    /* buffer where text will be edited */
  115.     UNDOBUFFER,    /* optional undo buffer */
  116.     0,    /* character position in buffer */
  117.     100,    /* maximum number of characters to allow */
  118.     0,    /* first displayed character buffer position */
  119.     0,0,0,0,0,    /* Intuition initialized and maintained variables */
  120.     0,    /* Rastport of gadget */
  121.     0,    /* initial value for integer gadgets */
  122.     NULL    /* alternate keymap (fill in if you set the flag) */
  123. };
  124.  
  125.  
  126. static struct Gadget Gadget1 = {
  127.     &Gadget2,    /* next gadget */
  128.     12,11,    /* origin XY of hit box relative to window TopLeft */
  129.     180,10,    /* hit box width and height */
  130.     GADGHIMAGE+GADGIMAGE,    /* gadget flags */
  131.     RELVERIFY+TOGGLESELECT+STRINGCENTER+GADGIMMEDIATE,    /* activation flags */
  132.     STRGADGET,    /* gadget type flags */
  133.     (APTR)&Image1,    /* gadget border or image to be rendered */
  134.     (APTR)&Image2,    /* alternate imagery for selection */
  135.     NULL,    /* first IntuiText structure */
  136.     NULL,    /* gadget mutual-exclude long word */
  137.     (APTR)&Gadget1SInfo,    /* SpecialInfo structure */
  138.     NULL,    /* user-definable data */
  139.     NULL    /* pointer to user-definable data */
  140. };
  141.  
  142. #define GadgetList1 Gadget1
  143.  
  144. static struct IntuiText IText3 = {
  145.     3,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  146.     57,21,    /* XY origin relative to container TopLeft */
  147.     NULL,    /* font pointer or NULL for default */
  148.     "Password",    /* pointer to text */
  149.     NULL    /* next IntuiText structure */
  150. };
  151.  
  152. static struct IntuiText IText2 = {
  153.     3,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  154.     52,2,    /* XY origin relative to container TopLeft */
  155.     NULL,    /* font pointer or NULL for default */
  156.     "User Name",    /* pointer to text */
  157.     &IText3    /* next IntuiText structure */
  158. };
  159.  
  160. #define IntuiTextList1 IText2
  161.  
  162. static struct NewWindow NewWindowStructure1 = {
  163.     220,113,    /* window XY origin relative to TopLeft of screen */
  164.     200,50,    /* window width and height */
  165.     0,1,    /* detail and block pens */
  166.     IDCMP_MOUSEBUTTONS+IDCMP_GADGETDOWN+IDCMP_GADGETUP+IDCMP_ACTIVEWINDOW+IDCMP_VANILLAKEY+IDCMP_RAWKEY+IDCMP_INACTIVEWINDOW,    /* IDCMP flags */
  167.     ACTIVATE+RMBTRAP+NOCAREREFRESH,    /* other window flags */
  168.     &Gadget1,    /* first gadget in gadget list */
  169.     NULL,    /* custom CHECKMARK imagery */
  170.     NULL,    /* window title */
  171.     NULL,    /* custom screen pointer */
  172.     NULL,    /* custom bitmap */
  173.     5,5,    /* minimum width and height */
  174.     (unsigned short)-1,(unsigned short)-1,    /* maximum width and height */
  175.     WBENCHSCREEN    /* destination screen type */
  176. };
  177.  
  178.  
  179. /* end of PowerWindows source generation */
  180.