home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Carousel Volume 2 #1
/
carousel.iso
/
mactosh
/
lang
/
listmana.sha
/
test.r
< prev
Wrap
Text File
|
1986-07-10
|
2KB
|
134 lines
*
*
* TestR -- Resource input for List Manager Testing
* EHB March 85, dlc June 86
*
test
Type MENU
,1
\14
Type MENU
,256
File
Quit
Type MENU
,257
Edit
Undo
(-
Cut
Copy
Paste
Find First
Find All
Type MENU
,258
Munge
Add Row
Delete Row
Add Column
Delete Column
Clear Selections
Renumber Cells
Update List
Type MENU
,259
Selections
Unused Bit
Don't Hilite Empty Cells
Use Cell Sense
No Rect Extend
No Extend Select
No Disjoint
Drag Extend
No Multiple Selections
Type MENU
,260
New List
New List
Horiz. Scroll
Vert. Scroll
Grow Box
Drawing On
(Bounds Rect
(View Rect
Type WIND
,256
A Sample
50 40 321 500
Visible GoAway
0
0
Type TEST = STR
,0
Test Version 1.0 - 4 June 85
Type DLOG
,128
Search
100 100 190 400
visible nogoaway
200
1
0
Type DITL
,200
3
BtnItem Enabled
60 230 80 290
OK
StatText Disabled
15 20 36 300
Enter the string to search for:
EditText Enabled
35 20 56 300
* Tried to handle putting the list definition in by using
* Type LDEF = PROC
* ,0
* ldproc0
* where ldproc0 was a linked code file generated from an
* assembled default list definition, but it (ln? rgen?)
* kept putting an extra 4 bytes at the beginning of the
* file contents. So, the LDEF is borrowed from the System
* file instead.
* A method to define another LDEF is suggested in MacTutor
* ($30 per year, P.O. Box 400, Placentia CA 92670 (714)630-3730)
* by Mike Schuster in "C Workshop: Palette Selection in Aztec C"
* pp. 17-23, April 1986. In the .r file:
* Type LDEF = GNRL
* ,256(4)
* .H
* 4EF9 0000 0000
* And in the program:
* pascal void IconListDef(lMessage, lSelect, lRect, lCell,
* lDataOffset, lDataLen, lHandle)
* Rect *lRect;
* long lCell;
* ListHandle lHandle;
* {
* ...
* } /* end of IconListDef() */
* ...
* theLDEF = GetResource('LDEF', 256);
* *(long *)(*theLDEF + 2) = (long)&IconListDef;
* Mike notes, "This scheme is reasonable since the LDEF resource
* is non-purgeable and the IconListDef routine is in a non-
* relocatable CODE resource."
INCLUDE test.code