home *** CD-ROM | disk | FTP | other *** search
-
- UBYTE AxisLabelSIBuff[150]="";
- struct StringInfo AxisLabelSInfo = {
- AxisLabelSIBuff, /* buffer where text will be edited */
- NULL, /* optional undo buffer */
- 0, /* character position in buffer */
- 150, /* 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 LabelVectors[] = {
- 0,0,
- 236,0,
- 236,17,
- 0,17,
- 0,1
- };
- struct Border LabelBorder = {
- -1,-5, /* XY origin relative to container TopLeft */
- 1,0,JAM1, /* front pen, back pen and drawmode */
- 5, /* number of XY vectors */
- LabelVectors, /* pointer to XY vectors */
- NULL /* next border in list */
- };
-
- struct Gadget AxisLabel = {
- NULL, /* next gadget */
- 175,140, /* 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)&LabelBorder, /* gadget border or image to be rendered */
- NULL, /* alternate imagery for selection */
- NULL, /* first IntuiText structure */
- NULL, /* gadget mutual-exclude long word */
- (APTR)&AxisLabelSInfo, /* SpecialInfo structure */
- NULL, /* user-definable data */
- NULL /* pointer to user-definable data */
- };
-
-
- SHORT UpBorderVectors[] = {
- 0,2,
- 0,18,
- 5,16,
- 5,20,
- 15,10,
- 5,0,
- 5,4,
- 0,2,
- };
-
- struct Border TicUpBorder = {
- 0,0, /* XY origin relative to container TopLeft */
- 1,0,JAM1, /* front pen, back pen and drawmode */
- 8, /* number of XY vectors */
- UpBorderVectors, /* pointer to XY vectors */
- NULL /* next border in list */
- };
-
-
- struct Gadget TicUp = {
- &AxisLabel, /* next gadget */
- 263,33, /* origin XY of hit box relative to window TopLeft */
- 15,20, /* hit box width and height */
- GADGHBOX+GADGHIMAGE, /* gadget flags */
- GADGIMMEDIATE, /* activation flags */
- BOOLGADGET, /* gadget type flags */
- (APTR)&TicUpBorder, /* 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 */
- };
-
- SHORT DownBorderVectors[] = {
- 10,0,
- 0,10,
- 10,20,
- 10,16,
- 15,18,
- 15,2,
- 10,4,
- 10,0,
- };
- struct Border TicDownBorder = {
- 0,0, /* XY origin relative to container TopLeft */
- 1,0,JAM1, /* front pen, back pen and drawmode */
- 8, /* number of XY vectors */
- DownBorderVectors, /* pointer to XY vectors */
- NULL /* next border in list */
- };
-
-
- struct Gadget TicDown = {
- &TicUp, /* next gadget */
- 200,33, /* origin XY of hit box relative to window TopLeft */
- 15,20, /* hit box width and height */
- GADGHBOX+GADGHIMAGE, /* gadget flags */
- GADGIMMEDIATE, /* activation flags */
- BOOLGADGET, /* gadget type flags */
- (APTR)&TicDownBorder, /* 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 */
- };
-
-
- SHORT AxisBorderVectors3[] = {
- 0,0,
- 40,0,
- 40,17,
- 0,17,
- 0,1
- };
- struct Border AxisBorder3 = {
- -1,-5, /* XY origin relative to container TopLeft */
- 1,0,JAM1, /* front pen, back pen and drawmode */
- 5, /* number of XY vectors */
- AxisBorderVectors3, /* pointer to XY vectors */
- NULL /* next border in list */
- };
-
- UBYTE TicNumberSIBuff[7]="5";
- struct StringInfo TicNumberSInfo = {
- TicNumberSIBuff, /* buffer where text will be edited */
- NULL, /* optional undo buffer */
- 0, /* character position in buffer */
- 3, /* 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 */
- 5, /* initial value for integer gadgets */
- NULL /* alternate keymap (fill in if you set the flag) */
- };
-
- struct Gadget TicNumber = {
- &TicDown, /* next gadget */
- 220,40, /* origin XY of hit box relative to window TopLeft */
- 37,16, /* hit box width and height */
- NULL, /* gadget flags */
- RELVERIFY+LONGINT+STRINGCENTER, /* activation flags */
- STRGADGET, /* gadget type flags */
- (APTR)&AxisBorder3, /* gadget border or image to be rendered */
- NULL, /* alternate imagery for selection */
- NULL, /* first IntuiText structure */
- NULL, /* gadget mutual-exclude long word */
- (APTR)&TicNumberSInfo, /* SpecialInfo structure */
- NULL, /* user-definable data */
- NULL /* pointer to user-definable data */
- };
-
- struct Border MinUpBorder = {
- 0,0, /* XY origin relative to container TopLeft */
- 1,0,JAM1, /* front pen, back pen and drawmode */
- 8, /* number of XY vectors */
- UpBorderVectors, /* pointer to XY vectors */
- NULL /* next border in list */
- };
-
-
- struct Gadget MinUp = {
- &TicNumber, /* next gadget */
- 293,63, /* origin XY of hit box relative to window TopLeft */
- 15,20, /* hit box width and height */
- GADGHBOX+GADGHIMAGE, /* gadget flags */
- GADGIMMEDIATE, /* activation flags */
- BOOLGADGET, /* gadget type flags */
- (APTR)&MinUpBorder, /* 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 */
- };
-
-
- struct Border MinDownBorder = {
- 0,0, /* XY origin relative to container TopLeft */
- 1,0,JAM1, /* front pen, back pen and drawmode */
- 8, /* number of XY vectors */
- DownBorderVectors, /* pointer to XY vectors */
- NULL /* next border in list */
- };
-
- struct Gadget MinDown = {
- &MinUp, /* next gadget */
- 200,63, /* origin XY of hit box relative to window TopLeft */
- 15,20, /* hit box width and height */
- GADGHBOX+GADGHIMAGE, /* gadget flags */
- GADGIMMEDIATE, /* activation flags */
- BOOLGADGET, /* gadget type flags */
- (APTR)&MinDownBorder, /* 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 */
- };
-
-
-
-
- SHORT AxisBorderVectors1[] = {
- 0,0,
- 70,0,
- 70,17,
- 0,17,
- 0,1
- };
-
- struct Border AxisBorder2 = {
- -1,-5, /* XY origin relative to container TopLeft */
- 1,0,JAM1, /* front pen, back pen and drawmode */
- 5, /* number of XY vectors */
- AxisBorderVectors1, /* pointer to XY vectors */
- NULL /* next border in list */
- };
-
- UBYTE MinValueSIBuff[30]="0";
- struct StringInfo MinValueSInfo = {
- MinValueSIBuff, /* buffer where text will be edited */
- NULL, /* optional undo buffer */
- 0, /* character position in buffer */
- 10, /* 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) */
- };
-
- struct Gadget MinValue = {
- &MinDown, /* next gadget */
- 220,70, /* origin XY of hit box relative to window TopLeft */
- 67,16, /* hit box width and height */
- NULL, /* gadget flags */
- RELVERIFY+STRINGCENTER, /* activation flags */
- STRGADGET, /* gadget type flags */
- (APTR)&AxisBorder2, /* gadget border or image to be rendered */
- NULL, /* alternate imagery for selection */
- NULL, /* first IntuiText structure */
- NULL, /* gadget mutual-exclude long word */
- (APTR)&MinValueSInfo, /* SpecialInfo structure */
- NULL, /* user-definable data */
- NULL /* pointer to user-definable data */
- };
-
- struct Border MaxDownBorder = {
- 0,0, /* XY origin relative to container TopLeft */
- 1,0,JAM1, /* front pen, back pen and drawmode */
- 8, /* number of XY vectors */
- DownBorderVectors, /* pointer to XY vectors */
- NULL /* next border in list */
- };
-
-
- struct Gadget MaxDown = {
- &MinValue, /* next gadget */
- 200,93, /* origin XY of hit box relative to window TopLeft */
- 15,20, /* hit box width and height */
- GADGHBOX+GADGHIMAGE, /* gadget flags */
- GADGIMMEDIATE, /* activation flags */
- BOOLGADGET, /* gadget type flags */
- (APTR)&MaxDownBorder, /* 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 */
- };
-
- struct Border MaxUpBorder = {
- 0,0, /* XY origin relative to container TopLeft */
- 1,0,JAM1, /* front pen, back pen and drawmode */
- 8, /* number of XY vectors */
- UpBorderVectors, /* pointer to XY vectors */
- NULL /* next border in list */
- };
-
- struct Gadget MaxUp = {
- &MaxDown, /* next gadget */
- 293,93, /* origin XY of hit box relative to window TopLeft */
- 15,20, /* hit box width and height */
- GADGHBOX+GADGHIMAGE, /* gadget flags */
- GADGIMMEDIATE, /* activation flags */
- BOOLGADGET, /* gadget type flags */
- (APTR)&MaxUpBorder, /* 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 */
- };
-
- struct Border AxisBorder1 = {
- -1,-5, /* XY origin relative to container TopLeft */
- 1,0,JAM1, /* front pen, back pen and drawmode */
- 5, /* number of XY vectors */
- AxisBorderVectors1, /* pointer to XY vectors */
- NULL /* next border in list */
- };
-
- UBYTE MaxValueSIBuff[30]="0";
- struct StringInfo MaxValueSInfo = {
- MaxValueSIBuff, /* buffer where text will be edited */
- NULL, /* optional undo buffer */
- 0, /* character position in buffer */
- 10, /* 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) */
- };
-
- struct Gadget MaxValue = {
- &MaxUp, /* next gadget */
- 220,100, /* origin XY of hit box relative to window TopLeft */
- 67,16, /* hit box width and height */
- NULL, /* gadget flags */
- RELVERIFY+STRINGCENTER, /* activation flags */
- STRGADGET, /* gadget type flags */
- (APTR)&AxisBorder1, /* gadget border or image to be rendered */
- NULL, /* alternate imagery for selection */
- NULL, /* first IntuiText structure */
- NULL, /* gadget mutual-exclude long word */
- (APTR)&MaxValueSInfo, /* SpecialInfo structure */
- NULL, /* user-definable data */
- NULL /* pointer to user-definable data */
- };
-
-
- extern struct Image Continue;
-
- struct Gadget AxisContinue = {
- &MaxValue, /* 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 */
- };
-
-
- struct IntuiText AxisText4 = {
- 1,0,JAM2, /* front and back text pens, drawmode and fill byte */
- 60,140, /* XY origin relative to container TopLeft */
- NULL, /* font pointer or NULL for default */
- "Axis Label", /* pointer to text */
- NULL /* next IntuiText structure */
- };
-
- struct IntuiText AxisText3 = {
- 1,0,JAM2, /* front and back text pens, drawmode and fill byte */
- 60,70, /* XY origin relative to container TopLeft */
- NULL, /* font pointer or NULL for default */
- "Minimum Value", /* pointer to text */
- &AxisText4 /* next IntuiText structure */
- };
-
- struct IntuiText AxisText2 = {
- 1,0,JAM2, /* front and back text pens, drawmode and fill byte */
- 60,100, /* XY origin relative to container TopLeft */
- NULL, /* font pointer or NULL for default */
- "Maximum Value", /* pointer to text */
- &AxisText3 /* next IntuiText structure */
- };
-
- struct IntuiText AxisText1 = {
- 1,0,JAM2, /* front and back text pens, drawmode and fill byte */
- 60,40, /* XY origin relative to container TopLeft */
- NULL, /* font pointer or NULL for default */
- "Number of Tics", /* pointer to text */
- &AxisText2 /* next IntuiText structure */
- };
-
-