home *** CD-ROM | disk | FTP | other *** search
-
- UBYTE TextSIBuff[80]="";
- struct StringInfo TextSInfo = {
- TextSIBuff, /* buffer where text will be edited */
- NULL, /* optional undo buffer */
- 0, /* character position in buffer */
- 80, /* maximum number of characters to allow */
- 0, /* first displayed character buffer position */
- 0,0,0,0,0, /* Intuition initialized and maintained variables */
- 0, /* Rastport of gadget */
- 0, /* initial value for integer gadgets */
- NULL /* alternate keymap (fill in if you set the flag) */
- };
-
- SHORT TextVectors[] = {
- 0,0,
- 236,0,
- 236,17,
- 0,17,
- 0,1
- };
- struct Border TextBorder = {
- -1,-5, /* XY origin relative to container TopLeft */
- 1,0,JAM1, /* front pen, back pen and drawmode */
- 5, /* number of XY vectors */
- TextVectors, /* pointer to XY vectors */
- NULL /* next border in list */
- };
-
- struct Gadget TextEd = {
- NULL, /* next gadget */
- 100,75, /* origin XY of hit box relative to window TopLeft */
- 235,13, /* hit box width and height */
- NULL, /* gadget flags */
- RELVERIFY+STRINGCENTER, /* activation flags */
- STRGADGET, /* gadget type flags */
- (APTR)&TextBorder, /* gadget border or image to be rendered */
- NULL, /* alternate imagery for selection */
- NULL, /* first IntuiText structure */
- NULL, /* gadget mutual-exclude long word */
- (APTR)&TextSInfo, /* SpecialInfo structure */
- NULL, /* user-definable data */
- NULL /* pointer to user-definable data */
- };
-
- extern struct Image Continue;
-
- struct Gadget TextContinue = {
- &TextEd, /* next gadget */
- 331,184, /* origin XY of hit box relative to window TopLeft */
- 99,43, /* hit box width and height */
- GADGHBOX+GADGHIMAGE+GADGIMAGE, /* gadget flags */
- GADGIMMEDIATE, /* activation flags */
- BOOLGADGET, /* gadget type flags */
- (APTR)&Continue, /* gadget border or image to be rendered */
- NULL, /* alternate imagery for selection */
- NULL, /* first IntuiText structure */
- NULL, /* gadget mutual-exclude long word */
- NULL, /* SpecialInfo structure */
- NULL, /* user-definable data */
- NULL /* pointer to user-definable data */
- };
-
-
-