home *** CD-ROM | disk | FTP | other *** search
/ Carousel Volume 2 #1 / carousel.iso / mactosh / lang / listmana.sha / test.r < prev   
Text File  |  1986-07-10  |  2KB  |  134 lines

  1.  
  2. *
  3. *
  4. *  TestR -- Resource input for List Manager Testing
  5. *               EHB March 85, dlc June 86
  6. *
  7. test
  8.  
  9. Type MENU
  10.     ,1
  11.     \14
  12.  
  13. Type MENU
  14.     ,256
  15.     File
  16.         Quit
  17.  
  18. Type MENU
  19.     ,257
  20.     Edit
  21.         Undo
  22.         (-
  23.         Cut
  24.         Copy
  25.         Paste
  26.         Find First
  27.         Find All
  28.  
  29. Type MENU
  30.     ,258
  31.     Munge
  32.         Add Row
  33.         Delete Row
  34.         Add Column
  35.         Delete Column
  36.         Clear Selections
  37.         Renumber Cells
  38.         Update List
  39.  
  40. Type MENU
  41.     ,259
  42.     Selections
  43.         Unused Bit
  44.         Don't Hilite Empty Cells
  45.         Use Cell Sense
  46.         No Rect Extend
  47.         No Extend Select
  48.         No Disjoint
  49.         Drag Extend
  50.         No Multiple Selections
  51.  
  52. Type MENU
  53.     ,260
  54.     New List
  55.         New List
  56.         Horiz. Scroll
  57.         Vert. Scroll
  58.         Grow Box
  59.         Drawing On
  60.         (Bounds Rect
  61.         (View Rect
  62.  
  63. Type WIND
  64. ,256
  65.     A Sample
  66.     50 40 321 500
  67.     Visible GoAway
  68.     0
  69.     0
  70.  
  71. Type TEST = STR
  72.     ,0
  73.     Test Version 1.0    - 4 June 85
  74.  
  75. Type DLOG
  76.     ,128
  77.     Search
  78.     100 100 190 400
  79.     visible nogoaway
  80.     200
  81.     1
  82.     0
  83.  
  84. Type DITL
  85.     ,200
  86.     3
  87.     BtnItem Enabled
  88.     60 230 80 290
  89.     OK
  90.  
  91.     StatText Disabled
  92.     15 20 36 300
  93.     Enter the string to search for:
  94.  
  95.     EditText Enabled
  96.     35 20 56 300
  97.  
  98.  
  99. *    Tried to handle putting the list definition in by using
  100. *        Type LDEF = PROC
  101. *            ,0
  102. *        ldproc0
  103. *    where ldproc0 was a linked code file generated from an
  104. *    assembled default list definition, but it (ln? rgen?)
  105. *    kept putting an extra 4 bytes at the beginning of the
  106. *    file contents.  So, the LDEF is borrowed from the System
  107. *    file instead.
  108.  
  109. *    A method to define another LDEF is suggested in MacTutor
  110. *    ($30 per year, P.O. Box 400, Placentia CA 92670 (714)630-3730)
  111. *    by Mike Schuster in "C Workshop: Palette Selection in Aztec C"
  112. *    pp. 17-23, April 1986.  In the .r file:
  113. *        Type LDEF = GNRL
  114. *            ,256(4)
  115. *        .H
  116. *        4EF9 0000 0000
  117. *    And in the program:
  118. *        pascal void IconListDef(lMessage, lSelect, lRect, lCell,
  119. *            lDataOffset, lDataLen, lHandle)
  120. *        Rect        *lRect;
  121. *        long        lCell;
  122. *        ListHandle    lHandle;
  123. *        {
  124. *            ...
  125. *        } /* end of IconListDef() */
  126. *            ...
  127. *        theLDEF = GetResource('LDEF', 256);
  128. *        *(long *)(*theLDEF + 2) = (long)&IconListDef;
  129. *    Mike notes, "This scheme is reasonable since the LDEF resource
  130. *    is non-purgeable and the IconListDef routine is in a non-
  131. *    relocatable CODE resource."
  132. INCLUDE    test.code
  133.  
  134.