home *** CD-ROM | disk | FTP | other *** search
/ Carousel Volume 2 #1 / carousel.iso / mactosh / code / p_fracap.sit / UFracAppPalette.p < prev   
MacBinary  |  1988-08-17  |  12.4 KB  |  [TEXT/MPS ]

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 ZX81 Sinclair BASIC (image/sinclairBASIC) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert bsdiff patch (other/bsdiffPatch) ext Unsupported
1% dexvert imgdiff patch (other/imgdiffPatch) ext Unsupported
1% dexvert WSUS Patch Storage File (other/wsusPatchStorageFile) ext Unsupported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Wed Aug 17 11:37:22 1988, modified Wed Aug 17 11:37:22 1988, creator 'MPS ', type ASCII, 11913 bytes "UFracAppPalette.p" , at 0x2f09 494 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[MPS ]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 11 55 46 72 61 63 41 | 70 70 50 61 6c 65 74 74 |..UFracA|ppPalett|
|00000010| 65 2e 70 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |e.p.....|........|
|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 4d 50 53 | 20 01 00 00 00 00 00 00 |.TEXTMPS| .......|
|00000050| 00 00 00 00 00 2e 89 00 | 00 01 ee 9f 2f 58 b2 9f |........|..../X..|
|00000060| 2f 58 b2 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |/X......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 05 e2 00 00 |........|........|
|00000080| 7b 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |{-------|--------|
|00000090| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000000a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000000b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 0d 23 0d |--------|-----.#.|
|000000c0| 23 09 41 70 70 6c 65 20 | 4d 61 63 69 6e 74 6f 73 |#.Apple |Macintos|
|000000d0| 68 20 44 65 76 65 6c 6f | 70 65 72 20 54 65 63 68 |h Develo|per Tech|
|000000e0| 6e 69 63 61 6c 20 53 75 | 70 70 6f 72 74 0d 23 0d |nical Su|pport.#.|
|000000f0| 23 09 4d 61 63 41 70 70 | 20 43 6f 6c 6f 72 20 51 |#.MacApp| Color Q|
|00000100| 75 69 63 6b 44 72 61 77 | 20 50 61 6c 65 74 74 65 |uickDraw| Palette|
|00000110| 20 46 72 61 63 74 61 6c | 20 53 61 6d 70 6c 65 20 | Fractal| Sample |
|00000120| 41 70 70 6c 69 63 61 74 | 69 6f 6e 0d 23 0d 23 09 |Applicat|ion.#.#.|
|00000130| 46 72 61 63 41 70 70 50 | 61 6c 65 74 74 65 0d 23 |FracAppP|alette.#|
|00000140| 0d 23 09 55 46 72 61 63 | 41 70 70 50 61 6c 65 74 |.#.UFrac|AppPalet|
|00000150| 74 65 2e 70 09 2d 09 50 | 61 73 63 61 6c 20 53 6f |te.p.-.P|ascal So|
|00000160| 75 72 63 65 0d 23 0d 23 | 09 43 6f 70 79 72 69 67 |urce.#.#|.Copyrig|
|00000170| 68 74 20 a9 20 31 39 38 | 38 20 41 70 70 6c 65 20 |ht . 198|8 Apple |
|00000180| 43 6f 6d 70 75 74 65 72 | 2c 20 49 6e 63 2e 0d 23 |Computer|, Inc..#|
|00000190| 09 41 6c 6c 20 72 69 67 | 68 74 73 20 72 65 73 65 |.All rig|hts rese|
|000001a0| 72 76 65 64 2e 0d 23 0d | 23 09 56 65 72 73 69 6f |rved..#.|#.Versio|
|000001b0| 6e 73 3a 09 31 2e 30 09 | 09 09 09 09 09 38 2f 38 |ns:.1.0.|.....8/8|
|000001c0| 38 0d 23 0d 23 09 43 6f | 6d 70 6f 6e 65 6e 74 73 |8.#.#.Co|mponents|
|000001d0| 3a 09 4d 46 72 61 63 41 | 70 70 50 61 6c 65 74 74 |:.MFracA|ppPalett|
|000001e0| 65 2e 70 09 09 41 75 67 | 75 73 74 20 31 2c 20 31 |e.p..Aug|ust 1, 1|
|000001f0| 39 38 38 0d 23 09 09 09 | 09 55 46 72 61 63 41 70 |988.#...|.UFracAp|
|00000200| 70 50 61 6c 65 74 74 65 | 2e 70 09 09 41 75 67 75 |pPalette|.p..Augu|
|00000210| 73 74 20 31 2c 20 31 39 | 38 38 0d 23 09 09 09 09 |st 1, 19|88.#....|
|00000220| 55 46 72 61 63 41 70 70 | 50 61 6c 65 74 74 65 2e |UFracApp|Palette.|
|00000230| 69 6e 63 31 2e 70 09 41 | 75 67 75 73 74 20 31 2c |inc1.p.A|ugust 1,|
|00000240| 20 31 39 38 38 0d 23 09 | 09 09 09 46 72 61 63 41 | 1988.#.|...FracA|
|00000250| 70 70 50 61 6c 65 74 74 | 65 2e 72 09 09 41 75 67 |ppPalett|e.r..Aug|
|00000260| 75 73 74 20 31 2c 20 31 | 39 38 38 0d 23 09 09 09 |ust 1, 1|988.#...|
|00000270| 09 46 72 61 63 41 70 70 | 50 61 6c 65 74 74 65 2e |.FracApp|Palette.|
|00000280| 6d 61 6b 65 09 09 41 75 | 67 75 73 74 20 31 2c 20 |make..Au|gust 1, |
|00000290| 31 39 38 38 0d 23 0d 23 | 09 54 68 65 20 46 72 61 |1988.#.#|.The Fra|
|000002a0| 63 41 70 70 50 61 6c 65 | 74 74 65 20 70 72 6f 67 |cAppPale|tte prog|
|000002b0| 72 61 6d 20 69 73 20 61 | 20 76 65 72 73 69 6f 6e |ram is a| version|
|000002c0| 20 6f 66 20 74 68 65 20 | 46 72 61 63 41 70 70 20 | of the |FracApp |
|000002d0| 70 72 6f 67 72 61 6d 20 | 74 68 61 74 20 69 73 0d |program |that is.|
|000002e0| 23 09 73 65 74 20 75 70 | 20 74 6f 20 62 65 20 61 |#.set up| to be a|
|000002f0| 73 20 63 6f 6d 70 61 74 | 69 62 6c 65 20 61 73 20 |s compat|ible as |
|00000300| 70 6f 73 73 69 62 6c 65 | 2e 20 20 54 6f 20 74 68 |possible|. To th|
|00000310| 69 73 20 65 6e 64 20 69 | 74 20 75 73 65 73 20 74 |is end i|t uses t|
|00000320| 68 65 20 50 61 6c 65 74 | 74 65 0d 23 09 4d 61 6e |he Palet|te.#.Man|
|00000330| 61 67 65 72 20 74 6f 20 | 73 65 74 20 75 70 20 74 |ager to |set up t|
|00000340| 68 65 20 63 6f 6c 6f 72 | 20 65 6e 76 69 72 6f 6e |he color| environ|
|00000350| 6d 65 6e 74 2e 20 20 49 | 74 20 64 6f 65 73 20 6e |ment. I|t does n|
|00000360| 6f 74 20 73 75 70 70 6f | 72 74 20 63 6f 6c 6f 72 |ot suppo|rt color|
|00000370| 20 74 61 62 6c 65 0d 23 | 09 61 6e 69 6d 61 74 69 | table.#|.animati|
|00000380| 6f 6e 2e 20 20 49 74 20 | 64 65 6d 6f 6e 73 74 72 |on. It |demonstr|
|00000390| 61 74 65 73 20 68 6f 77 | 20 74 6f 20 75 73 65 20 |ates how| to use |
|000003a0| 74 68 65 20 50 61 6c 65 | 74 74 65 20 4d 61 6e 61 |the Pale|tte Mana|
|000003b0| 67 65 72 20 66 6f 72 20 | 73 74 61 6e 64 61 72 64 |ger for |standard|
|000003c0| 0d 23 09 63 6f 6c 6f 72 | 20 75 73 65 2e 20 20 49 |.#.color| use. I|
|000003d0| 74 20 73 68 6f 77 73 20 | 68 6f 77 20 74 6f 20 63 |t shows |how to c|
|000003e0| 72 65 61 74 65 20 61 6e | 64 20 75 73 65 20 61 6e |reate an|d use an|
|000003f0| 20 6f 66 66 73 63 72 65 | 65 6e 20 67 44 65 76 69 | offscre|en gDevi|
|00000400| 63 65 20 77 2f 20 50 6f | 72 74 0d 23 09 66 6f 72 |ce w/ Po|rt.#.for|
|00000410| 20 73 70 65 63 69 61 6c | 20 63 6f 6c 6f 72 20 75 | special| color u|
|00000420| 73 65 61 67 65 2c 20 61 | 73 20 77 65 6c 6c 20 61 |seage, a|s well a|
|00000430| 73 20 68 6f 77 20 74 6f | 20 43 6f 70 79 42 69 74 |s how to| CopyBit|
|00000440| 73 20 74 68 61 74 20 64 | 61 74 61 20 75 70 20 74 |s that d|ata up t|
|00000450| 6f 20 74 68 65 0d 23 09 | 73 63 72 65 65 6e 20 74 |o the.#.|screen t|
|00000460| 6f 20 68 61 6e 64 6c 65 | 20 75 70 64 61 74 65 20 |o handle| update |
|00000470| 65 76 65 6e 74 73 2e 20 | 20 50 49 43 54 20 66 69 |events. | PICT fi|
|00000480| 6c 65 73 20 61 72 65 20 | 72 65 61 64 20 61 6e 64 |les are |read and|
|00000490| 20 77 72 69 74 74 65 6e | 2c 20 75 73 69 6e 67 20 | written|, using |
|000004a0| 74 68 65 0d 23 09 71 75 | 69 63 6b 64 72 61 77 20 |the.#.qu|ickdraw |
|000004b0| 62 6f 74 74 6c 65 6e 65 | 63 6b 73 20 74 6f 20 6d |bottlene|cks to m|
|000004c0| 69 6e 69 6d 69 7a 65 20 | 74 68 65 20 75 73 65 20 |inimize |the use |
|000004d0| 6f 66 20 6d 65 6d 6f 72 | 79 2e 0d 23 09 09 09 57 |of memor|y..#...W|
|000004e0| 72 69 74 74 65 6e 20 69 | 6e 20 4d 61 63 41 70 70 |ritten i|n MacApp|
|000004f0| 20 4f 62 6a 65 63 74 20 | 50 61 73 63 61 6c 20 63 | Object |Pascal c|
|00000500| 6f 64 65 2e 0d 23 09 09 | 09 43 6f 6d 70 61 74 69 |ode..#..|.Compati|
|00000510| 62 69 6c 69 74 79 20 72 | 61 74 69 6e 67 20 3d 20 |bility r|ating = |
|00000520| 30 2c 20 6e 6f 20 6b 6e | 6f 77 6e 20 72 69 73 6b |0, no kn|own risk|
|00000530| 73 2e 0d 23 0d 23 09 54 | 68 65 20 70 72 6f 67 72 |s..#.#.T|he progr|
|00000540| 61 6d 20 69 73 20 61 20 | 63 6f 6d 70 6c 65 74 65 |am is a |complete|
|00000550| 20 4d 61 63 69 6e 74 6f | 73 68 20 61 70 70 6c 69 | Macinto|sh appli|
|00000560| 63 61 74 69 6f 6e 20 77 | 72 69 74 74 65 6e 20 69 |cation w|ritten i|
|00000570| 6e 20 4f 62 6a 65 63 74 | 20 0d 23 09 50 61 73 63 |n Object| .#.Pasc|
|00000580| 61 6c 20 75 73 69 6e 67 | 20 4d 61 63 41 70 70 2e |al using| MacApp.|
|00000590| 20 20 49 74 20 73 75 70 | 70 6f 72 74 73 20 6d 75 | It sup|ports mu|
|000005a0| 6c 74 69 70 6c 65 20 77 | 69 6e 64 6f 77 73 2c 20 |ltiple w|indows, |
|000005b0| 63 61 6c 63 75 6c 61 74 | 69 6f 6e 73 20 69 6e 20 |calculat|ions in |
|000005c0| 74 68 65 0d 23 09 62 61 | 63 6b 67 72 6f 75 6e 64 |the.#.ba|ckground|
|000005d0| 20 75 6e 64 65 72 20 4d | 75 6c 74 69 46 69 6e 64 | under M|ultiFind|
|000005e0| 65 72 2c 20 75 73 65 20 | 6f 66 20 74 68 65 20 50 |er, use |of the P|
|000005f0| 61 6c 65 74 74 65 20 4d | 61 6e 61 67 65 72 2c 20 |alette M|anager, |
|00000600| 72 65 61 64 69 6e 67 20 | 61 6e 64 0d 23 09 77 72 |reading |and.#.wr|
|00000610| 69 74 69 6e 67 20 6f 66 | 20 50 49 43 54 20 66 69 |iting of| PICT fi|
|00000620| 6c 65 73 20 75 73 69 6e | 67 20 74 68 65 20 62 6f |les usin|g the bo|
|00000630| 74 74 6c 65 6e 65 63 6b | 73 2c 20 61 6e 64 20 73 |ttleneck|s, and s|
|00000640| 68 6f 77 73 20 68 6f 77 | 20 74 6f 20 63 61 6c 63 |hows how| to calc|
|00000650| 75 6c 61 74 65 0d 23 09 | 74 68 65 20 4d 61 6e 64 |ulate.#.|the Mand|
|00000660| 65 6c 62 72 6f 74 20 73 | 65 74 2e 0d 23 0d 23 09 |elbrot s|et..#.#.|
|00000670| 54 68 65 72 65 20 69 73 | 20 61 20 72 65 73 6f 75 |There is| a resou|
|00000680| 72 63 65 20 66 69 6c 65 | 20 74 68 61 74 20 69 73 |rce file| that is|
|00000690| 20 6e 65 63 65 73 73 61 | 72 79 20 61 73 20 77 65 | necessa|ry as we|
|000006a0| 6c 6c 2c 20 74 6f 20 64 | 65 66 69 6e 65 20 74 68 |ll, to d|efine th|
|000006b0| 65 20 4d 65 6e 75 73 2c | 20 57 69 6e 64 6f 77 2c |e Menus,| Window,|
|000006c0| 0d 23 09 44 69 61 6c 6f | 67 2c 20 43 6f 6c 6f 72 |.#.Dialo|g, Color|
|000006d0| 20 74 61 62 6c 65 2c 20 | 61 6e 64 20 50 61 6c 65 | table, |and Pale|
|000006e0| 74 74 65 20 72 65 73 6f | 75 72 63 65 73 20 75 73 |tte reso|urces us|
|000006f0| 65 64 20 69 6e 20 74 68 | 65 20 70 72 6f 67 72 61 |ed in th|e progra|
|00000700| 6d 2e 0d 23 0d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |m..#.---|--------|
|00000710| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000720| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000730| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000740| 2d 7d 0d 7b 20 46 72 61 | 63 41 70 70 50 61 6c 65 |-}.{ Fra|cAppPale|
|00000750| 74 74 65 3a 0d 09 43 6f | 70 79 72 69 67 68 74 20 |tte:..Co|pyright |
|00000760| 31 39 38 38 20 62 79 20 | 42 6f 62 2e 20 20 41 6c |1988 by |Bob. Al|
|00000770| 6c 20 72 69 67 68 74 73 | 20 72 65 73 65 72 76 65 |l rights| reserve|
|00000780| 64 2c 20 73 69 6e 63 65 | 20 42 6f 62 20 68 61 73 |d, since| Bob has|
|00000790| 20 61 6c 6c 20 72 69 67 | 68 74 73 2e 0d 09 46 65 | all rig|hts...Fe|
|000007a0| 62 72 75 61 72 79 20 31 | 2c 20 31 39 38 38 2e 20 |bruary 1|, 1988. |
|000007b0| 0d 09 57 72 69 74 74 65 | 6e 20 62 79 20 42 6f 33 |..Writte|n by Bo3|
|000007c0| 62 20 4a 6f 68 6e 73 6f | 6e 20 6f 66 20 44 65 76 |b Johnso|n of Dev|
|000007d0| 65 6c 6f 70 65 72 20 54 | 65 63 68 6e 69 63 61 6c |eloper T|echnical|
|000007e0| 20 53 75 70 70 6f 72 74 | 2e 20 7d 0d 0d 55 4e 49 | Support|. }..UNI|
|000007f0| 54 20 55 46 72 61 63 41 | 70 70 50 61 6c 65 74 74 |T UFracA|ppPalett|
|00000800| 65 3b 0d 0d 28 2a 0d 0d | 54 68 69 73 20 69 73 20 |e;..(*..|This is |
|00000810| 61 20 6e 6f 74 20 74 6f | 6f 20 73 6d 61 6c 6c 20 |a not to|o small |
|00000820| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 77 68 69 63 |applicat|ion whic|
|00000830| 68 20 63 61 6e 20 63 61 | 6c 63 75 6c 61 74 65 20 |h can ca|lculate |
|00000840| 61 20 66 72 61 63 74 61 | 6c 20 69 6e 20 66 75 6c |a fracta|l in ful|
|00000850| 6c 20 63 6f 6c 6f 72 0d | 09 6f 6e 20 74 68 65 20 |l color.|.on the |
|00000860| 4d 61 63 20 49 49 2c 20 | 75 73 69 6e 67 20 64 69 |Mac II, |using di|
|00000870| 72 65 63 74 20 38 38 31 | 20 63 6f 64 65 20 66 6f |rect 881| code fo|
|00000880| 72 20 73 70 65 65 64 2e | 20 20 49 74 20 73 61 76 |r speed.| It sav|
|00000890| 65 73 20 66 69 6c 65 73 | 20 6f 6e 20 64 69 73 6b |es files| on disk|
|000008a0| 20 61 73 20 50 49 43 54 | 2e 0d 09 46 6f 72 20 66 | as PICT|...For f|
|000008b0| 75 6c 6c 20 69 6e 66 6f | 2c 20 73 65 65 20 74 68 |ull info|, see th|
|000008c0| 65 20 69 6d 70 6c 65 6d | 65 6e 74 61 74 69 6f 6e |e implem|entation|
|000008d0| 2e 20 20 20 54 68 69 73 | 20 76 65 72 73 69 6f 6e |. This| version|
|000008e0| 20 73 70 65 63 69 66 69 | 63 61 6c 6c 79 20 69 73 | specifi|cally is|
|000008f0| 20 73 65 74 20 75 70 20 | 74 6f 0d 09 62 65 20 66 | set up |to..be f|
|00000900| 75 6c 6c 79 20 63 6f 6d | 70 61 74 69 62 6c 65 2c |ully com|patible,|
|00000910| 20 61 6e 64 20 64 6f 65 | 73 20 6e 6f 74 20 73 75 | and doe|s not su|
|00000920| 70 70 6f 72 74 20 63 6f | 6c 6f 72 20 74 61 62 6c |pport co|lor tabl|
|00000930| 65 20 61 6e 69 6d 61 74 | 69 6f 6e 2e 0d 0d 2a 29 |e animat|ion...*)|
|00000940| 0d 0d 49 4e 54 45 52 46 | 41 43 45 0d 0d 55 53 45 |..INTERF|ACE..USE|
|00000950| 53 0d 09 7b 24 4c 4f 41 | 44 20 46 72 61 63 41 70 |S..{$LOA|D FracAp|
|00000960| 70 38 38 31 2e 4c 4f 41 | 44 7d 0d 09 09 4d 65 6d |p881.LOA|D}...Mem|
|00000970| 54 79 70 65 73 2c 20 51 | 75 69 63 6b 44 72 61 77 |Types, Q|uickDraw|
|00000980| 2c 20 4f 53 49 6e 74 66 | 2c 20 54 6f 6f 6c 49 6e |, OSIntf|, ToolIn|
|00000990| 74 66 2c 20 50 61 63 6b | 49 6e 74 66 2c 0d 09 09 |tf, Pack|Intf,...|
|000009a0| 55 4f 62 6a 65 63 74 2c | 20 55 4c 69 73 74 2c 20 |UObject,| UList, |
|000009b0| 55 4d 61 63 41 70 70 2c | 0d 09 09 50 61 6c 65 74 |UMacApp,|...Palet|
|000009c0| 74 65 4d 67 72 2c 20 55 | 50 72 69 6e 74 69 6e 67 |teMgr, U|Printing|
|000009d0| 3b 0d 09 7b 24 4c 4f 41 | 44 7d 0d 0d 43 4f 4e 53 |;..{$LOA|D}..CONS|
|000009e0| 54 0d 0d 20 20 7b 43 6f | 6d 6d 61 6e 64 20 6e 75 |T.. {Co|mmand nu|
|000009f0| 6d 62 65 72 73 7d 0d 0d | 09 6b 53 69 67 6e 61 74 |mbers}..|.kSignat|
|00000a00| 75 72 65 09 09 09 09 3d | 20 27 41 72 66 20 27 3b |ure....=| 'Arf ';|
|00000a10| 09 09 7b 41 70 70 6c 69 | 63 61 74 69 6f 6e 20 73 |..{Appli|cation s|
|00000a20| 69 67 6e 61 74 75 72 65 | 7d 0d 09 6b 46 69 6c 65 |ignature|}..kFile|
|00000a30| 54 79 70 65 09 09 09 09 | 09 3d 20 27 50 49 43 54 |Type....|.= 'PICT|
|00000a40| 27 3b 09 7b 46 69 6c 65 | 2d 74 79 70 65 20 63 6f |';.{File|-type co|
|00000a50| 64 65 20 75 73 65 64 20 | 66 6f 72 20 64 6f 63 75 |de used |for docu|
|00000a60| 6d 65 6e 74 20 66 69 6c | 65 73 0d 09 09 09 09 09 |ment fil|es......|
|00000a70| 09 09 09 09 09 09 09 09 | 09 63 72 65 61 74 65 64 |........|.created|
|00000a80| 20 62 79 20 74 68 69 73 | 20 61 70 70 6c 69 63 61 | by this| applica|
|00000a90| 74 69 6f 6e 7d 0d 09 6b | 46 72 61 63 41 70 70 57 |tion}..k|FracAppW|
|00000aa0| 69 6e 64 6f 77 49 44 09 | 3d 20 31 30 30 31 3b 09 |indowID.|= 1001;.|
|00000ab0| 7b 54 68 69 73 20 69 73 | 20 70 61 73 73 65 64 20 |{This is| passed |
|00000ac0| 74 6f 20 4e 65 77 53 69 | 6d 70 6c 65 57 69 6e 64 |to NewSi|mpleWind|
|00000ad0| 6f 77 20 61 73 20 74 68 | 65 0d 09 09 09 09 09 09 |ow as th|e.......|
|00000ae0| 09 09 09 09 09 09 09 09 | 72 65 73 6f 75 72 63 65 |........|resource|
|00000af0| 20 49 44 20 6f 66 20 74 | 68 65 20 74 68 65 20 57 | ID of t|he the W|
|00000b00| 49 4e 44 20 52 65 73 6f | 75 72 63 65 0d 09 09 09 |IND Reso|urce....|
|00000b10| 09 09 09 09 09 09 09 09 | 09 09 09 77 68 69 63 68 |........|...which|
|00000b20| 20 64 65 66 69 6e 65 73 | 20 74 68 65 20 77 69 6e | defines| the win|
|00000b30| 64 6f 77 20 66 6f 72 20 | 74 68 69 73 0d 09 09 09 |dow for |this....|
|00000b40| 09 09 09 09 09 09 09 09 | 09 09 09 61 70 70 6c 69 |........|...appli|
|00000b50| 63 61 74 69 6f 6e 27 73 | 20 64 6f 63 75 6d 65 6e |cation's| documen|
|00000b60| 74 73 7d 0d 09 6b 53 74 | 61 67 67 65 72 41 6d 6f |ts}..kSt|aggerAmo|
|00000b70| 75 6e 74 09 09 3d 20 33 | 30 3b 0d 09 6b 50 49 43 |unt..= 3|0;..kPIC|
|00000b80| 54 48 65 61 64 65 72 53 | 69 7a 65 20 09 09 3d 20 |THeaderS|ize ..= |
|00000b90| 35 31 32 3b 09 09 7b 20 | 35 31 32 20 62 79 74 65 |512;..{ |512 byte|
|00000ba0| 73 20 6f 66 66 20 74 68 | 65 20 66 69 6c 65 20 61 |s off th|e file a|
|00000bb0| 72 65 20 75 73 65 64 20 | 66 6f 72 20 6f 75 72 20 |re used |for our |
|00000bc0| 69 6e 66 6f 20 61 6e 64 | 20 70 72 69 6e 74 20 69 |info and| print i|
|00000bd0| 6e 66 6f 2e 20 7d 0d 09 | 6b 53 65 6c 50 61 74 74 |nfo. }..|kSelPatt|
|00000be0| 65 72 6e 09 09 09 09 3d | 20 31 32 38 3b 09 09 7b |ern....=| 128;..{|
|00000bf0| 20 70 61 74 74 65 72 6e | 20 72 65 73 6f 75 72 63 | pattern| resourc|
|00000c00| 65 20 49 64 2e 20 7d 0d | 09 6b 4e 65 77 46 72 61 |e Id. }.|.kNewFra|
|00000c10| 63 74 61 6c 20 09 09 09 | 3d 20 31 30 30 30 3b 09 |ctal ...|= 1000;.|
|00000c20| 7b 20 69 74 65 6d 20 49 | 64 20 66 6f 72 20 4e 65 |{ item I|d for Ne|
|00000c30| 77 20 46 72 61 63 74 61 | 6c 20 6d 65 6e 75 20 6f |w Fracta|l menu o|
|00000c40| 70 74 69 6f 6e 2e 20 7d | 0d 09 6b 43 6c 75 74 20 |ption. }|..kClut |
|00000c50| 09 09 09 09 09 09 3d 20 | 35 30 31 3b 09 09 7b 20 |......= |501;..{ |
|00000c60| 52 65 73 20 49 64 20 66 | 6f 72 20 74 68 65 20 63 |Res Id f|or the c|
|00000c70| 6c 75 74 20 72 65 73 6f | 75 72 63 65 20 74 68 61 |lut reso|urce tha|
|00000c80| 74 20 77 65 20 75 73 65 | 20 66 6f 72 20 6f 66 66 |t we use| for off|
|00000c90| 73 63 72 65 65 6e 2e 20 | 7d 0d 09 6b 4e 75 6d 43 |screen. |}..kNumC|
|00000ca0| 6f 6c 6f 72 73 09 09 09 | 09 3d 20 31 39 35 3b 09 |olors...|.= 195;.|
|00000cb0| 09 7b 20 6e 75 6d 62 65 | 72 20 6f 66 20 63 6f 6c |.{ numbe|r of col|
|00000cc0| 6f 72 73 20 77 65 20 61 | 6e 69 6d 61 74 65 2c 20 |ors we a|nimate, |
|00000cd0| 61 6e 64 20 75 73 65 20 | 69 6e 20 63 61 6c 63 75 |and use |in calcu|
|00000ce0| 6c 61 74 69 6f 6e 2e 20 | 7d 0d 09 6b 57 72 6f 6e |lation. |}..kWron|
|00000cf0| 67 4d 61 63 68 69 6e 65 | 09 09 09 3d 20 31 30 30 |gMachine|...= 100|
|00000d00| 30 3b 09 7b 20 65 72 72 | 6f 72 20 63 6f 64 65 20 |0;.{ err|or code |
|00000d10| 69 66 20 77 65 20 63 61 | 6e 6e 6f 74 20 72 75 6e |if we ca|nnot run|
|00000d20| 2c 20 66 72 6f 6d 20 46 | 6f 72 63 65 45 6e 76 69 |, from F|orceEnvi|
|00000d30| 72 6f 6e 73 2e 20 7d 0d | 09 0d 09 65 6e 76 44 6f |rons. }.|...envDo|
|00000d40| 6e 74 43 61 72 65 20 09 | 09 09 3d 20 30 3b 09 09 |ntCare .|..= 0;..|
|00000d50| 09 7b 20 64 6f 6e 27 74 | 20 63 61 72 65 20 69 73 |.{ don't| care is|
|00000d60| 20 61 6c 77 61 79 73 20 | 30 2c 20 66 6f 72 20 46 | always |0, for F|
|00000d70| 6f 72 63 65 45 6e 76 69 | 72 6f 6e 73 2e 20 7d 0d |orceEnvi|rons. }.|
|00000d80| 0d 54 59 50 45 0d 09 7b | 20 54 68 65 20 68 65 61 |.TYPE..{| The hea|
|00000d90| 64 65 72 20 72 65 63 6f | 72 64 20 66 6f 72 20 65 |der reco|rd for e|
|00000da0| 61 63 68 20 6f 66 20 74 | 68 65 20 66 69 6c 65 73 |ach of t|he files|
|00000db0| 20 73 61 76 65 64 20 62 | 79 20 46 72 61 63 41 70 | saved b|y FracAp|
|00000dc0| 70 2e 20 20 54 68 69 73 | 20 68 65 61 64 65 72 20 |p. This| header |
|00000dd0| 69 6e 63 6c 75 64 65 73 | 20 74 68 65 0d 09 09 70 |includes| the...p|
|00000de0| 65 72 74 69 6e 65 6e 74 | 20 64 61 74 61 20 74 68 |ertinent| data th|
|00000df0| 61 74 20 61 6c 6c 6f 77 | 73 20 61 20 66 72 61 63 |at allow|s a frac|
|00000e00| 74 61 6c 20 74 6f 20 62 | 65 20 72 65 73 74 61 72 |tal to b|e restar|
|00000e10| 74 65 64 2c 20 61 73 20 | 77 65 6c 6c 20 61 73 20 |ted, as |well as |
|00000e20| 64 69 73 70 6c 61 79 65 | 64 0d 09 09 6f 6e 20 74 |displaye|d...on t|
|00000e30| 68 65 20 73 63 72 65 65 | 6e 2e 20 20 54 68 65 20 |he scree|n. The |
|00000e40| 70 72 69 6e 74 20 72 65 | 63 6f 72 64 20 66 6f 6c |print re|cord fol|
|00000e50| 6c 6f 77 73 20 74 68 69 | 73 20 69 6e 66 6f 20 69 |lows thi|s info i|
|00000e60| 6e 20 74 68 65 20 66 69 | 72 73 74 20 35 31 32 20 |n the fi|rst 512 |
|00000e70| 62 79 74 65 73 20 6f 66 | 20 61 20 66 69 6c 65 2c |bytes of| a file,|
|00000e80| 0d 09 09 62 75 74 20 74 | 68 61 74 20 69 6e 66 6f |...but t|hat info|
|00000e90| 20 69 73 20 72 65 61 64 | 20 62 79 20 74 68 65 20 | is read| by the |
|00000ea0| 73 74 61 6e 64 61 72 64 | 20 44 6f 52 65 61 64 2f |standard| DoRead/|
|00000eb0| 44 6f 57 72 69 74 65 20 | 6d 65 74 68 6f 64 73 2e |DoWrite |methods.|
|00000ec0| 20 20 53 6f 6d 65 20 6f | 66 20 74 68 65 20 66 69 | Some o|f the fi|
|00000ed0| 65 6c 64 73 0d 09 09 61 | 72 65 20 4c 6f 6e 67 49 |elds...a|re LongI|
|00000ee0| 6e 74 73 20 74 6f 20 61 | 76 6f 69 64 20 72 6f 75 |nts to a|void rou|
|00000ef0| 6e 64 69 6e 67 20 65 72 | 72 6f 72 73 20 64 75 72 |nding er|rors dur|
|00000f00| 69 6e 67 20 63 61 6c 63 | 75 6c 61 74 69 6f 6e 73 |ing calc|ulations|
|00000f10| 2e 20 7d 0d 09 46 72 61 | 63 52 65 63 6f 72 64 20 |. }..Fra|cRecord |
|00000f20| 20 3d 20 52 45 43 4f 52 | 44 0d 09 09 66 54 79 70 | = RECOR|D...fTyp|
|00000f30| 65 3a 09 09 4f 53 54 79 | 70 65 3b 09 09 09 7b 20 |e:..OSTy|pe;...{ |
|00000f40| 34 20 20 73 65 74 20 61 | 73 20 27 41 72 66 20 27 |4 set a|s 'Arf '|
|00000f50| 20 66 6f 72 20 74 68 65 | 73 65 20 64 6f 63 75 6d | for the|se docum|
|00000f60| 65 6e 74 73 2e 20 7d 0d | 09 09 68 64 72 49 64 3a |ents. }.|..hdrId:|
|00000f70| 09 09 49 6e 74 65 67 65 | 72 3b 09 09 09 7b 20 32 |..Intege|r;...{ 2|
|00000f80| 20 20 61 73 20 27 46 41 | 27 20 46 72 61 63 41 70 | as 'FA|' FracAp|
|00000f90| 70 20 68 65 61 64 65 72 | 20 49 44 2e 20 7d 0d 09 |p header| ID. }..|
|00000fa0| 09 76 65 72 73 69 6f 6e | 3a 09 49 6e 74 65 67 65 |.version|:.Intege|
|00000fb0| 72 3b 20 20 09 09 09 7b | 20 32 20 20 66 69 6c 65 |r; ...{| 2 file|
|00000fc0| 20 76 65 72 73 69 6f 6e | 20 64 65 63 69 64 65 73 | version| decides|
|00000fd0| 20 74 79 70 65 20 6f 66 | 20 66 69 6c 65 2e 20 7d | type of| file. }|
|00000fe0| 0d 09 09 64 6f 6e 65 3a | 09 09 42 6f 6f 6c 65 61 |...done:|..Boolea|
|00000ff0| 6e 3b 09 09 09 7b 20 32 | 20 20 69 66 20 74 68 65 |n;...{ 2| if the|
|00001000| 20 66 72 61 63 74 61 6c | 20 69 73 20 66 69 6e 69 | fractal| is fini|
|00001010| 73 68 65 64 20 6f 72 20 | 6e 6f 74 2e 20 7d 0d 09 |shed or |not. }..|
|00001020| 09 72 65 61 6c 4d 69 6e | 3a 09 45 78 74 65 6e 64 |.realMin|:.Extend|
|00001030| 65 64 3b 09 09 09 7b 20 | 31 32 20 20 6d 69 6e 69 |ed;...{ |12 mini|
|00001040| 6d 75 6d 20 76 61 6c 75 | 65 20 6f 66 20 66 72 61 |mum valu|e of fra|
|00001050| 63 74 61 6c 20 6f 6e 20 | 72 65 61 6c 2f 70 20 61 |ctal on |real/p a|
|00001060| 78 69 73 2e 20 7d 0d 09 | 09 72 65 61 6c 4d 61 78 |xis. }..|.realMax|
|00001070| 3a 09 45 78 74 65 6e 64 | 65 64 3b 09 09 09 7b 20 |:.Extend|ed;...{ |
|00001080| 31 32 20 20 6d 61 78 69 | 6d 75 6d 20 76 61 6c 75 |12 maxi|mum valu|
|00001090| 65 20 6f 66 20 66 72 61 | 63 74 61 6c 20 6f 6e 20 |e of fra|ctal on |
|000010a0| 72 65 61 6c 2f 70 20 61 | 78 69 73 2e 20 7d 0d 09 |real/p a|xis. }..|
|000010b0| 09 69 6d 61 67 4d 69 6e | 3a 09 45 78 74 65 6e 64 |.imagMin|:.Extend|
|000010c0| 65 64 3b 09 09 09 7b 20 | 31 32 20 20 6d 69 6e 69 |ed;...{ |12 mini|
|000010d0| 6d 75 6d 20 6f 6e 20 69 | 6d 61 67 69 6e 61 72 79 |mum on i|maginary|
|000010e0| 2f 71 20 61 78 69 73 2e | 20 7d 0d 09 09 69 6d 61 |/q axis.| }...ima|
|000010f0| 67 4d 61 78 3a 09 45 78 | 74 65 6e 64 65 64 3b 09 |gMax:.Ex|tended;.|
|00001100| 09 09 7b 20 31 32 20 20 | 6d 61 78 69 6d 75 6d 20 |..{ 12 |maximum |
|00001110| 6f 6e 20 69 6d 61 67 69 | 6e 61 72 79 2f 71 20 61 |on imagi|nary/q a|
|00001120| 78 69 73 2e 20 7d 0d 09 | 09 64 65 6c 74 61 50 3a |xis. }..|.deltaP:|
|00001130| 09 09 45 78 74 65 6e 64 | 65 64 3b 09 09 09 7b 20 |..Extend|ed;...{ |
|00001140| 31 32 20 20 68 6f 72 69 | 7a 6f 6e 74 61 6c 20 73 |12 hori|zontal s|
|00001150| 74 65 70 20 73 69 7a 65 | 20 69 6e 20 66 72 61 63 |tep size| in frac|
|00001160| 74 61 6c 20 73 70 61 63 | 65 2e 20 7d 0d 09 09 64 |tal spac|e. }...d|
|00001170| 65 6c 74 61 51 3a 09 09 | 45 78 74 65 6e 64 65 64 |eltaQ:..|Extended|
|00001180| 3b 09 09 09 7b 20 31 32 | 20 20 76 65 72 74 69 63 |;...{ 12| vertic|
|00001190| 61 6c 20 73 74 65 70 20 | 73 69 7a 65 20 69 6e 20 |al step |size in |
|000011a0| 66 72 61 63 74 61 6c 20 | 73 70 61 63 65 2e 20 7d |fractal |space. }|
|000011b0| 0d 09 09 70 6c 6f 74 57 | 69 64 74 68 3a 20 4c 6f |...plotW|idth: Lo|
|000011c0| 6e 67 49 6e 74 3b 09 09 | 09 7b 20 34 20 20 77 69 |ngInt;..|.{ 4 wi|
|000011d0| 64 74 68 20 6f 66 20 66 | 72 61 63 74 61 6c 20 61 |dth of f|ractal a|
|000011e0| 72 65 61 20 69 6e 20 70 | 69 78 65 6c 73 2e 20 7d |rea in p|ixels. }|
|000011f0| 0d 09 09 70 6c 6f 74 48 | 65 69 67 68 74 3a 20 4c |...plotH|eight: L|
|00001200| 6f 6e 67 49 6e 74 3b 09 | 09 09 7b 20 34 20 20 68 |ongInt;.|..{ 4 h|
|00001210| 65 69 67 68 74 20 6f 66 | 20 66 72 61 63 74 61 6c |eight of| fractal|
|00001220| 20 61 72 65 61 20 69 6e | 20 70 69 78 65 6c 73 2e | area in| pixels.|
|00001230| 20 7d 0d 09 09 63 61 6c | 63 52 65 63 74 3a 09 52 | }...cal|cRect:.R|
|00001240| 65 63 74 3b 09 09 09 09 | 7b 20 38 20 20 72 65 63 |ect;....|{ 8 rec|
|00001250| 74 61 6e 67 6c 65 20 73 | 75 72 72 6f 75 6e 64 69 |tangle s|urroundi|
|00001260| 6e 67 20 74 68 65 20 77 | 69 6e 64 6f 77 20 69 74 |ng the w|indow it|
|00001270| 20 77 61 73 20 62 75 69 | 6c 74 20 66 6f 72 2e 20 | was bui|lt for. |
|00001280| 7d 0d 09 09 63 75 72 52 | 6f 77 3a 09 4c 6f 6e 67 |}...curR|ow:.Long|
|00001290| 49 6e 74 3b 09 09 09 7b | 20 34 20 20 63 6f 75 6e |Int;...{| 4 coun|
|000012a0| 74 65 72 20 66 6f 72 20 | 63 75 72 72 65 6e 74 20 |ter for |current |
|000012b0| 70 69 78 65 6c 20 70 6f | 73 69 74 69 6f 6e 20 74 |pixel po|sition t|
|000012c0| 6f 20 62 65 20 64 6f 6e | 65 2e 20 20 56 65 72 74 |o be don|e. Vert|
|000012d0| 69 63 61 6c 2e 20 7d 0d | 09 09 63 75 72 43 6f 6c |ical. }.|..curCol|
|000012e0| 3a 09 09 4c 6f 6e 67 49 | 6e 74 3b 09 09 09 7b 20 |:..LongI|nt;...{ |
|000012f0| 34 20 20 63 6f 75 6e 74 | 65 72 20 66 6f 72 20 63 |4 count|er for c|
|00001300| 75 72 72 65 6e 74 20 70 | 69 78 65 6c 2e 20 20 48 |urrent p|ixel. H|
|00001310| 6f 72 69 7a 6f 6e 74 61 | 6c 2e 20 7d 0d 09 09 65 |orizonta|l. }...e|
|00001320| 6c 61 70 73 65 64 54 69 | 6d 65 3a 20 4c 6f 6e 67 |lapsedTi|me: Long|
|00001330| 49 6e 74 3b 09 09 7b 20 | 34 20 20 61 6d 6f 75 6e |Int;..{ |4 amoun|
|00001340| 74 20 6f 66 20 74 69 6d | 65 20 74 6f 20 64 6f 20 |t of tim|e to do |
|00001350| 74 68 69 73 20 66 72 61 | 63 74 61 6c 20 69 6e 20 |this fra|ctal in |
|00001360| 73 65 63 6f 6e 64 73 2e | 20 7d 0d 09 45 4e 44 3b |seconds.| }..END;|
|00001370| 20 20 7b 20 46 72 61 63 | 52 65 63 6f 72 64 2e 20 | { Frac|Record. |
|00001380| 7d 0d 0d 0d 0d 7b 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |}....{--|--------|
|00001390| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000013a0| 2d 2d 2d 2d 2d 20 20 41 | 70 70 6c 69 63 61 74 69 |----- A|pplicati|
|000013b0| 6f 6e 20 20 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |on ----|--------|
|000013c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000013d0| 2d 2d 2d 7d 0d 0d 09 54 | 46 72 61 63 41 70 70 41 |---}...T|FracAppA|
|000013e0| 70 70 6c 69 63 61 74 69 | 6f 6e 20 3d 20 4f 42 4a |pplicati|on = OBJ|
|000013f0| 45 43 54 28 54 41 70 70 | 6c 69 63 61 74 69 6f 6e |ECT(TApp|lication|
|00001400| 29 0d 0d 09 09 0d 09 09 | 50 52 4f 43 45 44 55 52 |).......|PROCEDUR|
|00001410| 45 20 54 46 72 61 63 41 | 70 70 41 70 70 6c 69 63 |E TFracA|ppApplic|
|00001420| 61 74 69 6f 6e 2e 49 46 | 72 61 63 41 70 70 41 70 |ation.IF|racAppAp|
|00001430| 70 6c 69 63 61 74 69 6f | 6e 20 28 69 74 73 4d 61 |plicatio|n (itsMa|
|00001440| 69 6e 46 69 6c 65 54 79 | 70 65 3a 20 4f 53 54 79 |inFileTy|pe: OSTy|
|00001450| 70 65 29 3b 0d 09 09 09 | 7b 49 6e 69 74 69 61 6c |pe);....|{Initial|
|00001460| 69 7a 65 73 20 74 68 65 | 20 61 70 70 6c 69 63 61 |izes the| applica|
|00001470| 74 69 6f 6e 20 61 6e 64 | 20 67 6c 6f 62 61 6c 73 |tion and| globals|
|00001480| 2e 7d 0d 0d 09 09 46 55 | 4e 43 54 49 4f 4e 20 20 |.}....FU|NCTION |
|00001490| 54 46 72 61 63 41 70 70 | 41 70 70 6c 69 63 61 74 |TFracApp|Applicat|
|000014a0| 69 6f 6e 2e 44 6f 4d 61 | 6b 65 44 6f 63 75 6d 65 |ion.DoMa|keDocume|
|000014b0| 6e 74 28 0d 09 09 09 09 | 69 74 73 43 6d 64 4e 75 |nt(.....|itsCmdNu|
|000014c0| 6d 62 65 72 3a 20 43 6d | 64 4e 75 6d 62 65 72 29 |mber: Cm|dNumber)|
|000014d0| 3a 20 54 44 6f 63 75 6d | 65 6e 74 3b 20 4f 56 45 |: TDocum|ent; OVE|
|000014e0| 52 52 49 44 45 3b 0d 09 | 09 09 7b 4c 61 75 6e 63 |RRIDE;..|..{Launc|
|000014f0| 68 65 73 20 61 20 54 46 | 72 61 63 41 70 70 44 6f |hes a TF|racAppDo|
|00001500| 63 75 6d 65 6e 74 3b 20 | 63 61 6c 6c 65 64 20 77 |cument; |called w|
|00001510| 68 65 6e 20 61 70 70 6c | 69 63 61 74 69 6f 6e 27 |hen appl|ication'|
|00001520| 73 20 69 63 6f 6e 20 69 | 73 0d 09 09 09 09 6f 70 |s icon i|s.....op|
|00001530| 65 6e 65 64 2c 20 61 6e | 64 20 77 68 65 6e 20 4e |ened, an|d when N|
|00001540| 65 77 20 6f 72 20 4f 70 | 65 6e 20 69 73 20 72 65 |ew or Op|en is re|
|00001550| 71 75 65 73 74 65 64 20 | 62 79 20 74 68 65 20 75 |quested |by the u|
|00001560| 73 65 72 2e 0d 09 09 09 | 09 45 76 65 72 79 20 61 |ser.....|.Every a|
|00001570| 70 70 6c 69 63 61 74 69 | 6f 6e 20 77 68 69 63 68 |pplicati|on which|
|00001580| 20 75 73 65 73 20 44 6f | 63 75 6d 65 6e 74 73 20 | uses Do|cuments |
|00001590| 4d 55 53 54 20 6f 76 65 | 72 72 69 64 65 20 74 68 |MUST ove|rride th|
|000015a0| 69 73 0d 09 09 09 09 6d | 65 74 68 6f 64 7d 0d 09 |is.....m|ethod}..|
|000015b0| 09 09 09 0d 09 09 50 52 | 4f 43 45 44 55 52 45 20 |......PR|OCEDURE |
|000015c0| 20 54 46 72 61 63 41 70 | 70 41 70 70 6c 69 63 61 | TFracAp|pApplica|
|000015d0| 74 69 6f 6e 2e 44 6f 49 | 64 6c 65 20 28 50 68 61 |tion.DoI|dle (Pha|
|000015e0| 73 65 3a 20 49 64 6c 65 | 50 68 61 73 65 29 3b 20 |se: Idle|Phase); |
|000015f0| 4f 56 45 52 52 49 44 45 | 3b 0d 09 09 09 7b 20 50 |OVERRIDE|;....{ P|
|00001600| 65 72 66 6f 72 6d 73 20 | 49 64 6c 65 20 74 69 6d |erforms |Idle tim|
|00001610| 65 20 70 72 6f 63 65 73 | 73 69 6e 67 20 66 6f 72 |e proces|sing for|
|00001620| 20 74 68 65 20 61 70 70 | 6c 69 63 61 74 69 6f 6e | the app|lication|
|00001630| 2e 20 20 54 68 69 73 20 | 77 69 6c 6c 20 64 6f 20 |. This |will do |
|00001640| 74 68 65 0d 09 09 09 09 | 66 72 61 63 74 61 6c 20 |the.....|fractal |
|00001650| 63 61 6c 63 75 6c 61 74 | 69 6f 6e 20 64 75 72 69 |calculat|ion duri|
|00001660| 6e 67 20 74 68 65 20 69 | 64 6c 65 20 74 69 6d 65 |ng the i|dle time|
|00001670| 73 2e 20 20 49 74 20 77 | 69 6c 6c 20 61 6c 6c 6f |s. It w|ill allo|
|00001680| 77 20 65 61 63 68 20 6f | 70 65 6e 0d 09 09 09 09 |w each o|pen.....|
|00001690| 76 69 65 77 20 61 20 63 | 68 61 6e 63 65 20 74 6f |view a c|hance to|
|000016a0| 20 63 61 6c 63 75 6c 61 | 74 65 2e 20 7d 0d 0d 09 | calcula|te. }...|
|000016b0| 45 4e 44 3b 09 7b 20 54 | 46 72 61 63 41 70 70 41 |END;.{ T|FracAppA|
|000016c0| 70 70 6c 69 63 61 74 69 | 6f 6e 20 7d 0d 0d 0d 7b |pplicati|on }...{|
|000016d0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000016e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 20 |--------|------- |
|000016f0| 20 44 6f 63 75 6d 65 6e | 74 20 20 2d 2d 2d 2d 2d | Documen|t -----|
|00001700| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001710| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 7d 0d 0d 09 54 46 |--------|--}...TF|
|00001720| 72 61 63 41 70 70 44 6f | 63 75 6d 65 6e 74 20 3d |racAppDo|cument =|
|00001730| 20 4f 42 4a 45 43 54 28 | 54 44 6f 63 75 6d 65 6e | OBJECT(|TDocumen|
|00001740| 74 29 0d 0d 09 09 7b 20 | 4e 6f 77 20 74 68 65 20 |t)....{ |Now the |
|00001750| 66 69 65 6c 64 73 20 74 | 68 61 74 20 61 72 65 20 |fields t|hat are |
|00001760| 73 70 65 63 69 61 6c 20 | 74 6f 20 74 68 65 20 66 |special |to the f|
|00001770| 72 61 63 74 61 6c 20 69 | 74 73 65 6c 66 2e 20 20 |ractal i|tself. |
|00001780| 54 68 65 73 65 20 61 72 | 65 20 74 68 65 0d 09 09 |These ar|e the...|
|00001790| 09 76 61 72 69 61 62 6c | 65 73 20 74 68 61 74 20 |.variabl|es that |
|000017a0| 6d 61 6b 65 20 75 70 20 | 74 68 65 20 64 69 73 70 |make up |the disp|
|000017b0| 6c 61 79 20 73 74 61 74 | 65 20 61 6e 64 20 74 68 |lay stat|e and th|
|000017c0| 65 20 64 65 66 69 6e 69 | 74 69 6f 6e 20 6f 66 20 |e defini|tion of |
|000017d0| 74 68 65 0d 09 09 09 66 | 72 61 63 74 61 6c 20 69 |the....f|ractal i|
|000017e0| 74 73 65 6c 66 2e 20 20 | 54 68 65 79 20 61 72 65 |tself. |They are|
|000017f0| 20 61 73 73 6f 63 69 61 | 74 65 64 20 77 69 74 68 | associa|ted with|
|00001800| 20 74 68 65 20 64 6f 63 | 75 6d 65 6e 74 20 73 6f | the doc|ument so|
|00001810| 20 74 68 65 79 20 63 61 | 6e 0d 09 09 09 62 65 20 | they ca|n....be |
|00001820| 73 74 6f 72 65 64 20 69 | 6e 20 61 20 66 69 6c 65 |stored i|n a file|
|00001830| 2c 20 61 6e 64 20 72 65 | 61 64 20 62 61 63 6b 20 |, and re|ad back |
|00001840| 69 6e 2e 20 20 45 73 73 | 65 6e 74 69 61 6c 6c 79 |in. Ess|entially|
|00001850| 20 61 20 67 6c 6f 62 61 | 6c 20 73 74 61 74 65 20 | a globa|l state |
|00001860| 66 6f 72 0d 09 09 09 65 | 61 63 68 20 66 72 61 63 |for....e|ach frac|
|00001870| 74 61 6c 20 64 6f 63 75 | 6d 65 6e 74 2e 20 7d 0d |tal docu|ment. }.|
|00001880| 0d 09 09 66 46 72 61 63 | 48 65 61 64 65 72 3a 09 |...fFrac|Header:.|
|00001890| 09 09 09 09 09 09 46 72 | 61 63 52 65 63 6f 72 64 |......Fr|acRecord|
|000018a0| 3b 09 09 09 7b 20 67 6c | 6f 62 61 6c 20 73 74 61 |;...{ gl|obal sta|
|000018b0| 74 65 20 6f 6e 20 66 72 | 61 63 74 61 6c 2e 20 7d |te on fr|actal. }|
|000018c0| 0d 09 09 66 53 74 61 72 | 74 54 69 6d 65 3a 09 09 |...fStar|tTime:..|
|000018d0| 09 09 09 09 09 4c 6f 6e | 67 49 6e 74 3b 09 09 09 |.....Lon|gInt;...|
|000018e0| 09 7b 20 73 74 61 72 74 | 69 6e 67 20 74 69 6d 65 |.{ start|ing time|
|000018f0| 20 6f 66 20 63 61 6c 63 | 75 6c 61 74 69 6f 6e 73 | of calc|ulations|
|00001900| 2e 20 7d 0d 09 09 66 42 | 69 67 42 75 66 66 3a 09 |. }...fB|igBuff:.|
|00001910| 09 09 09 09 09 09 09 50 | 74 72 3b 09 09 09 09 09 |.......P|tr;.....|
|00001920| 09 7b 20 70 6f 69 6e 74 | 65 72 20 74 6f 20 6f 66 |.{ point|er to of|
|00001930| 66 73 63 72 65 65 6e 20 | 64 61 74 61 20 7d 0d 09 |fscreen |data }..|
|00001940| 09 66 44 72 61 77 69 6e | 67 44 65 76 69 63 65 3a |.fDrawin|gDevice:|
|00001950| 20 09 09 09 09 09 47 44 | 48 61 6e 64 6c 65 3b 09 | .....GD|Handle;.|
|00001960| 09 09 09 7b 20 68 61 6e | 64 6c 65 20 74 6f 20 6f |...{ han|dle to o|
|00001970| 75 72 20 6f 66 66 73 63 | 72 65 65 6e 20 67 44 65 |ur offsc|reen gDe|
|00001980| 76 69 63 65 2e 20 7d 0d | 09 09 66 44 72 61 77 69 |vice. }.|..fDrawi|
|00001990| 6e 67 50 6f 72 74 3a 09 | 09 09 09 09 09 43 47 72 |ngPort:.|.....CGr|
|000019a0| 61 66 50 74 72 3b 09 09 | 09 09 7b 20 70 6f 69 6e |afPtr;..|..{ poin|
|000019b0| 74 65 72 20 74 6f 20 64 | 72 61 77 69 6e 67 20 62 |ter to d|rawing b|
|000019c0| 75 66 66 65 72 2e 20 7d | 0d 0d 09 09 66 46 72 61 |uffer. }|....fFra|
|000019d0| 63 41 70 70 56 69 65 77 | 3a 09 09 09 09 09 09 54 |cAppView|:......T|
|000019e0| 46 72 61 63 41 70 70 56 | 69 65 77 3b 0d 09 09 09 |FracAppV|iew;....|
|000019f0| 7b 45 76 65 72 79 20 64 | 6f 63 75 6d 65 6e 74 20 |{Every d|ocument |
|00001a00| 6f 62 6a 65 63 74 20 6d | 75 73 74 20 70 72 65 73 |object m|ust pres|
|00001a10| 65 72 76 65 20 72 65 66 | 65 72 65 6e 63 65 73 20 |erve ref|erences |
|00001a20| 74 6f 20 61 6c 6c 20 74 | 68 65 20 76 69 65 77 73 |to all t|he views|
|00001a30| 20 69 74 0d 09 09 09 09 | 63 72 65 61 74 65 73 20 | it.....|creates |
|00001a40| 61 73 20 66 69 65 6c 64 | 73 20 6f 66 20 74 68 65 |as field|s of the|
|00001a50| 20 64 6f 63 75 6d 65 6e | 74 20 6f 62 6a 65 63 74 | documen|t object|
|00001a60| 2c 20 73 69 6e 63 65 20 | 44 6f 4d 61 6b 65 57 69 |, since |DoMakeWi|
|00001a70| 6e 64 6f 77 73 0d 09 09 | 09 09 77 69 6c 6c 20 6e |ndows...|..will n|
|00001a80| 65 65 64 20 74 6f 20 6b | 6e 6f 77 20 77 68 69 63 |eed to k|now whic|
|00001a90| 68 20 76 69 65 77 73 20 | 74 6f 20 69 6e 73 74 61 |h views |to insta|
|00001aa0| 6c 6c 20 69 6e 20 74 68 | 65 20 77 69 6e 64 6f 77 |ll in th|e window|
|00001ab0| 73 20 69 74 0d 09 09 09 | 09 63 72 65 61 74 65 73 |s it....|.creates|
|00001ac0| 7d 0d 0d 0d 09 09 50 52 | 4f 43 45 44 55 52 45 20 |}.....PR|OCEDURE |
|00001ad0| 20 54 46 72 61 63 41 70 | 70 44 6f 63 75 6d 65 6e | TFracAp|pDocumen|
|00001ae0| 74 2e 42 75 69 6c 64 4f | 66 66 57 6f 72 6c 64 20 |t.BuildO|ffWorld |
|00001af0| 28 73 69 7a 65 4f 66 44 | 6f 63 3a 20 52 65 63 74 |(sizeOfD|oc: Rect|
|00001b00| 29 3b 0d 09 09 09 7b 20 | 41 6c 6c 6f 63 61 74 65 |);....{ |Allocate|
|00001b10| 73 20 6f 66 66 73 63 72 | 65 65 6e 20 67 44 65 76 |s offscr|een gDev|
|00001b20| 69 63 65 20 61 6e 64 20 | 70 6f 72 74 20 66 6f 72 |ice and |port for|
|00001b30| 20 64 6f 63 75 6d 65 6e | 74 20 64 61 74 61 2e 20 | documen|t data. |
|00001b40| 7d 0d 09 09 09 0d 09 09 | 50 52 4f 43 45 44 55 52 |}.......|PROCEDUR|
|00001b50| 45 20 20 54 46 72 61 63 | 41 70 70 44 6f 63 75 6d |E TFrac|AppDocum|
|00001b60| 65 6e 74 2e 53 65 74 55 | 70 43 6f 6e 73 74 61 6e |ent.SetU|pConstan|
|00001b70| 74 73 3b 0d 09 09 09 7b | 20 53 65 74 73 20 75 70 |ts;....{| Sets up|
|00001b80| 20 73 74 61 72 74 69 6e | 67 20 63 6f 6e 73 74 61 | startin|g consta|
|00001b90| 6e 74 73 20 66 6f 72 20 | 63 61 6c 63 75 6c 61 74 |nts for |calculat|
|00001ba0| 69 6f 6e 2e 20 7d 0d 09 | 09 09 0d 09 09 50 52 4f |ion. }..|.....PRO|
|00001bb0| 43 45 44 55 52 45 20 20 | 09 54 46 72 61 63 41 70 |CEDURE |.TFracAp|
|00001bc0| 70 44 6f 63 75 6d 65 6e | 74 2e 49 46 72 61 63 41 |pDocumen|t.IFracA|
|00001bd0| 70 70 44 6f 63 75 6d 65 | 6e 74 3b 0d 09 09 09 7b |ppDocume|nt;....{|
|00001be0| 49 6e 69 74 20 72 6f 75 | 74 69 6e 65 20 66 6f 72 |Init rou|tine for|
|00001bf0| 20 74 68 65 20 64 6f 63 | 75 6d 65 6e 74 2c 20 73 | the doc|ument, s|
|00001c00| 65 74 73 20 75 70 20 74 | 68 65 20 6f 62 6a 65 63 |ets up t|he objec|
|00001c10| 74 2c 20 74 68 65 6e 20 | 74 68 65 20 66 72 61 63 |t, then |the frac|
|00001c20| 74 61 6c 20 64 65 66 61 | 75 6c 74 20 73 74 61 74 |tal defa|ult stat|
|00001c30| 65 2e 20 7d 0d 0d 09 09 | 50 52 4f 43 45 44 55 52 |e. }....|PROCEDUR|
|00001c40| 45 20 54 46 72 61 63 41 | 70 70 44 6f 63 75 6d 65 |E TFracA|ppDocume|
|00001c50| 6e 74 2e 44 6f 49 6e 69 | 74 69 61 6c 53 74 61 74 |nt.DoIni|tialStat|
|00001c60| 65 3b 20 20 4f 56 45 52 | 52 49 44 45 3b 0d 09 09 |e; OVER|RIDE;...|
|00001c70| 09 7b 20 44 6f 65 73 20 | 74 68 65 20 77 6f 72 6b |.{ Does |the work|
|00001c80| 20 66 6f 72 20 61 20 4e | 65 77 20 6f 70 65 72 61 | for a N|ew opera|
|00001c90| 74 69 6f 6e 2c 20 77 68 | 65 72 65 20 77 65 20 73 |tion, wh|ere we s|
|00001ca0| 74 61 72 74 20 77 69 74 | 68 20 61 20 6e 65 77 20 |tart wit|h a new |
|00001cb0| 66 72 61 63 74 61 6c 0d | 09 09 09 09 74 68 61 74 |fractal.|....that|
|00001cc0| 20 64 6f 65 73 6e 27 74 | 20 68 61 76 65 20 61 6e | doesn't| have an|
|00001cd0| 79 20 73 74 6f 72 65 64 | 20 64 61 74 61 2e 20 20 |y stored| data. |
|00001ce0| 54 68 69 73 20 69 73 20 | 73 65 74 20 75 70 20 74 |This is |set up t|
|00001cf0| 68 65 20 76 69 65 77 20 | 77 69 74 68 20 6e 6f 0d |he view |with no.|
|00001d00| 09 09 09 09 64 61 74 61 | 20 61 6e 64 20 73 65 74 |....data| and set|
|00001d10| 20 75 70 20 74 68 65 20 | 66 72 61 63 74 61 6c 20 | up the |fractal |
|00001d20| 63 6f 6f 72 64 69 6e 61 | 74 65 73 20 74 6f 20 74 |coordina|tes to t|
|00001d30| 68 65 20 64 65 66 61 75 | 6c 74 2e 20 7d 0d 0d 09 |he defau|lt. }...|
|00001d40| 09 50 52 4f 43 45 44 55 | 52 45 20 54 46 72 61 63 |.PROCEDU|RE TFrac|
|00001d50| 41 70 70 44 6f 63 75 6d | 65 6e 74 2e 44 6f 4d 61 |AppDocum|ent.DoMa|
|00001d60| 6b 65 57 69 6e 64 6f 77 | 73 3b 20 4f 56 45 52 52 |keWindow|s; OVERR|
|00001d70| 49 44 45 3b 0d 09 09 09 | 7b 4c 61 75 6e 63 68 65 |IDE;....|{Launche|
|00001d80| 73 20 74 68 65 20 77 69 | 6e 64 6f 77 20 77 68 69 |s the wi|ndow whi|
|00001d90| 63 68 20 77 69 6c 6c 20 | 72 65 70 72 65 73 65 6e |ch will |represen|
|00001da0| 74 20 74 68 65 20 64 6f | 63 75 6d 65 6e 74 20 6f |t the do|cument o|
|00001db0| 6e 20 74 68 65 0d 09 09 | 09 09 73 63 72 65 65 6e |n the...|..screen|
|00001dc0| 2e 20 20 45 76 65 72 79 | 20 64 6f 63 75 6d 65 6e |. Every| documen|
|00001dd0| 74 20 77 68 69 63 68 20 | 68 61 73 20 61 6e 79 20 |t which |has any |
|00001de0| 73 63 72 65 65 6e 20 64 | 69 73 70 6c 61 79 20 4d |screen d|isplay M|
|00001df0| 55 53 54 0d 09 09 09 09 | 6f 76 65 72 72 69 64 65 |UST.....|override|
|00001e00| 20 74 68 69 73 20 6d 65 | 74 68 6f 64 7d 0d 0d 09 | this me|thod}...|
|00001e10| 09 50 52 4f 43 45 44 55 | 52 45 20 54 46 72 61 63 |.PROCEDU|RE TFrac|
|00001e20| 41 70 70 44 6f 63 75 6d | 65 6e 74 2e 44 6f 4d 61 |AppDocum|ent.DoMa|
|00001e30| 6b 65 56 69 65 77 73 28 | 66 6f 72 50 72 69 6e 74 |keViews(|forPrint|
|00001e40| 69 6e 67 3a 20 42 4f 4f | 4c 45 41 4e 29 3b 20 4f |ing: BOO|LEAN); O|
|00001e50| 56 45 52 52 49 44 45 3b | 0d 09 09 09 7b 4c 61 75 |VERRIDE;|....{Lau|
|00001e60| 6e 63 68 65 73 20 74 68 | 65 20 76 69 65 77 20 77 |nches th|e view w|
|00001e70| 68 69 63 68 20 69 73 20 | 73 65 65 6e 20 69 6e 20 |hich is |seen in |
|00001e80| 74 68 65 20 64 6f 63 75 | 6d 65 6e 74 27 73 20 77 |the docu|ment's w|
|00001e90| 69 6e 64 6f 77 2e 20 20 | 45 76 65 72 79 0d 09 09 |indow. |Every...|
|00001ea0| 09 09 64 6f 63 75 6d 65 | 6e 74 20 77 68 69 63 68 |..docume|nt which|
|00001eb0| 20 68 61 73 20 61 6e 79 | 20 73 63 72 65 65 6e 20 | has any| screen |
|00001ec0| 64 69 73 70 6c 61 79 20 | 6f 72 20 77 68 69 63 68 |display |or which|
|00001ed0| 20 63 61 6e 20 62 65 20 | 70 72 69 6e 74 65 64 0d | can be |printed.|
|00001ee0| 09 09 09 09 4d 55 53 54 | 20 6f 76 65 72 72 69 64 |....MUST| overrid|
|00001ef0| 65 20 74 68 69 73 20 6d | 65 74 68 6f 64 7d 0d 0d |e this m|ethod}..|
|00001f00| 09 09 50 52 4f 43 45 44 | 55 52 45 20 54 46 72 61 |..PROCED|URE TFra|
|00001f10| 63 41 70 70 44 6f 63 75 | 6d 65 6e 74 2e 44 6f 4e |cAppDocu|ment.DoN|
|00001f20| 65 65 64 44 69 73 6b 53 | 70 61 63 65 28 56 41 52 |eedDiskS|pace(VAR|
|00001f30| 20 64 61 74 61 46 6f 72 | 6b 42 79 74 65 73 2c 20 | dataFor|kBytes, |
|00001f40| 0d 09 09 09 09 09 09 09 | 09 09 09 09 09 72 73 72 |........|.....rsr|
|00001f50| 63 46 6f 72 6b 42 79 74 | 65 73 3a 20 4c 4f 4e 47 |cForkByt|es: LONG|
|00001f60| 49 4e 54 29 3b 20 20 4f | 56 45 52 52 49 44 45 3b |INT); O|VERRIDE;|
|00001f70| 0d 09 09 09 7b 20 46 69 | 6e 64 73 20 6f 75 74 20 |....{ Fi|nds out |
|00001f80| 74 68 65 20 65 6e 74 69 | 72 65 20 73 69 7a 65 20 |the enti|re size |
|00001f90| 6f 66 20 74 68 65 20 6f | 62 6a 65 63 74 20 74 6f |of the o|bject to|
|00001fa0| 20 62 65 20 73 61 76 65 | 64 20 69 6e 74 6f 20 74 | be save|d into t|
|00001fb0| 68 65 20 66 69 6c 65 20 | 73 6f 20 74 68 61 74 20 |he file |so that |
|00001fc0| 74 68 65 0d 09 09 09 09 | 63 6f 72 72 65 63 74 20 |the.....|correct |
|00001fd0| 61 6d 6f 75 6e 74 20 6f | 66 20 64 69 73 6b 20 73 |amount o|f disk s|
|00001fe0| 70 61 63 65 20 63 61 6e | 20 62 65 20 75 73 65 64 |pace can| be used|
|00001ff0| 2e 20 20 7d 0d 0d 09 09 | 50 52 4f 43 45 44 55 52 |. }....|PROCEDUR|
|00002000| 45 20 54 46 72 61 63 41 | 70 70 44 6f 63 75 6d 65 |E TFracA|ppDocume|
|00002010| 6e 74 2e 44 6f 52 65 61 | 64 28 61 52 65 66 4e 75 |nt.DoRea|d(aRefNu|
|00002020| 6d 3a 20 49 4e 54 45 47 | 45 52 3b 20 72 73 72 63 |m: INTEG|ER; rsrc|
|00002030| 45 78 69 73 74 73 2c 0d | 09 09 09 09 09 09 09 09 |Exists,.|........|
|00002040| 09 09 09 09 66 6f 72 50 | 72 69 6e 74 69 6e 67 3a |....forP|rinting:|
|00002050| 20 42 4f 4f 4c 45 41 4e | 29 3b 09 4f 56 45 52 52 | BOOLEAN|);.OVERR|
|00002060| 49 44 45 3b 0d 09 09 09 | 7b 20 52 65 61 64 73 20 |IDE;....|{ Reads |
|00002070| 69 6e 20 74 68 65 20 64 | 61 74 61 20 6f 75 74 20 |in the d|ata out |
|00002080| 6f 66 20 74 68 65 20 64 | 61 74 61 20 66 6f 72 6b |of the d|ata fork|
|00002090| 20 6f 66 20 74 68 65 20 | 66 69 6c 65 2c 20 61 6e | of the |file, an|
|000020a0| 64 20 73 74 6f 77 73 20 | 69 74 20 69 6e 74 6f 20 |d stows |it into |
|000020b0| 74 68 65 0d 09 09 09 09 | 64 6f 63 75 6d 65 6e 74 |the.....|document|
|000020c0| d5 73 20 62 69 74 4d 61 | 70 2e 20 20 41 6c 73 6f |.s bitMa|p. Also|
|000020d0| 20 72 65 73 65 74 73 20 | 74 68 65 20 76 61 72 73 | resets |the vars|
|000020e0| 20 69 6e 20 74 68 65 20 | 64 6f 63 75 6d 65 6e 74 | in the |document|
|000020f0| 20 6f 62 6a 65 63 74 20 | 74 6f 20 6d 61 74 63 68 | object |to match|
|00002100| 0d 09 09 09 09 74 68 65 | 20 73 61 76 65 64 20 76 |.....the| saved v|
|00002110| 61 6c 75 65 73 20 66 72 | 6f 6d 20 74 68 65 20 68 |alues fr|om the h|
|00002120| 65 61 64 65 72 2e 20 7d | 0d 0d 09 09 50 52 4f 43 |eader. }|....PROC|
|00002130| 45 44 55 52 45 20 54 46 | 72 61 63 41 70 70 44 6f |EDURE TF|racAppDo|
|00002140| 63 75 6d 65 6e 74 2e 44 | 6f 57 72 69 74 65 28 61 |cument.D|oWrite(a|
|00002150| 52 65 66 4e 75 6d 3a 20 | 49 4e 54 45 47 45 52 3b |RefNum: |INTEGER;|
|00002160| 0d 09 09 09 09 09 09 09 | 09 09 09 09 09 6d 61 6b |........|.....mak|
|00002170| 69 6e 67 43 6f 70 79 3a | 20 42 4f 4f 4c 45 41 4e |ingCopy:| BOOLEAN|
|00002180| 29 3b 09 4f 56 45 52 52 | 49 44 45 3b 0d 09 09 09 |);.OVERR|IDE;....|
|00002190| 7b 20 43 6f 6e 76 65 72 | 74 73 20 74 68 65 20 64 |{ Conver|ts the d|
|000021a0| 61 74 61 20 69 6e 20 74 | 68 65 20 64 6f 63 75 6d |ata in t|he docum|
|000021b0| 65 6e 74 d5 73 20 70 6f | 72 74 20 69 6e 74 6f 20 |ent.s po|rt into |
|000021c0| 61 20 50 49 43 54 2c 20 | 74 68 65 6e 20 77 72 69 |a PICT, |then wri|
|000021d0| 74 65 73 20 74 68 61 74 | 20 62 6c 6f 63 6b 0d 09 |tes that| block..|
|000021e0| 09 09 09 6f 75 74 20 74 | 6f 20 74 68 65 20 66 69 |...out t|o the fi|
|000021f0| 6c 65 2c 20 6d 61 6b 69 | 6e 67 20 69 74 20 69 6e |le, maki|ng it in|
|00002200| 74 6f 20 61 20 73 74 61 | 6e 64 61 72 64 20 50 49 |to a sta|ndard PI|
|00002210| 43 54 20 66 69 6c 65 2e | 20 7d 0d 0d 09 09 50 52 |CT file.| }....PR|
|00002220| 4f 43 45 44 55 52 45 20 | 54 46 72 61 63 41 70 70 |OCEDURE |TFracApp|
|00002230| 44 6f 63 75 6d 65 6e 74 | 2e 46 72 65 65 44 61 74 |Document|.FreeDat|
|00002240| 61 3b 20 4f 56 45 52 52 | 49 44 45 3b 0d 09 09 09 |a; OVERR|IDE;....|
|00002250| 7b 20 46 72 65 65 20 6d | 65 74 68 6f 64 20 75 73 |{ Free m|ethod us|
|00002260| 75 61 6c 6c 79 20 75 73 | 65 64 20 66 6f 72 20 52 |ually us|ed for R|
|00002270| 65 76 65 72 20 6f 70 65 | 72 61 74 69 6f 6e 2c 20 |ever ope|ration, |
|00002280| 6b 65 70 74 20 68 65 72 | 65 20 74 6f 20 73 68 6f |kept her|e to sho|
|00002290| 77 20 74 68 65 0d 09 09 | 09 09 6e 6f 72 6d 61 6c |w the...|..normal|
|000022a0| 20 46 72 65 65 20 61 70 | 70 72 6f 61 63 68 2e 20 | Free ap|proach. |
|000022b0| 7d 0d 0d 09 09 50 52 4f | 43 45 44 55 52 45 20 54 |}....PRO|CEDURE T|
|000022c0| 46 72 61 63 41 70 70 44 | 6f 63 75 6d 65 6e 74 2e |FracAppD|ocument.|
|000022d0| 46 72 65 65 3b 20 4f 56 | 45 52 52 49 44 45 3b 0d |Free; OV|ERRIDE;.|
|000022e0| 09 09 09 7b 20 46 72 65 | 65 20 6d 65 74 68 6f 64 |...{ Fre|e method|
|000022f0| 20 66 6f 72 20 6f 75 72 | 20 64 6f 63 75 6d 65 6e | for our| documen|
|00002300| 74 2e 20 20 49 74 20 64 | 69 73 70 6f 73 65 73 20 |t. It d|isposes |
|00002310| 74 68 65 20 64 61 74 61 | 20 62 6c 6f 63 6b 20 6f |the data| block o|
|00002320| 66 20 74 68 65 20 70 69 | 63 74 75 72 65 0d 09 09 |f the pi|cture...|
|00002330| 09 09 64 61 74 61 20 74 | 68 61 74 20 77 61 73 20 |..data t|hat was |
|00002340| 72 65 61 64 20 69 6e 20 | 66 72 6f 6d 20 74 68 65 |read in |from the|
|00002350| 20 64 69 73 6b 2c 20 61 | 6e 64 20 6b 69 6c 6c 73 | disk, a|nd kills|
|00002360| 20 6f 66 66 73 63 72 65 | 65 6e 20 73 74 75 66 66 | offscre|en stuff|
|00002370| 2e 20 7d 0d 0d 09 09 50 | 52 4f 43 45 44 55 52 45 |. }....P|ROCEDURE|
|00002380| 20 20 54 46 72 61 63 41 | 70 70 44 6f 63 75 6d 65 | TFracA|ppDocume|
|00002390| 6e 74 2e 43 61 6c 63 43 | 69 74 79 3b 0d 09 09 09 |nt.CalcC|ity;....|
|000023a0| 7b 20 44 6f 65 73 20 74 | 68 65 20 69 64 6c 65 20 |{ Does t|he idle |
|000023b0| 74 69 6d 65 20 63 61 6c | 63 75 6c 61 74 69 6f 6e |time cal|culation|
|000023c0| 73 20 66 6f 72 20 74 68 | 65 20 64 6f 63 75 6d 65 |s for th|e docume|
|000023d0| 6e 74 2e 20 20 54 68 69 | 73 20 69 73 20 66 6f 72 |nt. Thi|s is for|
|000023e0| 20 74 68 65 20 61 63 74 | 75 61 6c 0d 09 09 09 09 | the act|ual.....|
|000023f0| 66 72 61 63 74 61 6c 20 | 63 61 6c 63 75 6c 61 74 |fractal |calculat|
|00002400| 69 6f 6e 73 2e 20 20 49 | 74 20 69 73 20 63 61 6c |ions. I|t is cal|
|00002410| 6c 65 64 20 62 79 20 74 | 68 65 20 68 61 6e 64 6c |led by t|he handl|
|00002420| 65 72 20 66 6f 72 20 74 | 68 65 20 41 70 70 6c 69 |er for t|he Appli|
|00002430| 63 61 74 69 6f 6e 0d 09 | 09 09 09 44 6f 49 64 6c |cation..|...DoIdl|
|00002440| 65 2e 20 20 49 74 20 69 | 73 20 63 61 6c 6c 65 64 |e. It i|s called|
|00002450| 20 66 6f 72 20 61 6c 6c | 20 6f 70 65 6e 20 64 6f | for all| open do|
|00002460| 63 75 6d 65 6e 74 73 2e | 20 7d 0d 0d 09 45 4e 44 |cuments.| }...END|
|00002470| 3b 09 7b 20 54 46 72 61 | 63 41 70 70 44 6f 63 75 |;.{ TFra|cAppDocu|
|00002480| 6d 65 6e 74 20 7d 0d 0d | 0d 0d 7b 2d 2d 2d 2d 2d |ment }..|..{-----|
|00002490| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000024a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 20 20 56 69 65 77 |--------|-- View|
|000024b0| 20 20 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d | ------|--------|
|000024c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000024d0| 2d 7d 0d 0d 09 54 46 72 | 61 63 41 70 70 56 69 65 |-}...TFr|acAppVie|
|000024e0| 77 20 3d 20 4f 42 4a 45 | 43 54 28 54 56 69 65 77 |w = OBJE|CT(TView|
|000024f0| 29 0d 0d 09 09 7b 20 54 | 68 65 73 65 20 66 69 65 |)....{ T|hese fie|
|00002500| 6c 64 73 20 61 72 65 20 | 66 6f 72 20 74 68 65 20 |lds are |for the |
|00002510| 75 73 65 20 6f 66 20 74 | 68 65 20 76 69 65 77 2c |use of t|he view,|
|00002520| 20 61 6e 64 20 68 65 6c | 70 20 64 65 66 69 6e 65 | and hel|p define|
|00002530| 20 6f 75 72 20 73 70 65 | 63 69 66 69 63 20 76 69 | our spe|cific vi|
|00002540| 65 77 2c 20 74 68 61 74 | 0d 09 09 09 69 73 20 74 |ew, that|....is t|
|00002550| 68 65 20 6f 66 66 73 63 | 72 65 65 6e 20 62 69 74 |he offsc|reen bit|
|00002560| 4d 61 70 20 72 65 70 72 | 65 73 65 6e 74 61 74 69 |Map repr|esentati|
|00002570| 6f 6e 20 6f 66 20 74 68 | 65 20 66 72 61 63 74 61 |on of th|e fracta|
|00002580| 6c 2e 20 7d 0d 09 09 66 | 53 65 6c 65 63 74 69 6f |l. }...f|Selectio|
|00002590| 6e 52 65 63 74 3a 09 09 | 09 09 09 52 65 63 74 3b |nRect:..|...Rect;|
|000025a0| 09 09 7b 20 72 65 63 74 | 61 6e 67 6c 65 20 74 68 |..{ rect|angle th|
|000025b0| 61 74 20 69 73 20 63 75 | 72 72 65 6e 74 20 73 65 |at is cu|rrent se|
|000025c0| 6c 65 63 74 69 6f 6e 20 | 7d 0d 09 09 66 46 72 61 |lection |}...fFra|
|000025d0| 63 41 70 70 44 6f 63 75 | 6d 65 6e 74 3a 09 09 09 |cAppDocu|ment:...|
|000025e0| 09 54 46 72 61 63 41 70 | 70 44 6f 63 75 6d 65 6e |.TFracAp|pDocumen|
|000025f0| 74 3b 09 7b 20 68 61 6e | 64 79 20 74 6f 20 61 76 |t;.{ han|dy to av|
|00002600| 6f 69 64 20 74 79 70 65 | 20 63 6f 65 72 63 69 6f |oid type| coercio|
|00002610| 6e 2e 20 7d 0d 09 09 0d | 09 09 50 52 4f 43 45 44 |n. }....|..PROCED|
|00002620| 55 52 45 20 09 54 46 72 | 61 63 41 70 70 56 69 65 |URE .TFr|acAppVie|
|00002630| 77 2e 49 46 72 61 63 41 | 70 70 56 69 65 77 20 28 |w.IFracA|ppView (|
|00002640| 69 74 73 44 6f 63 75 6d | 65 6e 74 3a 20 54 46 72 |itsDocum|ent: TFr|
|00002650| 61 63 41 70 70 44 6f 63 | 75 6d 65 6e 74 3b 0d 09 |acAppDoc|ument;..|
|00002660| 09 09 09 73 69 7a 65 4f | 66 56 69 65 77 3a 20 52 |...sizeO|fView: R|
|00002670| 65 63 74 29 3b 0d 09 09 | 09 7b 20 49 6e 69 74 73 |ect);...|.{ Inits|
|00002680| 20 74 68 65 20 76 69 65 | 77 20 6f 62 6a 65 63 74 | the vie|w object|
|00002690| 20 69 74 73 65 6c 66 2e | 20 7d 0d 0d 09 09 50 52 | itself.| }....PR|
|000026a0| 4f 43 45 44 55 52 45 20 | 54 46 72 61 63 41 70 70 |OCEDURE |TFracApp|
|000026b0| 56 69 65 77 2e 44 72 61 | 77 28 61 72 65 61 3a 20 |View.Dra|w(area: |
|000026c0| 52 65 63 74 29 3b 20 4f | 56 45 52 52 49 44 45 3b |Rect); O|VERRIDE;|
|000026d0| 0d 09 09 09 7b 44 72 61 | 77 73 20 74 68 65 20 76 |....{Dra|ws the v|
|000026e0| 69 65 77 20 73 65 65 6e | 20 69 6e 20 74 68 65 20 |iew seen| in the |
|000026f0| 77 69 6e 64 6f 77 2e 20 | 20 45 76 65 72 79 20 6e |window. | Every n|
|00002700| 6f 6e 62 6c 61 6e 6b 20 | 76 69 65 77 20 4d 55 53 |onblank |view MUS|
|00002710| 54 0d 09 09 09 09 6f 76 | 65 72 72 69 64 65 20 74 |T.....ov|erride t|
|00002720| 68 69 73 20 6d 65 74 68 | 6f 64 7d 0d 0d 09 09 46 |his meth|od}....F|
|00002730| 55 4e 43 54 49 4f 4e 20 | 54 46 72 61 63 41 70 70 |UNCTION |TFracApp|
|00002740| 56 69 65 77 2e 44 6f 4d | 65 6e 75 43 6f 6d 6d 61 |View.DoM|enuComma|
|00002750| 6e 64 28 0d 09 09 09 09 | 09 09 09 09 09 09 09 09 |nd(.....|........|
|00002760| 61 43 6d 64 4e 75 6d 62 | 65 72 3a 20 43 6d 64 4e |aCmdNumb|er: CmdN|
|00002770| 75 6d 62 65 72 29 3a 20 | 54 43 6f 6d 6d 61 6e 64 |umber): |TCommand|
|00002780| 3b 20 20 4f 56 45 52 52 | 49 44 45 3b 0d 09 09 09 |; OVERR|IDE;....|
|00002790| 7b 20 48 61 6e 64 6c 65 | 20 74 68 65 20 6d 65 6e |{ Handle| the men|
|000027a0| 75 20 63 68 6f 69 63 65 | 73 20 66 6f 72 20 4e 65 |u choice|s for Ne|
|000027b0| 77 20 46 72 61 63 74 61 | 6c 20 6f 75 74 20 6f 66 |w Fracta|l out of|
|000027c0| 20 74 68 65 20 46 72 61 | 63 74 61 6c 20 4d 65 6e | the Fra|ctal Men|
|000027d0| 75 2e 20 7d 0d 0d 09 09 | 50 52 4f 43 45 44 55 52 |u. }....|PROCEDUR|
|000027e0| 45 20 54 46 72 61 63 41 | 70 70 56 69 65 77 2e 44 |E TFracA|ppView.D|
|000027f0| 6f 53 65 74 75 70 4d 65 | 6e 75 73 3b 20 20 4f 56 |oSetupMe|nus; OV|
|00002800| 45 52 52 49 44 45 3b 0d | 09 09 09 7b 20 53 65 74 |ERRIDE;.|...{ Set|
|00002810| 20 75 70 20 74 68 65 20 | 4e 65 77 20 46 72 61 63 | up the |New Frac|
|00002820| 74 61 6c 20 6d 65 6e 75 | 73 20 63 68 6f 69 63 65 |tal menu|s choice|
|00002830| 20 69 6e 20 46 72 61 63 | 74 61 6c 20 4d 65 6e 75 | in Frac|tal Menu|
|00002840| 2c 20 62 61 73 65 64 20 | 6f 6e 20 73 65 6c 65 63 |, based |on selec|
|00002850| 74 69 6f 6e 2e 20 7d 0d | 0d 09 09 46 55 4e 43 54 |tion. }.|...FUNCT|
|00002860| 49 4f 4e 20 20 54 46 72 | 61 63 41 70 70 56 69 65 |ION TFr|acAppVie|
|00002870| 77 2e 44 6f 4d 6f 75 73 | 65 43 6f 6d 6d 61 6e 64 |w.DoMous|eCommand|
|00002880| 28 56 41 52 20 64 6f 77 | 6e 4c 6f 63 61 6c 50 6f |(VAR dow|nLocalPo|
|00002890| 69 6e 74 3a 20 50 6f 69 | 6e 74 3b 20 0d 09 09 09 |int: Poi|nt; ....|
|000028a0| 09 09 09 56 41 52 20 69 | 6e 66 6f 3a 20 45 76 65 |...VAR i|nfo: Eve|
|000028b0| 6e 74 49 6e 66 6f 3b 0d | 09 09 09 09 09 09 56 41 |ntInfo;.|......VA|
|000028c0| 52 20 68 79 73 74 65 72 | 65 73 69 73 3a 20 50 6f |R hyster|esis: Po|
|000028d0| 69 6e 74 29 3a 20 54 43 | 6f 6d 6d 61 6e 64 3b 09 |int): TC|ommand;.|
|000028e0| 4f 56 45 52 52 49 44 45 | 3b 0d 09 09 09 7b 20 48 |OVERRIDE|;....{ H|
|000028f0| 61 6e 64 6c 65 20 74 68 | 65 20 6d 6f 75 73 65 20 |andle th|e mouse |
|00002900| 65 76 65 6e 74 73 20 69 | 6e 20 74 68 65 20 76 69 |events i|n the vi|
|00002910| 65 77 2e 20 20 4e 65 65 | 64 73 20 74 6f 20 64 6f |ew. Nee|ds to do|
|00002920| 20 74 68 65 20 73 65 6c | 65 63 74 69 6f 6e 20 6f | the sel|ection o|
|00002930| 66 20 61 20 6e 65 77 0d | 09 09 09 09 72 61 6e 67 |f a new.|....rang|
|00002940| 65 20 66 6f 72 20 74 68 | 65 20 6e 65 78 74 20 66 |e for th|e next f|
|00002950| 72 61 63 74 61 6c 20 74 | 6f 20 62 65 20 63 61 6c |ractal t|o be cal|
|00002960| 63 75 6c 61 74 65 64 2e | 20 20 7d 0d 0d 09 09 50 |culated.| }....P|
|00002970| 52 4f 43 45 44 55 52 45 | 20 54 46 72 61 63 41 70 |ROCEDURE| TFracAp|
|00002980| 70 56 69 65 77 2e 44 6f | 48 69 67 68 6c 69 67 68 |pView.Do|Highligh|
|00002990| 74 53 65 6c 65 63 74 69 | 6f 6e 28 66 72 6f 6d 48 |tSelecti|on(fromH|
|000029a0| 4c 2c 20 74 6f 48 4c 3a | 20 48 4c 53 74 61 74 65 |L, toHL:| HLState|
|000029b0| 29 3b 20 4f 56 45 52 52 | 49 44 45 3b 0d 09 09 09 |); OVERR|IDE;....|
|000029c0| 7b 20 48 69 67 68 6c 69 | 67 68 74 20 74 68 65 20 |{ Highli|ght the |
|000029d0| 63 75 72 72 65 6e 74 20 | 73 65 6c 65 63 74 69 6f |current |selectio|
|000029e0| 6e 20 72 65 63 74 61 6e | 67 6c 65 20 69 66 20 74 |n rectan|gle if t|
|000029f0| 68 65 72 65 20 69 73 20 | 6f 6e 65 2e 20 20 7d 0d |here is |one. }.|
|00002a00| 0d 09 45 4e 44 3b 09 7b | 20 54 46 72 61 63 41 70 |..END;.{| TFracAp|
|00002a10| 70 56 69 65 77 20 7d 0d | 0d 0d 7b 2d 2d 2d 2d 2d |pView }.|..{-----|
|00002a20| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002a30| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 20 20 43 6f 6d 6d |--------|-- Comm|
|00002a40| 61 6e 64 20 20 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |and ---|--------|
|00002a50| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002a60| 2d 2d 2d 2d 7d 0d 0d 09 | 54 41 72 65 61 53 65 6c |----}...|TAreaSel|
|00002a70| 65 63 74 6f 72 20 3d 20 | 4f 42 4a 45 43 54 28 54 |ector = |OBJECT(T|
|00002a80| 43 6f 6d 6d 61 6e 64 29 | 0d 0d 09 09 7b 20 54 68 |Command)|....{ Th|
|00002a90| 65 73 65 20 66 69 65 6c | 64 73 20 61 72 65 20 66 |ese fiel|ds are f|
|00002aa0| 6f 72 20 74 68 65 20 63 | 6f 6d 6d 61 6e 64 20 6f |or the c|ommand o|
|00002ab0| 62 6a 65 63 74 73 20 74 | 68 61 74 20 77 65 20 75 |bjects t|hat we u|
|00002ac0| 73 65 2e 20 20 54 68 65 | 20 66 69 72 73 74 20 6f |se. The| first o|
|00002ad0| 6e 65 20 77 65 20 6e 65 | 65 64 0d 09 09 09 66 6f |ne we ne|ed....fo|
|00002ae0| 72 20 73 75 72 65 20 69 | 73 20 74 68 65 20 73 65 |r sure i|s the se|
|00002af0| 6c 65 63 74 69 6f 6e 20 | 6f 62 6a 65 63 74 20 74 |lection |object t|
|00002b00| 6f 20 68 61 6e 64 6c 65 | 20 74 68 65 20 6d 6f 75 |o handle| the mou|
|00002b10| 73 65 20 73 65 6c 65 63 | 74 69 6f 6e 20 69 6e 20 |se selec|tion in |
|00002b20| 74 68 65 20 63 6f 6e 74 | 65 6e 74 0d 09 09 09 72 |the cont|ent....r|
|00002b30| 65 67 69 6f 6e 20 6f 66 | 20 74 68 65 20 76 69 65 |egion of| the vie|
|00002b40| 77 2e 20 20 7d 0d 09 09 | 66 4f 77 6e 65 72 56 69 |w. }...|fOwnerVi|
|00002b50| 65 77 3a 09 54 46 72 61 | 63 41 70 70 56 69 65 77 |ew:.TFra|cAppView|
|00002b60| 3b 0d 09 09 0d 0d 09 09 | 50 52 4f 43 45 44 55 52 |;.......|PROCEDUR|
|00002b70| 45 20 54 41 72 65 61 53 | 65 6c 65 63 74 6f 72 2e |E TAreaS|elector.|
|00002b80| 49 41 72 65 61 53 65 6c | 65 63 74 6f 72 28 6f 77 |IAreaSel|ector(ow|
|00002b90| 6e 65 72 56 69 65 77 3a | 20 54 46 72 61 63 41 70 |nerView:| TFracAp|
|00002ba0| 70 56 69 65 77 3b 20 73 | 74 61 72 74 50 74 3a 20 |pView; s|tartPt: |
|00002bb0| 50 6f 69 6e 74 29 3b 0d | 09 09 09 7b 20 49 6e 69 |Point);.|...{ Ini|
|00002bc0| 74 69 61 6c 69 7a 65 20 | 74 68 65 20 73 65 6c 65 |tialize |the sele|
|00002bd0| 63 74 69 6f 6e 20 6f 62 | 6a 65 63 74 20 69 74 73 |ction ob|ject its|
|00002be0| 65 6c 66 2e 20 20 54 68 | 69 73 20 62 61 73 69 63 |elf. Th|is basic|
|00002bf0| 61 6c 6c 79 20 73 65 74 | 73 20 75 70 20 77 69 74 |ally set|s up wit|
|00002c00| 68 20 49 4f 62 6a 65 63 | 74 2c 0d 09 09 09 09 74 |h IObjec|t,.....t|
|00002c10| 68 65 6e 20 73 65 74 73 | 20 74 68 65 20 66 53 65 |hen sets| the fSe|
|00002c20| 6c 65 63 74 69 6f 6e 52 | 65 63 74 20 74 6f 20 62 |lectionR|ect to b|
|00002c30| 65 20 61 20 6d 69 6e 69 | 6d 61 6c 20 72 65 63 74 |e a mini|mal rect|
|00002c40| 61 6e 67 6c 65 2e 20 7d | 0d 09 09 09 09 0d 09 09 |angle. }|........|
|00002c50| 46 55 4e 43 54 49 4f 4e | 20 20 54 41 72 65 61 53 |FUNCTION| TAreaS|
|00002c60| 65 6c 65 63 74 6f 72 2e | 54 72 61 63 6b 4d 6f 75 |elector.|TrackMou|
|00002c70| 73 65 28 61 54 72 61 63 | 6b 50 68 61 73 65 3a 20 |se(aTrac|kPhase: |
|00002c80| 54 72 61 63 6b 50 68 61 | 73 65 3b 0d 09 09 09 09 |TrackPha|se;.....|
|00002c90| 09 09 56 41 52 20 61 6e | 63 68 6f 72 50 6f 69 6e |..VAR an|chorPoin|
|00002ca0| 74 2c 20 70 72 65 76 69 | 6f 75 73 50 6f 69 6e 74 |t, previ|ousPoint|
|00002cb0| 2c 20 6e 65 78 74 50 6f | 69 6e 74 3a 20 50 6f 69 |, nextPo|int: Poi|
|00002cc0| 6e 74 3b 0d 09 09 09 09 | 09 09 6d 6f 75 73 65 44 |nt;.....|..mouseD|
|00002cd0| 69 64 4d 6f 76 65 3a 20 | 42 4f 4f 4c 45 41 4e 29 |idMove: |BOOLEAN)|
|00002ce0| 3a 20 54 43 6f 6d 6d 61 | 6e 64 3b 20 20 4f 56 45 |: TComma|nd; OVE|
|00002cf0| 52 52 49 44 45 3b 0d 09 | 09 09 7b 20 54 72 61 63 |RRIDE;..|..{ Trac|
|00002d00| 6b 20 74 68 65 20 6d 6f | 75 73 65 20 77 68 69 6c |k the mo|use whil|
|00002d10| 65 20 74 68 65 20 62 75 | 74 74 6f 6e 20 69 73 20 |e the bu|tton is |
|00002d20| 64 6f 77 6e 20 69 6e 20 | 74 68 65 20 76 69 65 77 |down in |the view|
|00002d30| 2e 20 7d 0d 0d 09 09 50 | 52 4f 43 45 44 55 52 45 |. }....P|ROCEDURE|
|00002d40| 20 54 41 72 65 61 53 65 | 6c 65 63 74 6f 72 2e 54 | TAreaSe|lector.T|
|00002d50| 72 61 63 6b 46 65 65 64 | 62 61 63 6b 28 61 6e 63 |rackFeed|back(anc|
|00002d60| 68 6f 72 50 6f 69 6e 74 | 2c 20 6e 65 78 74 50 6f |horPoint|, nextPo|
|00002d70| 69 6e 74 3a 20 50 6f 69 | 6e 74 3b 0d 09 09 09 09 |int: Poi|nt;.....|
|00002d80| 09 09 09 09 09 09 74 75 | 72 6e 49 74 4f 6e 2c 20 |......tu|rnItOn, |
|00002d90| 6d 6f 75 73 65 44 69 64 | 4d 6f 76 65 3a 20 42 4f |mouseDid|Move: BO|
|00002da0| 4f 4c 45 41 4e 29 3b 20 | 20 4f 56 45 52 52 49 44 |OLEAN); | OVERRID|
|00002db0| 45 3b 0d 09 09 09 7b 20 | 46 65 65 64 62 61 63 6b |E;....{ |Feedback|
|00002dc0| 20 74 68 61 74 20 6d 61 | 74 63 68 65 73 20 62 65 | that ma|tches be|
|00002dd0| 74 74 65 72 2c 20 75 73 | 69 6e 67 20 74 68 65 20 |tter, us|ing the |
|00002de0| 73 65 6c 65 63 74 69 6f | 6e 20 70 61 74 74 65 72 |selectio|n patter|
|00002df0| 6e 2e 20 7d 0d 09 09 09 | 0d 09 09 50 52 4f 43 45 |n. }....|...PROCE|
|00002e00| 44 55 52 45 20 54 41 72 | 65 61 53 65 6c 65 63 74 |DURE TAr|eaSelect|
|00002e10| 6f 72 2e 54 72 61 63 6b | 43 6f 6e 73 74 72 61 69 |or.Track|Constrai|
|00002e20| 6e 28 61 6e 63 68 6f 72 | 50 6f 69 6e 74 2c 20 70 |n(anchor|Point, p|
|00002e30| 72 65 76 69 6f 75 73 50 | 6f 69 6e 74 3a 20 50 6f |reviousP|oint: Po|
|00002e40| 69 6e 74 3b 20 0d 09 09 | 09 09 09 09 56 41 52 20 |int; ...|....VAR |
|00002e50| 6e 65 78 74 50 6f 69 6e | 74 3a 20 50 6f 69 6e 74 |nextPoin|t: Point|
|00002e60| 29 3b 20 20 4f 56 45 52 | 52 49 44 45 3b 0d 09 09 |); OVER|RIDE;...|
|00002e70| 09 7b 20 43 6f 6e 73 74 | 72 61 69 6e 20 74 68 65 |.{ Const|rain the|
|00002e80| 20 6d 6f 75 73 65 20 6d | 6f 76 65 6d 65 6e 74 20 | mouse m|ovement |
|00002e90| 74 6f 20 62 65 20 61 20 | 72 65 63 74 20 77 68 69 |to be a |rect whi|
|00002ea0| 63 68 20 6d 61 74 63 68 | 65 73 20 74 68 65 20 73 |ch match|es the s|
|00002eb0| 63 72 65 65 6e 2e 20 7d | 0d 09 09 09 0d 09 45 4e |creen. }|......EN|
|00002ec0| 44 3b 09 7b 20 54 41 72 | 65 61 53 65 6c 65 63 74 |D;.{ TAr|eaSelect|
|00002ed0| 6f 72 20 7d 0d 0d 0d 49 | 4d 50 4c 45 4d 45 4e 54 |or }...I|MPLEMENT|
|00002ee0| 41 54 49 4f 4e 0d 0d 7b | 24 49 20 55 46 72 61 63 |ATION..{|$I UFrac|
|00002ef0| 41 70 70 50 61 6c 65 74 | 74 65 2e 69 6e 63 31 2e |AppPalet|te.inc1.|
|00002f00| 70 7d 0d 0d 45 4e 44 2e | 0d 00 00 00 00 00 00 00 |p}..END.|........|
|00002f10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f80| 00 00 01 00 00 00 01 9c | 00 00 00 9c 00 00 00 52 |........|.......R|
|00002f90| 44 4f 43 55 4d 45 4e 00 | 00 4e ad 04 62 d4 44 4f |DOCUMEN.|.N..b.DO|
|00002fa0| 43 55 4d 45 4e 00 00 4e | ad 04 62 d4 44 4f 43 55 |CUMEN..N|..b.DOCU|
|00002fb0| 11 55 46 72 61 63 41 70 | 70 50 61 6c 65 74 74 65 |.UFracAp|pPalette|
|00002fc0| 2e 70 02 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.p......|........|
|00002fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ff0| 00 00 a0 01 5b 4e 00 00 | 2e 89 00 00 01 ee 62 d4 |....[N..|......b.|
|00003000| 44 4f 43 55 4d 45 4e 00 | 00 4e ad 04 62 d4 44 4f |DOCUMEN.|.N..b.DO|
|00003010| 43 55 4d 45 4e 00 00 4e | ad 04 62 d4 44 4f 43 55 |CUMEN..N|..b.DOCU|
|00003020| 4d 45 4e 00 00 4e ad 04 | 62 d4 44 4f 43 55 4d 45 |MEN..N..|b.DOCUME|
|00003030| 4e 00 00 4e ad 04 62 d4 | 44 4f 43 55 4d 45 4e 00 |N..N..b.|DOCUMEN.|
|00003040| 00 4e ad 04 62 d4 46 52 | 41 4d 45 24 49 00 00 4e |.N..b.FR|AME$I..N|
|00003050| ad 04 62 d4 46 52 41 4d | 45 24 41 00 00 4e ad 04 |..b.FRAM|E$A..N..|
|00003060| 62 d4 46 52 41 4d 45 24 | 45 00 00 4e ad 04 62 d4 |b.FRAME$|E..N..b.|
|00003070| 46 52 41 4d 45 24 46 00 | 00 4e ad 04 62 d4 46 52 |FRAME$F.|.N..b.FR|
|00003080| 00 00 00 02 00 00 00 00 | 00 48 00 09 4d 6f 6e 61 |........|.H..Mona|
|00003090| 63 6f 00 63 61 00 00 00 | 00 00 00 00 00 00 00 00 |co.ca...|........|
|000030a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 06 00 04 |........|........|
|000030b0| 00 27 00 00 01 df 02 30 | 00 27 00 00 01 df 02 30 |.'.....0|.'.....0|
|000030c0| 9f 1a 47 22 00 00 00 00 | 00 00 00 00 00 00 00 00 |..G"....|........|
|000030d0| 01 00 00 00 00 46 00 04 | 00 00 13 15 00 00 13 20 |.....F..|....... |
|000030e0| 0b 41 70 70 6c 69 63 61 | 74 69 6f 6e 00 00 16 5f |.Applica|tion..._|
|000030f0| 00 00 16 67 09 44 6f 63 | 75 6d 65 6e 74 00 00 00 |...g.Doc|ument...|
|00003100| 24 1a 00 00 24 1e 05 56 | 69 65 77 00 00 00 29 aa |$...$..V|iew...).|
|00003110| 00 00 29 b1 07 43 6f 6d | 6d 61 6e 64 00 00 01 00 |..)..Com|mand....|
|00003120| 00 00 01 9c 00 00 00 9c | 00 00 00 52 00 05 bb e8 |........|...R....|
|00003130| 04 c8 00 00 00 1c 00 52 | 00 01 45 51 45 44 00 00 |.......R|..EQED..|
|00003140| 00 12 4d 50 53 52 00 01 | 00 1e 03 eb ff ff 00 00 |..MPSR..|........|
|00003150| 00 00 00 00 00 00 03 ed | ff ff 00 00 00 06 00 00 |........|........|
|00003160| 00 00 03 ef ff ff 00 00 | 00 52 00 00 00 00 00 00 |........|.R......|
|00003170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+