home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / progrmng / transdtc.sit / FakeAlert.c.bin < prev    next >
MacBinary  |  1989-09-14  |  4.1 KB  |  [TEXT/KAHL]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


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

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, Sat Feb 18 13:24:28 1989, modified Sat Feb 18 13:40:47 1989, creator Think C, type ASCII, 4036 bytes "FakeAlert.c" 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[KAHL]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0b 46 61 6b 65 41 6c | 65 72 74 2e 63 00 00 00 |..FakeAl|ert.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 4b 41 48 | 4c 00 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 0f c4 00 | 00 00 00 a0 23 65 5c a0 |........|....#e\.|
|00000060| 23 69 2f 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |#i/.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000080| 23 20 69 6e 63 6c 75 64 | 65 09 3c 44 69 61 6c 6f |# includ|e.<Dialo|
|00000090| 67 4d 67 72 2e 68 3e 0d | 0d 0d 23 20 64 65 66 69 |gMgr.h>.|..# defi|
|000000a0| 6e 65 09 6e 69 6c 09 09 | 28 30 4c 29 0d 0d 0d 74 |ne.nil..|(0L)...t|
|000000b0| 79 70 65 64 65 66 09 69 | 6e 74 09 09 49 6e 74 65 |ypedef.i|nt..Inte|
|000000c0| 67 65 72 3b 09 2f 2a 20 | 63 6f 6d 70 69 6c 65 72 |ger;./* |compiler|
|000000d0| 20 32 2d 62 79 74 65 20 | 69 6e 74 65 67 65 72 20 | 2-byte |integer |
|000000e0| 74 79 70 65 20 2a 2f 0d | 74 79 70 65 64 65 66 09 |type */.|typedef.|
|000000f0| 6c 6f 6e 67 09 4c 6f 6e | 67 69 6e 74 3b 09 2f 2a |long.Lon|gint;./*|
|00000100| 20 63 6f 6d 70 69 6c 65 | 72 20 34 2d 62 79 74 65 | compile|r 4-byte|
|00000110| 20 69 6e 74 65 67 65 72 | 20 74 79 70 65 20 2a 2f | integer| type */|
|00000120| 0d 0d 0d 2f 2a 0d 09 49 | 6e 2d 6d 65 6d 6f 72 79 |.../*..I|n-memory|
|00000130| 20 69 74 65 6d 20 6c 69 | 73 74 20 66 6f 72 20 64 | item li|st for d|
|00000140| 69 61 6c 6f 67 20 77 69 | 74 68 20 66 6f 75 72 20 |ialog wi|th four |
|00000150| 69 74 65 6d 73 3a 0d 0d | 09 31 09 22 5e 30 5e 31 |items:..|.1."^0^1|
|00000160| 5e 32 5e 33 22 20 28 73 | 74 61 74 69 63 20 74 65 |^2^3" (s|tatic te|
|00000170| 78 74 29 0d 09 32 09 42 | 75 74 74 6f 6e 20 31 0d |xt)..2.B|utton 1.|
|00000180| 09 33 09 42 75 74 74 6f | 6e 20 32 0d 09 34 09 42 |.3.Butto|n 2..4.B|
|00000190| 75 74 74 6f 6e 20 33 0d | 0d 09 54 68 65 20 63 61 |utton 3.|..The ca|
|000001a0| 6c 6c 65 72 20 6f 66 20 | 46 61 6b 65 41 6c 65 72 |ller of |FakeAler|
|000001b0| 74 20 70 61 73 73 65 73 | 20 74 68 65 20 66 6f 75 |t passes| the fou|
|000001c0| 72 20 73 74 72 69 6e 67 | 73 20 74 68 61 74 20 61 |r string|s that a|
|000001d0| 72 65 20 74 6f 20 62 65 | 0d 09 73 75 62 73 74 69 |re to be|..substi|
|000001e0| 74 75 74 65 64 20 69 6e | 74 6f 20 74 68 65 20 66 |tuted in|to the f|
|000001f0| 69 72 73 74 20 69 74 65 | 6d 2c 20 74 68 65 20 6e |irst ite|m, the n|
|00000200| 75 6d 62 65 72 20 6f 66 | 20 62 75 74 74 6f 6e 73 |umber of| buttons|
|00000210| 20 74 68 61 74 0d 09 73 | 68 6f 75 6c 64 20 62 65 | that..s|hould be|
|00000220| 20 75 73 65 64 2c 20 61 | 6e 64 20 74 68 65 20 74 | used, a|nd the t|
|00000230| 69 74 6c 65 73 20 74 6f | 20 70 75 74 20 69 6e 74 |itles to| put int|
|00000240| 6f 20 65 61 63 68 20 62 | 75 74 74 6f 6e 2e 0d 09 |o each b|utton...|
|00000250| 41 20 63 6f 70 79 20 6f | 66 20 74 68 65 20 69 74 |A copy o|f the it|
|00000260| 65 6d 20 6c 69 73 74 20 | 69 73 20 68 61 63 6b 65 |em list |is hacke|
|00000270| 64 20 74 6f 20 75 73 65 | 20 74 68 65 20 72 69 67 |d to use| the rig|
|00000280| 68 74 20 6e 75 6d 62 65 | 72 20 6f 66 0d 09 62 75 |ht numbe|r of..bu|
|00000290| 74 74 6f 6e 73 2e 0d 0d | 09 54 68 61 6e 6b 73 20 |ttons...|.Thanks |
|000002a0| 74 6f 20 45 72 69 6b 20 | 4b 69 6c 6b 20 61 6e 64 |to Erik |Kilk and|
|000002b0| 20 4a 61 73 6f 6e 20 48 | 61 69 6e 65 73 2e 20 20 | Jason H|aines. |
|000002c0| 53 6f 6d 65 20 6f 66 20 | 74 68 65 20 73 74 75 66 |Some of |the stuf|
|000002d0| 66 20 74 6f 20 64 6f 0d | 09 74 68 69 73 20 69 73 |f to do.|.this is|
|000002e0| 20 6d 6f 64 69 66 69 65 | 64 20 66 72 6f 6d 20 63 | modifie|d from c|
|000002f0| 6f 64 65 20 74 68 65 79 | 20 77 72 6f 74 65 2e 0d |ode they| wrote..|
|00000300| 2a 2f 0d 0d 0d 73 74 61 | 74 69 63 20 49 6e 74 65 |*/...sta|tic Inte|
|00000310| 67 65 72 09 69 74 65 6d | 4c 69 73 74 20 5b 5d 20 |ger.item|List [] |
|00000320| 3d 0d 7b 0d 09 33 2c 09 | 09 09 09 09 2f 2a 20 6d |=.{..3,.|..../* m|
|00000330| 61 78 20 6e 75 6d 62 65 | 72 20 6f 66 20 69 74 65 |ax numbe|r of ite|
|00000340| 6d 73 20 2d 20 31 20 2a | 2f 0d 0d 2f 2a 0d 09 73 |ms - 1 *|/../*..s|
|00000350| 74 61 74 54 65 78 74 20 | 69 74 65 6d 0d 2a 2f 0d |tatText |item.*/.|
|00000360| 09 30 2c 20 30 2c 09 09 | 09 09 2f 2a 20 72 65 73 |.0, 0,..|../* res|
|00000370| 65 72 76 65 20 61 20 4c | 6f 6e 67 69 6e 74 20 66 |erve a L|ongint f|
|00000380| 6f 72 20 69 74 65 6d 20 | 68 61 6e 64 6c 65 20 2a |or item |handle *|
|00000390| 2f 0d 09 31 30 2c 20 32 | 37 2c 20 36 31 2c 20 32 |/..10, 2|7, 61, 2|
|000003a0| 32 35 2c 09 2f 2a 20 64 | 69 73 70 6c 61 79 20 72 |25,./* d|isplay r|
|000003b0| 65 63 74 61 6e 67 6c 65 | 20 2a 2f 0d 09 28 28 38 |ectangle| */..((8|
|000003c0| 2b 31 32 38 29 20 3c 3c | 20 38 29 20 7c 20 38 2c |+128) <<| 8) | 8,|
|000003d0| 09 2f 2a 20 38 20 2b 20 | 31 32 38 20 3d 20 73 74 |./* 8 + |128 = st|
|000003e0| 61 74 54 65 78 74 20 28 | 64 69 73 61 62 6c 65 64 |atText (|disabled|
|000003f0| 29 2c 20 74 69 74 6c 65 | 20 38 20 62 79 74 65 73 |), title| 8 bytes|
|00000400| 20 6c 6f 6e 67 20 2a 2f | 0d 09 27 5e 30 27 2c 20 | long */|..'^0', |
|00000410| 27 5e 31 27 2c 09 09 2f | 2a 20 5e 30 5e 31 5e 32 |'^1',../|* ^0^1^2|
|00000420| 5e 33 20 2a 2f 0d 09 27 | 5e 32 27 2c 20 27 5e 33 |^3 */..'|^2', '^3|
|00000430| 27 2c 0d 0d 2f 2a 0d 09 | 66 69 72 73 74 20 62 75 |',../*..|first bu|
|00000440| 74 74 6f 6e 0d 2a 2f 0d | 0d 09 30 2c 20 30 2c 09 |tton.*/.|..0, 0,.|
|00000450| 09 09 09 2f 2a 20 72 65 | 73 65 72 76 65 20 61 20 |.../* re|serve a |
|00000460| 4c 6f 6e 67 69 6e 74 20 | 66 6f 72 20 69 74 65 6d |Longint |for item|
|00000470| 20 68 61 6e 64 6c 65 20 | 2a 2f 0d 09 31 30 34 2c | handle |*/..104,|
|00000480| 20 31 34 30 2c 20 31 32 | 34 2c 20 32 31 30 2c 09 | 140, 12|4, 210,.|
|00000490| 2f 2a 20 64 69 73 70 6c | 61 79 20 72 65 63 74 61 |/* displ|ay recta|
|000004a0| 6e 67 6c 65 20 2a 2f 0d | 09 28 34 20 3c 3c 20 38 |ngle */.|.(4 << 8|
|000004b0| 29 20 7c 20 30 2c 09 09 | 2f 2a 20 34 20 3d 20 70 |) | 0,..|/* 4 = p|
|000004c0| 75 73 68 42 75 74 74 6f | 6e 2c 20 74 69 74 6c 65 |ushButto|n, title|
|000004d0| 20 69 73 20 30 20 62 79 | 74 65 73 20 6c 6f 6e 67 | is 0 by|tes long|
|000004e0| 2a 2f 0d 0d 2f 2a 0d 09 | 73 65 63 6f 6e 64 20 62 |*/../*..|second b|
|000004f0| 75 74 74 6f 6e 0d 2a 2f | 0d 0d 09 30 2c 20 30 2c |utton.*/|...0, 0,|
|00000500| 09 09 09 09 2f 2a 20 72 | 65 73 65 72 76 65 20 61 |..../* r|eserve a|
|00000510| 20 4c 6f 6e 67 69 6e 74 | 20 66 6f 72 20 69 74 65 | Longint| for ite|
|00000520| 6d 20 68 61 6e 64 6c 65 | 20 2a 2f 0d 09 31 30 34 |m handle| */..104|
|00000530| 2c 20 33 30 2c 20 31 32 | 34 2c 20 31 30 30 2c 09 |, 30, 12|4, 100,.|
|00000540| 2f 2a 20 64 69 73 70 6c | 61 79 20 72 65 63 74 61 |/* displ|ay recta|
|00000550| 6e 67 6c 65 20 2a 2f 0d | 09 28 34 20 3c 3c 20 38 |ngle */.|.(4 << 8|
|00000560| 29 20 7c 20 30 2c 09 09 | 2f 2a 20 34 20 3d 20 70 |) | 0,..|/* 4 = p|
|00000570| 75 73 68 42 75 74 74 6f | 6e 2c 20 74 69 74 6c 65 |ushButto|n, title|
|00000580| 20 69 73 20 30 20 62 79 | 74 65 73 20 6c 6f 6e 67 | is 0 by|tes long|
|00000590| 20 2a 2f 0d 0d 2f 2a 0d | 09 74 68 69 72 64 20 62 | */../*.|.third b|
|000005a0| 75 74 74 6f 6e 0d 2a 2f | 0d 0d 09 30 2c 20 30 2c |utton.*/|...0, 0,|
|000005b0| 09 09 09 09 2f 2a 20 72 | 65 73 65 72 76 65 20 61 |..../* r|eserve a|
|000005c0| 20 4c 6f 6e 67 69 6e 74 | 20 66 6f 72 20 69 74 65 | Longint| for ite|
|000005d0| 6d 20 68 61 6e 64 6c 65 | 20 2a 2f 0d 09 37 32 2c |m handle| */..72,|
|000005e0| 20 33 30 2c 20 39 32 2c | 20 31 30 30 2c 09 2f 2a | 30, 92,| 100,./*|
|000005f0| 20 64 69 73 70 6c 61 79 | 20 72 65 63 74 61 6e 67 | display| rectang|
|00000600| 6c 65 20 2a 2f 0d 09 28 | 34 20 3c 3c 20 38 29 20 |le */..(|4 << 8) |
|00000610| 7c 20 30 09 09 2f 2a 20 | 34 20 3d 20 70 75 73 68 || 0../* |4 = push|
|00000620| 42 75 74 74 6f 6e 2c 20 | 74 69 74 6c 65 20 69 73 |Button, |title is|
|00000630| 20 30 20 62 79 74 65 73 | 20 6c 6f 6e 67 20 2a 2f | 0 bytes| long */|
|00000640| 0d 7d 3b 0d 0d 0d 2f 2a | 0d 09 53 65 74 20 64 69 |.};.../*|..Set di|
|00000650| 61 6c 6f 67 20 62 75 74 | 74 6f 6e 20 74 69 74 6c |alog but|ton titl|
|00000660| 65 20 61 6e 64 20 64 72 | 61 77 20 62 6f 6c 64 20 |e and dr|aw bold |
|00000670| 6f 75 74 6c 69 6e 65 20 | 69 66 20 6d 61 6b 65 42 |outline |if makeB|
|00000680| 6f 6c 64 20 74 72 75 65 | 2e 0d 09 54 68 69 73 20 |old true|...This |
|00000690| 6d 75 73 74 20 62 65 20 | 64 6f 6e 65 20 61 66 74 |must be |done aft|
|000006a0| 65 72 20 74 68 65 20 77 | 69 6e 64 6f 77 20 69 73 |er the w|indow is|
|000006b0| 20 73 68 6f 77 6e 20 6f | 72 20 65 6c 73 65 20 74 | shown o|r else t|
|000006c0| 68 65 20 62 6f 6c 64 0d | 09 6f 75 74 6c 69 6e 65 |he bold.|.outline|
|000006d0| 20 77 6f 6e 27 74 20 73 | 68 6f 77 20 75 70 20 28 | won't s|how up (|
|000006e0| 77 68 69 63 68 20 69 73 | 20 70 72 6f 62 61 62 6c |which is| probabl|
|000006f0| 79 20 74 68 65 20 77 72 | 6f 6e 67 20 77 61 79 20 |y the wr|ong way |
|00000700| 74 6f 20 64 6f 20 69 74 | 29 2e 0d 2a 2f 0d 0d 73 |to do it|)..*/..s|
|00000710| 74 61 74 69 63 20 53 65 | 74 44 43 6f 6e 74 72 6f |tatic Se|tDContro|
|00000720| 6c 20 28 74 68 65 44 69 | 61 6c 6f 67 2c 20 69 74 |l (theDi|alog, it|
|00000730| 65 6d 4e 6f 2c 20 74 69 | 74 6c 65 2c 20 6d 61 6b |emNo, ti|tle, mak|
|00000740| 65 42 6f 6c 64 29 0d 44 | 69 61 6c 6f 67 50 74 72 |eBold).D|ialogPtr|
|00000750| 09 74 68 65 44 69 61 6c | 6f 67 3b 0d 49 6e 74 65 |.theDial|og;.Inte|
|00000760| 67 65 72 09 09 69 74 65 | 6d 4e 6f 3b 0d 53 74 72 |ger..ite|mNo;.Str|
|00000770| 69 6e 67 50 74 72 09 74 | 69 74 6c 65 3b 0d 42 6f |ingPtr.t|itle;.Bo|
|00000780| 6f 6c 65 61 6e 09 09 6d | 61 6b 65 42 6f 6c 64 3b |olean..m|akeBold;|
|00000790| 0d 7b 0d 48 61 6e 64 6c | 65 09 09 69 74 65 6d 48 |.{.Handl|e..itemH|
|000007a0| 61 6e 64 6c 65 3b 0d 49 | 6e 74 65 67 65 72 09 09 |andle;.I|nteger..|
|000007b0| 69 74 65 6d 54 79 70 65 | 3b 0d 52 65 63 74 09 09 |itemType|;.Rect..|
|000007c0| 69 74 65 6d 52 65 63 74 | 3b 0d 50 65 6e 53 74 61 |itemRect|;.PenSta|
|000007d0| 74 65 09 70 53 74 61 74 | 65 3b 0d 0d 09 47 65 74 |te.pStat|e;...Get|
|000007e0| 44 49 74 65 6d 20 28 74 | 68 65 44 69 61 6c 6f 67 |DItem (t|heDialog|
|000007f0| 2c 20 69 74 65 6d 4e 6f | 2c 20 26 69 74 65 6d 54 |, itemNo|, &itemT|
|00000800| 79 70 65 2c 20 26 69 74 | 65 6d 48 61 6e 64 6c 65 |ype, &it|emHandle|
|00000810| 2c 20 26 69 74 65 6d 52 | 65 63 74 29 3b 0d 09 53 |, &itemR|ect);..S|
|00000820| 65 74 43 54 69 74 6c 65 | 20 28 69 74 65 6d 48 61 |etCTitle| (itemHa|
|00000830| 6e 64 6c 65 2c 20 74 69 | 74 6c 65 29 3b 0d 09 69 |ndle, ti|tle);..i|
|00000840| 66 20 28 6d 61 6b 65 42 | 6f 6c 64 29 0d 09 7b 0d |f (makeB|old)..{.|
|00000850| 09 09 47 65 74 50 65 6e | 53 74 61 74 65 20 28 26 |..GetPen|State (&|
|00000860| 70 53 74 61 74 65 29 3b | 0d 09 09 50 65 6e 4e 6f |pState);|...PenNo|
|00000870| 72 6d 61 6c 20 28 29 3b | 0d 09 09 50 65 6e 53 69 |rmal ();|...PenSi|
|00000880| 7a 65 20 28 33 2c 20 33 | 29 3b 0d 09 09 49 6e 73 |ze (3, 3|);...Ins|
|00000890| 65 74 52 65 63 74 20 28 | 26 69 74 65 6d 52 65 63 |etRect (|&itemRec|
|000008a0| 74 2c 20 2d 34 2c 20 2d | 34 29 3b 0d 09 09 46 72 |t, -4, -|4);...Fr|
|000008b0| 61 6d 65 52 6f 75 6e 64 | 52 65 63 74 20 28 26 69 |ameRound|Rect (&i|
|000008c0| 74 65 6d 52 65 63 74 2c | 20 31 36 2c 20 31 36 29 |temRect,| 16, 16)|
|000008d0| 3b 0d 09 09 53 65 74 50 | 65 6e 53 74 61 74 65 20 |;...SetP|enState |
|000008e0| 28 26 70 53 74 61 74 65 | 29 3b 0d 09 7d 0d 7d 0d |(&pState|);..}.}.|
|000008f0| 0d 0d 2f 2a 0d 09 46 61 | 6b 65 20 61 6e 20 61 6c |../*..Fa|ke an al|
|00000900| 65 72 74 2c 20 75 73 69 | 6e 67 20 61 6e 20 69 6e |ert, usi|ng an in|
|00000910| 2d 6d 65 6d 6f 72 79 20 | 77 69 6e 64 6f 77 20 61 |-memory |window a|
|00000920| 6e 64 20 69 74 65 6d 20 | 6c 69 73 74 2e 0d 09 54 |nd item |list...T|
|00000930| 68 65 20 6d 65 73 73 61 | 67 65 20 74 6f 20 62 65 |he messa|ge to be|
|00000940| 20 70 72 65 73 65 6e 74 | 65 64 20 69 73 20 63 6f | present|ed is co|
|00000950| 6e 73 74 72 75 63 74 65 | 64 20 66 72 6f 6d 20 74 |nstructe|d from t|
|00000960| 68 65 20 66 69 72 73 74 | 0d 09 66 6f 75 72 20 61 |he first|..four a|
|00000970| 72 67 75 6d 65 6e 74 73 | 2e 20 20 6e 42 75 74 74 |rguments|. nButt|
|00000980| 6f 6e 73 20 69 73 20 74 | 68 65 20 6e 75 6d 62 65 |ons is t|he numbe|
|00000990| 72 20 6f 66 20 62 75 74 | 74 6f 6e 73 20 74 6f 20 |r of but|tons to |
|000009a0| 75 73 65 2c 0d 09 64 65 | 66 42 75 74 74 6f 6e 20 |use,..de|fButton |
|000009b0| 69 73 20 74 68 65 20 64 | 65 66 61 75 6c 74 20 62 |is the d|efault b|
|000009c0| 75 74 74 6f 6e 2c 20 74 | 68 65 20 6e 65 78 74 20 |utton, t|he next |
|000009d0| 74 68 72 65 65 20 61 72 | 67 73 20 61 72 65 0d 09 |three ar|gs are..|
|000009e0| 74 68 65 20 74 69 74 6c | 65 73 20 74 6f 20 70 75 |the titl|es to pu|
|000009f0| 74 20 69 6e 74 6f 20 74 | 68 65 20 62 75 74 74 6f |t into t|he butto|
|00000a00| 6e 73 2e 20 20 54 68 65 | 20 72 65 74 75 72 6e 20 |ns. The| return |
|00000a10| 76 61 6c 75 65 20 69 73 | 0d 09 74 68 65 20 62 75 |value is|..the bu|
|00000a20| 74 74 6f 6e 20 6e 75 6d | 62 65 72 20 28 31 2e 2e |tton num|ber (1..|
|00000a30| 6e 42 75 74 74 6f 6e 73 | 29 2e 20 20 54 68 69 73 |nButtons|). This|
|00000a40| 20 6d 75 73 74 20 62 65 | 20 69 6e 74 65 72 70 72 | must be| interpr|
|00000a50| 65 74 65 64 0d 09 62 79 | 20 74 68 65 20 63 61 6c |eted..by| the cal|
|00000a60| 6c 65 72 2c 20 73 69 6e | 63 65 20 74 68 65 20 62 |ler, sin|ce the b|
|00000a70| 75 74 74 6f 6e 73 20 6d | 61 79 20 62 65 20 67 69 |uttons m|ay be gi|
|00000a80| 76 65 6e 20 61 72 62 69 | 74 72 61 72 79 0d 09 74 |ven arbi|trary..t|
|00000a90| 69 74 6c 65 73 2e 0d 0d | 09 6e 42 75 74 74 6f 6e |itles...|.nButton|
|00000aa0| 73 20 73 68 6f 75 6c 64 | 20 62 65 20 62 65 74 77 |s should| be betw|
|00000ab0| 65 65 6e 20 31 20 61 6e | 64 20 33 2c 20 69 6e 63 |een 1 an|d 3, inc|
|00000ac0| 6c 75 73 69 76 65 2e 0d | 09 64 65 66 42 75 74 74 |lusive..|.defButt|
|00000ad0| 6f 6e 20 73 68 6f 75 6c | 64 20 62 65 20 62 65 74 |on shoul|d be bet|
|00000ae0| 77 65 65 6e 20 31 20 61 | 6e 64 20 6e 42 75 74 74 |ween 1 a|nd nButt|
|00000af0| 6f 6e 73 2c 20 69 6e 63 | 6c 75 73 69 76 65 2e 0d |ons, inc|lusive..|
|00000b00| 2a 2f 0d 0d 0d 46 61 6b | 65 41 6c 65 72 74 20 28 |*/...Fak|eAlert (|
|00000b10| 73 31 2c 20 73 32 2c 20 | 73 33 2c 20 73 34 2c 20 |s1, s2, |s3, s4, |
|00000b20| 6e 42 75 74 74 6f 6e 73 | 2c 20 64 65 66 42 75 74 |nButtons|, defBut|
|00000b30| 74 6f 6e 2c 20 74 31 2c | 20 74 32 2c 20 74 33 29 |ton, t1,| t2, t3)|
|00000b40| 0d 53 74 72 69 6e 67 50 | 74 72 09 73 31 2c 20 73 |.StringP|tr.s1, s|
|00000b50| 32 2c 20 73 33 2c 20 73 | 34 3b 0d 49 6e 74 65 67 |2, s3, s|4;.Integ|
|00000b60| 65 72 09 09 6e 42 75 74 | 74 6f 6e 73 3b 0d 49 6e |er..nBut|tons;.In|
|00000b70| 74 65 67 65 72 09 09 64 | 65 66 42 75 74 74 6f 6e |teger..d|efButton|
|00000b80| 3b 0d 53 74 72 69 6e 67 | 50 74 72 09 74 31 2c 20 |;.String|Ptr.t1, |
|00000b90| 74 32 2c 20 74 33 3b 0d | 7b 0d 47 72 61 66 50 74 |t2, t3;.|{.GrafPt|
|00000ba0| 72 09 09 73 61 76 65 50 | 6f 72 74 3b 0d 72 65 67 |r..saveP|ort;.reg|
|00000bb0| 69 73 74 65 72 20 44 69 | 61 6c 6f 67 50 74 72 09 |ister Di|alogPtr.|
|00000bc0| 74 68 65 44 69 61 6c 6f | 67 3b 0d 72 65 67 69 73 |theDialo|g;.regis|
|00000bd0| 74 65 72 20 48 61 6e 64 | 6c 65 09 09 69 4c 69 73 |ter Hand|le..iLis|
|00000be0| 74 48 61 6e 64 6c 65 3b | 0d 52 65 63 74 09 09 62 |tHandle;|.Rect..b|
|00000bf0| 6f 75 6e 64 73 3b 0d 49 | 6e 74 65 67 65 72 09 09 |ounds;.I|nteger..|
|00000c00| 69 74 65 6d 48 69 74 3b | 0d 0d 09 49 6e 69 74 43 |itemHit;|...InitC|
|00000c10| 75 72 73 6f 72 20 28 29 | 3b 0d 09 47 65 74 50 6f |ursor ()|;..GetPo|
|00000c20| 72 74 20 28 26 73 61 76 | 65 50 6f 72 74 29 3b 0d |rt (&sav|ePort);.|
|00000c30| 09 69 4c 69 73 74 48 61 | 6e 64 6c 65 20 3d 20 4e |.iListHa|ndle = N|
|00000c40| 65 77 48 61 6e 64 6c 65 | 20 28 35 31 32 4c 29 3b |ewHandle| (512L);|
|00000c50| 0d 09 48 4c 6f 63 6b 20 | 28 69 4c 69 73 74 48 61 |..HLock |(iListHa|
|00000c60| 6e 64 6c 65 29 3b 0d 09 | 42 6c 6f 63 6b 4d 6f 76 |ndle);..|BlockMov|
|00000c70| 65 20 28 26 69 74 65 6d | 4c 69 73 74 2c 20 2a 69 |e (&item|List, *i|
|00000c80| 4c 69 73 74 48 61 6e 64 | 6c 65 2c 20 35 31 32 4c |ListHand|le, 512L|
|00000c90| 29 3b 0d 09 28 28 49 6e | 74 65 67 65 72 20 2a 29 |);..((In|teger *)|
|00000ca0| 20 2a 69 4c 69 73 74 48 | 61 6e 64 6c 65 29 5b 30 | *iListH|andle)[0|
|00000cb0| 5d 20 3d 20 6e 42 75 74 | 74 6f 6e 73 3b 09 2f 2a |] = nBut|tons;./*|
|00000cc0| 20 3d 20 6e 75 6d 62 65 | 72 20 69 74 65 6d 73 20 | = numbe|r items |
|00000cd0| 2d 20 31 20 2a 2f 0d 09 | 53 65 74 52 65 63 74 20 |- 1 */..|SetRect |
|00000ce0| 28 26 62 6f 75 6e 64 73 | 2c 20 31 31 35 2c 20 38 |(&bounds|, 115, 8|
|00000cf0| 30 2c 20 33 35 35 2c 20 | 32 32 30 29 3b 0d 09 74 |0, 355, |220);..t|
|00000d00| 68 65 44 69 61 6c 6f 67 | 20 3d 20 4e 65 77 44 69 |heDialog| = NewDi|
|00000d10| 61 6c 6f 67 20 28 6e 69 | 6c 2c 20 26 62 6f 75 6e |alog (ni|l, &boun|
|00000d20| 64 73 2c 20 22 5c 70 22 | 2c 20 66 61 6c 73 65 2c |ds, "\p"|, false,|
|00000d30| 20 64 42 6f 78 50 72 6f | 63 2c 20 2d 31 4c 2c 0d | dBoxPro|c, -1L,.|
|00000d40| 09 09 09 09 09 09 09 66 | 61 6c 73 65 2c 20 30 4c |.......f|alse, 0L|
|00000d50| 2c 20 69 4c 69 73 74 48 | 61 6e 64 6c 65 29 3b 0d |, iListH|andle);.|
|00000d60| 0d 09 50 61 72 61 6d 54 | 65 78 74 20 28 73 31 2c |..ParamT|ext (s1,|
|00000d70| 20 73 32 2c 20 73 33 2c | 20 73 34 29 3b 09 09 2f | s2, s3,| s4);../|
|00000d80| 2a 20 63 6f 6e 73 74 72 | 75 63 74 20 6d 65 73 73 |* constr|uct mess|
|00000d90| 61 67 65 20 2a 2f 0d 0d | 09 53 65 74 50 6f 72 74 |age */..|.SetPort|
|00000da0| 20 28 74 68 65 44 69 61 | 6c 6f 67 29 3b 0d 09 53 | (theDia|log);..S|
|00000db0| 68 6f 77 57 69 6e 64 6f | 77 20 28 74 68 65 44 69 |howWindo|w (theDi|
|00000dc0| 61 6c 6f 67 29 3b 0d 0d | 09 73 77 69 74 63 68 20 |alog);..|.switch |
|00000dd0| 28 6e 42 75 74 74 6f 6e | 73 29 09 09 09 09 2f 2a |(nButton|s)..../*|
|00000de0| 20 73 65 74 20 62 75 74 | 74 6f 6e 20 74 69 74 6c | set but|ton titl|
|00000df0| 65 73 20 2a 2f 0d 09 7b | 0d 09 09 63 61 73 65 20 |es */..{|...case |
|00000e00| 33 3a 0d 09 09 09 53 65 | 74 44 43 6f 6e 74 72 6f |3:....Se|tDContro|
|00000e10| 6c 20 28 74 68 65 44 69 | 61 6c 6f 67 2c 20 34 2c |l (theDi|alog, 4,|
|00000e20| 20 74 33 2c 20 64 65 66 | 42 75 74 74 6f 6e 20 3d | t3, def|Button =|
|00000e30| 3d 20 33 29 3b 0d 09 09 | 09 2f 2a 20 66 61 6c 6c |= 3);...|./* fall|
|00000e40| 20 74 68 72 6f 75 67 68 | 2e 2e 2e 20 2a 2f 0d 09 | through|... */..|
|00000e50| 09 63 61 73 65 20 32 3a | 0d 09 09 09 53 65 74 44 |.case 2:|....SetD|
|00000e60| 43 6f 6e 74 72 6f 6c 20 | 28 74 68 65 44 69 61 6c |Control |(theDial|
|00000e70| 6f 67 2c 20 33 2c 20 74 | 32 2c 20 64 65 66 42 75 |og, 3, t|2, defBu|
|00000e80| 74 74 6f 6e 20 3d 3d 20 | 32 29 3b 0d 09 09 09 2f |tton == |2);..../|
|00000e90| 2a 20 66 61 6c 6c 20 74 | 68 72 6f 75 67 68 2e 2e |* fall t|hrough..|
|00000ea0| 2e 20 2a 2f 0d 09 09 63 | 61 73 65 20 31 3a 0d 09 |. */...c|ase 1:..|
|00000eb0| 09 09 53 65 74 44 43 6f | 6e 74 72 6f 6c 20 28 74 |..SetDCo|ntrol (t|
|00000ec0| 68 65 44 69 61 6c 6f 67 | 2c 20 32 2c 20 74 31 2c |heDialog|, 2, t1,|
|00000ed0| 20 64 65 66 42 75 74 74 | 6f 6e 20 3d 3d 20 31 29 | defButt|on == 1)|
|00000ee0| 3b 0d 09 7d 0d 0d 2f 2a | 0d 09 4d 6f 64 61 6c 44 |;..}../*|..ModalD|
|00000ef0| 69 61 6c 6f 67 20 72 65 | 74 75 72 6e 73 20 31 20 |ialog re|turns 1 |
|00000f00| 69 66 20 72 65 74 75 72 | 6e 2f 65 6e 74 65 72 20 |if retur|n/enter |
|00000f10| 68 69 74 2c 20 77 68 69 | 63 68 2c 20 73 69 6e 63 |hit, whi|ch, sinc|
|00000f20| 65 0d 09 74 68 65 20 73 | 74 61 74 54 65 78 74 20 |e..the s|tatText |
|00000f30| 69 74 65 6d 20 69 73 20 | 66 69 72 73 74 2c 20 63 |item is |first, c|
|00000f40| 61 6e 20 62 65 20 75 6e | 61 6d 62 69 67 75 6f 75 |an be un|ambiguou|
|00000f50| 73 6c 79 0d 09 69 6e 74 | 65 72 70 72 65 74 65 64 |sly..int|erpreted|
|00000f60| 20 61 73 20 22 63 68 6f | 6f 73 65 20 64 65 66 61 | as "cho|ose defa|
|00000f70| 75 6c 74 22 2e 0d 2a 2f | 0d 09 4d 6f 64 61 6c 44 |ult"..*/|..ModalD|
|00000f80| 69 61 6c 6f 67 20 28 6e | 69 6c 2c 20 26 69 74 65 |ialog (n|il, &ite|
|00000f90| 6d 48 69 74 29 3b 0d 09 | 69 74 65 6d 48 69 74 20 |mHit);..|itemHit |
|00000fa0| 3d 20 28 69 74 65 6d 48 | 69 74 20 3d 3d 20 31 20 |= (itemH|it == 1 |
|00000fb0| 3f 20 64 65 66 42 75 74 | 74 6f 6e 20 3a 20 69 74 |? defBut|ton : it|
|00000fc0| 65 6d 48 69 74 20 2d 20 | 31 29 3b 0d 09 48 55 6e |emHit - |1);..HUn|
|00000fd0| 6c 6f 63 6b 20 28 69 4c | 69 73 74 48 61 6e 64 6c |lock (iL|istHandl|
|00000fe0| 65 29 3b 0d 09 2f 2a 48 | 50 75 72 67 65 20 28 69 |e);../*H|Purge (i|
|00000ff0| 4c 69 73 74 48 61 6e 64 | 6c 65 29 3b 2a 2f 0d 09 |ListHand|le);*/..|
|00001000| 44 69 73 70 6f 73 44 69 | 61 6c 6f 67 20 28 74 68 |DisposDi|alog (th|
|00001010| 65 44 69 61 6c 6f 67 29 | 3b 0d 09 53 65 74 50 6f |eDialog)|;..SetPo|
|00001020| 72 74 20 28 73 61 76 65 | 50 6f 72 74 29 3b 0d 09 |rt (save|Port);..|
|00001030| 72 65 74 75 72 6e 20 28 | 69 74 65 6d 48 69 74 29 |return (|itemHit)|
|00001040| 3b 0d 7d 0d 00 00 00 00 | 00 00 00 00 00 00 00 00 |;.}.....|........|
|00001050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001060| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001070| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+