home *** CD-ROM | disk | FTP | other *** search
/ CD-ROM Today - The Disc! 8 / cdrt08.iso / mac / Shareware / HyperCard / demoCdef 120 ƒ / demo Source ƒ / demoCDEF.r < prev    next >
Encoding:
Text File  |  1994-12-12  |  21.3 KB  |  802 lines  |  [TEXT/KAHL]

  1. // -----------------------------------------------------------------------------
  2. //    File        : demoCDEF.r
  3. //    Date        : August 24, 1994
  4. //    Author    : Jim Stout
  5. //    Purpose    : resource descriptions for demoCDEF.c
  6. //
  7. // -----------------------------------------------------------------------------
  8. #define REZ
  9.  
  10. #include <Types.r>
  11. include "xDef.rsrc";
  12. #include "jimsCDEF.h"
  13.  
  14. #define BLACK    1
  15. #define WANT3D true
  16.  
  17. resource 'cctb' (0) {                        // default control colors
  18.     {
  19. #if BLACK
  20.         /* [1] */    cFrameColor, 0, 0, 0
  21.         /* [2] */    cTextColor, 0, 0, 0
  22. #else
  23.         /* [1] */    cFrameColor, 384, 384, 26214
  24.         /* [2] */    cTextColor, 384, 384, 26214 
  25. #endif
  26.         /* [3] */    cBodyColor, 52428,52428,52428,
  27.         /* [4] */    cElevatorColor, 0, 0, 0,
  28.         /* [5] */    cFillPatColor, 384, 384, 26214,
  29.         /* [6] */    cTingeLight, 52428, 52428, 65535
  30.         /* [6] */    cTingeDark, 13107, 13107, 26214
  31.     }
  32. };
  33.  
  34. resource 'cctb' (128) {                        // TabPanel control colors
  35.     {
  36. #if BLACK
  37.         /* [1] */    cFrameColor, 0, 0, 0
  38.         /* [2] */    cTextColor, 0, 0, 0
  39. #else
  40.         /* [1] */    cFrameColor, 384, 384, 26214
  41.         /* [2] */    cTextColor, 384, 384, 26214 
  42. #endif
  43.     }
  44. };
  45.  
  46. //----------------------------------------------------------------------------
  47. // Main dialog
  48. //----------------------------------------------------------------------------
  49.  
  50. resource 'DLOG' (128) {
  51.     {46, 15, 340, 493},    movableDBoxProc,    visible,    nogoAway,    0x0,    128,
  52.     "CDEF demonstration"
  53. };
  54.  
  55. resource 'DITL' (128) {
  56.     {    /* array DITLarray: 22 elements */
  57.         /* [1] */    {261, 406, 281, 465},        Button            {    enabled,    "OK"            },
  58.         /* [2] */    {261, 334, 281, 393},        Button             {    enabled,    "Cancel"    },
  59.         /* [3] */    {4, 4, 36, 474},                Control            {    enabled,    128                },
  60.         /* [4] */ {261, 40, 281, 99},            Button            { enabled,  "Disable" }
  61.     }
  62. };
  63.  
  64. resource 'CNTL' (128) {
  65.     {4, 4, 36, 474},                // control rect (keep height to 16*rows!)
  66.     1,                                            // initial value
  67.     visible,
  68.     7,                                            // max value (match to titles below)
  69.     244,                                        // REAL height of control rect
  70.     16*tabPanel,                        // procID
  71.     70,                                            // refCon = right margin with no tabs
  72. //
  73. // Titles for each tab follow
  74. //
  75.     "3D Buttons\nPopUp Menus\nArrows\nDate & Time\nHorizontal Sliders\nVertical Sliders\nProgress Bars"
  76. };
  77.  
  78. resource 'dctb' (128) {
  79.     {
  80. #if WANT3D
  81.         /* [1] */        wContentColor, 52428,52428,52428,        // gray
  82. #else
  83.         /* [1] */        wContentColor, 65535,65535,65535,        // white
  84. #endif
  85.         /* [2] */        wFrameColor, 0, 0, 0,
  86.         /* [3] */        wTextColor, 0, 0, 0,
  87.         /* [4] */        wHiliteColor, 0, 0, 0,
  88.         /* [5] */        wTitleBarColor, 65535, 65535, 65535
  89.     }
  90. };
  91.  
  92. //----------------------------------------------------------------------------
  93. // panel 1 - BUTTONS - begins here
  94. //----------------------------------------------------------------------------
  95.  
  96. resource 'DITL' (129) {
  97.     {
  98.  
  99. // Check boxes
  100.         
  101.         /* [1] */        {64, 22, 80, 142},            Control {    enabled,    129                        },
  102.         /* [2] */        {84, 22, 100, 142},            Control {    enabled,    130                        },
  103.         /* [3] */        {104, 22, 120, 142},        Control {    enabled,    131                        },
  104.         /* [4] */        {124, 22, 140, 142},        Control {    enabled,    132                        },
  105.         
  106. // Radio buttons
  107.  
  108.         /* [5] */        {64, 172, 80, 292},            Control {    enabled,    133                        },        
  109.         /* [6] */        {84, 172, 100, 292},        Control {    enabled,    134                        },        
  110.         /* [7] */        {104, 172, 120, 292},        Control {    enabled,    135                        },        
  111.         /* [8] */        {124, 172, 140, 292},        Control {    enabled,    136                        },
  112.  
  113. // Tog buttons
  114.                 
  115.         /* [9] */        {64, 320, 80, 440},            Control {    enabled,    137                        },        
  116.         /* [10] */    {84, 320, 100, 440},        Control {    enabled,    138                        },        
  117.         /* [11] */    {104, 320, 120, 440},        Control {    enabled,    139                        },        
  118.         /* [12] */    {124, 320, 140, 440},        Control {    enabled,    140                        },        
  119.  
  120. // Push buttons
  121.  
  122.         /* [13] */    {192, 22, 212, 88},            Control {    enabled,    141                        },    
  123.         /* [14] */    {180, 101, 220, 159},        Button     {    enabled,    "Multi\nLine"    },    
  124.  
  125. // Font popups
  126.         
  127.         /* [15] */    {181, 186, 200, 343},        Control         {enabled,    142                    },
  128.         /* [16] */    {182, 349, 198, 383},        StaticText     {disabled,    "Size:"        },
  129.         /* [17] */    {182, 388, 198, 416},        EditText         {enabled,        "12"            },
  130.         /* [18] */    {181, 422, 200, 447},        Control         {enabled,        143                },
  131.         /* [19] */    {208, 288, 228, 347},        Button             {enabled,        "Set"            },
  132.         
  133. // Group boxes
  134.  
  135.         /* [20] */        {48, 14, 64, 154},        Control {    enabled,    144                        },
  136.         /* [21] */        {48, 164, 64, 304},        Control {    enabled,    145                        },
  137.         /* [22] */        {48, 314, 64, 454},        Control {    enabled,    146                        },
  138.         /* [23] */        {156, 14, 172, 172},    Control {    enabled,    147                        },
  139.         /* [24] */        {156, 182, 172, 454},    Control {    enabled,    148                        }
  140.     }
  141. };
  142.  
  143. // CheckBoxes
  144.  
  145. resource 'CNTL' (129, purgeable) {
  146.     {64, 22, 80, 142},        1,    visible,    1,    0,    
  147.     checkBoxProcUseWFont,    
  148.     0,
  149.     "Check Box 1"
  150. };
  151.  
  152. resource 'CNTL' (130, purgeable) {
  153.     {84, 22, 100, 142},        0,    visible,    1,    0,    
  154.     checkBoxProcUseWFont,    
  155.     0,
  156.     "Check Box 2"
  157. };
  158.  
  159. resource 'CNTL' (131, purgeable) {
  160.     {104, 22, 120, 142},        0,    visible,    1,    0,    
  161.     checkBoxProcUseWFont,    
  162.     0,
  163.     "Check Box 3"
  164. };
  165.  
  166. resource 'CNTL' (132, purgeable) {
  167.     {124, 172, 140, 292},        0,    visible,    1,    0,    
  168.     checkBoxProcUseWFont,    
  169.     0,
  170.     "Check Box 4"
  171. };
  172.  
  173. // Radio Buttons
  174.  
  175. resource 'CNTL' (133, purgeable) {
  176.     {64, 172, 80, 292},        1,    visible,    1,    0,    
  177.     radioButProcUseWFont,    
  178.     0,
  179.     "Radio Button 1"
  180. };
  181.  
  182. resource 'CNTL' (134, purgeable) {
  183.     {84, 172, 100, 292},    0,    visible,    1,    0,    
  184.     radioButProcUseWFont,    
  185.     0,
  186.     "Radio Button 2"
  187. };
  188.  
  189. resource 'CNTL' (135, purgeable) {
  190.     {104, 172, 120, 292},    0,    visible,    1,    0,    
  191.     radioButProcUseWFont,    
  192.     0,
  193.     "Radio Button 3"
  194. };
  195.  
  196. resource 'CNTL' (136, purgeable) {
  197.     {124, 172, 140, 292},    0,    visible,    1,    0,    
  198.     radioButProcUseWFont,    
  199.     0,
  200.     "Radio Button 4"
  201. };
  202.  
  203. // Tog Buttons
  204.  
  205. resource 'CNTL' (137, purgeable) {
  206.     {64, 320, 80, 440},        1,    visible,    1,    0,    
  207.     16*button3D+useWFont+togButton,    
  208.     0,
  209.     "Tog Button 1"
  210. };
  211.  
  212. resource 'CNTL' (138, purgeable) {
  213.     {84, 320, 100, 440},    0,    visible,    1,    0,    
  214.     16*button3D+useWFont+togButton,    
  215.     0,
  216.     "Tog Button 2"
  217. };
  218.  
  219. resource 'CNTL' (139, purgeable) {
  220.     {104, 320, 120, 440},    0,    visible,    1,    0,    
  221.     16*button3D+useWFont+togButton,    
  222.     0,
  223.     "Tog Button 3"
  224. };
  225.  
  226. resource 'CNTL' (140, purgeable) {
  227.     {124, 320, 140, 440},    0,    visible,    1,    0,    
  228.     16*button3D+useWFont+togButton,    
  229.     0,
  230.     "Tog Button 4"
  231. };
  232.  
  233. resource 'CNTL' (141, purgeable) {
  234.     {192, 22, 212, 88},    0,    visible,        1,    0,    
  235.     pushButProc,    
  236.     0,
  237.     "Disabled"
  238. };
  239.  
  240. // Change Font popups
  241.  
  242. resource 'CNTL' (142) {
  243.     {181, 186, 200, 343},    popupTitleRightJust,    visible,    45,        260,    
  244.     16*popUp+useWFont+4+1,    
  245.     'FONT',                                            // refCon
  246.     "Font:"
  247. };
  248.  
  249. resource 'CNTL' (143) {
  250.     {181, 422, 200, 447},    popupTitleRightJust,    visible,    -1,        261,    
  251.     16*popUp+useWFont,            
  252.     0,    
  253.     "popup Symbol only"
  254. };
  255.  
  256. // Group Boxes
  257.  
  258. resource 'CNTL' (144, purgeable) {
  259.     {48, 14, 64, 154},        0,    visible,    100,    0,    
  260.     16*groupBox+ctl3D+useWFont,    
  261.     0,
  262.     "Check Boxes"
  263. };
  264.  
  265. resource 'CNTL' (145, purgeable) {
  266.     {48, 164, 64, 304},        0,    visible,    100,    0,    
  267.     16*groupBox+ctl3D+useWFont,    
  268.     0,
  269.     "Radio Buttons"
  270. };
  271.  
  272. resource 'CNTL' (146, purgeable) {
  273.     {48, 314, 64, 454},        0,    visible,    100,    0,    
  274.     16*groupBox+ctl3D+useWFont,    
  275.     0,
  276.     "╥Tog╙ Buttons"
  277. };
  278.  
  279. resource 'CNTL' (147, purgeable) {
  280.     {156, 14, 172, 172},    0,    visible,    81,        0,    
  281.     16*groupBox+ctl3D+useWFont,    
  282.     0,
  283.     "Push Buttons"
  284. };
  285.  
  286. resource 'CNTL' (148, purgeable) {
  287.     {156, 182, 172, 454},    0,    visible,    81,        0,    
  288.     16*groupBox+ctl3D+useWFont,    
  289.     0,
  290.     "Change Font"
  291. };
  292.  
  293. //----------------------------------------------------------------------------
  294. // Panel 2 - POPUPS - begins here
  295. //----------------------------------------------------------------------------
  296.  
  297. resource 'DITL' (130) {
  298.     {
  299.         /* [1] */    {52, 20, 75, 320},            Control {    enabled,    1301                },
  300.         /* [2] */    {85, 20, 108, 320},            Control {    enabled,    1302                },
  301.         /* [3] */    {118, 20, 141, 320},        Control {    enabled,    1303                },
  302.         /* [4] */    {150, 20, 173, 320},        Control {    enabled,    1304                }
  303.     }
  304. };
  305.  
  306. resource 'CNTL' (1301, purgeable) {
  307.     {52, 20, 75, 320}, popupTitleRightJust,    visible,    120,        256,    
  308.     16*popUp+useWFont+popupFixedWidth+ctl3D,        
  309.     0,    
  310.     "Right:"
  311. };
  312. resource 'CNTL' (1302, purgeable) {
  313.     {85, 20, 108, 320},    popupTitleLeftJust,            visible,    120,        257,    
  314.     16*popUp+useWFont+popupFixedWidth+ctl3D,        
  315.     0,    
  316.     "Left:"
  317. };
  318. resource 'CNTL' (1303, purgeable) {
  319.     {118, 20, 141, 320},    popupTitleCenterJust,    visible,    120,        258,    
  320.     16*popUp+useWFont+popupFixedWidth,        
  321.     0,    
  322.     "Center:"
  323. };
  324. resource 'CNTL' (1304, purgeable) {
  325.     {150, 20, 173, 320},    popupTitleRightJust,    visible,    120,        259,    
  326.     16*popUp+useWFont,        
  327.     0,    
  328.     "Not Fixed Width:"
  329. };
  330.  
  331. resource 'MENU' (256) {
  332.     256, textMenuProc,    allEnabled,    enabled,    "Demo menu",
  333.     {
  334.         /* [1] */    "PopUp CDEF 1",             noIcon, noKey, noMark, plain,
  335.         /* [2] */    "Red Italic",                 noIcon, noKey, noMark, italic,
  336.         /* [3] */    "Blue Outline",             noIcon, noKey, noMark, outline,
  337.         /* [4] */    "Green Bold",                 noIcon, noKey, noMark, bold,
  338.         /* [5] */    "Item Five is a long item", noIcon, noKey, noMark, plain
  339.     }
  340. };
  341. resource 'MENU' (257) {
  342.     257, textMenuProc,    allEnabled,    enabled,    "Demo menu 2",
  343.     {
  344.         /* [1] */    "PopUp CDEF 2",             noIcon, noKey, noMark, plain,
  345.         /* [2] */    "Item 2    ",                         noIcon, noKey, noMark, plain
  346.     }
  347. };
  348. resource 'MENU' (258) {
  349.     258, textMenuProc,    allEnabled,    enabled,    "Demo menu 3",
  350.     {
  351.         /* [1] */    "PopUp CDEF 3",             noIcon, noKey, noMark, plain,
  352.         /* [2] */    "Item 2    ",                         noIcon, noKey, noMark, plain
  353.     }
  354. };
  355. resource 'MENU' (259) {
  356.     259, textMenuProc,    allEnabled,    enabled,    "Demo menu 4",
  357.     {
  358.         /* [1] */    "PopUp CDEF 4",             noIcon, noKey, noMark, plain,
  359.         /* [2] */    "Item 2    ",                         noIcon, noKey, noMark, plain
  360.     }
  361. };
  362.  
  363. resource 'MENU' (260) {
  364.     260, textMenuProc,    allEnabled,    enabled,    "empty Font menu",
  365.     {
  366.     }
  367. };
  368.  
  369. resource 'MENU' (261) {
  370.     261, textMenuProc,    allEnabled,    enabled,    "Font sizes",
  371.     {
  372.         /* [1] */    "9",  noIcon, noKey, noMark, plain,
  373.         /* [2] */    "10", noIcon, noKey, noMark, plain,
  374.         /* [3] */    "12", noIcon, noKey, noMark, plain,
  375.         /* [4] */    "14", noIcon, noKey, noMark, plain,
  376.         /* [5] */    "18", noIcon, noKey, noMark, plain
  377.     }
  378. };
  379.  
  380. resource 'mctb' (256) {
  381.     {
  382.         /* [1] */        256, 0,
  383.         {
  384.             /* [1] */    0, 0, 0,
  385.             /* [2] */    0, 0, 0,
  386.             /* [3] */    0, 0, 0,
  387.             /* [4] */    37715, 65535, 65535
  388.         },
  389.         /* [2] */        256, 2,
  390.         {
  391.             /* [1] */    0, 0, 0,
  392.             /* [2] */    65535,0, 0,
  393.             /* [3] */    0, 0, 0,
  394.             /* [4] */    65535, 65535, 65535
  395.         },
  396.         /* [3] */        256, 3,
  397.         {
  398.             /* [1] */    0, 0, 0,
  399.             /* [2] */    0, 0, 65535,
  400.             /* [3] */    0, 0, 0,
  401.             /* [4] */    65535, 65535, 65535
  402.         },
  403.         /* [4] */        256, 4,
  404.         {
  405.             /* [1] */    0, 0, 0,
  406.             /* [2] */    0, 8738, 0,
  407.             /* [3] */    0, 0, 0,
  408.             /* [4] */    65535, 65535, 65535
  409.         },
  410.         /* [3] */        mctbLast, 0,
  411.         {
  412.             /* [1] */    0, 0, 0,
  413.             /* [2] */    0, 0, 0,
  414.             /* [3] */    0, 0, 0,
  415.             /* [4] */    0, 0, 0
  416.         }
  417.     }
  418. };
  419.  
  420. resource 'mctb' (260) {
  421.     {
  422.         /* [1] */
  423.         260, 0,
  424.         {
  425.             /* [1] */        0, 0, 0,
  426.             /* [2] */        65535, 65535, 65535,
  427.             /* [3] */        0, 0, 65535,
  428.             /* [4] */        37715, 58572, 65535
  429.         },
  430.         /* [2] */
  431.         mctbLast, 0,
  432.         {
  433.             /* [1] */        0, 0, 0,
  434.             /* [2] */        0, 0, 0,
  435.             /* [3] */        0, 0, 0,
  436.             /* [4] */        0, 0, 0
  437.         }
  438.     }
  439. };
  440.  
  441.  
  442. //----------------------------------------------------------------------------
  443. // Panel 3 - SPINNERS - begins here
  444. //----------------------------------------------------------------------------
  445.  
  446. resource 'DITL' (131) {
  447.     {
  448.         /* [1] */    {75,  50, 93, 160},            Control            {    enabled,    1311                },
  449.         /* [2] */    {103, 50, 128, 164},        Control            {    enabled,    1312                },
  450.         /* [3] */    {138, 149, 156, 160},        Control            {    enabled,    1313                },
  451.         /* [4] */    {75,  230, 93, 340},        Control            {    enabled,    1314                },
  452.         /* [5] */    {103, 230, 128, 344},        Control            {    enabled,    1315                },
  453.         /* [6] */    {138, 329, 163, 344},        Control            {    enabled,    1316                },
  454.         /* [7] */ {140, 103, 155, 143},        EditText        { enabled, "0"                    },
  455.         /* [8] */    {142, 287, 158, 324},        StaticText    {    disabled,    "0"            },
  456.     }
  457. };
  458.  
  459. resource 'CNTL' (1311, purgeable) {
  460.     {75,  50, 93, 160},    0,
  461.     visible,    999,        -999,    
  462.     16*spinner+ctl3D+useWFont,
  463.     10,                                                // refCon = increment
  464.     "Small 3D:"
  465. };
  466.  
  467. resource 'CNTL' (1312, purgeable) {
  468.     {103, 50, 128, 164},    0,
  469.     visible,    999,        -999,    
  470.     16*spinner+ctl3D+useWFont+bigArrows,
  471.     0,    
  472.     "Large 3D:"
  473. };
  474.  
  475. resource 'CNTL' (1313, purgeable) {
  476.     {138, 149, 156, 160},    0,
  477.     visible,    999,        -999,    
  478.     16*spinner+ctl3D,                                    
  479.     $000B0005,                                            // refCon = DITL item and increment    
  480.     "Linked to edit item 7 with an increment of 5"
  481.     
  482. // remember, DITLBASE = 4, so 4+7 = 11
  483. };
  484.  
  485. resource 'CNTL' (1314, purgeable) {
  486.     {75,  230, 93, 340},    0,
  487.     visible,    999,        -999,    
  488.     16*spinner+useWFont,
  489.     10,                                                // refCon = increment
  490.     "Small:"
  491. };
  492.  
  493. resource 'CNTL' (1315, purgeable) {
  494.     {103, 230, 128, 344},    0,
  495.     visible,    999,        -999,    
  496.     16*spinner+useWFont+bigArrows,
  497.     0,    
  498.     "Large:"
  499. };
  500.  
  501. // this spinner is going to adjust by 0.10 instead of 1.
  502. // This requires a special action proc for TrackControl
  503. // See trackSpin6 in demoCDEF.c and a bit of special
  504. // initialization (see restorePanel)
  505.  
  506. resource 'CNTL' (1316, purgeable) {
  507.     {138, 329, 163, 344},    0,
  508.     visible,    990,        -990,    
  509.     16*spinner+bigArrows,
  510.     0,    
  511.     "Fractional value"
  512. };
  513.  
  514. //----------------------------------------------------------------------------
  515. // Panel 4 - DATETIME - begins here
  516. //----------------------------------------------------------------------------
  517.  
  518. resource 'DITL' (132) {
  519.     {
  520.         /* [1] */    {47, 90, 65, 263},                Control         {enabled,    1321                    },
  521.         /* [2] */    {72, 90, 90, 270},                Control         {enabled,    1322                    },
  522.         /* [3] */    {97, 90, 115, 200},                Control         {enabled,    1323                    },
  523.         /* [4] */    {122, 90, 140, 261},            Control         {enabled,    1324                    },
  524.         /* [5] */    {147, 90, 184, 270},            Control         {enabled,    1325                    },
  525.         /* [6] */    {192, 90, 229, 270},            Control         {enabled,    1326                    },
  526.         
  527.         /* [7] */        {49, 10, 65, 55},                StaticText     {disabled,    "Variation:"},
  528.         /* [8] */        {49, 60, 65, 80},                StaticText     {disabled,    "0"                    },
  529.         /* [9] */        {74, 60, 90, 80},                StaticText     {disabled,    "1"                    },
  530.         /* [10] */    {99, 60, 115, 80},            StaticText     {disabled,    "2"                    },
  531.         /* [11] */    {125, 60, 141, 80},            StaticText     {disabled,    "8"                    },
  532.         /* [12] */    {154, 60, 170, 80},            StaticText     {disabled,    "4+8"                },
  533.         /* [13] */    {194, 60, 210, 80},            StaticText     {disabled,    "4"                    },
  534.         /* [14] */    {208, 370, 228, 428},        Button             {    enabled,    "Reset"    },
  535.     }
  536. };
  537.  
  538. // non-zero min forces 3D look
  539. // non-zero max forces 24 hour setting
  540.  
  541. resource 'CNTL' (1321) {
  542.     {47, 90, 65, 263},            0,    visible,    only24,        ctl3D,    
  543.     16*dateTime,                        
  544.     0,    
  545.     "Both:"
  546. };
  547. resource 'CNTL' (1322) {
  548.     {72, 90, 90, 270},            0,    visible,    0,                ctl3D,    
  549.     16*dateTime+dateOnly,        
  550.     0,                                                // refCon could be a DateTime value
  551.     "Date:"
  552. };
  553. resource 'CNTL' (1323) {
  554.     {97, 90, 115, 200},            0,    visible,    only24,        ctl3D,    
  555.     16*dateTime+timeOnly,        
  556.     0,    
  557.     "Time:"
  558. };
  559. resource 'CNTL' (1324) {
  560.     {122, 90, 140, 261},        0,    visible,    0,                ctl3D,    
  561.     16*dateTime+useWFont,        
  562.     0,    
  563.     "Both:"
  564. };
  565. resource 'CNTL' (1325) {
  566.     {147, 90, 184, 270},        0,    visible,    0,                ctl3D,    
  567.     16*dateTime+useWFont+dtStack,    
  568.     0,    
  569.     "Date & Time:"
  570. };
  571. resource 'CNTL' (1326) {
  572.     {192, 90, 229, 270},        0,    visible,    0,                0,            
  573.     16*dateTime+dtStack,        
  574.     0,    
  575.     ""
  576. };
  577.  
  578. //----------------------------------------------------------------------------
  579. // Panel 5 - HSLIDERS - begins here
  580. //----------------------------------------------------------------------------
  581.  
  582. resource 'DITL' (133) {
  583.     {
  584.         /* [1] */        {47,  90,  71, 211},        Control         {enabled,1331                        },
  585.         /* [2] */        {87,  90,  111, 211},        Control         {enabled,1332                        },
  586.         /* [3] */        {127, 90, 151, 211},        Control         {enabled,1333                        },
  587.         /* [4] */        {167, 90, 191, 211},        Control            {enabled,1334                        },
  588.         /* [5] */        {207, 90, 231, 211},        Control         {enabled,1335                        },
  589.         /* [6] */        {132, 220, 148, 240},        StaticText     {disabled,    "35"                },
  590.         
  591.         /* [7] */        {51, 10, 67, 55},                StaticText     {disabled,    "Variation:"},
  592.         /* [8] */        {51, 60, 67, 80},                StaticText     {disabled,    "0"                    },
  593.         /* [9] */        {91, 60, 107, 80},            StaticText     {disabled,    "1"                    },
  594.         /* [10] */    {131, 60, 147, 80},            StaticText     {disabled,    "2"                    },
  595.         /* [11] */    {171, 60, 187, 80},            StaticText     {disabled,    "4"                    },
  596.         /* [12] */    {211, 60, 227, 80},            StaticText     {disabled,    "1+4"                },
  597.     }
  598. };
  599.  
  600. resource 'CNTL' (1331, purgeable) {
  601.     {47,  90,  71, 211},        0,    visible,    100,    0,    
  602.     16*hSlider,                            
  603.     0,    ""
  604. };
  605. resource 'CNTL' (1332, purgeable) {
  606.     {87,  90,  111, 211},        0,    visible,    100,    0,    
  607.     16*hSlider+scaleNoFill,    
  608.     0,    ""
  609. };
  610. resource 'CNTL' (1333, purgeable) {
  611.     {127, 90, 151, 211},        0,    visible,    100,    0,    
  612.     16*hSlider+ctl3D,        
  613.     0,    ""
  614. };
  615. resource 'CNTL' (1334, purgeable) {
  616.     {167, 90, 191, 211},        0,    visible,    100,    0,    
  617.     16*hSlider+scaleGray,        
  618.     0,    ""
  619. };
  620. resource 'CNTL' (1335, purgeable) {
  621.     {207, 90, 231, 211},        0,    visible,    100,    0,    
  622.     16*hSlider+scaleNoFill+scaleGray,    
  623.     0,    ""
  624. };
  625.  
  626. //----------------------------------------------------------------------------
  627. // Panel 6 - VSLIDERS - begins here
  628. //----------------------------------------------------------------------------
  629.  
  630. resource 'DITL' (134) {
  631.     {
  632.         /* [1] */        {72,  90,  177,  132},    Control         {enabled,        1341                },
  633.         /* [2] */        {72,  150,  177,  192},    Control         {enabled,        1342                },
  634.         /* [3] */        {72,  210,  177,  252},    Control         {enabled,        1343                },
  635.         /* [4] */        {72,  270,  177,  312},    Control         {enabled,        1344                },
  636.         /* [5] */        {72,  330,  177,  372},    Control         {enabled,        1345                },
  637.         /* [6] */        {72,  390,  213,  432},    Control         {enabled,        1346                },
  638.         /* [7] */        {182, 355,  198,  395}, StaticText     {disabled,    "0"                    },
  639.         
  640.         /* [8] */        {51, 40, 67, 85},                StaticText     {disabled,    "Variation:"},
  641.         /* [9] */        {51, 116, 67, 130},            StaticText     {disabled,    "0"                    },
  642.         /* [10] */    {51, 176, 67, 190},            StaticText     {disabled,    "1"                },
  643.         /* [11] */    {51, 236, 67, 250},            StaticText     {disabled,    "2"                    },
  644.         /* [12] */    {51, 296, 67, 310},            StaticText     {disabled,    "4"                    },
  645.         /* [13] */    {51, 350, 67, 390},            StaticText     {disabled,    "4+8"                },
  646.         /* [14] */    {51, 416, 67, 430},            StaticText     {disabled,    "0"                    }
  647.     }
  648. };
  649.  
  650. resource 'CNTL' (1341, purgeable) {
  651.     {72,  90,  177,  132},    0,    visible,    0,    0,    
  652.     16*vSlider,                            
  653.     0,    ""
  654. };
  655. resource 'CNTL' (1342, purgeable) {
  656.     {72,  150,  177,  192},    0,    visible,    0,    0,    
  657.     16*vSlider+scaleNoFill,    
  658.     0,    ""
  659. };
  660. resource 'CNTL' (1343, purgeable) {
  661.     {72,  210,  177,  252},    0,    visible,    0,    0,    
  662.     16*vSlider+ctl3D,    
  663.     0,    ""
  664. };
  665. resource 'CNTL' (1344, purgeable) {
  666.     {72,  270,  177,  312},    0,    visible,    0,    0,    
  667.     16*vSlider+thumbNoSnap,    
  668.     0,    ""
  669. };
  670. resource 'CNTL' (1345, purgeable) {
  671.     {72,  330,  177,  372},    0,    visible,    0,    0,    
  672.     16*vSlider+thumbNoSnap+scaleBlank,    
  673.     0,    ""
  674. };
  675. resource 'CNTL' (1346, purgeable) {
  676.     {72,  390,  213,  432},    0,    visible,    0,    0,    
  677.     16*vSlider,                            
  678.     10,                                            // refCon = number of sections    
  679.     ""
  680. };
  681. //----------------------------------------------------------------------------
  682. // Panel 7 - PROGBARS - begins here
  683. //----------------------------------------------------------------------------
  684.  
  685. resource 'DITL' (135) {
  686.     {
  687.         /* [1] */        {52, 90, 64, 300},            Control         {    enabled,    1352        },
  688.         /* [2] */        {72, 90, 88, 300},            Control         {    enabled,    1353        },
  689.         /* [3] */        {96, 90, 108, 300},            Control         {    enabled,    1354        },
  690.         /* [4] */        {116, 90, 217, 102},        Control         {    enabled,    1355        },
  691.         /* [5] */        {116, 130, 217, 146},        Control         {    enabled,    1356        },
  692.         /* [6] */        {116, 170, 217, 226},        Control         {    enabled,    1357        },
  693.         /* [7] */        {116, 250, 217, 262},        Control         {    enabled,    1358        },
  694.         /* [8] */        {116, 290, 217, 306},        Control         {    enabled,    1359        },
  695.         /* [9] */        {72, 320, 88, 425},            Control         {    enabled,    1360        },
  696.         /* [10] */    {68, 435, 93, 450},            Control         {    enabled,    1361        },
  697.         
  698.         /* [11] */        {51, 10, 67, 55},            StaticText     {disabled,    "Variation:"},
  699.         /* [12] */    {51, 60, 67, 80},                StaticText     {disabled,    "0"                    },
  700.         /* [13] */    {72, 60, 88, 80},                StaticText     {disabled,    "2"                    },
  701.         /* [14] */    {96, 60, 108, 80},            StaticText     {disabled,    "4"                    },
  702.         /* [15] */    {222, 10, 238, 55},            StaticText     {disabled,    "Variation:"},
  703.         /* [16] */    {222, 92, 238, 102},        StaticText     {disabled,    "1"                    },
  704.         /* [17] */    {222, 128, 238, 148},        StaticText     {disabled,    "1+2"                },
  705.         /* [18] */    {222, 188, 238, 208},        StaticText     {disabled,    "1+2"                },
  706.         /* [19] */    {222, 248, 238, 280},        StaticText     {disabled,    "1+4"                },
  707.         /* [20] */    {222, 282, 238, 320},        StaticText     {disabled,    "1+2+4"                },
  708.     }
  709. };
  710.  
  711. resource 'CNTL' (1352) {
  712.     {52, 90, 64, 300},        5,    visible,    50,        0,    
  713.     16*progBar,                        
  714.     0,    ""
  715. };
  716. resource 'CNTL' (1353) {
  717.     {72, 90, 88, 300},        0,    visible,    40,        0,    
  718.     16*progBar+roundBar,    
  719.     0,    ""
  720. };
  721. resource 'CNTL' (1354) {
  722.     {96, 90, 108, 300},        0,    visible,    1,        0,    
  723.     16*progBar+barberPole,
  724.     0,    ""
  725. };
  726. resource 'CNTL' (1355) {
  727.     {116, 90, 217, 102},    5,    visible,    100,    0,    
  728.     16*progBar+vertBar,        
  729.     0,    ""
  730. };
  731. resource 'CNTL' (1356) {
  732.     {116, 130, 217, 146},    5,    visible,    200,    0,    
  733.     16*progBar+vertBar+roundBar,        
  734.     0,    ""
  735. };
  736. resource 'CNTL' (1357) {
  737.     {116, 170, 217, 226},    5,    visible,    150,    0,    
  738.     16*progBar+vertBar+roundBar,        
  739.     0,    ""
  740. };
  741. resource 'CNTL' (1358) {
  742.     {116, 250, 217, 262},    1,    visible,    1,        0,    
  743.     16*progBar+vertBar+barberPole,        
  744.     0,    ""
  745. };
  746. resource 'CNTL' (1359) {
  747.     {116, 290, 217, 306},    1,    visible,    1,        0,    
  748.     16*progBar+vertBar+roundBar+barberPole,    
  749.     0,    ""
  750. };
  751. resource 'CNTL' (1360) {
  752.     {72, 320, 88, 425},    0,    visible,    100,        0,    
  753.     16*progBar,                    
  754.     0,    ""
  755. };
  756. resource 'CNTL' (1361) {
  757.     {68, 435, 93, 450},    0,    visible,    100,        0,    
  758.     16*spinner+bigArrows+ctl3D,            
  759.     5,                                            // refCon = increment    
  760.     ""
  761. };
  762.  
  763. resource 'cctb' (1356) {
  764.     {
  765.         cFillPatColor, 65535, 0, 0,                        // red bar
  766.         cTingeLight, 65535, 65535, 65535            // white background
  767.     }
  768. };
  769.  
  770. resource 'cctb' (1355) {
  771.     {
  772.         cFillPatColor, 0, 0, 65535,                        // blue bar
  773.         cTingeLight, 52428, 65535, 65535            // lt blue background
  774.     }
  775. };
  776.  
  777. resource 'cctb' (1358) {
  778.     {
  779.         cFillPatColor, 65535, 0, 0,                        // red bar
  780.         cTingeLight, 65535, 65535, 65535            // white background
  781.     }
  782. };
  783.  
  784. resource 'ALRT' (256, "Need DITLExt", purgeable) {
  785.     {120, 70, 224, 442},
  786.     256,                                        /* DITL id */
  787.     {
  788.         OK, visible, sound1;    /* Stage 4 */
  789.         OK, visible, sound1;    /* Stage 3 */
  790.         OK, visible, sound1;    /* Stage 2 */
  791.         OK, visible, sound1     /* Stage 1 */
  792.     }
  793. };
  794.  
  795. resource 'DITL' (256, purgeable) {
  796.   {
  797.     /* [1] */ {76, 292, 96, 360},            Button            { enabled , "OK" },
  798.     /* [2] */ {16,  64, 48, 328},            StaticText    { disabled , 
  799.                 "This program requires System 7 or System 6 with CommToolbox." }
  800.   }
  801. };
  802.