home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1989-09-14 | 6.8 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).
Confidence | Program | Detection | Match Type | Support
|
---|
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, Fri Jun 13 22:27:04 1986, modified Sun Jan 29 08:21:58 1989, creator Think C, type ASCII, 6711 bytes "MSkelHelp.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 |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [KAHL] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0b 4d 53 6b 65 6c 48 | 65 6c 70 2e 63 00 00 00 |..MSkelH|elp.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 1a 37 00 | 00 00 00 9b 16 86 f8 a0 |......7.|........|
|00000060| 08 c0 76 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..v.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000080| 2f 2a 0d 09 54 72 61 6e | 73 53 6b 65 6c 20 6d 75 |/*..Tran|sSkel mu|
|00000090| 6c 74 69 70 6c 65 2d 77 | 69 6e 64 6f 77 20 64 65 |ltiple-w|indow de|
|000000a0| 6d 6f 6e 73 74 72 61 74 | 69 6f 6e 3a 20 48 65 6c |monstrat|ion: Hel|
|000000b0| 70 20 6d 6f 64 75 6c 65 | 0d 0d 09 54 68 69 73 20 |p module|...This |
|000000c0| 6d 6f 64 75 6c 65 20 68 | 61 6e 64 6c 65 73 20 61 |module h|andles a|
|000000d0| 20 68 65 6c 70 20 77 69 | 6e 64 6f 77 2c 20 69 6e | help wi|ndow, in|
|000000e0| 20 77 68 69 63 68 20 74 | 65 78 74 20 6d 61 79 20 | which t|ext may |
|000000f0| 62 65 20 73 63 72 6f 6c | 6c 65 64 20 62 75 74 0d |be scrol|led but.|
|00000100| 09 6e 6f 74 20 65 64 69 | 74 65 64 2e 20 20 41 20 |.not edi|ted. A |
|00000110| 54 65 78 74 45 64 69 74 | 20 72 65 63 6f 72 64 20 |TextEdit| record |
|00000120| 69 73 20 75 73 65 64 20 | 74 6f 20 68 6f 6c 64 20 |is used |to hold |
|00000130| 74 68 65 20 74 65 78 74 | 2c 20 74 68 6f 75 67 68 |the text|, though|
|00000140| 2e 0d 0d 09 32 31 20 41 | 70 72 69 6c 20 31 39 38 |....21 A|pril 198|
|00000150| 38 09 09 50 61 75 6c 20 | 44 75 42 6f 69 73 0d 2a |8..Paul |DuBois.*|
|00000160| 2f 0d 0d 23 20 69 6e 63 | 6c 75 64 65 09 22 4d 75 |/..# inc|lude."Mu|
|00000170| 6c 74 69 53 6b 65 6c 2e | 68 22 0d 23 20 69 6e 63 |ltiSkel.|h".# inc|
|00000180| 6c 75 64 65 09 3c 43 6f | 6e 74 72 6f 6c 4d 67 72 |lude.<Co|ntrolMgr|
|00000190| 2e 68 3e 0d 23 20 69 6e | 63 6c 75 64 65 09 3c 54 |.h>.# in|clude.<T|
|000001a0| 65 78 74 45 64 69 74 2e | 68 3e 0d 0d 0d 0d 0d 57 |extEdit.|h>.....W|
|000001b0| 69 6e 64 6f 77 50 74 72 | 09 09 09 09 68 65 6c 70 |indowPtr|....help|
|000001c0| 57 69 6e 64 3b 0d 73 74 | 61 74 69 63 20 54 45 48 |Wind;.st|atic TEH|
|000001d0| 61 6e 64 6c 65 09 09 09 | 74 65 48 65 6c 70 3b 09 |andle...|teHelp;.|
|000001e0| 09 2f 2a 20 68 61 6e 64 | 6c 65 20 74 6f 20 68 65 |./* hand|le to he|
|000001f0| 6c 70 20 77 69 6e 64 6f | 77 20 54 65 78 74 45 64 |lp windo|w TextEd|
|00000200| 69 74 20 72 65 63 6f 72 | 64 20 2a 2f 0d 73 74 61 |it recor|d */.sta|
|00000210| 74 69 63 20 43 6f 6e 74 | 72 6f 6c 48 61 6e 64 6c |tic Cont|rolHandl|
|00000220| 65 09 68 65 6c 70 53 63 | 72 6f 6c 6c 3b 09 2f 2a |e.helpSc|roll;./*|
|00000230| 20 68 65 6c 70 20 77 69 | 6e 64 6f 77 20 73 63 72 | help wi|ndow scr|
|00000240| 6f 6c 6c 20 62 61 72 20 | 2a 2f 0d 73 74 61 74 69 |oll bar |*/.stati|
|00000250| 63 20 49 6e 74 65 67 65 | 72 09 09 09 68 65 6c 70 |c Intege|r...help|
|00000260| 4c 69 6e 65 3b 09 2f 2a | 20 6c 69 6e 65 20 63 75 |Line;./*| line cu|
|00000270| 72 72 65 6e 74 6c 79 20 | 61 74 20 74 6f 70 20 6f |rrently |at top o|
|00000280| 66 20 77 69 6e 64 6f 77 | 20 2a 2f 0d 73 74 61 74 |f window| */.stat|
|00000290| 69 63 20 49 6e 74 65 67 | 65 72 09 09 09 68 61 6c |ic Integ|er...hal|
|000002a0| 66 50 61 67 65 3b 09 2f | 2a 20 6e 75 6d 62 65 72 |fPage;./|* number|
|000002b0| 20 6f 66 20 6c 69 6e 65 | 73 20 69 6e 20 68 61 6c | of line|s in hal|
|000002c0| 66 20 61 20 77 69 6e 64 | 6f 77 20 2a 2f 0d 0d 0d |f a wind|ow */...|
|000002d0| 73 74 61 74 69 63 20 48 | 61 6c 74 20 28 29 0d 7b |static H|alt ().{|
|000002e0| 0d 09 54 45 44 69 73 70 | 6f 73 65 20 28 74 65 48 |..TEDisp|ose (teH|
|000002f0| 65 6c 70 29 3b 0d 09 44 | 69 73 70 6f 73 65 43 6f |elp);..D|isposeCo|
|00000300| 6e 74 72 6f 6c 20 28 68 | 65 6c 70 53 63 72 6f 6c |ntrol (h|elpScrol|
|00000310| 6c 29 3b 0d 09 43 6c 6f | 73 65 57 69 6e 64 6f 77 |l);..Clo|seWindow|
|00000320| 20 28 68 65 6c 70 57 69 | 6e 64 29 3b 0d 7d 0d 0d | (helpWi|nd);.}..|
|00000330| 0d 2f 2a 0d 09 53 63 72 | 6f 6c 6c 20 74 6f 20 74 |./*..Scr|oll to t|
|00000340| 68 65 20 63 6f 72 72 65 | 63 74 20 70 6f 73 69 74 |he corre|ct posit|
|00000350| 69 6f 6e 2e 20 20 6c 44 | 65 6c 74 61 20 69 73 20 |ion. lD|elta is |
|00000360| 74 68 65 0d 09 61 6d 6f | 75 6e 74 20 74 6f 20 43 |the..amo|unt to C|
|00000370| 48 41 4e 47 45 20 74 68 | 65 20 63 75 72 72 65 6e |HANGE th|e curren|
|00000380| 74 20 73 63 72 6f 6c 6c | 20 73 65 74 74 69 6e 67 |t scroll| setting|
|00000390| 20 62 79 2e 0d 2a 2f 0d | 0d 44 6f 53 63 72 6f 6c | by..*/.|.DoScrol|
|000003a0| 6c 20 28 6c 44 65 6c 74 | 61 29 0d 49 6e 74 65 67 |l (lDelt|a).Integ|
|000003b0| 65 72 09 6c 44 65 6c 74 | 61 3b 0d 7b 0d 49 6e 74 |er.lDelt|a;.{.Int|
|000003c0| 65 67 65 72 09 6e 65 77 | 4c 69 6e 65 3b 0d 0d 09 |eger.new|Line;...|
|000003d0| 6e 65 77 4c 69 6e 65 20 | 3d 20 68 65 6c 70 4c 69 |newLine |= helpLi|
|000003e0| 6e 65 20 2b 20 6c 44 65 | 6c 74 61 3b 0d 09 69 66 |ne + lDe|lta;..if|
|000003f0| 20 28 6e 65 77 4c 69 6e | 65 20 3c 20 30 29 0d 09 | (newLin|e < 0)..|
|00000400| 09 6e 65 77 4c 69 6e 65 | 20 3d 20 30 3b 0d 09 69 |.newLine| = 0;..i|
|00000410| 66 20 28 6e 65 77 4c 69 | 6e 65 20 3e 20 47 65 74 |f (newLi|ne > Get|
|00000420| 43 74 6c 4d 61 78 20 28 | 68 65 6c 70 53 63 72 6f |CtlMax (|helpScro|
|00000430| 6c 6c 29 29 0d 09 09 6e | 65 77 4c 69 6e 65 20 3d |ll))...n|ewLine =|
|00000440| 20 47 65 74 43 74 6c 4d | 61 78 20 28 68 65 6c 70 | GetCtlM|ax (help|
|00000450| 53 63 72 6f 6c 6c 29 3b | 0d 09 53 65 74 43 74 6c |Scroll);|..SetCtl|
|00000460| 56 61 6c 75 65 20 28 68 | 65 6c 70 53 63 72 6f 6c |Value (h|elpScrol|
|00000470| 6c 2c 20 6e 65 77 4c 69 | 6e 65 29 3b 0d 09 6c 44 |l, newLi|ne);..lD|
|00000480| 65 6c 74 61 20 3d 20 28 | 68 65 6c 70 4c 69 6e 65 |elta = (|helpLine|
|00000490| 20 2d 20 6e 65 77 4c 69 | 6e 65 20 29 20 2a 20 28 | - newLi|ne ) * (|
|000004a0| 2a 2a 74 65 48 65 6c 70 | 29 2e 6c 69 6e 65 48 65 |**teHelp|).lineHe|
|000004b0| 69 67 68 74 3b 0d 09 54 | 45 53 63 72 6f 6c 6c 20 |ight;..T|EScroll |
|000004c0| 28 30 2c 20 6c 44 65 6c | 74 61 2c 20 74 65 48 65 |(0, lDel|ta, teHe|
|000004d0| 6c 70 29 3b 0d 09 68 65 | 6c 70 4c 69 6e 65 20 3d |lp);..he|lpLine =|
|000004e0| 20 6e 65 77 4c 69 6e 65 | 3b 0d 7d 0d 0d 0d 2f 2a | newLine|;.}.../*|
|000004f0| 0d 09 46 69 6c 74 65 72 | 20 70 72 6f 63 20 66 6f |..Filter| proc fo|
|00000500| 72 20 74 72 61 63 6b 69 | 6e 67 20 6d 6f 75 73 65 |r tracki|ng mouse|
|00000510| 64 6f 77 6e 20 69 6e 20 | 73 63 72 6f 6c 6c 20 62 |down in |scroll b|
|00000520| 61 72 2e 20 20 54 68 65 | 20 70 61 72 74 20 63 6f |ar. The| part co|
|00000530| 64 65 0d 09 6f 66 20 74 | 68 65 20 70 61 72 74 20 |de..of t|he part |
|00000540| 6f 72 69 67 69 6e 61 6c | 6c 79 20 68 69 74 20 69 |original|ly hit i|
|00000550| 73 20 73 74 6f 72 65 64 | 20 61 73 20 74 68 65 20 |s stored| as the |
|00000560| 63 6f 6e 74 72 6f 6c 27 | 73 20 72 65 66 65 72 65 |control'|s refere|
|00000570| 6e 63 65 0d 09 76 61 6c | 75 65 2e 0d 0d 09 54 68 |nce..val|ue....Th|
|00000580| 65 20 22 76 6f 69 64 22 | 20 68 61 64 20 62 65 74 |e "void"| had bet|
|00000590| 74 65 72 20 62 65 20 74 | 68 65 72 65 21 20 20 4f |ter be t|here! O|
|000005a0| 74 68 65 72 77 69 73 65 | 20 4c 69 67 68 74 73 70 |therwise| Lightsp|
|000005b0| 65 65 64 20 77 69 6c 6c | 20 74 72 65 61 74 0d 09 |eed will| treat..|
|000005c0| 69 74 20 61 73 20 61 6e | 20 69 6e 74 65 67 65 72 |it as an| integer|
|000005d0| 20 66 75 6e 63 74 69 6f | 6e 2c 20 6e 6f 74 20 61 | functio|n, not a|
|000005e0| 20 70 72 6f 63 65 64 75 | 72 65 2e 0d 2a 2f 0d 0d | procedu|re..*/..|
|000005f0| 70 61 73 63 61 6c 20 76 | 6f 69 64 20 54 72 61 63 |pascal v|oid Trac|
|00000600| 6b 53 63 72 6f 6c 6c 20 | 28 74 68 65 53 63 72 6f |kScroll |(theScro|
|00000610| 6c 6c 2c 20 70 61 72 74 | 43 6f 64 65 29 0d 43 6f |ll, part|Code).Co|
|00000620| 6e 74 72 6f 6c 48 61 6e | 64 6c 65 09 74 68 65 53 |ntrolHan|dle.theS|
|00000630| 63 72 6f 6c 6c 3b 0d 49 | 6e 74 65 67 65 72 09 09 |croll;.I|nteger..|
|00000640| 09 70 61 72 74 43 6f 64 | 65 3b 0d 7b 0d 49 6e 74 |.partCod|e;.{.Int|
|00000650| 65 67 65 72 09 09 09 6c | 44 65 6c 74 61 3b 0d 0d |eger...l|Delta;..|
|00000660| 09 69 66 20 28 70 61 72 | 74 43 6f 64 65 20 3d 3d |.if (par|tCode ==|
|00000670| 20 47 65 74 43 52 65 66 | 43 6f 6e 20 28 74 68 65 | GetCRef|Con (the|
|00000680| 53 63 72 6f 6c 6c 29 29 | 09 2f 2a 20 73 74 69 6c |Scroll))|./* stil|
|00000690| 6c 20 69 6e 20 73 61 6d | 65 20 70 61 72 74 3f 20 |l in sam|e part? |
|000006a0| 2a 2f 0d 09 7b 0d 09 09 | 73 77 69 74 63 68 20 28 |*/..{...|switch (|
|000006b0| 70 61 72 74 43 6f 64 65 | 29 0d 09 09 7b 0d 09 09 |partCode|)...{...|
|000006c0| 09 63 61 73 65 20 69 6e | 55 70 42 75 74 74 6f 6e |.case in|UpButton|
|000006d0| 3a 20 6c 44 65 6c 74 61 | 20 3d 20 2d 31 3b 20 62 |: lDelta| = -1; b|
|000006e0| 72 65 61 6b 3b 0d 09 09 | 09 63 61 73 65 20 69 6e |reak;...|.case in|
|000006f0| 44 6f 77 6e 42 75 74 74 | 6f 6e 3a 20 6c 44 65 6c |DownButt|on: lDel|
|00000700| 74 61 20 3d 20 31 3b 20 | 62 72 65 61 6b 3b 0d 09 |ta = 1; |break;..|
|00000710| 09 09 63 61 73 65 20 69 | 6e 50 61 67 65 55 70 3a |..case i|nPageUp:|
|00000720| 20 6c 44 65 6c 74 61 20 | 3d 20 2d 68 61 6c 66 50 | lDelta |= -halfP|
|00000730| 61 67 65 3b 20 62 72 65 | 61 6b 3b 0d 09 09 09 63 |age; bre|ak;....c|
|00000740| 61 73 65 20 69 6e 50 61 | 67 65 44 6f 77 6e 3a 20 |ase inPa|geDown: |
|00000750| 6c 44 65 6c 74 61 20 3d | 20 68 61 6c 66 50 61 67 |lDelta =| halfPag|
|00000760| 65 3b 20 62 72 65 61 6b | 3b 0d 09 09 7d 0d 09 09 |e; break|;...}...|
|00000770| 44 6f 53 63 72 6f 6c 6c | 20 28 6c 44 65 6c 74 61 |DoScroll| (lDelta|
|00000780| 29 3b 0d 09 7d 0d 7d 0d | 0d 0d 2f 2a 0d 09 48 61 |);..}.}.|../*..Ha|
|00000790| 6e 64 6c 65 20 68 69 74 | 73 20 69 6e 20 73 63 72 |ndle hit|s in scr|
|000007a0| 6f 6c 6c 20 62 61 72 0d | 2a 2f 0d 0d 73 74 61 74 |oll bar.|*/..stat|
|000007b0| 69 63 20 4d 6f 75 73 65 | 20 28 74 68 65 50 74 2c |ic Mouse| (thePt,|
|000007c0| 20 74 2c 20 6d 6f 64 73 | 29 0d 50 6f 69 6e 74 09 | t, mods|).Point.|
|000007d0| 74 68 65 50 74 3b 0d 4c | 6f 6e 67 69 6e 74 09 74 |thePt;.L|ongint.t|
|000007e0| 3b 0d 49 6e 74 65 67 65 | 72 09 6d 6f 64 73 3b 0d |;.Intege|r.mods;.|
|000007f0| 7b 0d 49 6e 74 65 67 65 | 72 09 74 68 65 50 61 72 |{.Intege|r.thePar|
|00000800| 74 3b 0d 0d 09 09 69 66 | 20 28 28 74 68 65 50 61 |t;....if| ((thePa|
|00000810| 72 74 20 3d 20 54 65 73 | 74 43 6f 6e 74 72 6f 6c |rt = Tes|tControl|
|00000820| 20 28 68 65 6c 70 53 63 | 72 6f 6c 6c 2c 20 74 68 | (helpSc|roll, th|
|00000830| 65 50 74 29 29 20 3d 3d | 20 69 6e 54 68 75 6d 62 |ePt)) ==| inThumb|
|00000840| 29 0d 09 09 7b 0d 09 09 | 09 28 76 6f 69 64 29 20 |)...{...|.(void) |
|00000850| 54 72 61 63 6b 43 6f 6e | 74 72 6f 6c 20 28 68 65 |TrackCon|trol (he|
|00000860| 6c 70 53 63 72 6f 6c 6c | 2c 20 74 68 65 50 74 2c |lpScroll|, thePt,|
|00000870| 20 6e 69 6c 29 3b 0d 09 | 09 09 44 6f 53 63 72 6f | nil);..|..DoScro|
|00000880| 6c 6c 20 28 47 65 74 43 | 74 6c 56 61 6c 75 65 20 |ll (GetC|tlValue |
|00000890| 28 68 65 6c 70 53 63 72 | 6f 6c 6c 29 20 2d 20 68 |(helpScr|oll) - h|
|000008a0| 65 6c 70 4c 69 6e 65 29 | 3b 0d 09 09 7d 0d 09 09 |elpLine)|;...}...|
|000008b0| 65 6c 73 65 20 69 66 20 | 28 74 68 65 50 61 72 74 |else if |(thePart|
|000008c0| 20 21 3d 20 30 29 0d 09 | 09 7b 0d 09 09 09 53 65 | != 0)..|.{....Se|
|000008d0| 74 43 52 65 66 43 6f 6e | 20 28 68 65 6c 70 53 63 |tCRefCon| (helpSc|
|000008e0| 72 6f 6c 6c 2c 20 28 4c | 6f 6e 67 69 6e 74 29 20 |roll, (L|ongint) |
|000008f0| 74 68 65 50 61 72 74 29 | 3b 0d 09 09 09 28 76 6f |thePart)|;....(vo|
|00000900| 69 64 29 20 54 72 61 63 | 6b 43 6f 6e 74 72 6f 6c |id) Trac|kControl|
|00000910| 20 28 68 65 6c 70 53 63 | 72 6f 6c 6c 2c 20 74 68 | (helpSc|roll, th|
|00000920| 65 50 74 2c 20 26 54 72 | 61 63 6b 53 63 72 6f 6c |ePt, &Tr|ackScrol|
|00000930| 6c 29 3b 0d 09 09 7d 0d | 7d 0d 0d 0d 2f 2a 0d 09 |l);...}.|}.../*..|
|00000940| 55 70 64 61 74 65 20 68 | 65 6c 70 20 77 69 6e 64 |Update h|elp wind|
|00000950| 6f 77 2e 20 20 54 68 65 | 20 75 70 64 61 74 65 20 |ow. The| update |
|00000960| 65 76 65 6e 74 20 6d 69 | 67 68 74 20 62 65 20 69 |event mi|ght be i|
|00000970| 6e 20 72 65 73 70 6f 6e | 73 65 20 74 6f 20 61 0d |n respon|se to a.|
|00000980| 09 77 69 6e 64 6f 77 20 | 72 65 73 69 7a 69 6e 67 |.window |resizing|
|00000990| 2e 20 20 49 66 20 73 6f | 2c 20 72 65 73 69 7a 65 |. If so|, resize|
|000009a0| 20 74 68 65 20 72 65 63 | 74 73 20 61 6e 64 20 72 | the rec|ts and r|
|000009b0| 65 63 61 6c 63 20 74 68 | 65 20 6c 69 6e 65 73 74 |ecalc th|e linest|
|000009c0| 61 72 74 73 0d 09 6f 66 | 20 74 68 65 20 74 65 78 |arts..of| the tex|
|000009d0| 74 2e 20 20 54 6f 20 72 | 65 73 69 7a 65 20 74 68 |t. To r|esize th|
|000009e0| 65 20 72 65 63 74 73 2c | 20 6f 6e 6c 79 20 74 68 |e rects,| only th|
|000009f0| 65 20 72 69 67 68 74 20 | 65 64 67 65 20 6f 66 20 |e right |edge of |
|00000a00| 74 68 65 0d 09 64 65 73 | 74 52 65 63 74 20 6e 65 |the..des|tRect ne|
|00000a10| 65 64 20 62 65 20 63 68 | 61 6e 67 65 64 20 28 74 |ed be ch|anged (t|
|00000a20| 68 65 20 62 6f 74 74 6f | 6d 20 69 73 20 6e 6f 74 |he botto|m is not|
|00000a30| 20 75 73 65 64 2c 20 61 | 6e 64 20 74 68 65 20 6c | used, a|nd the l|
|00000a40| 65 66 74 20 61 6e 64 0d | 09 74 6f 70 20 73 68 6f |eft and.|.top sho|
|00000a50| 75 6c 64 20 6e 6f 74 20 | 62 65 20 63 68 61 6e 67 |uld not |be chang|
|00000a60| 65 64 29 2e 20 54 68 65 | 20 76 69 65 77 52 65 63 |ed). The| viewRec|
|00000a70| 74 20 73 68 6f 75 6c 64 | 20 62 65 20 73 69 7a 65 |t should| be size|
|00000a80| 64 20 74 6f 20 74 68 65 | 0d 09 73 63 72 65 65 6e |d to the|..screen|
|00000a90| 2e 20 20 50 75 6c 6c 20 | 74 65 78 74 20 64 6f 77 |. Pull |text dow|
|00000aa0| 6e 20 69 66 20 6e 65 63 | 65 73 73 61 72 79 20 74 |n if nec|essary t|
|00000ab0| 6f 20 66 69 6c 6c 20 77 | 69 6e 64 6f 77 2e 0d 2a |o fill w|indow..*|
|00000ac0| 2f 0d 0d 73 74 61 74 69 | 63 20 55 70 64 61 74 65 |/..stati|c Update|
|00000ad0| 20 28 72 65 73 69 7a 65 | 64 29 0d 42 6f 6f 6c 65 | (resize|d).Boole|
|00000ae0| 61 6e 09 72 65 73 69 7a | 65 64 3b 0d 7b 0d 52 65 |an.resiz|ed;.{.Re|
|00000af0| 63 74 09 72 3b 0d 49 6e | 74 65 67 65 72 09 76 69 |ct.r;.In|teger.vi|
|00000b00| 73 4c 69 6e 65 73 3b 0d | 49 6e 74 65 67 65 72 09 |sLines;.|Integer.|
|00000b10| 6c 48 65 69 67 68 74 3b | 0d 49 6e 74 65 67 65 72 |lHeight;|.Integer|
|00000b20| 09 74 6f 70 4c 69 6e 65 | 73 3b 0d 49 6e 74 65 67 |.topLine|s;.Integ|
|00000b30| 65 72 09 6e 4c 69 6e 65 | 73 3b 0d 49 6e 74 65 67 |er.nLine|s;.Integ|
|00000b40| 65 72 09 73 63 72 6f 6c | 6c 4c 69 6e 65 73 3b 0d |er.scrol|lLines;.|
|00000b50| 0d 09 72 20 3d 20 68 65 | 6c 70 57 69 6e 64 2d 3e |..r = he|lpWind->|
|00000b60| 70 6f 72 74 52 65 63 74 | 3b 0d 09 45 72 61 73 65 |portRect|;..Erase|
|00000b70| 52 65 63 74 20 28 26 72 | 29 3b 0d 09 69 66 20 28 |Rect (&r|);..if (|
|00000b80| 72 65 73 69 7a 65 64 29 | 0d 09 7b 0d 09 09 72 2e |resized)|..{...r.|
|00000b90| 6c 65 66 74 20 2b 3d 20 | 34 3b 0d 09 09 72 2e 62 |left += |4;...r.b|
|00000ba0| 6f 74 74 6f 6d 20 2d 3d | 20 32 3b 0d 09 09 72 2e |ottom -=| 2;...r.|
|00000bb0| 74 6f 70 20 2b 3d 20 32 | 3b 0d 09 09 72 2e 72 69 |top += 2|;...r.ri|
|00000bc0| 67 68 74 20 2d 3d 20 31 | 39 3b 0d 09 09 28 2a 2a |ght -= 1|9;...(**|
|00000bd0| 74 65 48 65 6c 70 29 2e | 64 65 73 74 52 65 63 74 |teHelp).|destRect|
|00000be0| 2e 72 69 67 68 74 20 3d | 20 72 2e 72 69 67 68 74 |.right =| r.right|
|00000bf0| 3b 0d 09 09 28 2a 2a 74 | 65 48 65 6c 70 29 2e 76 |;...(**t|eHelp).v|
|00000c00| 69 65 77 52 65 63 74 20 | 3d 20 72 3b 0d 09 09 54 |iewRect |= r;...T|
|00000c10| 45 43 61 6c 54 65 78 74 | 20 28 74 65 48 65 6c 70 |ECalText| (teHelp|
|00000c20| 29 3b 0d 09 09 6c 48 65 | 69 67 68 74 20 3d 20 28 |);...lHe|ight = (|
|00000c30| 2a 2a 74 65 48 65 6c 70 | 29 2e 6c 69 6e 65 48 65 |**teHelp|).lineHe|
|00000c40| 69 67 68 74 3b 0d 09 09 | 6e 4c 69 6e 65 73 20 3d |ight;...|nLines =|
|00000c50| 20 28 2a 2a 74 65 48 65 | 6c 70 29 2e 6e 4c 69 6e | (**teHe|lp).nLin|
|00000c60| 65 73 3b 0d 09 09 76 69 | 73 4c 69 6e 65 73 20 3d |es;...vi|sLines =|
|00000c70| 20 28 72 2e 62 6f 74 74 | 6f 6d 20 2d 20 72 2e 74 | (r.bott|om - r.t|
|00000c80| 6f 70 29 20 2f 20 6c 48 | 65 69 67 68 74 3b 0d 09 |op) / lH|eight;..|
|00000c90| 09 68 61 6c 66 50 61 67 | 65 20 3d 20 76 69 73 4c |.halfPag|e = visL|
|00000ca0| 69 6e 65 73 20 2f 20 32 | 3b 0d 09 09 74 6f 70 4c |ines / 2|;...topL|
|00000cb0| 69 6e 65 73 20 3d 20 28 | 72 2e 74 6f 70 20 2d 20 |ines = (|r.top - |
|00000cc0| 28 2a 2a 74 65 48 65 6c | 70 29 2e 64 65 73 74 52 |(**teHel|p).destR|
|00000cd0| 65 63 74 2e 74 6f 70 29 | 20 2f 20 6c 48 65 69 67 |ect.top)| / lHeig|
|00000ce0| 68 74 3b 0d 09 09 73 63 | 72 6f 6c 6c 4c 69 6e 65 |ht;...sc|rollLine|
|00000cf0| 73 20 3d 20 76 69 73 4c | 69 6e 65 73 20 2d 20 28 |s = visL|ines - (|
|00000d00| 6e 4c 69 6e 65 73 20 2d | 20 74 6f 70 4c 69 6e 65 |nLines -| topLine|
|00000d10| 73 29 3b 0d 09 09 69 66 | 20 28 73 63 72 6f 6c 6c |s);...if| (scroll|
|00000d20| 4c 69 6e 65 73 20 3e 20 | 30 20 26 26 20 74 6f 70 |Lines > |0 && top|
|00000d30| 4c 69 6e 65 73 20 3e 20 | 30 29 0d 09 09 7b 0d 09 |Lines > |0)...{..|
|00000d40| 09 09 69 66 20 28 73 63 | 72 6f 6c 6c 4c 69 6e 65 |..if (sc|rollLine|
|00000d50| 73 20 3e 20 74 6f 70 4c | 69 6e 65 73 29 0d 09 09 |s > topL|ines)...|
|00000d60| 09 09 73 63 72 6f 6c 6c | 4c 69 6e 65 73 20 3d 20 |..scroll|Lines = |
|00000d70| 74 6f 70 4c 69 6e 65 73 | 3b 0d 09 09 09 54 45 53 |topLines|;....TES|
|00000d80| 63 72 6f 6c 6c 20 28 30 | 2c 20 73 63 72 6f 6c 6c |croll (0|, scroll|
|00000d90| 4c 69 6e 65 73 20 2a 20 | 6c 48 65 69 67 68 74 2c |Lines * |lHeight,|
|00000da0| 20 74 65 48 65 6c 70 29 | 3b 0d 09 09 7d 0d 09 09 | teHelp)|;...}...|
|00000db0| 73 63 72 6f 6c 6c 4c 69 | 6e 65 73 20 3d 20 6e 4c |scrollLi|nes = nL|
|00000dc0| 69 6e 65 73 20 2d 20 76 | 69 73 4c 69 6e 65 73 3b |ines - v|isLines;|
|00000dd0| 0d 09 09 68 65 6c 70 4c | 69 6e 65 20 3d 20 28 72 |...helpL|ine = (r|
|00000de0| 2e 74 6f 70 20 2d 20 28 | 2a 2a 74 65 48 65 6c 70 |.top - (|**teHelp|
|00000df0| 29 2e 64 65 73 74 52 65 | 63 74 2e 74 6f 70 29 20 |).destRe|ct.top) |
|00000e00| 2f 20 6c 48 65 69 67 68 | 74 3b 0d 2f 2a 0d 09 6d |/ lHeigh|t;./*..m|
|00000e10| 6f 76 65 20 61 6e 64 20 | 72 65 73 69 7a 65 20 74 |ove and |resize t|
|00000e20| 68 65 20 73 63 72 6f 6c | 6c 20 62 61 72 20 61 73 |he scrol|l bar as|
|00000e30| 20 77 65 6c 6c 2e 20 20 | 54 68 65 20 56 61 6c 69 | well. |The Vali|
|00000e40| 64 52 65 63 74 20 63 61 | 6c 6c 20 69 73 20 64 6f |dRect ca|ll is do|
|00000e50| 6e 65 0d 09 62 65 63 61 | 75 73 65 20 74 68 65 20 |ne..beca|use the |
|00000e60| 48 69 64 65 43 6f 6e 74 | 72 6f 6c 20 61 64 64 73 |HideCont|rol adds|
|00000e70| 20 74 68 65 20 63 6f 6e | 74 72 6f 6c 20 62 6f 75 | the con|trol bou|
|00000e80| 6e 64 73 20 62 6f 78 20 | 74 6f 20 74 68 65 20 75 |nds box |to the u|
|00000e90| 70 64 61 74 65 0d 09 72 | 65 67 69 6f 6e 20 2d 20 |pdate..r|egion - |
|00000ea0| 77 68 69 63 68 20 77 6f | 75 6c 64 20 67 65 6e 65 |which wo|uld gene|
|00000eb0| 72 61 74 65 20 61 6e 6f | 74 68 65 72 20 75 70 64 |rate ano|ther upd|
|00000ec0| 61 74 65 20 65 76 65 6e | 74 21 20 20 53 69 6e 63 |ate even|t! Sinc|
|00000ed0| 65 20 65 76 65 72 79 74 | 68 69 6e 67 0d 09 67 65 |e everyt|hing..ge|
|00000ee0| 74 73 20 72 65 64 72 61 | 77 6e 20 62 65 6c 6f 77 |ts redra|wn below|
|00000ef0| 2c 20 74 68 65 20 56 61 | 6c 69 64 52 65 63 74 20 |, the Va|lidRect |
|00000f00| 69 73 20 75 73 65 64 20 | 74 6f 20 63 61 6e 63 65 |is used |to cance|
|00000f10| 6c 20 74 68 65 20 75 70 | 64 61 74 65 2e 0d 2a 2f |l the up|date..*/|
|00000f20| 0d 0d 09 09 48 69 64 65 | 43 6f 6e 74 72 6f 6c 20 |....Hide|Control |
|00000f30| 28 68 65 6c 70 53 63 72 | 6f 6c 6c 29 3b 0d 09 09 |(helpScr|oll);...|
|00000f40| 72 20 3d 20 68 65 6c 70 | 57 69 6e 64 2d 3e 70 6f |r = help|Wind->po|
|00000f50| 72 74 52 65 63 74 3b 0d | 09 09 72 2e 6c 65 66 74 |rtRect;.|..r.left|
|00000f60| 20 3d 20 72 2e 72 69 67 | 68 74 20 2d 20 31 35 3b | = r.rig|ht - 15;|
|00000f70| 0d 09 09 72 2e 62 6f 74 | 74 6f 6d 20 2d 3d 20 31 |...r.bot|tom -= 1|
|00000f80| 34 3b 0d 09 09 2d 2d 72 | 2e 74 6f 70 3b 0d 09 09 |4;...--r|.top;...|
|00000f90| 2b 2b 72 2e 72 69 67 68 | 74 3b 0d 09 09 53 69 7a |++r.righ|t;...Siz|
|00000fa0| 65 43 6f 6e 74 72 6f 6c | 20 28 68 65 6c 70 53 63 |eControl| (helpSc|
|00000fb0| 72 6f 6c 6c 2c 20 72 2e | 72 69 67 68 74 20 2d 20 |roll, r.|right - |
|00000fc0| 72 2e 6c 65 66 74 2c 20 | 72 2e 62 6f 74 74 6f 6d |r.left, |r.bottom|
|00000fd0| 20 2d 20 72 2e 74 6f 70 | 29 3b 0d 09 09 4d 6f 76 | - r.top|);...Mov|
|00000fe0| 65 43 6f 6e 74 72 6f 6c | 20 28 68 65 6c 70 53 63 |eControl| (helpSc|
|00000ff0| 72 6f 6c 6c 2c 20 72 2e | 6c 65 66 74 2c 20 72 2e |roll, r.|left, r.|
|00001000| 74 6f 70 29 3b 0d 09 09 | 53 65 74 43 74 6c 4d 61 |top);...|SetCtlMa|
|00001010| 78 20 28 68 65 6c 70 53 | 63 72 6f 6c 6c 2c 20 6e |x (helpS|croll, n|
|00001020| 4c 69 6e 65 73 20 2d 20 | 76 69 73 4c 69 6e 65 73 |Lines - |visLines|
|00001030| 20 3c 20 30 20 3f 20 30 | 20 3a 20 6e 4c 69 6e 65 | < 0 ? 0| : nLine|
|00001040| 73 20 2d 20 76 69 73 4c | 69 6e 65 73 29 3b 0d 09 |s - visL|ines);..|
|00001050| 09 53 65 74 43 74 6c 56 | 61 6c 75 65 20 28 68 65 |.SetCtlV|alue (he|
|00001060| 6c 70 53 63 72 6f 6c 6c | 2c 20 68 65 6c 70 4c 69 |lpScroll|, helpLi|
|00001070| 6e 65 29 3b 0d 09 09 2f | 2a 69 66 20 28 73 63 72 |ne);.../|*if (scr|
|00001080| 6f 6c 6c 4c 69 6e 65 73 | 20 3c 3d 20 30 29 0d 09 |ollLines| <= 0)..|
|00001090| 09 09 48 69 6c 69 74 65 | 43 6f 6e 74 72 6f 6c 20 |..Hilite|Control |
|000010a0| 28 68 65 6c 70 53 63 72 | 6f 6c 6c 2c 20 28 73 63 |(helpScr|oll, (sc|
|000010b0| 72 6f 6c 6c 4c 69 6e 65 | 73 20 3e 20 30 20 3f 20 |rollLine|s > 0 ? |
|000010c0| 30 20 3a 20 32 35 35 29 | 29 3b 2a 2f 0d 09 09 53 |0 : 255)|);*/...S|
|000010d0| 68 6f 77 43 6f 6e 74 72 | 6f 6c 20 28 68 65 6c 70 |howContr|ol (help|
|000010e0| 53 63 72 6f 6c 6c 29 3b | 0d 09 09 2f 2a 69 66 20 |Scroll);|.../*if |
|000010f0| 28 47 65 74 43 74 6c 56 | 61 6c 75 65 20 28 68 65 |(GetCtlV|alue (he|
|00001100| 6c 70 53 63 72 6f 6c 6c | 29 20 3e 20 73 63 72 6f |lpScroll|) > scro|
|00001110| 6c 6c 4c 69 6e 65 73 29 | 0d 09 09 09 44 6f 53 63 |llLines)|....DoSc|
|00001120| 72 6f 6c 6c 20 28 47 65 | 74 43 74 6c 56 61 6c 75 |roll (Ge|tCtlValu|
|00001130| 65 20 28 68 65 6c 70 53 | 63 72 6f 6c 6c 29 20 2d |e (helpS|croll) -|
|00001140| 20 73 63 72 6f 6c 6c 4c | 69 6e 65 73 29 3b 2a 2f | scrollL|ines);*/|
|00001150| 0d 09 7d 0d 09 44 72 61 | 77 47 72 6f 77 42 6f 78 |..}..Dra|wGrowBox|
|00001160| 20 28 68 65 6c 70 57 69 | 6e 64 29 3b 0d 09 44 72 | (helpWi|nd);..Dr|
|00001170| 61 77 43 6f 6e 74 72 6f | 6c 73 20 28 68 65 6c 70 |awContro|ls (help|
|00001180| 57 69 6e 64 29 3b 09 2f | 2a 20 72 65 64 72 61 77 |Wind);./|* redraw|
|00001190| 20 73 63 72 6f 6c 6c 20 | 62 61 72 20 2a 2f 0d 09 | scroll |bar */..|
|000011a0| 72 20 3d 20 28 2a 2a 74 | 65 48 65 6c 70 29 2e 76 |r = (**t|eHelp).v|
|000011b0| 69 65 77 52 65 63 74 3b | 0d 09 54 45 55 70 64 61 |iewRect;|..TEUpda|
|000011c0| 74 65 20 28 26 72 2c 20 | 74 65 48 65 6c 70 29 3b |te (&r, |teHelp);|
|000011d0| 09 09 2f 2a 20 72 65 64 | 72 61 77 20 74 65 78 74 |../* red|raw text|
|000011e0| 20 64 69 73 70 6c 61 79 | 20 2a 2f 0d 09 56 61 6c | display| */..Val|
|000011f0| 69 64 52 65 63 74 20 28 | 26 68 65 6c 70 57 69 6e |idRect (|&helpWin|
|00001200| 64 2d 3e 70 6f 72 74 52 | 65 63 74 29 3b 0d 7d 0d |d->portR|ect);.}.|
|00001210| 0d 0d 2f 2a 0d 09 57 68 | 65 6e 20 74 68 65 20 77 |../*..Wh|en the w|
|00001220| 69 6e 64 6f 77 20 63 6f | 6d 65 73 20 61 63 74 69 |indow co|mes acti|
|00001230| 76 65 2c 20 64 69 73 61 | 62 6c 65 20 74 68 65 20 |ve, disa|ble the |
|00001240| 45 64 69 74 20 6d 65 6e | 75 20 61 6e 64 20 68 69 |Edit men|u and hi|
|00001250| 67 68 6c 69 67 68 74 0d | 09 74 68 65 20 73 63 72 |ghlight.|.the scr|
|00001260| 6f 6c 6c 20 62 61 72 20 | 69 66 20 74 68 65 72 65 |oll bar |if there|
|00001270| 20 61 72 65 20 61 6e 79 | 20 6c 69 6e 65 73 20 6e | are any| lines n|
|00001280| 6f 74 20 76 69 73 69 62 | 6c 65 20 69 6e 20 74 68 |ot visib|le in th|
|00001290| 65 20 63 6f 6e 74 65 6e | 74 0d 09 72 65 67 69 6f |e conten|t..regio|
|000012a0| 6e 2e 20 20 57 68 65 6e | 20 74 68 65 20 77 69 6e |n. When| the win|
|000012b0| 64 6f 77 20 69 73 20 64 | 65 61 63 74 69 76 61 74 |dow is d|eactivat|
|000012c0| 65 64 2c 20 65 6e 61 62 | 6c 65 20 74 68 65 20 45 |ed, enab|le the E|
|000012d0| 64 69 74 20 6d 65 6e 75 | 20 61 6e 64 0d 09 75 6e |dit menu| and..un|
|000012e0| 2d 68 69 67 68 6c 69 67 | 68 74 20 74 68 65 20 73 |-highlig|ht the s|
|000012f0| 63 72 6f 6c 6c 20 62 61 | 72 2e 0d 2a 2f 0d 0d 73 |croll ba|r..*/..s|
|00001300| 74 61 74 69 63 20 41 63 | 74 69 76 61 74 65 20 28 |tatic Ac|tivate (|
|00001310| 61 63 74 69 76 65 29 0d | 42 6f 6f 6c 65 61 6e 09 |active).|Boolean.|
|00001320| 61 63 74 69 76 65 3b 0d | 7b 0d 09 44 72 61 77 47 |active;.|{..DrawG|
|00001330| 72 6f 77 42 6f 78 20 28 | 68 65 6c 70 57 69 6e 64 |rowBox (|helpWind|
|00001340| 29 3b 0d 09 69 66 20 28 | 61 63 74 69 76 65 29 0d |);..if (|active).|
|00001350| 09 7b 0d 09 09 44 69 73 | 61 62 6c 65 49 74 65 6d |.{...Dis|ableItem|
|00001360| 20 28 65 64 69 74 4d 65 | 6e 75 2c 20 30 29 3b 0d | (editMe|nu, 0);.|
|00001370| 09 09 48 69 6c 69 74 65 | 43 6f 6e 74 72 6f 6c 20 |..Hilite|Control |
|00001380| 28 68 65 6c 70 53 63 72 | 6f 6c 6c 2c 20 28 47 65 |(helpScr|oll, (Ge|
|00001390| 74 43 74 6c 4d 61 78 20 | 28 68 65 6c 70 53 63 72 |tCtlMax |(helpScr|
|000013a0| 6f 6c 6c 29 20 3e 20 30 | 20 3f 20 30 20 3a 20 32 |oll) > 0| ? 0 : 2|
|000013b0| 35 35 29 29 3b 0d 09 7d | 0d 09 65 6c 73 65 0d 09 |55));..}|..else..|
|000013c0| 7b 0d 09 09 45 6e 61 62 | 6c 65 49 74 65 6d 20 28 |{...Enab|leItem (|
|000013d0| 65 64 69 74 4d 65 6e 75 | 2c 20 30 29 3b 0d 09 09 |editMenu|, 0);...|
|000013e0| 48 69 6c 69 74 65 43 6f | 6e 74 72 6f 6c 20 28 68 |HiliteCo|ntrol (h|
|000013f0| 65 6c 70 53 63 72 6f 6c | 6c 2c 20 32 35 35 29 3b |elpScrol|l, 255);|
|00001400| 0d 09 7d 0d 09 44 72 61 | 77 4d 65 6e 75 42 61 72 |..}..Dra|wMenuBar|
|00001410| 20 28 29 3b 0d 7d 0d 0d | 0d 48 65 6c 70 57 69 6e | ();.}..|.HelpWin|
|00001420| 64 49 6e 69 74 20 28 29 | 0d 7b 0d 52 65 63 74 09 |dInit ()|.{.Rect.|
|00001430| 72 3b 0d 48 61 6e 64 6c | 65 09 74 65 78 74 48 61 |r;.Handl|e.textHa|
|00001440| 6e 64 6c 65 3b 0d 49 6e | 74 65 67 65 72 09 76 69 |ndle;.In|teger.vi|
|00001450| 73 4c 69 6e 65 73 3b 0d | 49 6e 74 65 67 65 72 09 |sLines;.|Integer.|
|00001460| 73 63 72 6f 6c 6c 4c 69 | 6e 65 73 3b 0d 0d 09 68 |scrollLi|nes;...h|
|00001470| 65 6c 70 57 69 6e 64 20 | 3d 20 47 65 74 4e 65 77 |elpWind |= GetNew|
|00001480| 57 69 6e 64 6f 77 20 28 | 68 65 6c 70 57 69 6e 64 |Window (|helpWind|
|00001490| 52 65 73 2c 20 6e 69 6c | 2c 20 2d 31 4c 29 3b 0d |Res, nil|, -1L);.|
|000014a0| 09 28 76 6f 69 64 29 20 | 53 6b 65 6c 57 69 6e 64 |.(void) |SkelWind|
|000014b0| 6f 77 20 28 68 65 6c 70 | 57 69 6e 64 2c 20 4d 6f |ow (help|Wind, Mo|
|000014c0| 75 73 65 2c 20 6e 69 6c | 2c 20 55 70 64 61 74 65 |use, nil|, Update|
|000014d0| 2c 0d 09 09 09 09 41 63 | 74 69 76 61 74 65 2c 20 |,.....Ac|tivate, |
|000014e0| 6e 69 6c 2c 20 48 61 6c | 74 2c 20 6e 69 6c 2c 20 |nil, Hal|t, nil, |
|000014f0| 74 72 75 65 29 3b 0d 0d | 09 54 65 78 74 46 6f 6e |true);..|.TextFon|
|00001500| 74 20 28 30 29 3b 0d 09 | 54 65 78 74 53 69 7a 65 |t (0);..|TextSize|
|00001510| 20 28 30 29 3b 0d 0d 09 | 72 20 3d 20 68 65 6c 70 | (0);...|r = help|
|00001520| 57 69 6e 64 2d 3e 70 6f | 72 74 52 65 63 74 3b 0d |Wind->po|rtRect;.|
|00001530| 09 72 2e 6c 65 66 74 20 | 2b 3d 20 34 3b 0d 09 72 |.r.left |+= 4;..r|
|00001540| 2e 62 6f 74 74 6f 6d 20 | 2d 3d 20 32 3b 0d 09 72 |.bottom |-= 2;..r|
|00001550| 2e 74 6f 70 20 2b 3d 20 | 32 3b 0d 09 72 2e 72 69 |.top += |2;..r.ri|
|00001560| 67 68 74 20 2d 3d 20 31 | 39 3b 0d 09 74 65 48 65 |ght -= 1|9;..teHe|
|00001570| 6c 70 20 3d 20 54 45 4e | 65 77 20 28 26 72 2c 20 |lp = TEN|ew (&r, |
|00001580| 26 72 29 3b 0d 09 74 65 | 78 74 48 61 6e 64 6c 65 |&r);..te|xtHandle|
|00001590| 20 3d 20 47 65 74 52 65 | 73 6f 75 72 63 65 20 28 | = GetRe|source (|
|000015a0| 27 54 45 58 54 27 2c 20 | 68 65 6c 70 54 65 78 74 |'TEXT', |helpText|
|000015b0| 52 65 73 29 3b 09 2f 2a | 20 72 65 61 64 20 68 65 |Res);./*| read he|
|000015c0| 6c 70 20 74 65 78 74 20 | 2a 2f 0d 09 48 4c 6f 63 |lp text |*/..HLoc|
|000015d0| 6b 20 28 74 65 78 74 48 | 61 6e 64 6c 65 29 3b 09 |k (textH|andle);.|
|000015e0| 09 2f 2a 20 6c 6f 63 6b | 20 69 74 20 61 6e 64 20 |./* lock| it and |
|000015f0| 69 6e 73 65 72 74 20 69 | 6e 74 6f 20 54 45 52 65 |insert i|nto TERe|
|00001600| 63 20 2a 2f 0d 09 54 45 | 49 6e 73 65 72 74 20 28 |c */..TE|Insert (|
|00001610| 2a 74 65 78 74 48 61 6e | 64 6c 65 2c 20 47 65 74 |*textHan|dle, Get|
|00001620| 48 61 6e 64 6c 65 53 69 | 7a 65 20 28 74 65 78 74 |HandleSi|ze (text|
|00001630| 48 61 6e 64 6c 65 29 2c | 20 74 65 48 65 6c 70 29 |Handle),| teHelp)|
|00001640| 3b 0d 09 48 55 6e 6c 6f | 63 6b 20 28 74 65 78 74 |;..HUnlo|ck (text|
|00001650| 48 61 6e 64 6c 65 29 3b | 0d 09 52 65 6c 65 61 73 |Handle);|..Releas|
|00001660| 65 52 65 73 6f 75 72 63 | 65 20 28 74 65 78 74 48 |eResourc|e (textH|
|00001670| 61 6e 64 6c 65 29 3b 09 | 2f 2a 20 64 6f 6e 65 20 |andle);.|/* done |
|00001680| 77 69 74 68 20 69 74 2c | 20 73 6f 20 67 6f 6f 64 |with it,| so good|
|00001690| 62 79 65 20 2a 2f 0d 2f | 2a 0d 09 4e 6f 77 20 66 |bye */./|*..Now f|
|000016a0| 69 67 75 72 65 20 6f 75 | 74 20 68 6f 77 20 6d 61 |igure ou|t how ma|
|000016b0| 6e 79 20 6c 69 6e 65 73 | 20 77 69 6c 6c 20 66 69 |ny lines| will fi|
|000016c0| 74 20 69 6e 20 74 68 65 | 20 77 69 6e 64 6f 77 20 |t in the| window |
|000016d0| 61 6e 64 20 68 6f 77 20 | 6d 61 6e 79 0d 09 77 69 |and how |many..wi|
|000016e0| 6c 6c 20 6e 6f 74 2e 20 | 20 44 65 74 65 72 6d 69 |ll not. | Determi|
|000016f0| 6e 65 20 74 68 65 20 6e | 75 6d 62 65 72 20 6f 66 |ne the n|umber of|
|00001700| 20 6c 69 6e 65 73 20 69 | 6e 20 68 61 6c 66 20 61 | lines i|n half a|
|00001710| 20 77 69 6e 64 6f 77 20 | 66 6f 72 20 75 73 65 0d | window |for use.|
|00001720| 09 69 6e 20 74 72 61 63 | 6b 69 6e 67 20 63 6c 69 |.in trac|king cli|
|00001730| 63 6b 73 20 69 6e 20 74 | 68 65 20 70 61 67 65 20 |cks in t|he page |
|00001740| 75 70 20 61 6e 64 20 70 | 61 67 65 20 64 6f 77 6e |up and p|age down|
|00001750| 20 72 65 67 69 6f 6e 73 | 20 6f 66 20 74 68 65 0d | regions| of the.|
|00001760| 09 73 63 72 6f 6c 6c 20 | 62 61 72 2e 20 20 54 68 |.scroll |bar. Th|
|00001770| 65 6e 20 63 72 65 61 74 | 65 20 74 68 65 20 73 63 |en creat|e the sc|
|00001780| 72 6f 6c 6c 20 62 61 72 | 20 2e 20 20 4d 61 6b 65 |roll bar| . Make|
|00001790| 20 73 75 72 65 20 74 68 | 65 20 62 6f 72 64 65 72 | sure th|e border|
|000017a0| 73 0d 09 6f 76 65 72 6c | 61 70 20 74 68 65 20 77 |s..overl|ap the w|
|000017b0| 69 6e 64 6f 77 20 66 72 | 61 6d 65 20 61 6e 64 20 |indow fr|ame and |
|000017c0| 74 68 65 20 66 72 61 6d | 65 20 6f 66 20 74 68 65 |the fram|e of the|
|000017d0| 20 67 72 6f 77 20 62 6f | 78 2e 0d 2a 2f 0d 09 76 | grow bo|x..*/..v|
|000017e0| 69 73 4c 69 6e 65 73 20 | 3d 20 28 72 2e 62 6f 74 |isLines |= (r.bot|
|000017f0| 74 6f 6d 20 2d 20 72 2e | 74 6f 70 29 20 2f 20 28 |tom - r.|top) / (|
|00001800| 2a 2a 74 65 48 65 6c 70 | 29 2e 6c 69 6e 65 48 65 |**teHelp|).lineHe|
|00001810| 69 67 68 74 3b 0d 09 73 | 63 72 6f 6c 6c 4c 69 6e |ight;..s|crollLin|
|00001820| 65 73 20 3d 20 28 2a 2a | 74 65 48 65 6c 70 29 2e |es = (**|teHelp).|
|00001830| 6e 4c 69 6e 65 73 20 2d | 20 76 69 73 4c 69 6e 65 |nLines -| visLine|
|00001840| 73 3b 0d 09 68 61 6c 66 | 50 61 67 65 20 3d 20 76 |s;..half|Page = v|
|00001850| 69 73 4c 69 6e 65 73 20 | 2f 20 32 3b 0d 09 68 65 |isLines |/ 2;..he|
|00001860| 6c 70 4c 69 6e 65 20 3d | 20 30 3b 0d 09 72 20 3d |lpLine =| 0;..r =|
|00001870| 20 68 65 6c 70 57 69 6e | 64 2d 3e 70 6f 72 74 52 | helpWin|d->portR|
|00001880| 65 63 74 3b 0d 09 72 2e | 6c 65 66 74 20 3d 20 72 |ect;..r.|left = r|
|00001890| 2e 72 69 67 68 74 20 2d | 20 31 35 3b 0d 09 72 2e |.right -| 15;..r.|
|000018a0| 62 6f 74 74 6f 6d 20 2d | 3d 20 31 34 3b 0d 09 2d |bottom -|= 14;..-|
|000018b0| 2d 72 2e 74 6f 70 3b 0d | 09 2b 2b 72 2e 72 69 67 |-r.top;.|.++r.rig|
|000018c0| 68 74 3b 0d 2f 2a 0d 09 | 42 75 69 6c 64 20 74 68 |ht;./*..|Build th|
|000018d0| 65 20 73 63 72 6f 6c 6c | 20 62 61 72 2e 20 20 44 |e scroll| bar. D|
|000018e0| 6f 6e 27 74 20 6e 65 65 | 64 20 74 6f 20 62 6f 74 |on't nee|d to bot|
|000018f0| 68 65 72 20 74 65 73 74 | 69 6e 67 20 77 68 65 74 |her test|ing whet|
|00001900| 68 65 72 20 74 6f 0d 09 | 68 69 67 68 6c 69 67 68 |her to..|highligh|
|00001910| 74 20 69 74 20 6f 72 20 | 6e 6f 74 2c 20 73 69 6e |t it or |not, sin|
|00001920| 63 65 20 74 68 61 74 20 | 77 69 6c 6c 20 62 65 20 |ce that |will be |
|00001930| 64 6f 6e 65 20 69 6e 20 | 72 65 73 70 6f 6e 73 65 |done in |response|
|00001940| 20 74 6f 20 74 68 65 0d | 09 61 63 74 69 76 61 74 | to the.|.activat|
|00001950| 65 20 65 76 65 6e 74 2e | 0d 2a 2f 0d 09 68 65 6c |e event.|.*/..hel|
|00001960| 70 53 63 72 6f 6c 6c 20 | 3d 20 4e 65 77 43 6f 6e |pScroll |= NewCon|
|00001970| 74 72 6f 6c 20 28 68 65 | 6c 70 57 69 6e 64 2c 20 |trol (he|lpWind, |
|00001980| 26 72 2c 20 22 5c 70 22 | 2c 20 74 72 75 65 2c 0d |&r, "\p"|, true,.|
|00001990| 09 09 09 09 09 68 65 6c | 70 4c 69 6e 65 2c 20 30 |.....hel|pLine, 0|
|000019a0| 2c 20 73 63 72 6f 6c 6c | 4c 69 6e 65 73 2c 20 73 |, scroll|Lines, s|
|000019b0| 63 72 6f 6c 6c 42 61 72 | 50 72 6f 63 2c 20 30 4c |crollBar|Proc, 0L|
|000019c0| 29 3b 0d 0d 2f 2a 0d 09 | 47 65 74 4e 65 77 57 69 |);../*..|GetNewWi|
|000019d0| 6e 64 6f 77 20 67 65 6e | 65 72 61 74 65 73 20 61 |ndow gen|erates a|
|000019e0| 6e 20 75 70 64 61 74 65 | 20 65 76 65 6e 74 20 66 |n update| event f|
|000019f0| 6f 72 20 65 6e 74 69 72 | 65 20 70 6f 72 74 52 65 |or entir|e portRe|
|00001a00| 63 74 2e 0d 09 43 61 6e | 63 65 6c 20 69 74 2c 20 |ct...Can|cel it, |
|00001a10| 73 69 6e 63 65 20 74 68 | 65 20 65 76 65 72 79 74 |since th|e everyt|
|00001a20| 68 69 6e 67 20 68 61 73 | 20 62 65 65 6e 20 64 72 |hing has| been dr|
|00001a30| 61 77 6e 20 61 6c 72 65 | 61 64 79 2c 0d 09 65 78 |awn alre|ady,..ex|
|00001a40| 63 65 70 74 20 66 6f 72 | 20 74 68 65 20 67 72 6f |cept for| the gro|
|00001a50| 77 20 62 6f 78 20 28 77 | 68 69 63 68 20 77 69 6c |w box (w|hich wil|
|00001a60| 6c 20 62 65 20 64 72 61 | 77 6e 20 69 6e 20 72 65 |l be dra|wn in re|
|00001a70| 73 70 6f 6e 73 65 0d 09 | 74 6f 20 74 68 65 20 61 |sponse..|to the a|
|00001a80| 63 74 69 76 61 74 65 20 | 65 76 65 6e 74 29 2e 0d |ctivate |event)..|
|00001a90| 2a 2f 0d 09 56 61 6c 69 | 64 52 65 63 74 20 28 26 |*/..Vali|dRect (&|
|00001aa0| 68 65 6c 70 57 69 6e 64 | 2d 3e 70 6f 72 74 52 65 |helpWind|->portRe|
|00001ab0| 63 74 29 3b 0d 7d 0d 00 | 00 00 00 00 00 00 00 00 |ct);.}..|........|
|00001ac0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ad0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001af0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+