home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / source / tarsrc.sit / dialog.c.bin < prev    next >
MacBinary  |  1989-09-14  |  8.3 KB  |  [TEXT/????]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: MacBinary (archive/macBinary).

You can browse this item here: dialog.c.bin

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert AMOS Picture Packer (image/amosPicturePacker) ext Supported
1% dexvert Debian floppy split (archive/debianFloppySplit) ext Unsupported
1% dexvert Sound Images sound sample (audio/soundImagesSoundSample) ext Unsupported
1% dexvert DESI-III drawing (image/desiIIIDrawing) ext Unsupported
1% dexvert MS-DOS PMODE extender executable (executable/msdosPMODEExtenderExecutable) ext Unsupported
1% dexvert Alien Trilogytextures (other/alienTrilogyTextures) ext Unsupported
1% dexvert APT cache data (other/aptCacheData) ext Unsupported
1% dexvert CorelTRACE configuration (other/corelTRACEConfiguration) ext Unsupported
1% dexvert Dreamcast Disc (other/dreamcastDisc) ext Unsupported
1% dexvert EST flat binary (other/estFlatBinary) ext Unsupported
1% dexvert Finale Enigma Binary Format (other/finaleEnigmaBinaryFormat) ext Unsupported
1% dexvert Sega Genesis/Megadrive/32x ROM (other/genesisROM) ext Unsupported
1% dexvert Myth: The Fallen Lords game archive (other/mythTheFallenLordsGameArchive) ext Unsupported
1% dexvert Sound Images Sound Driver (other/soundImagesSoundDriver) ext Unsupported
1% dexvert Symantec/Norton Config (other/symantecNortonConfig) ext Unsupported
1% dexvert Vectrex ROM (other/vectrexROM) ext Unsupported
1% dexvert BIS raP encoded format (other/bisraPEncoded) ext Unsupported
1% dexvert Pascal Script binary (other/pascalScriptBinary) ext Unsupported
1% dexvert 7th Level game data archive (other/seventhLevelGameDataArchive) ext Unsupported
1% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Binary Text (image/binaryText) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary, Wed Jan 18 16:53:40 1989, modified Mon May 29 08:52:33 1989, creator '????', type ASCII, 7921 bytes "dialog.c" , at 0x1f71 382 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 1 default (weak)
100% lsar MacBinary default
100% gt2 MAC Bilddatei default (weak)


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[????]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 08 64 69 61 6c 6f 67 | 2e 63 00 00 00 00 00 00 |..dialog|.c......|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 3f 3f 3f | 3f 00 00 00 00 00 00 00 |.TEXT???|?.......|
|00000050| 00 00 00 00 00 1e f1 00 | 00 01 7e 9f fa b7 e4 a0 |........|..~.....|
|00000060| a6 ed 91 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000080| 2f 2a 0d 20 2a 20 4d 61 | 63 69 6e 74 6f 73 68 20 |/*. * Ma|cintosh |
|00000090| 54 61 72 0d 20 2a 0d 20 | 2a 20 54 68 65 20 72 6f |Tar. *. |* The ro|
|000000a0| 75 74 69 6e 65 73 20 69 | 6e 20 74 68 69 73 20 66 |utines i|n this f|
|000000b0| 69 6c 65 20 64 65 61 6c | 20 77 69 74 68 20 74 68 |ile deal| with th|
|000000c0| 65 20 64 69 61 6c 6f 67 | 73 20 70 72 65 73 65 6e |e dialog|s presen|
|000000d0| 74 65 64 20 74 6f 20 74 | 68 65 20 75 73 65 72 2e |ted to t|he user.|
|000000e0| 0d 20 2a 0d 20 2a 20 57 | 72 69 74 74 65 6e 20 62 |. *. * W|ritten b|
|000000f0| 79 20 43 72 61 69 67 20 | 52 75 66 66 2e 0d 20 2a |y Craig |Ruff.. *|
|00000100| 0d 20 2a 20 4e 6f 74 65 | 20 74 68 61 74 20 74 68 |. * Note| that th|
|00000110| 65 20 64 69 61 6c 6f 67 | 20 64 65 61 6c 69 6e 67 |e dialog| dealing|
|00000120| 20 77 69 74 68 20 64 69 | 72 65 63 74 6f 72 79 20 | with di|rectory |
|00000130| 73 65 6c 65 63 74 69 6f | 6e 20 69 73 20 69 6e 20 |selectio|n is in |
|00000140| 64 69 72 2e 63 2e 0d 20 | 2a 2f 0d 0d 23 69 6e 63 |dir.c.. |*/..#inc|
|00000150| 6c 75 64 65 20 22 74 61 | 72 2e 68 22 0d 23 69 6e |lude "ta|r.h".#in|
|00000160| 63 6c 75 64 65 20 3c 52 | 65 73 6f 75 72 63 65 73 |clude <R|esources|
|00000170| 2e 68 3e 0d 23 69 6e 63 | 6c 75 64 65 20 3c 53 65 |.h>.#inc|lude <Se|
|00000180| 67 4c 6f 61 64 2e 68 3e | 0d 0d 2f 2a 0d 20 2a 20 |gLoad.h>|../*. * |
|00000190| 44 69 61 6c 6f 67 20 64 | 65 66 69 6e 69 74 69 6f |Dialog d|efinitio|
|000001a0| 6e 73 0d 20 2a 2f 0d 23 | 64 65 66 69 6e 65 20 61 |ns. */.#|define a|
|000001b0| 62 6f 75 74 49 44 09 09 | 31 32 38 09 09 2f 2a 20 |boutID..|128../* |
|000001c0| 54 68 65 20 22 41 62 6f | 75 74 20 2e 2e 2e 22 20 |The "Abo|ut ..." |
|000001d0| 64 69 61 6c 6f 67 20 2a | 2f 0d 23 64 65 66 69 6e |dialog *|/.#defin|
|000001e0| 65 20 6f 6b 49 74 65 6d | 09 09 31 0d 0d 23 64 65 |e okItem|..1..#de|
|000001f0| 66 69 6e 65 20 62 6c 6f | 63 6b 49 44 09 09 31 32 |fine blo|ckID..12|
|00000200| 39 09 09 2f 2a 20 54 68 | 65 20 62 6c 6f 63 6b 20 |9../* Th|e block |
|00000210| 73 69 7a 65 20 64 69 61 | 6c 6f 67 20 2a 2f 0d 23 |size dia|log */.#|
|00000220| 64 65 66 69 6e 65 20 73 | 69 7a 65 49 74 65 6d 09 |define s|izeItem.|
|00000230| 33 0d 0d 23 64 65 66 69 | 6e 65 20 74 79 70 65 49 |3..#defi|ne typeI|
|00000240| 44 09 09 31 33 31 09 09 | 2f 2a 20 43 72 65 61 74 |D..131..|/* Creat|
|00000250| 6f 72 2f 54 79 70 65 20 | 64 69 61 6c 6f 67 20 2a |or/Type |dialog *|
|00000260| 2f 0d 23 64 65 66 69 6e | 65 20 63 72 65 61 74 6f |/.#defin|e creato|
|00000270| 72 49 74 65 6d 09 33 0d | 23 64 65 66 69 6e 65 20 |rItem.3.|#define |
|00000280| 74 79 70 65 49 74 65 6d | 09 34 0d 0d 2f 2a 0d 20 |typeItem|.4../*. |
|00000290| 2a 20 41 6c 65 72 74 20 | 44 65 66 69 6e 69 74 69 |* Alert |Definiti|
|000002a0| 6f 6e 73 0d 20 2a 2f 0d | 23 64 65 66 69 6e 65 20 |ons. */.|#define |
|000002b0| 62 61 64 42 6c 6f 63 6b | 49 44 09 31 32 39 09 09 |badBlock|ID.129..|
|000002c0| 2f 2a 20 42 6c 6f 63 6b | 20 73 69 7a 65 20 69 6e |/* Block| size in|
|000002d0| 63 6f 72 72 65 63 74 20 | 61 6c 65 72 74 20 2a 2f |correct |alert */|
|000002e0| 0d 23 64 65 66 69 6e 65 | 20 6f 73 45 72 72 49 44 |.#define| osErrID|
|000002f0| 09 09 31 33 30 09 09 2f | 2a 20 47 65 6e 65 72 69 |..130../|* Generi|
|00000300| 63 20 4f 53 20 45 72 72 | 6f 72 20 61 6c 65 72 74 |c OS Err|or alert|
|00000310| 20 2a 2f 0d 23 64 65 66 | 69 6e 65 20 70 67 6d 45 | */.#def|ine pgmE|
|00000320| 72 72 49 44 09 31 33 31 | 09 09 2f 2a 20 50 72 6f |rrID.131|../* Pro|
|00000330| 67 72 61 6d 20 6c 6f 67 | 69 63 20 65 72 72 6f 72 |gram log|ic error|
|00000340| 20 61 6c 65 72 74 20 2a | 2f 0d 23 64 65 66 69 6e | alert *|/.#defin|
|00000350| 65 20 68 66 73 49 44 09 | 09 31 33 32 09 09 2f 2a |e hfsID.|.132../*|
|00000360| 20 4d 75 73 74 20 72 75 | 6e 20 75 6e 64 65 72 20 | Must ru|n under |
|00000370| 48 46 53 20 61 6c 65 72 | 74 20 2a 2f 0d 23 64 65 |HFS aler|t */.#de|
|00000380| 66 69 6e 65 20 61 73 6b | 69 70 49 44 09 09 31 33 |fine ask|ipID..13|
|00000390| 33 09 09 2f 2a 20 53 6b | 69 70 70 69 6e 67 20 61 |3../* Sk|ipping a|
|000003a0| 72 63 68 69 76 65 20 66 | 69 6c 65 20 6e 6f 74 65 |rchive f|ile note|
|000003b0| 20 2a 2f 0d 23 64 65 66 | 69 6e 65 20 73 74 6b 45 | */.#def|ine stkE|
|000003c0| 72 72 49 44 09 31 33 34 | 09 09 2f 2a 20 53 74 61 |rrID.134|../* Sta|
|000003d0| 63 6b 20 65 72 72 6f 72 | 20 61 6c 65 72 74 20 2a |ck error| alert *|
|000003e0| 2f 0d 23 64 65 66 69 6e | 65 20 64 66 49 44 09 09 |/.#defin|e dfID..|
|000003f0| 31 33 35 09 09 2f 2a 20 | 44 69 73 6b 20 66 75 6c |135../* |Disk ful|
|00000400| 6c 20 61 6c 65 72 74 20 | 2a 2f 0d 0d 2f 2a 0d 20 |l alert |*/../*. |
|00000410| 2a 20 41 62 6f 75 74 46 | 69 6c 74 65 72 20 2d 20 |* AboutF|ilter - |
|00000420| 6d 61 6e 61 67 65 20 74 | 68 65 20 22 41 62 6f 75 |manage t|he "Abou|
|00000430| 74 20 2e 2e 2e 22 20 64 | 69 61 6c 6f 67 0d 20 2a |t ..." d|ialog. *|
|00000440| 0d 20 2a 09 52 65 74 75 | 72 6e 73 20 77 68 65 6e |. *.Retu|rns when|
|00000450| 20 74 68 65 20 6d 6f 75 | 73 65 20 6f 72 20 61 20 | the mou|se or a |
|00000460| 6b 65 79 20 69 73 20 70 | 72 65 73 73 65 64 20 61 |key is p|ressed a|
|00000470| 6e 79 77 68 65 72 65 2e | 0d 20 2a 2f 0d 70 61 73 |nywhere.|. */.pas|
|00000480| 63 61 6c 20 42 6f 6f 6c | 65 61 6e 0d 41 62 6f 75 |cal Bool|ean.Abou|
|00000490| 74 46 69 6c 74 65 72 28 | 74 68 65 44 69 61 6c 6f |tFilter(|theDialo|
|000004a0| 67 2c 20 74 68 65 45 76 | 65 6e 74 2c 20 69 74 65 |g, theEv|ent, ite|
|000004b0| 6d 48 69 74 29 0d 44 69 | 61 6c 6f 67 50 74 72 09 |mHit).Di|alogPtr.|
|000004c0| 74 68 65 44 69 61 6c 6f | 67 3b 0d 45 76 65 6e 74 |theDialo|g;.Event|
|000004d0| 52 65 63 6f 72 64 09 2a | 74 68 65 45 76 65 6e 74 |Record.*|theEvent|
|000004e0| 3b 0d 73 68 6f 72 74 09 | 09 2a 69 74 65 6d 48 69 |;.short.|.*itemHi|
|000004f0| 74 3b 0d 7b 0d 23 70 72 | 61 67 6d 61 20 75 6e 75 |t;.{.#pr|agma unu|
|00000500| 73 65 64 28 74 68 65 44 | 69 61 6c 6f 67 29 0d 0d |sed(theD|ialog)..|
|00000510| 09 73 77 69 74 63 68 20 | 28 74 68 65 45 76 65 6e |.switch |(theEven|
|00000520| 74 2d 3e 77 68 61 74 29 | 20 7b 0d 09 63 61 73 65 |t->what)| {..case|
|00000530| 20 6b 65 79 44 6f 77 6e | 3a 0d 09 63 61 73 65 20 | keyDown|:..case |
|00000540| 6d 6f 75 73 65 44 6f 77 | 6e 3a 0d 09 09 2a 69 74 |mouseDow|n:...*it|
|00000550| 65 6d 48 69 74 20 3d 20 | 31 3b 0d 09 09 72 65 74 |emHit = |1;...ret|
|00000560| 75 72 6e 28 74 72 75 65 | 29 3b 0d 09 09 62 72 65 |urn(true|);...bre|
|00000570| 61 6b 3b 0d 0d 09 64 65 | 66 61 75 6c 74 3a 0d 09 |ak;...de|fault:..|
|00000580| 09 72 65 74 75 72 6e 28 | 66 61 6c 73 65 29 3b 0d |.return(|false);.|
|00000590| 09 09 62 72 65 61 6b 3b | 0d 09 7d 0d 7d 0d 0d 2f |..break;|..}.}../|
|000005a0| 2a 0d 20 2a 20 44 6f 41 | 62 6f 75 74 42 6f 78 20 |*. * DoA|boutBox |
|000005b0| 2d 20 70 75 74 20 74 68 | 65 20 22 41 62 6f 75 74 |- put th|e "About|
|000005c0| 20 2e 2e 2e 22 20 64 69 | 61 6c 6f 67 20 6f 6e 20 | ..." di|alog on |
|000005d0| 74 68 65 20 73 63 72 65 | 65 6e 0d 20 2a 2f 0d 44 |the scre|en. */.D|
|000005e0| 6f 41 62 6f 75 74 42 6f | 78 28 29 20 7b 0d 09 73 |oAboutBo|x() {..s|
|000005f0| 68 6f 72 74 09 09 69 74 | 65 6d 48 69 74 2c 20 69 |hort..it|emHit, i|
|00000600| 74 65 6d 54 79 70 65 3b | 0d 09 57 69 6e 64 6f 77 |temType;|..Window|
|00000610| 50 74 72 09 6d 79 57 69 | 6e 64 6f 77 3b 0d 09 47 |Ptr.myWi|ndow;..G|
|00000620| 72 61 66 50 74 72 09 09 | 74 68 65 50 6f 72 74 3b |rafPtr..|thePort;|
|00000630| 0d 09 50 65 6e 53 74 61 | 74 65 09 70 6e 3b 0d 09 |..PenSta|te.pn;..|
|00000640| 52 65 63 74 09 09 6f 6b | 42 6f 78 3b 0d 09 48 61 |Rect..ok|Box;..Ha|
|00000650| 6e 64 6c 65 09 09 6f 6b | 48 64 6c 3b 0d 0d 09 47 |ndle..ok|Hdl;...G|
|00000660| 65 74 50 6f 72 74 28 26 | 74 68 65 50 6f 72 74 29 |etPort(&|thePort)|
|00000670| 3b 0d 09 6d 79 57 69 6e | 64 6f 77 20 3d 20 47 65 |;..myWin|dow = Ge|
|00000680| 74 4e 65 77 44 69 61 6c | 6f 67 28 61 62 6f 75 74 |tNewDial|og(about|
|00000690| 49 44 2c 20 6e 69 6c 2c | 20 28 57 69 6e 64 6f 77 |ID, nil,| (Window|
|000006a0| 50 74 72 29 20 2d 31 29 | 3b 0d 09 47 65 74 44 49 |Ptr) -1)|;..GetDI|
|000006b0| 74 65 6d 28 6d 79 57 69 | 6e 64 6f 77 2c 20 6f 6b |tem(myWi|ndow, ok|
|000006c0| 49 74 65 6d 2c 20 26 69 | 74 65 6d 54 79 70 65 2c |Item, &i|temType,|
|000006d0| 20 26 6f 6b 48 64 6c 2c | 20 26 6f 6b 42 6f 78 29 | &okHdl,| &okBox)|
|000006e0| 3b 0d 09 53 65 74 50 6f | 72 74 28 6d 79 57 69 6e |;..SetPo|rt(myWin|
|000006f0| 64 6f 77 29 3b 0d 09 49 | 6e 73 65 74 52 65 63 74 |dow);..I|nsetRect|
|00000700| 28 26 6f 6b 42 6f 78 2c | 20 2d 34 2c 20 2d 34 29 |(&okBox,| -4, -4)|
|00000710| 3b 0d 09 47 65 74 50 65 | 6e 53 74 61 74 65 28 26 |;..GetPe|nState(&|
|00000720| 70 6e 29 3b 0d 09 50 65 | 6e 53 69 7a 65 28 33 2c |pn);..Pe|nSize(3,|
|00000730| 20 33 29 3b 0d 09 46 72 | 61 6d 65 52 6f 75 6e 64 | 3);..Fr|ameRound|
|00000740| 52 65 63 74 28 26 6f 6b | 42 6f 78 2c 20 31 36 2c |Rect(&ok|Box, 16,|
|00000750| 20 31 36 29 3b 0d 09 53 | 65 74 50 65 6e 53 74 61 | 16);..S|etPenSta|
|00000760| 74 65 28 26 70 6e 29 3b | 0d 09 64 6f 20 7b 0d 09 |te(&pn);|..do {..|
|00000770| 09 4d 6f 64 61 6c 44 69 | 61 6c 6f 67 28 41 62 6f |.ModalDi|alog(Abo|
|00000780| 75 74 46 69 6c 74 65 72 | 2c 20 26 69 74 65 6d 48 |utFilter|, &itemH|
|00000790| 69 74 29 3b 0d 09 7d 20 | 77 68 69 6c 65 20 28 69 |it);..} |while (i|
|000007a0| 74 65 6d 48 69 74 20 21 | 3d 20 31 29 3b 0d 0d 09 |temHit !|= 1);...|
|000007b0| 44 69 73 70 6f 73 44 69 | 61 6c 6f 67 28 6d 79 57 |DisposDi|alog(myW|
|000007c0| 69 6e 64 6f 77 29 3b 0d | 09 53 65 74 50 6f 72 74 |indow);.|.SetPort|
|000007d0| 28 74 68 65 50 6f 72 74 | 29 3b 0d 7d 0d 0d 2f 2a |(thePort|);.}../*|
|000007e0| 0d 20 2a 20 56 61 6c 69 | 64 42 6c 6f 63 6b 53 69 |. * Vali|dBlockSi|
|000007f0| 7a 65 20 2d 20 63 68 65 | 63 6b 73 20 74 68 65 20 |ze - che|cks the |
|00000800| 75 73 65 72 20 65 6e 74 | 65 72 65 64 20 62 6c 6f |user ent|ered blo|
|00000810| 63 6b 73 69 7a 65 20 66 | 6f 72 20 76 61 6c 69 64 |cksize f|or valid|
|00000820| 69 74 79 2e 0d 20 2a 0d | 20 2a 09 52 65 74 75 72 |ity.. *.| *.Retur|
|00000830| 6e 73 20 74 72 75 65 20 | 69 66 20 6f 6b 2c 20 66 |ns true |if ok, f|
|00000840| 61 6c 73 65 20 69 66 20 | 62 61 64 2e 0d 20 2a 2f |alse if |bad.. */|
|00000850| 0d 42 6f 6f 6c 65 61 6e | 0d 56 61 6c 69 64 42 6c |.Boolean|.ValidBl|
|00000860| 6f 63 6b 53 69 7a 65 28 | 74 68 65 44 69 61 6c 6f |ockSize(|theDialo|
|00000870| 67 29 0d 44 69 61 6c 6f | 67 50 74 72 09 74 68 65 |g).Dialo|gPtr.the|
|00000880| 44 69 61 6c 6f 67 3b 0d | 7b 0d 09 6c 6f 6e 67 09 |Dialog;.|{..long.|
|00000890| 6e 3b 0d 09 73 68 6f 72 | 74 09 74 79 70 65 3b 0d |n;..shor|t.type;.|
|000008a0| 09 48 61 6e 64 6c 65 09 | 68 64 6c 3b 0d 09 52 65 |.Handle.|hdl;..Re|
|000008b0| 63 74 09 62 6f 78 3b 0d | 09 63 68 61 72 09 74 65 |ct.box;.|.char.te|
|000008c0| 78 74 5b 32 35 36 5d 3b | 0d 0d 09 47 65 74 44 49 |xt[256];|...GetDI|
|000008d0| 74 65 6d 28 74 68 65 44 | 69 61 6c 6f 67 2c 20 73 |tem(theD|ialog, s|
|000008e0| 69 7a 65 49 74 65 6d 2c | 20 26 74 79 70 65 2c 20 |izeItem,| &type, |
|000008f0| 26 68 64 6c 2c 20 26 62 | 6f 78 29 3b 0d 09 47 65 |&hdl, &b|ox);..Ge|
|00000900| 74 49 54 65 78 74 28 68 | 64 6c 2c 20 74 65 78 74 |tIText(h|dl, text|
|00000910| 29 3b 0d 09 53 74 72 69 | 6e 67 54 6f 4e 75 6d 28 |);..Stri|ngToNum(|
|00000920| 74 65 78 74 2c 20 26 6e | 29 3b 0d 0d 09 2f 2a 0d |text, &n|);.../*.|
|00000930| 09 20 2a 20 54 68 65 73 | 65 20 6c 69 6d 69 74 73 |. * Thes|e limits|
|00000940| 20 61 72 65 20 73 6f 6d | 65 77 68 61 74 20 61 72 | are som|ewhat ar|
|00000950| 62 69 74 72 61 72 79 2e | 0d 09 20 2a 2f 0d 09 69 |bitrary.|.. */..i|
|00000960| 66 20 28 28 6e 20 3c 20 | 31 29 20 7c 7c 20 28 6e |f ((n < |1) || (n|
|00000970| 20 3e 20 31 32 38 29 29 | 20 7b 0d 09 09 4e 6f 74 | > 128))| {...Not|
|00000980| 65 41 6c 65 72 74 28 62 | 61 64 42 6c 6f 63 6b 49 |eAlert(b|adBlockI|
|00000990| 44 2c 20 6e 69 6c 29 3b | 0d 09 09 53 65 6c 49 54 |D, nil);|...SelIT|
|000009a0| 65 78 74 28 74 68 65 44 | 69 61 6c 6f 67 2c 20 73 |ext(theD|ialog, s|
|000009b0| 69 7a 65 49 74 65 6d 2c | 20 30 2c 20 33 32 37 36 |izeItem,| 0, 3276|
|000009c0| 37 29 3b 0d 09 09 72 65 | 74 75 72 6e 28 66 61 6c |7);...re|turn(fal|
|000009d0| 73 65 29 3b 0d 09 7d 0d | 0d 09 62 6c 6f 63 6b 69 |se);..}.|..blocki|
|000009e0| 6e 67 20 3d 20 28 69 6e | 74 29 20 6e 3b 0d 09 62 |ng = (in|t) n;..b|
|000009f0| 6c 6f 63 6b 53 69 7a 65 | 20 3d 20 62 6c 6f 63 6b |lockSize| = block|
|00000a00| 69 6e 67 20 2a 20 52 45 | 43 4f 52 44 53 49 5a 45 |ing * RE|CORDSIZE|
|00000a10| 3b 0d 09 72 65 74 75 72 | 6e 28 74 72 75 65 29 3b |;..retur|n(true);|
|00000a20| 0d 7d 0d 0d 52 65 63 74 | 09 09 6f 6b 42 6f 78 3b |.}..Rect|..okBox;|
|00000a30| 09 09 2f 2a 20 6f 6b 20 | 42 6f 78 20 6c 6f 63 61 |../* ok |Box loca|
|00000a40| 74 69 6f 6e 20 28 67 6f | 74 74 65 6e 20 6f 6e 63 |tion (go|tten onc|
|00000a50| 65 20 66 6f 72 20 73 70 | 65 65 64 29 20 2a 2f 0d |e for sp|eed) */.|
|00000a60| 43 6f 6e 74 72 6f 6c 48 | 61 6e 64 6c 65 09 6f 6b |ControlH|andle.ok|
|00000a70| 48 64 6c 3b 09 09 2f 2a | 20 6f 6b 20 42 6f 78 20 |Hdl;../*| ok Box |
|00000a80| 68 61 6e 64 6c 65 20 2a | 2f 0d 0d 2f 2a 0d 20 2a |handle *|/../*. *|
|00000a90| 20 42 6c 6f 63 6b 46 69 | 6c 74 65 72 20 2d 20 6d | BlockFi|lter - m|
|00000aa0| 61 6e 61 67 65 20 75 73 | 65 72 20 65 76 65 6e 74 |anage us|er event|
|00000ab0| 73 20 64 75 72 69 6e 67 | 20 74 68 65 20 62 6c 6f |s during| the blo|
|00000ac0| 63 6b 20 73 69 7a 65 20 | 64 69 61 6c 6f 67 0d 20 |ck size |dialog. |
|00000ad0| 2a 0d 20 2a 09 41 6c 6c | 6f 77 73 20 6e 75 6d 65 |*. *.All|ows nume|
|00000ae0| 72 69 63 20 65 6e 74 72 | 79 20 61 6e 64 20 65 64 |ric entr|y and ed|
|00000af0| 69 74 69 6e 67 2c 20 76 | 61 6c 69 64 61 74 65 73 |iting, v|alidates|
|00000b00| 20 73 69 7a 65 2e 0d 20 | 2a 09 52 65 74 75 72 6e | size.. |*.Return|
|00000b10| 73 20 74 72 75 65 20 69 | 66 20 74 68 65 20 64 69 |s true i|f the di|
|00000b20| 61 6c 6f 67 20 73 68 6f | 75 6c 64 20 65 78 69 74 |alog sho|uld exit|
|00000b30| 2c 20 66 61 6c 73 65 20 | 74 6f 20 63 6f 6e 74 69 |, false |to conti|
|00000b40| 6e 75 65 2e 0d 20 2a 2f | 0d 70 61 73 63 61 6c 20 |nue.. */|.pascal |
|00000b50| 42 6f 6f 6c 65 61 6e 0d | 42 6c 6f 63 6b 46 69 6c |Boolean.|BlockFil|
|00000b60| 74 65 72 28 74 68 65 44 | 69 61 6c 6f 67 2c 20 74 |ter(theD|ialog, t|
|00000b70| 68 65 45 76 65 6e 74 2c | 20 69 74 65 6d 48 69 74 |heEvent,| itemHit|
|00000b80| 29 0d 44 69 61 6c 6f 67 | 50 74 72 09 74 68 65 44 |).Dialog|Ptr.theD|
|00000b90| 69 61 6c 6f 67 3b 0d 45 | 76 65 6e 74 52 65 63 6f |ialog;.E|ventReco|
|00000ba0| 72 64 09 2a 74 68 65 45 | 76 65 6e 74 3b 0d 73 68 |rd.*theE|vent;.sh|
|00000bb0| 6f 72 74 09 09 2a 69 74 | 65 6d 48 69 74 3b 0d 7b |ort..*it|emHit;.{|
|00000bc0| 0d 09 6c 6f 6e 67 09 74 | 3b 0d 09 50 6f 69 6e 74 |..long.t|;..Point|
|00000bd0| 09 6c 70 74 3b 0d 09 47 | 72 61 66 50 74 72 09 73 |.lpt;..G|rafPtr.s|
|00000be0| 61 76 65 64 50 6f 72 74 | 3b 0d 0d 09 73 77 69 74 |avedPort|;...swit|
|00000bf0| 63 68 20 28 74 68 65 45 | 76 65 6e 74 2d 3e 77 68 |ch (theE|vent->wh|
|00000c00| 61 74 29 20 7b 0d 09 63 | 61 73 65 20 6b 65 79 44 |at) {..c|ase keyD|
|00000c10| 6f 77 6e 3a 0d 09 09 73 | 77 69 74 63 68 20 28 28 |own:...s|witch ((|
|00000c20| 63 68 61 72 29 20 28 74 | 68 65 45 76 65 6e 74 2d |char) (t|heEvent-|
|00000c30| 3e 6d 65 73 73 61 67 65 | 20 26 20 63 68 61 72 43 |>message| & charC|
|00000c40| 6f 64 65 4d 61 73 6b 29 | 29 20 7b 0d 09 09 63 61 |odeMask)|) {...ca|
|00000c50| 73 65 20 52 45 54 55 52 | 4e 3a 0d 09 09 63 61 73 |se RETUR|N:...cas|
|00000c60| 65 20 45 4e 54 45 52 3a | 0d 09 09 09 67 6f 74 6f |e ENTER:|....goto|
|00000c70| 20 76 61 6c 69 64 61 74 | 65 3b 0d 09 09 09 62 72 | validat|e;....br|
|00000c80| 65 61 6b 3b 0d 0d 09 09 | 63 61 73 65 20 27 30 27 |eak;....|case '0'|
|00000c90| 3a 20 63 61 73 65 20 27 | 31 27 3a 20 63 61 73 65 |: case '|1': case|
|00000ca0| 20 27 32 27 3a 20 63 61 | 73 65 20 27 33 27 3a 20 | '2': ca|se '3': |
|00000cb0| 63 61 73 65 20 27 34 27 | 3a 0d 09 09 63 61 73 65 |case '4'|:...case|
|00000cc0| 20 27 35 27 3a 20 63 61 | 73 65 20 27 36 27 3a 20 | '5': ca|se '6': |
|00000cd0| 63 61 73 65 20 27 37 27 | 3a 20 63 61 73 65 20 27 |case '7'|: case '|
|00000ce0| 38 27 3a 20 63 61 73 65 | 20 27 39 27 3a 0d 09 09 |8': case| '9':...|
|00000cf0| 63 61 73 65 20 54 41 42 | 3a 20 63 61 73 65 20 20 |case TAB|: case |
|00000d00| 42 53 3a 0d 09 09 09 62 | 72 65 61 6b 3b 0d 0d 09 |BS:....b|reak;...|
|00000d10| 09 64 65 66 61 75 6c 74 | 3a 0d 09 09 09 53 79 73 |.default|:....Sys|
|00000d20| 42 65 65 70 28 35 29 3b | 0d 09 09 09 74 68 65 45 |Beep(5);|....theE|
|00000d30| 76 65 6e 74 2d 3e 77 68 | 61 74 20 3d 20 6e 75 6c |vent->wh|at = nul|
|00000d40| 6c 45 76 65 6e 74 3b 0d | 09 09 09 62 72 65 61 6b |lEvent;.|...break|
|00000d50| 3b 0d 09 09 7d 0d 09 09 | 62 72 65 61 6b 3b 0d 0d |;...}...|break;..|
|00000d60| 09 63 61 73 65 20 6d 6f | 75 73 65 44 6f 77 6e 3a |.case mo|useDown:|
|00000d70| 0d 09 09 6c 70 74 20 3d | 20 74 68 65 45 76 65 6e |...lpt =| theEven|
|00000d80| 74 2d 3e 77 68 65 72 65 | 3b 0d 09 09 47 65 74 50 |t->where|;...GetP|
|00000d90| 6f 72 74 28 26 73 61 76 | 65 64 50 6f 72 74 29 3b |ort(&sav|edPort);|
|00000da0| 0d 09 09 53 65 74 50 6f | 72 74 28 28 47 72 61 66 |...SetPo|rt((Graf|
|00000db0| 50 74 72 29 20 74 68 65 | 44 69 61 6c 6f 67 29 3b |Ptr) the|Dialog);|
|00000dc0| 0d 09 09 47 6c 6f 62 61 | 6c 54 6f 4c 6f 63 61 6c |...Globa|lToLocal|
|00000dd0| 28 26 6c 70 74 29 3b 0d | 09 09 53 65 74 50 6f 72 |(&lpt);.|..SetPor|
|00000de0| 74 28 73 61 76 65 64 50 | 6f 72 74 29 3b 0d 09 09 |t(savedP|ort);...|
|00000df0| 69 66 20 28 50 74 49 6e | 52 65 63 74 28 6c 70 74 |if (PtIn|Rect(lpt|
|00000e00| 2c 20 26 6f 6b 42 6f 78 | 29 29 20 7b 0d 76 61 6c |, &okBox|)) {.val|
|00000e10| 69 64 61 74 65 3a 09 09 | 69 66 20 28 56 61 6c 69 |idate:..|if (Vali|
|00000e20| 64 42 6c 6f 63 6b 53 69 | 7a 65 28 74 68 65 44 69 |dBlockSi|ze(theDi|
|00000e30| 61 6c 6f 67 29 29 20 7b | 0d 09 09 09 09 2a 69 74 |alog)) {|.....*it|
|00000e40| 65 6d 48 69 74 20 3d 20 | 6f 6b 3b 0d 09 09 09 09 |emHit = |ok;.....|
|00000e50| 48 69 6c 69 74 65 43 6f | 6e 74 72 6f 6c 28 6f 6b |HiliteCo|ntrol(ok|
|00000e60| 48 64 6c 2c 20 31 29 3b | 0d 09 09 09 09 44 65 6c |Hdl, 1);|.....Del|
|00000e70| 61 79 28 38 4c 2c 20 26 | 74 29 3b 0d 09 09 09 09 |ay(8L, &|t);.....|
|00000e80| 48 69 6c 69 74 65 43 6f | 6e 74 72 6f 6c 28 6f 6b |HiliteCo|ntrol(ok|
|00000e90| 48 64 6c 2c 20 30 29 3b | 0d 09 09 09 09 72 65 74 |Hdl, 0);|.....ret|
|00000ea0| 75 72 6e 28 74 72 75 65 | 29 3b 0d 09 09 09 7d 20 |urn(true|);....} |
|00000eb0| 65 6c 73 65 0d 09 09 09 | 09 74 68 65 45 76 65 6e |else....|.theEven|
|00000ec0| 74 2d 3e 77 68 61 74 20 | 3d 20 6e 75 6c 6c 45 76 |t->what |= nullEv|
|00000ed0| 65 6e 74 3b 0d 09 09 7d | 0d 09 09 62 72 65 61 6b |ent;...}|...break|
|00000ee0| 3b 0d 09 7d 0d 0d 09 72 | 65 74 75 72 6e 28 66 61 |;..}...r|eturn(fa|
|00000ef0| 6c 73 65 29 3b 0d 7d 0d | 0d 2f 2a 0d 20 2a 20 43 |lse);.}.|./*. * C|
|00000f00| 72 65 61 74 6f 72 54 79 | 70 65 46 69 6c 74 65 72 |reatorTy|peFilter|
|00000f10| 20 2d 20 6d 61 6e 61 67 | 65 20 75 73 65 72 20 65 | - manag|e user e|
|00000f20| 76 65 6e 74 73 20 64 75 | 72 69 6e 67 20 74 68 65 |vents du|ring the|
|00000f30| 20 43 72 65 61 74 6f 72 | 2f 54 79 70 65 20 64 69 | Creator|/Type di|
|00000f40| 61 6c 6f 67 0d 20 2a 0d | 20 2a 2f 0d 70 61 73 63 |alog. *.| */.pasc|
|00000f50| 61 6c 20 42 6f 6f 6c 65 | 61 6e 0d 43 72 65 61 74 |al Boole|an.Creat|
|00000f60| 6f 72 54 79 70 65 46 69 | 6c 74 65 72 28 74 68 65 |orTypeFi|lter(the|
|00000f70| 44 69 61 6c 6f 67 2c 20 | 74 68 65 45 76 65 6e 74 |Dialog, |theEvent|
|00000f80| 2c 20 69 74 65 6d 48 69 | 74 29 0d 44 69 61 6c 6f |, itemHi|t).Dialo|
|00000f90| 67 50 74 72 09 74 68 65 | 44 69 61 6c 6f 67 3b 0d |gPtr.the|Dialog;.|
|00000fa0| 45 76 65 6e 74 52 65 63 | 6f 72 64 09 2a 74 68 65 |EventRec|ord.*the|
|00000fb0| 45 76 65 6e 74 3b 0d 73 | 68 6f 72 74 09 09 2a 69 |Event;.s|hort..*i|
|00000fc0| 74 65 6d 48 69 74 3b 0d | 7b 0d 09 73 68 6f 72 74 |temHit;.|{..short|
|00000fd0| 09 74 79 70 65 3b 0d 09 | 48 61 6e 64 6c 65 09 68 |.type;..|Handle.h|
|00000fe0| 64 6c 3b 0d 09 52 65 63 | 74 09 62 6f 78 3b 0d 09 |dl;..Rec|t.box;..|
|00000ff0| 63 68 61 72 09 74 65 78 | 74 5b 32 35 36 5d 3b 0d |char.tex|t[256];.|
|00001000| 09 69 6e 74 09 6e 3b 0d | 09 6c 6f 6e 67 09 74 3b |.int.n;.|.long.t;|
|00001010| 0d 09 50 6f 69 6e 74 09 | 6c 70 74 3b 0d 09 47 72 |..Point.|lpt;..Gr|
|00001020| 61 66 50 74 72 09 73 61 | 76 65 64 50 6f 72 74 3b |afPtr.sa|vedPort;|
|00001030| 0d 0d 09 73 77 69 74 63 | 68 20 28 74 68 65 45 76 |...switc|h (theEv|
|00001040| 65 6e 74 2d 3e 77 68 61 | 74 29 20 7b 0d 09 63 61 |ent->wha|t) {..ca|
|00001050| 73 65 20 6b 65 79 44 6f | 77 6e 3a 0d 09 09 73 77 |se keyDo|wn:...sw|
|00001060| 69 74 63 68 20 28 28 63 | 68 61 72 29 20 28 74 68 |itch ((c|har) (th|
|00001070| 65 45 76 65 6e 74 2d 3e | 6d 65 73 73 61 67 65 20 |eEvent->|message |
|00001080| 26 20 63 68 61 72 43 6f | 64 65 4d 61 73 6b 29 29 |& charCo|deMask))|
|00001090| 20 7b 0d 09 09 63 61 73 | 65 20 52 45 54 55 52 4e | {...cas|e RETURN|
|000010a0| 3a 0d 09 09 63 61 73 65 | 20 45 4e 54 45 52 3a 0d |:...case| ENTER:.|
|000010b0| 09 09 09 67 6f 74 6f 20 | 64 6f 6e 65 3b 0d 09 09 |...goto |done;...|
|000010c0| 09 62 72 65 61 6b 3b 0d | 0d 09 09 64 65 66 61 75 |.break;.|...defau|
|000010d0| 6c 74 3a 0d 09 09 09 62 | 72 65 61 6b 3b 0d 09 09 |lt:....b|reak;...|
|000010e0| 7d 0d 09 09 62 72 65 61 | 6b 3b 0d 0d 09 63 61 73 |}...brea|k;...cas|
|000010f0| 65 20 6d 6f 75 73 65 44 | 6f 77 6e 3a 0d 09 09 6c |e mouseD|own:...l|
|00001100| 70 74 20 3d 20 74 68 65 | 45 76 65 6e 74 2d 3e 77 |pt = the|Event->w|
|00001110| 68 65 72 65 3b 0d 09 09 | 47 65 74 50 6f 72 74 28 |here;...|GetPort(|
|00001120| 26 73 61 76 65 64 50 6f | 72 74 29 3b 0d 09 09 53 |&savedPo|rt);...S|
|00001130| 65 74 50 6f 72 74 28 28 | 47 72 61 66 50 74 72 29 |etPort((|GrafPtr)|
|00001140| 20 74 68 65 44 69 61 6c | 6f 67 29 3b 0d 09 09 47 | theDial|og);...G|
|00001150| 6c 6f 62 61 6c 54 6f 4c | 6f 63 61 6c 28 26 6c 70 |lobalToL|ocal(&lp|
|00001160| 74 29 3b 0d 09 09 53 65 | 74 50 6f 72 74 28 73 61 |t);...Se|tPort(sa|
|00001170| 76 65 64 50 6f 72 74 29 | 3b 0d 09 09 69 66 20 28 |vedPort)|;...if (|
|00001180| 50 74 49 6e 52 65 63 74 | 28 6c 70 74 2c 20 26 6f |PtInRect|(lpt, &o|
|00001190| 6b 42 6f 78 29 29 20 7b | 0d 64 6f 6e 65 3a 0d 09 |kBox)) {|.done:..|
|000011a0| 09 09 47 65 74 44 49 74 | 65 6d 28 74 68 65 44 69 |..GetDIt|em(theDi|
|000011b0| 61 6c 6f 67 2c 20 63 72 | 65 61 74 6f 72 49 74 65 |alog, cr|eatorIte|
|000011c0| 6d 2c 20 26 74 79 70 65 | 2c 20 26 68 64 6c 2c 20 |m, &type|, &hdl, |
|000011d0| 26 62 6f 78 29 3b 0d 09 | 09 09 47 65 74 49 54 65 |&box);..|..GetITe|
|000011e0| 78 74 28 68 64 6c 2c 20 | 74 65 78 74 29 3b 0d 09 |xt(hdl, |text);..|
|000011f0| 09 09 6e 20 3d 20 28 75 | 6e 73 69 67 6e 65 64 20 |..n = (u|nsigned |
|00001200| 63 68 61 72 29 20 74 65 | 78 74 5b 30 5d 3b 0d 09 |char) te|xt[0];..|
|00001210| 09 09 69 66 20 28 6e 20 | 3e 20 34 29 0d 09 09 09 |..if (n |> 4)....|
|00001220| 09 6e 20 3d 20 34 3b 0d | 0d 09 09 09 73 74 72 6e |.n = 4;.|....strn|
|00001230| 63 70 79 28 66 64 43 72 | 65 61 74 6f 72 2c 20 26 |cpy(fdCr|eator, &|
|00001240| 74 65 78 74 5b 31 5d 2c | 20 6e 29 3b 0d 09 09 09 |text[1],| n);....|
|00001250| 47 65 74 44 49 74 65 6d | 28 74 68 65 44 69 61 6c |GetDItem|(theDial|
|00001260| 6f 67 2c 20 74 79 70 65 | 49 74 65 6d 2c 20 26 74 |og, type|Item, &t|
|00001270| 79 70 65 2c 20 26 68 64 | 6c 2c 20 26 62 6f 78 29 |ype, &hd|l, &box)|
|00001280| 3b 0d 09 09 09 47 65 74 | 49 54 65 78 74 28 68 64 |;....Get|IText(hd|
|00001290| 6c 2c 20 74 65 78 74 29 | 3b 0d 09 09 09 6e 20 3d |l, text)|;....n =|
|000012a0| 20 28 75 6e 73 69 67 6e | 65 64 20 63 68 61 72 29 | (unsign|ed char)|
|000012b0| 20 74 65 78 74 5b 30 5d | 3b 0d 09 09 09 69 66 20 | text[0]|;....if |
|000012c0| 28 6e 20 3e 20 34 29 0d | 09 09 09 09 6e 20 3d 20 |(n > 4).|....n = |
|000012d0| 34 3b 0d 0d 09 09 09 73 | 74 72 6e 63 70 79 28 66 |4;.....s|trncpy(f|
|000012e0| 64 54 79 70 65 2c 20 26 | 74 65 78 74 5b 31 5d 2c |dType, &|text[1],|
|000012f0| 20 6e 29 3b 0d 09 09 09 | 2a 69 74 65 6d 48 69 74 | n);....|*itemHit|
|00001300| 20 3d 20 6f 6b 3b 0d 09 | 09 09 48 69 6c 69 74 65 | = ok;..|..Hilite|
|00001310| 43 6f 6e 74 72 6f 6c 28 | 6f 6b 48 64 6c 2c 20 31 |Control(|okHdl, 1|
|00001320| 29 3b 0d 09 09 09 44 65 | 6c 61 79 28 38 4c 2c 20 |);....De|lay(8L, |
|00001330| 26 74 29 3b 0d 09 09 09 | 48 69 6c 69 74 65 43 6f |&t);....|HiliteCo|
|00001340| 6e 74 72 6f 6c 28 6f 6b | 48 64 6c 2c 20 30 29 3b |ntrol(ok|Hdl, 0);|
|00001350| 0d 09 09 09 72 65 74 75 | 72 6e 28 74 72 75 65 29 |....retu|rn(true)|
|00001360| 3b 0d 09 09 7d 0d 09 09 | 62 72 65 61 6b 3b 0d 09 |;...}...|break;..|
|00001370| 7d 0d 0d 09 72 65 74 75 | 72 6e 28 66 61 6c 73 65 |}...retu|rn(false|
|00001380| 29 3b 0d 7d 0d 0d 2f 2a | 0d 20 2a 20 44 6f 42 6c |);.}../*|. * DoBl|
|00001390| 6f 63 6b 53 69 7a 65 20 | 2d 20 70 75 74 20 74 68 |ockSize |- put th|
|000013a0| 65 20 62 6c 6f 63 6b 20 | 73 69 7a 65 20 64 69 61 |e block |size dia|
|000013b0| 6c 6f 67 20 6f 6e 20 74 | 68 65 20 73 63 72 65 65 |log on t|he scree|
|000013c0| 6e 0d 20 2a 0d 20 2a 09 | 50 75 74 73 20 74 68 65 |n. *. *.|Puts the|
|000013d0| 20 63 75 72 72 65 6e 74 | 20 62 6c 6f 63 6b 20 73 | current| block s|
|000013e0| 69 7a 65 20 69 6e 74 6f | 20 74 68 65 20 65 64 69 |ize into| the edi|
|000013f0| 74 20 66 69 65 6c 64 2e | 0d 20 2a 2f 0d 44 6f 42 |t field.|. */.DoB|
|00001400| 6c 6f 63 6b 53 69 7a 65 | 28 29 20 7b 0d 09 73 68 |lockSize|() {..sh|
|00001410| 6f 72 74 09 09 69 74 65 | 6d 48 69 74 3b 0d 09 44 |ort..ite|mHit;..D|
|00001420| 69 61 6c 6f 67 50 74 72 | 09 74 68 65 44 69 61 6c |ialogPtr|.theDial|
|00001430| 6f 67 3b 0d 09 48 61 6e | 64 6c 65 09 09 68 64 6c |og;..Han|dle..hdl|
|00001440| 3b 0d 09 73 68 6f 72 74 | 09 09 74 79 70 65 3b 0d |;..short|..type;.|
|00001450| 09 52 65 63 74 09 09 62 | 6f 78 3b 0d 09 63 68 61 |.Rect..b|ox;..cha|
|00001460| 72 09 09 74 65 78 74 5b | 32 35 36 5d 3b 0d 09 50 |r..text[|256];..P|
|00001470| 65 6e 53 74 61 74 65 09 | 70 6e 3b 0d 09 47 72 61 |enState.|pn;..Gra|
|00001480| 66 50 74 72 09 09 74 68 | 65 50 6f 72 74 3b 0d 0d |fPtr..th|ePort;..|
|00001490| 09 47 65 74 50 6f 72 74 | 28 26 74 68 65 50 6f 72 |.GetPort|(&thePor|
|000014a0| 74 29 3b 0d 09 74 68 65 | 44 69 61 6c 6f 67 20 3d |t);..the|Dialog =|
|000014b0| 20 47 65 74 4e 65 77 44 | 69 61 6c 6f 67 28 62 6c | GetNewD|ialog(bl|
|000014c0| 6f 63 6b 49 44 2c 20 6e | 69 6c 2c 20 28 57 69 6e |ockID, n|il, (Win|
|000014d0| 64 6f 77 50 74 72 29 20 | 2d 31 29 3b 0d 09 47 65 |dowPtr) |-1);..Ge|
|000014e0| 74 44 49 74 65 6d 28 74 | 68 65 44 69 61 6c 6f 67 |tDItem(t|heDialog|
|000014f0| 2c 20 73 69 7a 65 49 74 | 65 6d 2c 20 26 74 79 70 |, sizeIt|em, &typ|
|00001500| 65 2c 20 26 68 64 6c 2c | 20 26 62 6f 78 29 3b 0d |e, &hdl,| &box);.|
|00001510| 09 4e 75 6d 54 6f 53 74 | 72 69 6e 67 28 28 6c 6f |.NumToSt|ring((lo|
|00001520| 6e 67 29 20 62 6c 6f 63 | 6b 69 6e 67 2c 20 74 65 |ng) bloc|king, te|
|00001530| 78 74 29 3b 0d 09 53 65 | 74 49 54 65 78 74 28 68 |xt);..Se|tIText(h|
|00001540| 64 6c 2c 20 74 65 78 74 | 29 3b 0d 09 53 65 6c 49 |dl, text|);..SelI|
|00001550| 54 65 78 74 28 74 68 65 | 44 69 61 6c 6f 67 2c 20 |Text(the|Dialog, |
|00001560| 73 69 7a 65 49 74 65 6d | 2c 20 30 2c 20 33 32 37 |sizeItem|, 0, 327|
|00001570| 36 37 29 3b 0d 09 47 65 | 74 44 49 74 65 6d 28 74 |67);..Ge|tDItem(t|
|00001580| 68 65 44 69 61 6c 6f 67 | 2c 20 6f 6b 2c 20 26 74 |heDialog|, ok, &t|
|00001590| 79 70 65 2c 20 28 48 61 | 6e 64 6c 65 20 2a 29 20 |ype, (Ha|ndle *) |
|000015a0| 26 6f 6b 48 64 6c 2c 20 | 26 6f 6b 42 6f 78 29 3b |&okHdl, |&okBox);|
|000015b0| 0d 09 53 65 74 50 6f 72 | 74 28 74 68 65 44 69 61 |..SetPor|t(theDia|
|000015c0| 6c 6f 67 29 3b 0d 09 49 | 6e 73 65 74 52 65 63 74 |log);..I|nsetRect|
|000015d0| 28 26 6f 6b 42 6f 78 2c | 20 2d 34 2c 20 2d 34 29 |(&okBox,| -4, -4)|
|000015e0| 3b 0d 09 47 65 74 50 65 | 6e 53 74 61 74 65 28 26 |;..GetPe|nState(&|
|000015f0| 70 6e 29 3b 0d 09 50 65 | 6e 53 69 7a 65 28 33 2c |pn);..Pe|nSize(3,|
|00001600| 20 33 29 3b 0d 09 46 72 | 61 6d 65 52 6f 75 6e 64 | 3);..Fr|ameRound|
|00001610| 52 65 63 74 28 26 6f 6b | 42 6f 78 2c 20 31 36 2c |Rect(&ok|Box, 16,|
|00001620| 20 31 36 29 3b 0d 09 53 | 65 74 50 65 6e 53 74 61 | 16);..S|etPenSta|
|00001630| 74 65 28 26 70 6e 29 3b | 0d 09 64 6f 20 7b 0d 09 |te(&pn);|..do {..|
|00001640| 09 4d 6f 64 61 6c 44 69 | 61 6c 6f 67 28 42 6c 6f |.ModalDi|alog(Blo|
|00001650| 63 6b 46 69 6c 74 65 72 | 2c 20 26 69 74 65 6d 48 |ckFilter|, &itemH|
|00001660| 69 74 29 3b 0d 09 7d 20 | 77 68 69 6c 65 20 28 28 |it);..} |while ((|
|00001670| 69 74 65 6d 48 69 74 20 | 21 3d 20 6f 6b 29 20 26 |itemHit |!= ok) &|
|00001680| 26 20 28 69 74 65 6d 48 | 69 74 20 21 3d 20 63 61 |& (itemH|it != ca|
|00001690| 6e 63 65 6c 29 29 3b 0d | 0d 09 44 69 73 70 6f 73 |ncel));.|..Dispos|
|000016a0| 44 69 61 6c 6f 67 28 74 | 68 65 44 69 61 6c 6f 67 |Dialog(t|heDialog|
|000016b0| 29 3b 0d 09 53 65 74 50 | 6f 72 74 28 74 68 65 50 |);..SetP|ort(theP|
|000016c0| 6f 72 74 29 3b 0d 7d 0d | 0d 2f 2a 0d 20 2a 20 44 |ort);.}.|./*. * D|
|000016d0| 6f 43 72 65 61 74 6f 72 | 54 79 70 65 20 2d 20 70 |oCreator|Type - p|
|000016e0| 75 74 20 74 68 65 20 73 | 65 74 20 43 72 65 61 74 |ut the s|et Creat|
|000016f0| 6f 72 2f 54 79 70 65 20 | 64 69 61 6c 6f 67 20 6f |or/Type |dialog o|
|00001700| 6e 20 74 68 65 20 73 63 | 72 65 65 6e 0d 20 2a 0d |n the sc|reen. *.|
|00001710| 20 2a 09 50 75 74 73 20 | 74 68 65 20 63 75 72 72 | *.Puts |the curr|
|00001720| 65 6e 74 20 43 72 65 61 | 74 6f 72 20 61 6e 64 20 |ent Crea|tor and |
|00001730| 54 79 70 65 20 69 6e 74 | 6f 20 74 68 65 20 65 64 |Type int|o the ed|
|00001740| 69 74 20 66 69 65 6c 64 | 2e 0d 20 2a 2f 0d 44 6f |it field|.. */.Do|
|00001750| 43 72 65 61 74 6f 72 54 | 79 70 65 28 29 20 7b 0d |CreatorT|ype() {.|
|00001760| 09 73 68 6f 72 74 09 09 | 69 74 65 6d 48 69 74 3b |.short..|itemHit;|
|00001770| 0d 09 44 69 61 6c 6f 67 | 50 74 72 09 74 68 65 44 |..Dialog|Ptr.theD|
|00001780| 69 61 6c 6f 67 3b 0d 09 | 48 61 6e 64 6c 65 09 09 |ialog;..|Handle..|
|00001790| 68 64 6c 3b 0d 09 73 68 | 6f 72 74 09 09 74 79 70 |hdl;..sh|ort..typ|
|000017a0| 65 3b 0d 09 52 65 63 74 | 09 09 62 6f 78 3b 0d 09 |e;..Rect|..box;..|
|000017b0| 63 68 61 72 09 09 74 65 | 78 74 5b 32 35 36 5d 3b |char..te|xt[256];|
|000017c0| 0d 09 50 65 6e 53 74 61 | 74 65 09 70 6e 3b 0d 09 |..PenSta|te.pn;..|
|000017d0| 47 72 61 66 50 74 72 09 | 09 74 68 65 50 6f 72 74 |GrafPtr.|.thePort|
|000017e0| 3b 0d 0d 09 47 65 74 50 | 6f 72 74 28 26 74 68 65 |;...GetP|ort(&the|
|000017f0| 50 6f 72 74 29 3b 0d 09 | 74 68 65 44 69 61 6c 6f |Port);..|theDialo|
|00001800| 67 20 3d 20 47 65 74 4e | 65 77 44 69 61 6c 6f 67 |g = GetN|ewDialog|
|00001810| 28 74 79 70 65 49 44 2c | 20 6e 69 6c 2c 20 28 57 |(typeID,| nil, (W|
|00001820| 69 6e 64 6f 77 50 74 72 | 29 20 2d 31 29 3b 0d 09 |indowPtr|) -1);..|
|00001830| 47 65 74 44 49 74 65 6d | 28 74 68 65 44 69 61 6c |GetDItem|(theDial|
|00001840| 6f 67 2c 20 63 72 65 61 | 74 6f 72 49 74 65 6d 2c |og, crea|torItem,|
|00001850| 20 26 74 79 70 65 2c 20 | 26 68 64 6c 2c 20 26 62 | &type, |&hdl, &b|
|00001860| 6f 78 29 3b 0d 09 74 65 | 78 74 5b 30 5d 20 3d 20 |ox);..te|xt[0] = |
|00001870| 34 3b 0d 09 73 74 72 6e | 63 70 79 28 26 74 65 78 |4;..strn|cpy(&tex|
|00001880| 74 5b 31 5d 2c 20 66 64 | 43 72 65 61 74 6f 72 2c |t[1], fd|Creator,|
|00001890| 20 34 29 3b 0d 09 53 65 | 74 49 54 65 78 74 28 68 | 4);..Se|tIText(h|
|000018a0| 64 6c 2c 20 74 65 78 74 | 29 3b 0d 09 47 65 74 44 |dl, text|);..GetD|
|000018b0| 49 74 65 6d 28 74 68 65 | 44 69 61 6c 6f 67 2c 20 |Item(the|Dialog, |
|000018c0| 74 79 70 65 49 74 65 6d | 2c 20 26 74 79 70 65 2c |typeItem|, &type,|
|000018d0| 20 26 68 64 6c 2c 20 26 | 62 6f 78 29 3b 0d 09 74 | &hdl, &|box);..t|
|000018e0| 65 78 74 5b 30 5d 20 3d | 20 34 3b 0d 09 73 74 72 |ext[0] =| 4;..str|
|000018f0| 6e 63 70 79 28 26 74 65 | 78 74 5b 31 5d 2c 20 66 |ncpy(&te|xt[1], f|
|00001900| 64 54 79 70 65 2c 20 34 | 29 3b 0d 09 53 65 74 49 |dType, 4|);..SetI|
|00001910| 54 65 78 74 28 68 64 6c | 2c 20 74 65 78 74 29 3b |Text(hdl|, text);|
|00001920| 0d 09 53 65 6c 49 54 65 | 78 74 28 74 68 65 44 69 |..SelITe|xt(theDi|
|00001930| 61 6c 6f 67 2c 20 63 72 | 65 61 74 6f 72 49 74 65 |alog, cr|eatorIte|
|00001940| 6d 2c 20 30 2c 20 33 32 | 37 36 37 29 3b 0d 09 47 |m, 0, 32|767);..G|
|00001950| 65 74 44 49 74 65 6d 28 | 74 68 65 44 69 61 6c 6f |etDItem(|theDialo|
|00001960| 67 2c 20 6f 6b 2c 20 26 | 74 79 70 65 2c 20 28 48 |g, ok, &|type, (H|
|00001970| 61 6e 64 6c 65 20 2a 29 | 20 26 6f 6b 48 64 6c 2c |andle *)| &okHdl,|
|00001980| 20 26 6f 6b 42 6f 78 29 | 3b 0d 09 53 65 74 50 6f | &okBox)|;..SetPo|
|00001990| 72 74 28 74 68 65 44 69 | 61 6c 6f 67 29 3b 0d 09 |rt(theDi|alog);..|
|000019a0| 49 6e 73 65 74 52 65 63 | 74 28 26 6f 6b 42 6f 78 |InsetRec|t(&okBox|
|000019b0| 2c 20 2d 34 2c 20 2d 34 | 29 3b 0d 09 47 65 74 50 |, -4, -4|);..GetP|
|000019c0| 65 6e 53 74 61 74 65 28 | 26 70 6e 29 3b 0d 09 50 |enState(|&pn);..P|
|000019d0| 65 6e 53 69 7a 65 28 33 | 2c 20 33 29 3b 0d 09 46 |enSize(3|, 3);..F|
|000019e0| 72 61 6d 65 52 6f 75 6e | 64 52 65 63 74 28 26 6f |rameRoun|dRect(&o|
|000019f0| 6b 42 6f 78 2c 20 31 36 | 2c 20 31 36 29 3b 0d 09 |kBox, 16|, 16);..|
|00001a00| 53 65 74 50 65 6e 53 74 | 61 74 65 28 26 70 6e 29 |SetPenSt|ate(&pn)|
|00001a10| 3b 0d 09 64 6f 20 7b 0d | 09 09 4d 6f 64 61 6c 44 |;..do {.|..ModalD|
|00001a20| 69 61 6c 6f 67 28 43 72 | 65 61 74 6f 72 54 79 70 |ialog(Cr|eatorTyp|
|00001a30| 65 46 69 6c 74 65 72 2c | 20 26 69 74 65 6d 48 69 |eFilter,| &itemHi|
|00001a40| 74 29 3b 0d 09 7d 20 77 | 68 69 6c 65 20 28 28 69 |t);..} w|hile ((i|
|00001a50| 74 65 6d 48 69 74 20 21 | 3d 20 6f 6b 29 20 26 26 |temHit !|= ok) &&|
|00001a60| 20 28 69 74 65 6d 48 69 | 74 20 21 3d 20 63 61 6e | (itemHi|t != can|
|00001a70| 63 65 6c 29 29 3b 0d 0d | 09 44 69 73 70 6f 73 44 |cel));..|.DisposD|
|00001a80| 69 61 6c 6f 67 28 74 68 | 65 44 69 61 6c 6f 67 29 |ialog(th|eDialog)|
|00001a90| 3b 0d 09 53 65 74 50 6f | 72 74 28 74 68 65 50 6f |;..SetPo|rt(thePo|
|00001aa0| 72 74 29 3b 0d 7d 0d 0d | 2f 2a 0d 20 2a 20 4f 53 |rt);.}..|/*. * OS|
|00001ab0| 41 6c 65 72 74 20 2d 20 | 70 75 74 20 61 20 67 65 |Alert - |put a ge|
|00001ac0| 6e 65 72 69 63 20 4f 53 | 20 45 72 72 6f 72 20 41 |neric OS| Error A|
|00001ad0| 6c 65 72 74 20 6f 6e 20 | 74 68 65 20 73 63 72 65 |lert on |the scre|
|00001ae0| 65 6e 0d 20 2a 0d 20 2a | 09 55 73 65 64 20 66 6f |en. *. *|.Used fo|
|00001af0| 72 20 65 72 72 6f 72 73 | 20 6e 6f 74 20 68 61 6e |r errors| not han|
|00001b00| 64 6c 65 64 20 69 6e 20 | 61 6e 6f 74 68 65 72 20 |dled in |another |
|00001b10| 77 61 79 20 28 79 65 74 | 29 2e 0d 20 2a 2f 0d 4f |way (yet|).. */.O|
|00001b20| 53 41 6c 65 72 74 28 70 | 30 2c 20 70 31 2c 20 70 |SAlert(p|0, p1, p|
|00001b30| 32 2c 20 65 72 72 29 0d | 63 68 61 72 09 2a 70 30 |2, err).|char.*p0|
|00001b40| 2c 20 2a 70 31 2c 20 2a | 70 32 3b 0d 4f 53 45 72 |, *p1, *|p2;.OSEr|
|00001b50| 72 09 65 72 72 3b 0d 7b | 0d 09 63 68 61 72 09 62 |r.err;.{|..char.b|
|00001b60| 75 66 5b 32 35 36 5d 3b | 0d 0d 09 2f 2a 0d 09 20 |uf[256];|.../*.. |
|00001b70| 2a 20 4d 61 6e 61 67 65 | 20 74 68 65 20 63 6f 6e |* Manage| the con|
|00001b80| 74 69 6e 67 65 6e 63 79 | 20 6f 66 20 62 65 69 6e |tingency| of bein|
|00001b90| 67 20 63 61 6c 6c 65 64 | 20 66 6f 72 20 72 65 73 |g called| for res|
|00001ba0| 6f 75 72 63 65 73 20 6d | 69 73 73 69 6e 67 21 0d |ources m|issing!.|
|00001bb0| 09 20 2a 2f 0d 09 69 66 | 20 28 47 65 74 52 65 73 |. */..if| (GetRes|
|00001bc0| 6f 75 72 63 65 28 27 41 | 4c 52 54 27 2c 20 6f 73 |ource('A|LRT', os|
|00001bd0| 45 72 72 49 44 29 20 3d | 3d 20 6e 69 6c 29 20 7b |ErrID) =|= nil) {|
|00001be0| 0d 09 09 47 72 61 66 50 | 74 72 09 77 6d 50 6f 72 |...GrafP|tr.wmPor|
|00001bf0| 74 3b 0d 09 09 6c 6f 6e | 67 09 74 3b 0d 09 09 52 |t;...lon|g.t;...R|
|00001c00| 65 63 74 09 72 3b 0d 0d | 09 09 47 65 74 57 4d 67 |ect.r;..|..GetWMg|
|00001c10| 72 50 6f 72 74 28 26 77 | 6d 50 6f 72 74 29 3b 0d |rPort(&w|mPort);.|
|00001c20| 09 09 53 65 74 50 6f 72 | 74 28 77 6d 50 6f 72 74 |..SetPor|t(wmPort|
|00001c30| 29 3b 0d 09 09 53 65 74 | 52 65 63 74 28 26 72 2c |);...Set|Rect(&r,|
|00001c40| 20 31 34 30 2c 20 31 35 | 30 2c 20 33 36 30 2c 20 | 140, 15|0, 360, |
|00001c50| 31 38 30 29 3b 0d 09 09 | 45 72 61 73 65 52 65 63 |180);...|EraseRec|
|00001c60| 74 28 26 72 29 3b 0d 09 | 09 4d 6f 76 65 54 6f 28 |t(&r);..|.MoveTo(|
|00001c70| 31 35 30 2c 31 37 30 29 | 3b 0d 09 09 44 72 61 77 |150,170)|;...Draw|
|00001c80| 53 74 72 69 6e 67 28 22 | 5c 70 50 41 4e 49 43 21 |String("|\pPANIC!|
|00001c90| 20 52 65 73 6f 75 72 63 | 65 73 20 4d 69 73 73 69 | Resourc|es Missi|
|00001ca0| 6e 67 21 22 29 3b 0d 09 | 09 44 65 6c 61 79 28 36 |ng!");..|.Delay(6|
|00001cb0| 30 30 4c 2c 20 26 74 29 | 3b 0d 09 09 45 78 69 74 |00L, &t)|;...Exit|
|00001cc0| 54 6f 53 68 65 6c 6c 28 | 29 3b 0d 09 7d 0d 0d 09 |ToShell(|);..}...|
|00001cd0| 4e 75 6d 54 6f 53 74 72 | 69 6e 67 28 28 6c 6f 6e |NumToStr|ing((lon|
|00001ce0| 67 29 20 65 72 72 2c 20 | 62 75 66 29 3b 0d 09 50 |g) err, |buf);..P|
|00001cf0| 61 72 61 6d 54 65 78 74 | 28 70 30 2c 20 70 31 2c |aramText|(p0, p1,|
|00001d00| 20 70 32 2c 20 62 75 66 | 29 3b 0d 09 53 74 6f 70 | p2, buf|);..Stop|
|00001d10| 41 6c 65 72 74 28 6f 73 | 45 72 72 49 44 2c 20 6e |Alert(os|ErrID, n|
|00001d20| 69 6c 29 3b 0d 7d 0d 0d | 2f 2a 0d 20 2a 20 50 67 |il);.}..|/*. * Pg|
|00001d30| 6d 41 6c 65 72 74 20 2d | 20 70 75 74 20 61 20 70 |mAlert -| put a p|
|00001d40| 72 6f 67 72 61 6d 20 6c | 6f 67 69 63 20 61 6c 65 |rogram l|ogic ale|
|00001d50| 72 74 20 6f 6e 20 74 68 | 65 20 73 63 72 65 65 6e |rt on th|e screen|
|00001d60| 0d 20 2a 2f 0d 50 67 6d | 41 6c 65 72 74 28 70 30 |. */.Pgm|Alert(p0|
|00001d70| 2c 20 70 31 2c 20 70 32 | 29 0d 63 68 61 72 09 2a |, p1, p2|).char.*|
|00001d80| 70 30 2c 20 2a 70 31 2c | 20 2a 70 32 3b 0d 7b 0d |p0, *p1,| *p2;.{.|
|00001d90| 09 50 61 72 61 6d 54 65 | 78 74 28 70 30 2c 20 70 |.ParamTe|xt(p0, p|
|00001da0| 31 2c 20 70 32 2c 20 6e | 69 6c 29 3b 0d 09 53 74 |1, p2, n|il);..St|
|00001db0| 6f 70 41 6c 65 72 74 28 | 70 67 6d 45 72 72 49 44 |opAlert(|pgmErrID|
|00001dc0| 2c 20 6e 69 6c 29 3b 0d | 7d 0d 0d 2f 2a 0d 20 2a |, nil);.|}../*. *|
|00001dd0| 20 48 46 53 41 6c 65 72 | 74 20 2d 20 70 75 74 20 | HFSAler|t - put |
|00001de0| 61 20 22 48 46 53 20 6f | 6e 6c 79 22 20 61 6c 65 |a "HFS o|nly" ale|
|00001df0| 72 74 20 6f 6e 20 74 68 | 65 20 73 63 72 65 65 6e |rt on th|e screen|
|00001e00| 0d 20 2a 2f 0d 48 46 53 | 41 6c 65 72 74 28 29 20 |. */.HFS|Alert() |
|00001e10| 7b 0d 09 53 74 6f 70 41 | 6c 65 72 74 28 68 66 73 |{..StopA|lert(hfs|
|00001e20| 49 44 2c 20 6e 69 6c 29 | 3b 0d 7d 0d 0d 2f 2a 0d |ID, nil)|;.}../*.|
|00001e30| 20 2a 20 44 46 41 6c 65 | 72 74 20 2d 20 20 4f 6f | * DFAle|rt - Oo|
|00001e40| 70 73 2c 20 64 69 73 6b | 20 69 73 20 66 75 6c 6c |ps, disk| is full|
|00001e50| 0d 20 2a 2f 0d 44 46 41 | 6c 65 72 74 28 29 20 7b |. */.DFA|lert() {|
|00001e60| 20 0d 09 53 74 6f 70 41 | 6c 65 72 74 28 64 66 49 | ..StopA|lert(dfI|
|00001e70| 44 2c 20 6e 69 6c 29 3b | 0d 7d 0d 0d 2f 2a 0d 20 |D, nil);|.}../*. |
|00001e80| 2a 20 41 72 53 6b 69 70 | 41 6c 65 72 74 20 2d 20 |* ArSkip|Alert - |
|00001e90| 70 75 74 20 61 20 22 73 | 6b 69 70 70 69 6e 67 20 |put a "s|kipping |
|00001ea0| 61 72 63 68 69 76 65 20 | 66 69 6c 65 22 20 6e 6f |archive |file" no|
|00001eb0| 74 65 20 6f 6e 20 74 68 | 65 20 73 63 72 65 65 6e |te on th|e screen|
|00001ec0| 0d 20 2a 2f 0d 41 72 53 | 6b 69 70 41 6c 65 72 74 |. */.ArS|kipAlert|
|00001ed0| 28 29 20 7b 0d 09 4e 6f | 74 65 41 6c 65 72 74 28 |() {..No|teAlert(|
|00001ee0| 61 73 6b 69 70 49 44 2c | 20 6e 69 6c 29 3b 0d 7d |askipID,| nil);.}|
|00001ef0| 0d 0d 2f 2a 0d 20 2a 20 | 53 74 6b 45 72 72 41 6c |../*. * |StkErrAl|
|00001f00| 65 72 74 20 2d 20 70 75 | 74 20 61 20 73 74 61 63 |ert - pu|t a stac|
|00001f10| 6b 20 63 6f 72 72 75 70 | 74 65 64 20 61 6c 65 72 |k corrup|ted aler|
|00001f20| 74 20 6f 6e 20 74 68 65 | 20 73 63 72 65 65 6e 0d |t on the| screen.|
|00001f30| 20 2a 2f 0d 53 74 6b 45 | 72 72 41 6c 65 72 74 28 | */.StkE|rrAlert(|
|00001f40| 29 20 7b 0d 09 53 74 6f | 70 41 6c 65 72 74 28 73 |) {..Sto|pAlert(s|
|00001f50| 74 6b 45 72 72 49 44 2c | 20 6e 69 6c 29 3b 0d 09 |tkErrID,| nil);..|
|00001f60| 45 78 69 74 54 6f 53 68 | 65 6c 6c 28 29 3b 0d 7d |ExitToSh|ell();.}|
|00001f70| 0d 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f80| 00 00 01 00 00 00 01 4c | 00 00 00 4c 00 00 00 32 |.......L|...L...2|
|00001f90| 6f 67 50 74 72 09 74 68 | 65 44 69 61 6c 6f 67 3b |ogPtr.th|eDialog;|
|00001fa0| 0d 45 76 65 6e 74 52 65 | 63 6f 72 64 09 2a 74 68 |.EventRe|cord.*th|
|00001fb0| 08 64 69 61 6c 6f 67 2e | 63 2e 02 00 00 00 00 00 |.dialog.|c.......|
|00001fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ff0| 00 00 a0 cb 8f 9e 00 00 | 00 00 00 00 01 7e 73 65 |........|.....~se|
|00002000| 44 6f 77 6e 3a 0d 09 09 | 2a 69 74 65 6d 48 69 74 |Down:...|*itemHit|
|00002010| 20 3d 20 31 3b 0d 09 09 | 72 65 74 75 72 6e 28 54 | = 1;...|return(T|
|00002020| 52 55 45 29 3b 0d 09 09 | 62 72 65 61 6b 3b 0d 0d |RUE);...|break;..|
|00002030| 09 64 65 66 61 75 6c 74 | 3a 0d 09 09 72 65 74 75 |.default|:...retu|
|00002040| 72 6e 28 46 41 4c 53 45 | 29 3b 0d 09 09 62 72 65 |rn(FALSE|);...bre|
|00002050| 61 6b 3b 0d 09 7d 0d 7d | 0d 0d 2f 2a 0d 20 2a 20 |ak;..}.}|../*. * |
|00002060| 44 6f 41 62 6f 75 74 42 | 6f 78 20 2d 20 70 75 74 |DoAboutB|ox - put|
|00002070| 20 74 68 65 20 22 41 62 | 6f 75 74 20 2e 2e 2e 22 | the "Ab|out ..."|
|00002080| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 65 61 6c |...H..Mo|naco.eal|
|00002090| 20 77 69 74 68 20 74 68 | 65 20 64 69 61 6c 6f 67 | with th|e dialog|
|000020a0| 73 20 70 72 65 73 00 06 | 00 08 00 2a 00 03 01 53 |s pres..|...*...S|
|000020b0| 01 fd 00 3c 00 24 01 53 | 01 bd a0 a6 ed 91 00 00 |...<.$.S|........|
|000020c0| 1d e0 00 00 1d e0 00 00 | 1c fa 01 00 00 00 01 00 |........|........|
|000020d0| 00 00 01 4c 00 00 00 4c | 00 00 00 32 00 1a 66 0e |...L...L|...2..f.|
|000020e0| 08 74 00 00 00 1c 00 32 | 00 00 4d 50 53 52 00 00 |.t.....2|..MPSR..|
|000020f0| 00 0a 03 ed ff ff 00 00 | 00 00 00 1b 9f 34 00 00 |........|.....4..|
+--------+-------------------------+-------------------------+--------+--------+