home *** CD-ROM | disk | FTP | other *** search
/ Fish 'n' More 2 / fishmore-publicdomainlibraryvol.ii1991xetec.iso / disks / disk373.lzh / Multiplot / source / mplot_src / src.zoo / texted.h < prev    next >
C/C++ Source or Header  |  1990-08-02  |  2KB  |  65 lines

  1.  
  2. UBYTE TextSIBuff[80]="";
  3. struct StringInfo TextSInfo = {
  4.         TextSIBuff,  /* buffer where text will be edited */
  5.         NULL,   /* optional undo buffer */
  6.         0,      /* character position in buffer */
  7.         80,     /* maximum number of characters to allow */
  8.         0,      /* first displayed character buffer position */
  9.         0,0,0,0,0,      /* Intuition initialized and maintained variables */
  10.         0,      /* Rastport of gadget */
  11.         0,      /* initial value for integer gadgets */
  12.         NULL    /* alternate keymap (fill in if you set the flag) */
  13. };
  14.  
  15. SHORT TextVectors[] = {
  16.         0,0,
  17.         236,0,
  18.         236,17,
  19.         0,17,
  20.         0,1
  21. };
  22. struct Border TextBorder = {
  23.         -1,-5,  /* XY origin relative to container TopLeft */
  24.         1,0,JAM1,       /* front pen, back pen and drawmode */
  25.         5,      /* number of XY vectors */
  26.         TextVectors, /* pointer to XY vectors */
  27.         NULL    /* next border in list */
  28. };
  29.  
  30. struct Gadget TextEd = {
  31.         NULL,       /* next gadget */
  32.         100,75, /* origin XY of hit box relative to window TopLeft */
  33.         235,13, /* hit box width and height */
  34.         NULL,   /* gadget flags */
  35.         RELVERIFY+STRINGCENTER, /* activation flags */
  36.         STRGADGET,      /* gadget type flags */
  37.         (APTR)&TextBorder, /* gadget border or image to be rendered */
  38.         NULL,   /* alternate imagery for selection */
  39.         NULL,   /* first IntuiText structure */
  40.         NULL,   /* gadget mutual-exclude long word */
  41.         (APTR)&TextSInfo,    /* SpecialInfo structure */
  42.         NULL,   /* user-definable data */
  43.         NULL    /* pointer to user-definable data */
  44. };
  45.  
  46. extern struct Image Continue;
  47.  
  48. struct Gadget TextContinue = {
  49.         &TextEd,      /* next gadget */
  50.         331,184,        /* origin XY of hit box relative to window TopLeft */
  51.         99,43,  /* hit box width and height */
  52.         GADGHBOX+GADGHIMAGE+GADGIMAGE,  /* gadget flags */
  53.         GADGIMMEDIATE,  /* activation flags */
  54.         BOOLGADGET,     /* gadget type flags */
  55.         (APTR)&Continue, /* gadget border or image to be rendered */
  56.         NULL,   /* alternate imagery for selection */
  57.         NULL,   /* first IntuiText structure */
  58.         NULL,   /* gadget mutual-exclude long word */
  59.         NULL,   /* SpecialInfo structure */
  60.         NULL,   /* user-definable data */
  61.         NULL    /* pointer to user-definable data */
  62. };
  63.  
  64.  
  65.