home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 199.lha / DmfSrc_v2.5 / roller.h < prev   
Encoding:
C/C++ Source or Header  |  1988-12-27  |  5.7 KB  |  575 lines

  1.  
  2. static SHORT BorderVectors2[] = {
  3.     -2,-1,
  4.     37,-1,
  5.     37,12,
  6.     -2,12,
  7.     -2,-1,
  8.     -1,-2,
  9.     36,-2,
  10.     36,13,
  11.     -1,13,
  12.     -1,-2
  13. };
  14. static struct Border Border2 = {
  15.     9,95,
  16.     1,2,JAM1,
  17.     10,
  18.     BorderVectors2,
  19.     NULL
  20. };
  21.  
  22. static SHORT BorderVectors1[] = {
  23.     -2,-1,
  24.     37,-1,
  25.     37,12,
  26.     -2,12,
  27.     -2,-1,
  28.     -1,-2,
  29.     36,-2,
  30.     36,13,
  31.     -1,13,
  32.     -1,-2
  33. };
  34. static struct Border Border1 = {
  35.     155,95,
  36.     1,2,JAM1,
  37.     10,
  38.     BorderVectors1,
  39.     &Border2
  40. };
  41.  
  42. static struct Gadget Gadget12 = {
  43.     NULL,
  44.     0,0,
  45.     1,1,
  46.     GADGHBOX+GADGHIMAGE,
  47.     NULL,
  48.     BOOLGADGET,
  49.     (APTR)&Border1,
  50.     NULL,
  51.     NULL,
  52.     NULL,
  53.     NULL,
  54.     NULL,
  55.     NULL
  56. };
  57.  
  58. static SHORT BorderVectors3[] = {
  59.     0,0,
  60.     58,0,
  61.     58,12,
  62.     0,12,
  63.     0,0
  64. };
  65. static struct Border Border3 = {
  66.     -2,-1,
  67.     3,0,JAM1,
  68.     5,
  69.     BorderVectors3,
  70.     NULL
  71. };
  72.  
  73. static struct IntuiText IText1 = {
  74.     3,0,JAM2,
  75.     -1,2,
  76.     NULL,
  77.     "<-Again",
  78.     NULL
  79. };
  80.  
  81. static struct Gadget AgainGad = {
  82.     &Gadget12,
  83.     120,63,
  84.     55,11,
  85.     NULL,
  86.     RELVERIFY,
  87.     BOOLGADGET,
  88.     (APTR)&Border3,
  89.     NULL,
  90.     &IText1,
  91.     NULL,
  92.     NULL,
  93.     50,
  94.     NULL
  95. };
  96.  
  97. static UBYTE UserNumSIBuff[4];
  98. static struct StringInfo UserNumSInfo = {
  99.     UserNumSIBuff,
  100.     NULL,
  101.     0,
  102.     4,
  103.     0,
  104.     0,0,0,0,0,
  105.     0,
  106.     0,
  107.     NULL
  108. };
  109.  
  110. static SHORT BorderVectors4[] = {
  111.     0,0,
  112.     41,0,
  113.     41,12,
  114.     0,12,
  115.     0,0
  116. };
  117. static struct Border Border4 = {
  118.     -2,-1,
  119.     3,0,JAM1,
  120.     5,
  121.     BorderVectors4,
  122.     NULL
  123. };
  124.  
  125. static struct IntuiText IText2 = {
  126.     3,0,JAM2,
  127.     -4,15,
  128.     NULL,
  129.     "Number",
  130.     NULL
  131. };
  132.  
  133. static struct Gadget UserNum = {
  134.     &AgainGad,
  135.     77,63,
  136.     38,11,
  137.     NULL,
  138.     RELVERIFY+STRINGCENTER+LONGINT,
  139.     STRGADGET,
  140.     (APTR)&Border4,
  141.     NULL,
  142.     &IText2,
  143.     NULL,
  144.     (APTR)&UserNumSInfo,
  145.     25,
  146.     NULL
  147. };
  148.  
  149. static SHORT BorderVectors5[] = {
  150.     0,0,
  151.     58,0,
  152.     58,12,
  153.     0,12,
  154.     0,0
  155. };
  156. static struct Border Border5 = {
  157.     -2,-1,
  158.     3,0,JAM1,
  159.     5,
  160.     BorderVectors5,
  161.     NULL
  162. };
  163.  
  164. static struct IntuiText IText3 = {
  165.     3,0,JAM2,
  166.     0,2,
  167.     NULL,
  168.     "Clear->",
  169.     NULL
  170. };
  171.  
  172. static struct Gadget ClearGad = {
  173.     &UserNum,
  174.     96,96,
  175.     55,11,
  176.     NULL,
  177.     RELVERIFY,
  178.     BOOLGADGET,
  179.     (APTR)&Border5,
  180.     NULL,
  181.     &IText3,
  182.     NULL,
  183.     NULL,
  184.     75,
  185.     NULL
  186. };
  187.  
  188. static SHORT BorderVectors6[] = {
  189.     -2,-1,
  190.     37,-1,
  191.     37,12,
  192.     -2,12,
  193.     -2,-1,
  194.     -1,-2,
  195.     36,-2,
  196.     36,13,
  197.     -1,13,
  198.     -1,-2
  199. };
  200. static struct Border Border6 = {
  201.     0,0,
  202.     3,2,JAM1,
  203.     10,
  204.     BorderVectors6,
  205.     NULL
  206. };
  207.  
  208. static struct IntuiText IText4 = {
  209.     1,0,JAM1,
  210.     6,2,
  211.     NULL,
  212.     "100",
  213.     NULL
  214. };
  215.  
  216. static struct Gadget Gadget8 = {
  217.     &ClearGad,
  218.     139,41,
  219.     36,12,
  220.     NULL,
  221.     RELVERIFY,
  222.     BOOLGADGET,
  223.     (APTR)&Border6,
  224.     NULL,
  225.     &IText4,
  226.     NULL,
  227.     NULL,
  228.     100,
  229.     NULL
  230. };
  231.  
  232. static SHORT BorderVectors7[] = {
  233.     -2,-1,
  234.     25,-1,
  235.     25,12,
  236.     -2,12,
  237.     -2,-1,
  238.     -1,-2,
  239.     24,-2,
  240.     24,13,
  241.     -1,13,
  242.     -1,-2
  243. };
  244. static struct Border Border7 = {
  245.     0,0,
  246.     3,2,JAM1,
  247.     10,
  248.     BorderVectors7,
  249.     NULL
  250. };
  251.  
  252. static struct IntuiText IText5 = {
  253.     1,0,JAM1,
  254.     4,2,
  255.     NULL,
  256.     "20",
  257.     NULL
  258. };
  259.  
  260. static struct Gadget Gadget7 = {
  261.     &Gadget8,
  262.     101,41,
  263.     24,12,
  264.     NULL,
  265.     RELVERIFY,
  266.     BOOLGADGET,
  267.     (APTR)&Border7,
  268.     NULL,
  269.     &IText5,
  270.     NULL,
  271.     NULL,
  272.     20,
  273.     NULL
  274. };
  275.  
  276. static SHORT BorderVectors8[] = {
  277.     -2,-1,
  278.     25,-1,
  279.     25,12,
  280.     -2,12,
  281.     -2,-1,
  282.     -1,-2,
  283.     24,-2,
  284.     24,13,
  285.     -1,13,
  286.     -1,-2
  287. };
  288. static struct Border Border8 = {
  289.     0,0,
  290.     3,2,JAM1,
  291.     10,
  292.     BorderVectors8,
  293.     NULL
  294. };
  295.  
  296. static struct IntuiText IText6 = {
  297.     1,0,JAM1,
  298.     4,2,
  299.     NULL,
  300.     "12",
  301.     NULL
  302. };
  303.  
  304. static struct Gadget Gadget6 = {
  305.     &Gadget7,
  306.     59,41,
  307.     24,12,
  308.     NULL,
  309.     RELVERIFY,
  310.     BOOLGADGET,
  311.     (APTR)&Border8,
  312.     NULL,
  313.     &IText6,
  314.     NULL,
  315.     NULL,
  316.     12,
  317.     NULL
  318. };
  319.  
  320. static SHORT BorderVectors9[] = {
  321.     -2,-1,
  322.     25,-1,
  323.     25,12,
  324.     -2,12,
  325.     -2,-1,
  326.     -1,-2,
  327.     24,-2,
  328.     24,13,
  329.     -1,13,
  330.     -1,-2
  331. };
  332. static struct Border Border9 = {
  333.     0,0,
  334.     3,2,JAM1,
  335.     10,
  336.     BorderVectors9,
  337.     NULL
  338. };
  339.  
  340. static struct IntuiText IText7 = {
  341.     1,0,JAM1,
  342.     4,2,
  343.     NULL,
  344.     "10",
  345.     NULL
  346. };
  347.  
  348. static struct Gadget Gadget5 = {
  349.     &Gadget6,
  350.     20,41,
  351.     24,12,
  352.     NULL,
  353.     RELVERIFY,
  354.     BOOLGADGET,
  355.     (APTR)&Border9,
  356.     NULL,
  357.     &IText7,
  358.     NULL,
  359.     NULL,
  360.     10,
  361.     NULL
  362. };
  363.  
  364. static SHORT BorderVectors10[] = {
  365.     -2,-1,
  366.     13,-1,
  367.     13,12,
  368.     -2,12,
  369.     -2,-1,
  370.     -1,-2,
  371.     12,-2,
  372.     12,13,
  373.     -1,13,
  374.     -1,-2
  375. };
  376. static struct Border Border10 = {
  377.     0,0,
  378.     3,2,JAM1,
  379.     10,
  380.     BorderVectors10,
  381.     NULL
  382. };
  383.  
  384. static struct IntuiText IText8 = {
  385.     1,0,JAM1,
  386.     2,2,
  387.     NULL,
  388.     "8",
  389.     NULL
  390. };
  391.  
  392. static struct Gadget Gadget4 = {
  393.     &Gadget5,
  394.     140,20,
  395.     12,12,
  396.     NULL,
  397.     RELVERIFY,
  398.     BOOLGADGET,
  399.     (APTR)&Border10,
  400.     NULL,
  401.     &IText8,
  402.     NULL,
  403.     NULL,
  404.     8,
  405.     NULL
  406. };
  407.  
  408. static SHORT BorderVectors11[] = {
  409.     -2,-1,
  410.     13,-1,
  411.     13,12,
  412.     -2,12,
  413.     -2,-1,
  414.     -1,-2,
  415.     12,-2,
  416.     12,13,
  417.     -1,13,
  418.     -1,-2
  419. };
  420. static struct Border Border11 = {
  421.     0,0,
  422.     3,2,JAM1,
  423.     10,
  424.     BorderVectors11,
  425.     NULL
  426. };
  427.  
  428. static struct IntuiText IText9 = {
  429.     1,0,JAM1,
  430.     2,2,
  431.     NULL,
  432.     "6",
  433.     NULL
  434. };
  435.  
  436. static struct Gadget Gadget3 = {
  437.     &Gadget4,
  438.     105,20,
  439.     12,12,
  440.     NULL,
  441.     RELVERIFY,
  442.     BOOLGADGET,
  443.     (APTR)&Border11,
  444.     NULL,
  445.     &IText9,
  446.     NULL,
  447.     NULL,
  448.     6,
  449.     NULL
  450. };
  451.  
  452. static SHORT BorderVectors12[] = {
  453.     -2,-1,
  454.     13,-1,
  455.     13,12,
  456.     -2,12,
  457.     -2,-1,
  458.     -1,-2,
  459.     12,-2,
  460.     12,13,
  461.     -1,13,
  462.     -1,-2
  463. };
  464. static struct Border Border12 = {
  465.     0,0,
  466.     3,2,JAM1,
  467.     10,
  468.     BorderVectors12,
  469.     NULL
  470. };
  471.  
  472. static struct IntuiText IText10 = {
  473.     1,0,JAM1,
  474.     2,2,
  475.     NULL,
  476.     "4",
  477.     NULL
  478. };
  479.  
  480. static struct Gadget Gadget2 = {
  481.     &Gadget3,
  482.     70,20,
  483.     12,12,
  484.     NULL,
  485.     RELVERIFY,
  486.     BOOLGADGET,
  487.     (APTR)&Border12,
  488.     NULL,
  489.     &IText10,
  490.     NULL,
  491.     NULL,
  492.     4,
  493.     NULL
  494. };
  495.  
  496. static SHORT BorderVectors13[] = {
  497.     -2,-1,
  498.     13,-1,
  499.     13,12,
  500.     -2,12,
  501.     -2,-1,
  502.     -1,-2,
  503.     12,-2,
  504.     12,13,
  505.     -1,13,
  506.     -1,-2
  507. };
  508. static struct Border Border13 = {
  509.     0,0,
  510.     3,2,JAM1,
  511.     10,
  512.     BorderVectors13,
  513.     NULL
  514. };
  515.  
  516. static struct IntuiText IText11 = {
  517.     1,0,JAM1,
  518.     2,2,
  519.     NULL,
  520.     "2",
  521.     NULL
  522. };
  523.  
  524. static struct Gadget Gadget1 = {
  525.     &Gadget2,
  526.     35,20,
  527.     12,12,
  528.     NULL,
  529.     RELVERIFY,
  530.     BOOLGADGET,
  531.     (APTR)&Border13,
  532.     NULL,
  533.     &IText11,
  534.     NULL,
  535.     NULL,
  536.     2,
  537.     NULL
  538. };
  539.  
  540. #define GadgetList1 Gadget1
  541.  
  542. static struct IntuiText IText13 = {
  543.     1,0,JAM2,
  544.     153,85,
  545.     NULL,
  546.     "Total",
  547.     NULL
  548. };
  549.  
  550. static struct IntuiText IText12 = {
  551.     1,0,JAM2,
  552.     5,84,
  553.     NULL,
  554.     "Result",
  555.     &IText13
  556. };
  557.  
  558. #define IntuiTextList1 IText12
  559.  
  560. static struct NewWindow NewWindowStructure1 = {
  561.     206,45,
  562.     200,110,
  563.     0,1,
  564.     NULL,
  565.     WINDOWDRAG+WINDOWDEPTH+WINDOWCLOSE+ACTIVATE,
  566.     &Gadget1,
  567.     NULL,
  568.     "Random Numbers",
  569.     NULL,
  570.     NULL,
  571.     200,110,
  572.     200,110,
  573.     WBENCHSCREEN
  574. };
  575.