home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1983-03-29 | 9.6 KB | [TEXT/CWIE] |
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
|
---|
1%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Tue Mar 29 11:44:25 1983, modified Tue Mar 29 11:44:25 1983, creator 'CWIE', type ASCII, 9176 bytes "HelpBarUtils.c" , at 0x2458 410 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| dearkID
| deark: macbinary
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [CWIE] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0e 48 65 6c 70 42 61 | 72 55 74 69 6c 73 2e 63 |..HelpBa|rUtils.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 43 57 49 | 45 01 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 23 d8 00 | 00 01 9a 95 0c e0 69 95 |.....#..|......i.|
|00000060| 0c e0 69 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..i.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 82 8f 00 00 |........|........|
|00000080| 2f 2f 09 48 65 6c 70 42 | 61 72 55 74 69 6c 73 0d |//.HelpB|arUtils.|
|00000090| 2f 2f 09 a9 31 39 39 36 | 20 53 74 75 61 72 74 20 |//..1996| Stuart |
|000000a0| 53 6e 61 64 64 6f 6e 0d | 2f 2f 0d 0d 23 69 6e 63 |Snaddon.|//..#inc|
|000000b0| 6c 75 64 65 20 3c 51 44 | 4f 66 66 73 63 72 65 65 |lude <QD|Offscree|
|000000c0| 6e 2e 68 3e 0d 23 69 6e | 63 6c 75 64 65 20 22 48 |n.h>.#in|clude "H|
|000000d0| 65 6c 70 42 61 72 55 74 | 69 6c 73 2e 68 22 0d 23 |elpBarUt|ils.h".#|
|000000e0| 69 6e 63 6c 75 64 65 20 | 22 4d 69 73 63 55 74 69 |include |"MiscUti|
|000000f0| 6c 73 2e 68 22 0d 0d 74 | 79 70 65 64 65 66 20 73 |ls.h"..t|ypedef s|
|00000100| 74 72 75 63 74 20 7b 0d | 09 52 47 42 43 6f 6c 6f |truct {.|.RGBColo|
|00000110| 72 09 6c 69 67 68 74 47 | 72 61 79 2c 67 72 61 79 |r.lightG|ray,gray|
|00000120| 2c 64 61 72 6b 47 72 61 | 79 2c 68 69 6c 69 74 65 |,darkGra|y,hilite|
|00000130| 3b 0d 09 73 68 6f 72 74 | 09 69 73 43 61 70 61 62 |;..short|.isCapab|
|00000140| 6c 65 3b 0d 09 7d 20 48 | 65 6c 70 43 6f 6c 6f 72 |le;..} H|elpColor|
|00000150| 73 3b 0d 09 0d 74 79 70 | 65 64 65 66 20 73 74 72 |s;...typ|edef str|
|00000160| 75 63 74 20 68 62 20 7b | 0d 09 53 74 72 32 35 35 |uct hb {|..Str255|
|00000170| 09 64 69 73 70 6c 61 79 | 3b 0d 09 48 42 53 74 79 |.display|;..HBSty|
|00000180| 6c 65 09 73 74 79 6c 65 | 3b 0d 09 73 68 6f 72 74 |le.style|;..short|
|00000190| 09 6f 66 66 73 65 74 3b | 0d 09 57 69 6e 64 6f 77 |.offset;|..Window|
|000001a0| 50 74 72 09 77 69 6e 64 | 6f 77 3b 0d 09 63 68 61 |Ptr.wind|ow;..cha|
|000001b0| 72 09 09 69 73 56 69 73 | 69 62 6c 65 3b 0d 09 73 |r..isVis|ible;..s|
|000001c0| 74 72 75 63 74 20 68 62 | 09 2a 6e 65 78 74 3b 0d |truct hb|.*next;.|
|000001d0| 09 7d 20 48 42 2c 20 2a | 48 42 50 74 72 3b 0d 09 |.} HB, *|HBPtr;..|
|000001e0| 0d 74 79 70 65 64 65 66 | 20 73 74 72 75 63 74 20 |.typedef| struct |
|000001f0| 7b 0d 09 48 42 50 74 72 | 09 68 65 61 64 3b 0d 09 |{..HBPtr|.head;..|
|00000200| 47 72 61 66 50 74 72 09 | 73 61 76 65 50 6f 72 74 |GrafPtr.|savePort|
|00000210| 3b 0d 09 50 65 6e 53 74 | 61 74 65 09 73 61 76 65 |;..PenSt|ate.save|
|00000220| 50 65 6e 3b 0d 09 48 42 | 53 74 79 6c 65 09 73 61 |Pen;..HB|Style.sa|
|00000230| 76 65 53 74 79 6c 65 3b | 0d 09 52 47 42 43 6f 6c |veStyle;|..RGBCol|
|00000240| 6f 72 09 73 61 76 65 46 | 6f 72 65 43 6f 6c 6f 72 |or.saveF|oreColor|
|00000250| 2c 73 61 76 65 42 61 63 | 6b 43 6f 6c 6f 72 3b 0d |,saveBac|kColor;.|
|00000260| 09 73 68 6f 72 74 09 73 | 61 76 65 4f 72 69 67 69 |.short.s|aveOrigi|
|00000270| 6e 3b 0d 09 48 65 6c 70 | 43 6f 6c 6f 72 73 09 63 |n;..Help|Colors.c|
|00000280| 6f 6c 6f 72 3b 0d 09 46 | 6f 6e 74 49 6e 66 6f 09 |olor;..F|ontInfo.|
|00000290| 74 65 78 74 49 6e 66 6f | 3b 0d 09 7d 20 48 42 47 |textInfo|;..} HBG|
|000002a0| 6c 6f 62 61 6c 73 2c 20 | 2a 48 42 47 6c 6f 62 61 |lobals, |*HBGloba|
|000002b0| 6c 73 50 74 72 3b 0d 09 | 0d 2f 2f 20 2a 2a 0d 0d |lsPtr;..|.// **..|
|000002c0| 48 42 47 6c 6f 62 61 6c | 73 50 74 72 09 48 67 20 |HBGlobal|sPtr.Hg |
|000002d0| 3d 20 30 3b 0d 0d 2f 2f | 20 2a 2a 0d 0d 48 42 50 |= 0;..//| **..HBP|
|000002e0| 74 72 20 09 47 65 74 48 | 42 46 72 6f 6d 57 69 6e |tr .GetH|BFromWin|
|000002f0| 64 6f 77 28 57 69 6e 64 | 6f 77 50 74 72 20 74 68 |dow(Wind|owPtr th|
|00000300| 65 57 69 6e 64 6f 77 29 | 3b 0d 76 6f 69 64 20 09 |eWindow)|;.void .|
|00000310| 09 48 42 52 65 73 74 6f | 72 65 50 65 6e 53 74 75 |.HBResto|rePenStu|
|00000320| 66 66 28 76 6f 69 64 29 | 3b 0d 76 6f 69 64 20 09 |ff(void)|;.void .|
|00000330| 09 48 42 53 65 74 55 70 | 50 65 6e 53 74 75 66 66 |.HBSetUp|PenStuff|
|00000340| 28 57 69 6e 64 6f 77 50 | 74 72 20 74 68 65 57 69 |(WindowP|tr theWi|
|00000350| 6e 64 6f 77 29 3b 0d 52 | 65 63 74 20 09 09 47 65 |ndow);.R|ect ..Ge|
|00000360| 74 48 42 52 65 63 74 28 | 57 69 6e 64 6f 77 50 74 |tHBRect(|WindowPt|
|00000370| 72 20 74 68 65 57 69 6e | 64 6f 77 29 3b 0d 76 6f |r theWin|dow);.vo|
|00000380| 69 64 20 09 09 48 42 44 | 72 61 77 33 44 52 65 63 |id ..HBD|raw3DRec|
|00000390| 74 28 52 65 63 74 20 2a | 74 68 65 52 65 63 74 2c |t(Rect *|theRect,|
|000003a0| 20 63 68 61 72 20 6d 6f | 64 65 29 3b 0d 76 6f 69 | char mo|de);.voi|
|000003b0| 64 20 09 09 48 42 49 6e | 76 65 72 74 28 48 42 50 |d ..HBIn|vert(HBP|
|000003c0| 74 72 20 6e 6f 64 65 2c | 20 73 68 6f 72 74 20 69 |tr node,| short i|
|000003d0| 73 53 65 6c 65 63 74 65 | 64 29 3b 0d 0d 2f 2f 20 |sSelecte|d);..// |
|000003e0| 2a 2a 0d 09 09 0d 48 42 | 50 74 72 20 09 47 65 74 |**....HB|Ptr .Get|
|000003f0| 48 42 46 72 6f 6d 57 69 | 6e 64 6f 77 28 57 69 6e |HBFromWi|ndow(Win|
|00000400| 64 6f 77 50 74 72 20 74 | 68 65 57 69 6e 64 6f 77 |dowPtr t|heWindow|
|00000410| 29 0d 09 7b 0d 09 65 78 | 74 65 72 6e 20 48 42 47 |)..{..ex|tern HBG|
|00000420| 6c 6f 62 61 6c 73 50 74 | 72 20 48 67 3b 0d 09 48 |lobalsPt|r Hg;..H|
|00000430| 42 50 74 72 09 70 2c 71 | 3b 0d 0d 09 70 3d 48 67 |BPtr.p,q|;...p=Hg|
|00000440| 2d 3e 68 65 61 64 3b 0d | 09 71 3d 6e 69 6c 3b 0d |->head;.|.q=nil;.|
|00000450| 09 77 68 69 6c 65 20 28 | 70 21 3d 71 29 20 7b 0d |.while (|p!=q) {.|
|00000460| 09 09 69 66 20 28 70 2d | 3e 77 69 6e 64 6f 77 3d |..if (p-|>window=|
|00000470| 3d 74 68 65 57 69 6e 64 | 6f 77 29 20 7b 0d 09 09 |=theWind|ow) {...|
|00000480| 09 71 3d 70 3b 7d 0d 09 | 09 65 6c 73 65 20 7b 0d |.q=p;}..|.else {.|
|00000490| 09 09 09 70 3d 70 2d 3e | 6e 65 78 74 3b 7d 0d 09 |...p=p->|next;}..|
|000004a0| 09 7d 0d 09 72 65 74 75 | 72 6e 20 70 3b 0d 09 7d |.}..retu|rn p;..}|
|000004b0| 0d 09 0d 76 6f 69 64 20 | 09 09 48 42 52 65 73 74 |...void |..HBRest|
|000004c0| 6f 72 65 50 65 6e 53 74 | 75 66 66 28 76 6f 69 64 |orePenSt|uff(void|
|000004d0| 29 0d 09 7b 0d 09 65 78 | 74 65 72 6e 20 48 42 47 |)..{..ex|tern HBG|
|000004e0| 6c 6f 62 61 6c 73 50 74 | 72 20 48 67 3b 0d 09 47 |lobalsPt|r Hg;..G|
|000004f0| 72 61 66 50 74 72 09 74 | 65 6d 70 50 6f 72 74 3b |rafPtr.t|empPort;|
|00000500| 0d 09 0d 09 47 65 74 50 | 6f 72 74 28 26 74 65 6d |....GetP|ort(&tem|
|00000510| 70 50 6f 72 74 29 3b 0d | 09 74 65 6d 70 50 6f 72 |pPort);.|.tempPor|
|00000520| 74 2d 3e 74 78 46 6f 6e | 74 3d 48 67 2d 3e 73 61 |t->txFon|t=Hg->sa|
|00000530| 76 65 53 74 79 6c 65 2e | 74 78 46 6f 6e 74 3b 0d |veStyle.|txFont;.|
|00000540| 09 74 65 6d 70 50 6f 72 | 74 2d 3e 74 78 4d 6f 64 |.tempPor|t->txMod|
|00000550| 65 3d 48 67 2d 3e 73 61 | 76 65 53 74 79 6c 65 2e |e=Hg->sa|veStyle.|
|00000560| 74 78 4d 6f 64 65 3b 0d | 09 74 65 6d 70 50 6f 72 |txMode;.|.tempPor|
|00000570| 74 2d 3e 74 78 46 61 63 | 65 3d 48 67 2d 3e 73 61 |t->txFac|e=Hg->sa|
|00000580| 76 65 53 74 79 6c 65 2e | 74 78 46 61 63 65 3b 0d |veStyle.|txFace;.|
|00000590| 09 74 65 6d 70 50 6f 72 | 74 2d 3e 74 78 53 69 7a |.tempPor|t->txSiz|
|000005a0| 65 3d 48 67 2d 3e 73 61 | 76 65 53 74 79 6c 65 2e |e=Hg->sa|veStyle.|
|000005b0| 74 78 53 69 7a 65 3b 0d | 09 52 47 42 46 6f 72 65 |txSize;.|.RGBFore|
|000005c0| 43 6f 6c 6f 72 28 26 28 | 48 67 2d 3e 73 61 76 65 |Color(&(|Hg->save|
|000005d0| 46 6f 72 65 43 6f 6c 6f | 72 29 29 3b 0d 09 52 47 |ForeColo|r));..RG|
|000005e0| 42 42 61 63 6b 43 6f 6c | 6f 72 28 26 28 48 67 2d |BBackCol|or(&(Hg-|
|000005f0| 3e 73 61 76 65 42 61 63 | 6b 43 6f 6c 6f 72 29 29 |>saveBac|kColor))|
|00000600| 3b 0d 09 53 65 74 4f 72 | 69 67 69 6e 28 74 65 6d |;..SetOr|igin(tem|
|00000610| 70 50 6f 72 74 2d 3e 70 | 6f 72 74 52 65 63 74 2e |pPort->p|ortRect.|
|00000620| 6c 65 66 74 2c 48 67 2d | 3e 73 61 76 65 4f 72 69 |left,Hg-|>saveOri|
|00000630| 67 69 6e 29 3b 0d 09 53 | 65 74 50 65 6e 53 74 61 |gin);..S|etPenSta|
|00000640| 74 65 28 26 48 67 2d 3e | 73 61 76 65 50 65 6e 29 |te(&Hg->|savePen)|
|00000650| 3b 0d 09 53 65 74 50 6f | 72 74 28 48 67 2d 3e 73 |;..SetPo|rt(Hg->s|
|00000660| 61 76 65 50 6f 72 74 29 | 3b 0d 09 7d 0d 09 0d 76 |avePort)|;..}...v|
|00000670| 6f 69 64 20 09 09 48 42 | 53 65 74 55 70 50 65 6e |oid ..HB|SetUpPen|
|00000680| 53 74 75 66 66 28 57 69 | 6e 64 6f 77 50 74 72 20 |Stuff(Wi|ndowPtr |
|00000690| 74 68 65 57 69 6e 64 6f | 77 29 0d 09 7b 0d 09 65 |theWindo|w)..{..e|
|000006a0| 78 74 65 72 6e 20 48 42 | 47 6c 6f 62 61 6c 73 50 |xtern HB|GlobalsP|
|000006b0| 74 72 20 48 67 3b 0d 09 | 48 42 50 74 72 09 09 6e |tr Hg;..|HBPtr..n|
|000006c0| 6f 64 65 3b 0d 09 43 47 | 72 61 66 50 74 72 09 09 |ode;..CG|rafPtr..|
|000006d0| 6d 67 72 50 6f 72 74 3b | 0d 09 09 0d 09 47 65 74 |mgrPort;|.....Get|
|000006e0| 50 6f 72 74 28 26 28 48 | 67 2d 3e 73 61 76 65 50 |Port(&(H|g->saveP|
|000006f0| 6f 72 74 29 29 3b 0d 09 | 47 65 74 50 65 6e 53 74 |ort));..|GetPenSt|
|00000700| 61 74 65 28 26 28 48 67 | 2d 3e 73 61 76 65 50 65 |ate(&(Hg|->savePe|
|00000710| 6e 29 29 3b 0d 09 53 65 | 74 50 6f 72 74 28 74 68 |n));..Se|tPort(th|
|00000720| 65 57 69 6e 64 6f 77 29 | 3b 0d 09 0d 09 48 67 2d |eWindow)|;....Hg-|
|00000730| 3e 73 61 76 65 53 74 79 | 6c 65 2e 74 78 46 6f 6e |>saveSty|le.txFon|
|00000740| 74 3d 74 68 65 57 69 6e | 64 6f 77 2d 3e 74 78 46 |t=theWin|dow->txF|
|00000750| 6f 6e 74 3b 0d 09 48 67 | 2d 3e 73 61 76 65 53 74 |ont;..Hg|->saveSt|
|00000760| 79 6c 65 2e 74 78 53 69 | 7a 65 3d 74 68 65 57 69 |yle.txSi|ze=theWi|
|00000770| 6e 64 6f 77 2d 3e 74 78 | 53 69 7a 65 3b 0d 09 48 |ndow->tx|Size;..H|
|00000780| 67 2d 3e 73 61 76 65 53 | 74 79 6c 65 2e 74 78 46 |g->saveS|tyle.txF|
|00000790| 61 63 65 3d 74 68 65 57 | 69 6e 64 6f 77 2d 3e 74 |ace=theW|indow->t|
|000007a0| 78 46 61 63 65 3b 0d 09 | 48 67 2d 3e 73 61 76 65 |xFace;..|Hg->save|
|000007b0| 53 74 79 6c 65 2e 74 78 | 4d 6f 64 65 3d 74 68 65 |Style.tx|Mode=the|
|000007c0| 57 69 6e 64 6f 77 2d 3e | 74 78 4d 6f 64 65 3b 0d |Window->|txMode;.|
|000007d0| 09 0d 09 47 65 74 46 6f | 72 65 43 6f 6c 6f 72 28 |...GetFo|reColor(|
|000007e0| 26 28 48 67 2d 3e 73 61 | 76 65 46 6f 72 65 43 6f |&(Hg->sa|veForeCo|
|000007f0| 6c 6f 72 29 29 3b 0d 09 | 47 65 74 42 61 63 6b 43 |lor));..|GetBackC|
|00000800| 6f 6c 6f 72 28 26 28 48 | 67 2d 3e 73 61 76 65 42 |olor(&(H|g->saveB|
|00000810| 61 63 6b 43 6f 6c 6f 72 | 29 29 3b 0d 09 48 67 2d |ackColor|));..Hg-|
|00000820| 3e 63 6f 6c 6f 72 2e 67 | 72 61 79 3d 47 65 74 47 |>color.g|ray=GetG|
|00000830| 72 61 79 43 6f 6c 6f 72 | 28 30 78 39 39 39 39 29 |rayColor|(0x9999)|
|00000840| 3b 0d 09 48 67 2d 3e 63 | 6f 6c 6f 72 2e 6c 69 67 |;..Hg->c|olor.lig|
|00000850| 68 74 47 72 61 79 3d 47 | 65 74 47 72 61 79 43 6f |htGray=G|etGrayCo|
|00000860| 6c 6f 72 28 30 78 45 45 | 45 45 29 3b 0d 09 48 67 |lor(0xEE|EE);..Hg|
|00000870| 2d 3e 63 6f 6c 6f 72 2e | 64 61 72 6b 47 72 61 79 |->color.|darkGray|
|00000880| 3d 47 65 74 47 72 61 79 | 43 6f 6c 6f 72 28 30 78 |=GetGray|Color(0x|
|00000890| 46 46 46 46 29 3b 0d 09 | 47 65 74 43 57 4d 67 72 |FFFF);..|GetCWMgr|
|000008a0| 50 6f 72 74 28 26 6d 67 | 72 50 6f 72 74 29 3b 0d |Port(&mg|rPort);.|
|000008b0| 09 48 67 2d 3e 63 6f 6c | 6f 72 2e 69 73 43 61 70 |.Hg->col|or.isCap|
|000008c0| 61 62 6c 65 3d 28 28 28 | 2a 28 6d 67 72 50 6f 72 |able=(((|*(mgrPor|
|000008d0| 74 2d 3e 70 6f 72 74 50 | 69 78 4d 61 70 29 29 2d |t->portP|ixMap))-|
|000008e0| 3e 70 69 78 65 6c 53 69 | 7a 65 3e 32 29 29 3b 0d |>pixelSi|ze>2));.|
|000008f0| 09 69 66 20 28 48 67 2d | 3e 63 6f 6c 6f 72 2e 69 |.if (Hg-|>color.i|
|00000900| 73 43 61 70 61 62 6c 65 | 29 20 7b 0d 09 09 48 67 |sCapable|) {...Hg|
|00000910| 2d 3e 63 6f 6c 6f 72 2e | 68 69 6c 69 74 65 20 3d |->color.|hilite =|
|00000920| 20 28 2a 28 47 56 61 72 | 48 61 6e 64 6c 65 29 28 | (*(GVar|Handle)(|
|00000930| 28 43 47 72 61 66 50 74 | 72 29 71 64 2e 74 68 65 |(CGrafPt|r)qd.the|
|00000940| 50 6f 72 74 29 2d 3e 67 | 72 61 66 56 61 72 73 29 |Port)->g|rafVars)|
|00000950| 2d 3e 72 67 62 48 69 6c | 69 74 65 43 6f 6c 6f 72 |->rgbHil|iteColor|
|00000960| 3b 7d 0d 09 09 0d 09 6e | 6f 64 65 3d 47 65 74 48 |;}.....n|ode=GetH|
|00000970| 42 46 72 6f 6d 57 69 6e | 64 6f 77 28 74 68 65 57 |BFromWin|dow(theW|
|00000980| 69 6e 64 6f 77 29 3b 0d | 09 69 66 20 28 6e 6f 64 |indow);.|.if (nod|
|00000990| 65 21 3d 30 29 20 7b 0d | 09 09 54 65 78 74 46 6f |e!=0) {.|..TextFo|
|000009a0| 6e 74 28 6e 6f 64 65 2d | 3e 73 74 79 6c 65 2e 74 |nt(node-|>style.t|
|000009b0| 78 46 6f 6e 74 29 3b 0d | 09 09 54 65 78 74 46 61 |xFont);.|..TextFa|
|000009c0| 63 65 28 6e 6f 64 65 2d | 3e 73 74 79 6c 65 2e 74 |ce(node-|>style.t|
|000009d0| 78 46 61 63 65 29 3b 0d | 09 09 54 65 78 74 53 69 |xFace);.|..TextSi|
|000009e0| 7a 65 28 6e 6f 64 65 2d | 3e 73 74 79 6c 65 2e 74 |ze(node-|>style.t|
|000009f0| 78 53 69 7a 65 29 3b 0d | 09 09 54 65 78 74 4d 6f |xSize);.|..TextMo|
|00000a00| 64 65 28 6e 6f 64 65 2d | 3e 73 74 79 6c 65 2e 74 |de(node-|>style.t|
|00000a10| 78 4d 6f 64 65 29 3b 0d | 09 09 47 65 74 46 6f 6e |xMode);.|..GetFon|
|00000a20| 74 49 6e 66 6f 28 26 28 | 48 67 2d 3e 74 65 78 74 |tInfo(&(|Hg->text|
|00000a30| 49 6e 66 6f 29 29 3b 0d | 09 09 48 67 2d 3e 74 65 |Info));.|..Hg->te|
|00000a40| 78 74 49 6e 66 6f 2e 6c | 65 61 64 69 6e 67 20 3d |xtInfo.l|eading =|
|00000a50| 20 28 48 67 2d 3e 74 65 | 78 74 49 6e 66 6f 2e 61 | (Hg->te|xtInfo.a|
|00000a60| 73 63 65 6e 74 20 2b 20 | 48 67 2d 3e 74 65 78 74 |scent + |Hg->text|
|00000a70| 49 6e 66 6f 2e 64 65 73 | 63 65 6e 74 20 2b 20 34 |Info.des|cent + 4|
|00000a80| 29 3b 0d 09 09 48 67 2d | 3e 73 61 76 65 4f 72 69 |);...Hg-|>saveOri|
|00000a90| 67 69 6e 20 3d 20 74 68 | 65 57 69 6e 64 6f 77 2d |gin = th|eWindow-|
|00000aa0| 3e 70 6f 72 74 52 65 63 | 74 2e 74 6f 70 3b 0d 09 |>portRec|t.top;..|
|00000ab0| 09 53 65 74 4f 72 69 67 | 69 6e 28 74 68 65 57 69 |.SetOrig|in(theWi|
|00000ac0| 6e 64 6f 77 2d 3e 70 6f | 72 74 52 65 63 74 2e 6c |ndow->po|rtRect.l|
|00000ad0| 65 66 74 2c 20 6e 6f 64 | 65 2d 3e 6f 66 66 73 65 |eft, nod|e->offse|
|00000ae0| 74 29 3b 0d 09 09 7d 0d | 09 7d 0d 09 0d 52 65 63 |t);...}.|.}...Rec|
|00000af0| 74 20 09 09 47 65 74 48 | 42 52 65 63 74 28 57 69 |t ..GetH|BRect(Wi|
|00000b00| 6e 64 6f 77 50 74 72 20 | 74 68 65 57 69 6e 64 6f |ndowPtr |theWindo|
|00000b10| 77 29 0d 09 7b 0d 09 65 | 78 74 65 72 6e 09 48 42 |w)..{..e|xtern.HB|
|00000b20| 47 6c 6f 62 61 6c 73 50 | 74 72 09 48 67 3b 0d 09 |GlobalsP|tr.Hg;..|
|00000b30| 48 42 50 74 72 09 6e 6f | 64 65 3b 0d 09 52 65 63 |HBPtr.no|de;..Rec|
|00000b40| 74 09 09 74 68 65 52 65 | 63 74 3b 0d 09 0d 09 6e |t..theRe|ct;....n|
|00000b50| 6f 64 65 20 3d 20 47 65 | 74 48 42 46 72 6f 6d 57 |ode = Ge|tHBFromW|
|00000b60| 69 6e 64 6f 77 28 74 68 | 65 57 69 6e 64 6f 77 29 |indow(th|eWindow)|
|00000b70| 3b 0d 09 43 6c 65 61 72 | 52 65 63 74 28 26 74 68 |;..Clear|Rect(&th|
|00000b80| 65 52 65 63 74 29 3b 0d | 09 74 68 65 52 65 63 74 |eRect);.|.theRect|
|00000b90| 2e 72 69 67 68 74 20 3d | 20 74 68 65 57 69 6e 64 |.right =| theWind|
|00000ba0| 6f 77 2d 3e 70 6f 72 74 | 52 65 63 74 2e 72 69 67 |ow->port|Rect.rig|
|00000bb0| 68 74 20 2d 20 74 68 65 | 57 69 6e 64 6f 77 2d 3e |ht - the|Window->|
|00000bc0| 70 6f 72 74 52 65 63 74 | 2e 6c 65 66 74 3b 0d 09 |portRect|.left;..|
|00000bd0| 74 68 65 52 65 63 74 2e | 62 6f 74 74 6f 6d 20 3d |theRect.|bottom =|
|00000be0| 20 48 67 2d 3e 74 65 78 | 74 49 6e 66 6f 2e 6c 65 | Hg->tex|tInfo.le|
|00000bf0| 61 64 69 6e 67 3b 0d 09 | 72 65 74 75 72 6e 20 74 |ading;..|return t|
|00000c00| 68 65 52 65 63 74 3b 0d | 09 7d 0d 09 0d 76 6f 69 |heRect;.|.}...voi|
|00000c10| 64 20 09 09 48 42 44 72 | 61 77 33 44 52 65 63 74 |d ..HBDr|aw3DRect|
|00000c20| 28 52 65 63 74 20 2a 73 | 75 62 52 65 63 74 2c 20 |(Rect *s|ubRect, |
|00000c30| 63 68 61 72 20 6d 6f 64 | 65 29 0d 09 7b 0d 09 65 |char mod|e)..{..e|
|00000c40| 78 74 65 72 6e 09 48 42 | 47 6c 6f 62 61 6c 73 50 |xtern.HB|GlobalsP|
|00000c50| 74 72 09 48 67 3b 0d 09 | 52 65 63 74 09 09 74 68 |tr.Hg;..|Rect..th|
|00000c60| 65 52 65 63 74 20 3d 20 | 2a 73 75 62 52 65 63 74 |eRect = |*subRect|
|00000c70| 3b 0d 0d 09 74 68 65 52 | 65 63 74 2e 62 6f 74 74 |;...theR|ect.bott|
|00000c80| 6f 6d 20 2d 3d 32 3b 0d | 09 69 66 20 28 48 67 2d |om -=2;.|.if (Hg-|
|00000c90| 3e 63 6f 6c 6f 72 2e 69 | 73 43 61 70 61 62 6c 65 |>color.i|sCapable|
|00000ca0| 29 20 7b 0d 09 09 74 68 | 65 52 65 63 74 2e 72 69 |) {...th|eRect.ri|
|00000cb0| 67 68 74 2d 2d 3b 0d 09 | 09 69 66 20 28 6d 6f 64 |ght--;..|.if (mod|
|00000cc0| 65 29 20 7b 0d 09 09 09 | 52 47 42 46 6f 72 65 43 |e) {....|RGBForeC|
|00000cd0| 6f 6c 6f 72 28 26 48 67 | 2d 3e 63 6f 6c 6f 72 2e |olor(&Hg|->color.|
|00000ce0| 68 69 6c 69 74 65 29 3b | 7d 0d 09 09 65 6c 73 65 |hilite);|}...else|
|00000cf0| 20 7b 0d 09 09 09 52 47 | 42 46 6f 72 65 43 6f 6c | {....RG|BForeCol|
|00000d00| 6f 72 28 26 48 67 2d 3e | 63 6f 6c 6f 72 2e 6c 69 |or(&Hg->|color.li|
|00000d10| 67 68 74 47 72 61 79 29 | 3b 7d 0d 09 09 46 69 6c |ghtGray)|;}...Fil|
|00000d20| 6c 52 65 63 74 28 26 74 | 68 65 52 65 63 74 2c 26 |lRect(&t|heRect,&|
|00000d30| 71 64 2e 62 6c 61 63 6b | 29 3b 0d 09 09 69 66 20 |qd.black|);...if |
|00000d40| 28 6d 6f 64 65 29 20 7b | 0d 09 09 09 52 47 42 46 |(mode) {|....RGBF|
|00000d50| 6f 72 65 43 6f 6c 6f 72 | 28 26 48 67 2d 3e 63 6f |oreColor|(&Hg->co|
|00000d60| 6c 6f 72 2e 67 72 61 79 | 29 3b 7d 0d 09 09 65 6c |lor.gray|);}...el|
|00000d70| 73 65 20 7b 0d 09 09 09 | 46 6f 72 65 43 6f 6c 6f |se {....|ForeColo|
|00000d80| 72 28 77 68 69 74 65 43 | 6f 6c 6f 72 29 3b 7d 0d |r(whiteC|olor);}.|
|00000d90| 09 09 4d 6f 76 65 54 6f | 28 74 68 65 52 65 63 74 |..MoveTo|(theRect|
|00000da0| 2e 6c 65 66 74 2c 74 68 | 65 52 65 63 74 2e 62 6f |.left,th|eRect.bo|
|00000db0| 74 74 6f 6d 29 3b 0d 09 | 09 4c 69 6e 65 54 6f 28 |ttom);..|.LineTo(|
|00000dc0| 74 68 65 52 65 63 74 2e | 6c 65 66 74 2c 74 68 65 |theRect.|left,the|
|00000dd0| 52 65 63 74 2e 74 6f 70 | 29 3b 0d 09 09 4c 69 6e |Rect.top|);...Lin|
|00000de0| 65 54 6f 28 74 68 65 52 | 65 63 74 2e 72 69 67 68 |eTo(theR|ect.righ|
|00000df0| 74 2c 74 68 65 52 65 63 | 74 2e 74 6f 70 29 3b 0d |t,theRec|t.top);.|
|00000e00| 09 09 69 66 20 28 6d 6f | 64 65 29 20 7b 0d 09 09 |..if (mo|de) {...|
|00000e10| 09 46 6f 72 65 43 6f 6c | 6f 72 28 77 68 69 74 65 |.ForeCol|or(white|
|00000e20| 43 6f 6c 6f 72 29 3b 7d | 0d 09 09 65 6c 73 65 20 |Color);}|...else |
|00000e30| 7b 0d 09 09 09 52 47 42 | 46 6f 72 65 43 6f 6c 6f |{....RGB|ForeColo|
|00000e40| 72 28 26 48 67 2d 3e 63 | 6f 6c 6f 72 2e 67 72 61 |r(&Hg->c|olor.gra|
|00000e50| 79 29 3b 7d 0d 09 09 4c | 69 6e 65 54 6f 28 74 68 |y);}...L|ineTo(th|
|00000e60| 65 52 65 63 74 2e 72 69 | 67 68 74 2c 74 68 65 52 |eRect.ri|ght,theR|
|00000e70| 65 63 74 2e 62 6f 74 74 | 6f 6d 29 3b 0d 09 09 4c |ect.bott|om);...L|
|00000e80| 69 6e 65 54 6f 28 74 68 | 65 52 65 63 74 2e 6c 65 |ineTo(th|eRect.le|
|00000e90| 66 74 2c 74 68 65 52 65 | 63 74 2e 62 6f 74 74 6f |ft,theRe|ct.botto|
|00000ea0| 6d 29 3b 0d 09 09 46 6f | 72 65 43 6f 6c 6f 72 28 |m);...Fo|reColor(|
|00000eb0| 62 6c 61 63 6b 43 6f 6c | 6f 72 29 3b 0d 09 09 4d |blackCol|or);...M|
|00000ec0| 6f 76 65 54 6f 28 74 68 | 65 52 65 63 74 2e 72 69 |oveTo(th|eRect.ri|
|00000ed0| 67 68 74 2b 31 2c 74 68 | 65 52 65 63 74 2e 74 6f |ght+1,th|eRect.to|
|00000ee0| 70 29 3b 0d 09 09 4c 69 | 6e 65 54 6f 28 74 68 65 |p);...Li|neTo(the|
|00000ef0| 52 65 63 74 2e 72 69 67 | 68 74 2b 31 2c 74 68 65 |Rect.rig|ht+1,the|
|00000f00| 52 65 63 74 2e 62 6f 74 | 74 6f 6d 29 3b 7d 0d 09 |Rect.bot|tom);}..|
|00000f10| 65 6c 73 65 20 7b 0d 09 | 09 74 68 65 52 65 63 74 |else {..|.theRect|
|00000f20| 2e 62 6f 74 74 6f 6d 2b | 2b 3b 0d 09 09 45 72 61 |.bottom+|+;...Era|
|00000f30| 73 65 52 65 63 74 28 26 | 74 68 65 52 65 63 74 29 |seRect(&|theRect)|
|00000f40| 3b 0d 09 09 49 6e 73 65 | 74 52 65 63 74 28 26 74 |;...Inse|tRect(&t|
|00000f50| 68 65 52 65 63 74 2c 20 | 2d 31 2c 20 2d 31 29 3b |heRect, |-1, -1);|
|00000f60| 0d 09 09 46 72 61 6d 65 | 52 65 63 74 28 26 74 68 |...Frame|Rect(&th|
|00000f70| 65 52 65 63 74 29 3b 0d | 09 09 74 68 65 52 65 63 |eRect);.|..theRec|
|00000f80| 74 2e 72 69 67 68 74 2d | 3d 32 3b 0d 09 09 74 68 |t.right-|=2;...th|
|00000f90| 65 52 65 63 74 2e 6c 65 | 66 74 2b 2b 3b 0d 09 09 |eRect.le|ft++;...|
|00000fa0| 74 68 65 52 65 63 74 2e | 74 6f 70 2b 2b 3b 0d 09 |theRect.|top++;..|
|00000fb0| 09 74 68 65 52 65 63 74 | 2e 62 6f 74 74 6f 6d 2d |.theRect|.bottom-|
|00000fc0| 3d 32 3b 0d 09 09 69 66 | 20 28 21 6d 6f 64 65 29 |=2;...if| (!mode)|
|00000fd0| 20 7b 0d 09 09 09 4d 6f | 76 65 54 6f 28 74 68 65 | {....Mo|veTo(the|
|00000fe0| 52 65 63 74 2e 6c 65 66 | 74 20 2b 20 31 2c 20 74 |Rect.lef|t + 1, t|
|00000ff0| 68 65 52 65 63 74 2e 62 | 6f 74 74 6f 6d 29 3b 0d |heRect.b|ottom);.|
|00001000| 09 09 09 4c 69 6e 65 54 | 6f 28 74 68 65 52 65 63 |...LineT|o(theRec|
|00001010| 74 2e 72 69 67 68 74 2c | 20 74 68 65 52 65 63 74 |t.right,| theRect|
|00001020| 2e 62 6f 74 74 6f 6d 29 | 3b 0d 09 09 09 4c 69 6e |.bottom)|;....Lin|
|00001030| 65 54 6f 28 74 68 65 52 | 65 63 74 2e 72 69 67 68 |eTo(theR|ect.righ|
|00001040| 74 2c 20 74 68 65 52 65 | 63 74 2e 74 6f 70 2b 31 |t, theRe|ct.top+1|
|00001050| 29 3b 7d 0d 09 09 65 6c | 73 65 20 7b 0d 09 09 09 |);}...el|se {....|
|00001060| 4d 6f 76 65 54 6f 28 74 | 68 65 52 65 63 74 2e 6c |MoveTo(t|heRect.l|
|00001070| 65 66 74 2c 20 74 68 65 | 52 65 63 74 2e 62 6f 74 |eft, the|Rect.bot|
|00001080| 74 6f 6d 20 2d 20 31 29 | 3b 0d 09 09 09 4c 69 6e |tom - 1)|;....Lin|
|00001090| 65 54 6f 28 74 68 65 52 | 65 63 74 2e 6c 65 66 74 |eTo(theR|ect.left|
|000010a0| 2c 20 74 68 65 52 65 63 | 74 2e 74 6f 70 29 3b 0d |, theRec|t.top);.|
|000010b0| 09 09 09 4c 69 6e 65 54 | 6f 28 74 68 65 52 65 63 |...LineT|o(theRec|
|000010c0| 74 2e 72 69 67 68 74 2d | 31 2c 20 74 68 65 52 65 |t.right-|1, theRe|
|000010d0| 63 74 2e 74 6f 70 29 3b | 7d 0d 09 09 7d 0d 09 7d |ct.top);|}...}..}|
|000010e0| 0d 09 0d 63 68 61 72 09 | 57 69 6e 64 6f 77 48 61 |...char.|WindowHa|
|000010f0| 73 48 42 28 57 69 6e 64 | 6f 77 50 74 72 20 74 68 |sHB(Wind|owPtr th|
|00001100| 65 57 69 6e 64 6f 77 29 | 0d 09 7b 0d 09 65 78 74 |eWindow)|..{..ext|
|00001110| 65 72 6e 20 09 48 42 47 | 6c 6f 62 61 6c 73 50 74 |ern .HBG|lobalsPt|
|00001120| 72 20 48 67 3b 0d 0d 09 | 69 66 20 28 48 67 21 3d |r Hg;...|if (Hg!=|
|00001130| 30 29 20 7b 0d 09 09 72 | 65 74 75 72 6e 20 28 47 |0) {...r|eturn (G|
|00001140| 65 74 48 42 46 72 6f 6d | 57 69 6e 64 6f 77 28 74 |etHBFrom|Window(t|
|00001150| 68 65 57 69 6e 64 6f 77 | 29 21 3d 30 29 3b 7d 0d |heWindow|)!=0);}.|
|00001160| 09 72 65 74 75 72 6e 20 | 66 61 6c 73 65 3b 0d 09 |.return |false;..|
|00001170| 7d 0d 09 0d 76 6f 69 64 | 09 48 42 49 6e 73 74 61 |}...void|.HBInsta|
|00001180| 6c 6c 28 57 69 6e 64 6f | 77 50 74 72 20 74 68 65 |ll(Windo|wPtr the|
|00001190| 57 69 6e 64 6f 77 29 0d | 09 7b 0d 09 65 78 74 65 |Window).|.{..exte|
|000011a0| 72 6e 20 48 42 47 6c 6f | 62 61 6c 73 50 74 72 20 |rn HBGlo|balsPtr |
|000011b0| 48 67 3b 0d 09 48 42 50 | 74 72 09 74 65 6d 70 3b |Hg;..HBP|tr.temp;|
|000011c0| 0d 09 0d 09 69 66 20 28 | 48 67 3d 3d 30 29 20 7b |....if (|Hg==0) {|
|000011d0| 0d 09 09 48 67 3d 28 48 | 42 47 6c 6f 62 61 6c 73 |...Hg=(H|BGlobals|
|000011e0| 50 74 72 29 4e 65 77 50 | 74 72 43 6c 65 61 72 28 |Ptr)NewP|trClear(|
|000011f0| 73 69 7a 65 6f 66 28 48 | 42 47 6c 6f 62 61 6c 73 |sizeof(H|BGlobals|
|00001200| 29 29 3b 0d 09 09 48 67 | 2d 3e 68 65 61 64 3d 30 |));...Hg|->head=0|
|00001210| 3b 7d 0d 09 09 0d 09 69 | 66 20 28 28 21 57 69 6e |;}.....i|f ((!Win|
|00001220| 64 6f 77 48 61 73 48 42 | 28 74 68 65 57 69 6e 64 |dowHasHB|(theWind|
|00001230| 6f 77 29 29 20 26 26 20 | 28 74 68 65 57 69 6e 64 |ow)) && |(theWind|
|00001240| 6f 77 21 3d 30 29 29 20 | 7b 0d 09 09 74 65 6d 70 |ow!=0)) |{...temp|
|00001250| 3d 28 48 42 50 74 72 29 | 4e 65 77 50 74 72 43 6c |=(HBPtr)|NewPtrCl|
|00001260| 65 61 72 28 73 69 7a 65 | 6f 66 28 48 42 29 29 3b |ear(size|of(HB));|
|00001270| 0d 09 09 74 65 6d 70 2d | 3e 6e 65 78 74 3d 48 67 |...temp-|>next=Hg|
|00001280| 2d 3e 68 65 61 64 3b 0d | 09 09 48 67 2d 3e 68 65 |->head;.|..Hg->he|
|00001290| 61 64 3d 74 65 6d 70 3b | 0d 09 09 0d 09 09 48 67 |ad=temp;|......Hg|
|000012a0| 2d 3e 68 65 61 64 2d 3e | 69 73 56 69 73 69 62 6c |->head->|isVisibl|
|000012b0| 65 20 3d 20 66 61 6c 73 | 65 3b 0d 09 09 48 67 2d |e = fals|e;...Hg-|
|000012c0| 3e 68 65 61 64 2d 3e 73 | 74 79 6c 65 2e 74 78 46 |>head->s|tyle.txF|
|000012d0| 6f 6e 74 20 3d 20 33 3b | 0d 09 09 48 67 2d 3e 68 |ont = 3;|...Hg->h|
|000012e0| 65 61 64 2d 3e 73 74 79 | 6c 65 2e 74 78 46 61 63 |ead->sty|le.txFac|
|000012f0| 65 20 3d 20 62 6f 6c 64 | 3b 0d 09 09 48 67 2d 3e |e = bold|;...Hg->|
|00001300| 68 65 61 64 2d 3e 73 74 | 79 6c 65 2e 74 78 53 69 |head->st|yle.txSi|
|00001310| 7a 65 20 3d 20 39 3b 0d | 09 09 48 67 2d 3e 68 65 |ze = 9;.|..Hg->he|
|00001320| 61 64 2d 3e 73 74 79 6c | 65 2e 74 78 4d 6f 64 65 |ad->styl|e.txMode|
|00001330| 20 3d 20 73 72 63 4f 72 | 3b 0d 09 09 48 67 2d 3e | = srcOr|;...Hg->|
|00001340| 68 65 61 64 2d 3e 77 69 | 6e 64 6f 77 20 3d 20 74 |head->wi|ndow = t|
|00001350| 68 65 57 69 6e 64 6f 77 | 3b 0d 09 09 48 67 2d 3e |heWindow|;...Hg->|
|00001360| 68 65 61 64 2d 3e 64 69 | 73 70 6c 61 79 5b 30 5d |head->di|splay[0]|
|00001370| 20 3d 20 30 3b 0d 09 09 | 0d 09 09 48 42 53 68 6f | = 0;...|...HBSho|
|00001380| 77 48 69 64 65 28 74 68 | 65 57 69 6e 64 6f 77 2c |wHide(th|eWindow,|
|00001390| 74 72 75 65 29 3b 7d 0d | 09 7d 0d 09 0d 76 6f 69 |true);}.|.}...voi|
|000013a0| 64 09 48 42 44 69 73 70 | 6f 73 65 28 57 69 6e 64 |d.HBDisp|ose(Wind|
|000013b0| 6f 77 50 74 72 20 74 68 | 65 57 69 6e 64 6f 77 29 |owPtr th|eWindow)|
|000013c0| 0d 09 7b 0d 09 65 78 74 | 65 72 6e 20 48 42 47 6c |..{..ext|ern HBGl|
|000013d0| 6f 62 61 6c 73 50 74 72 | 20 48 67 3b 0d 09 48 42 |obalsPtr| Hg;..HB|
|000013e0| 50 74 72 09 70 2c 71 2c | 70 30 3b 0d 09 0d 09 69 |Ptr.p,q,|p0;....i|
|000013f0| 66 20 28 74 68 65 57 69 | 6e 64 6f 77 21 3d 30 29 |f (theWi|ndow!=0)|
|00001400| 20 7b 0d 09 09 70 30 3d | 48 67 2d 3e 68 65 61 64 | {...p0=|Hg->head|
|00001410| 3b 0d 09 09 70 3d 30 3b | 0d 09 09 71 3d 30 3b 0d |;...p=0;|...q=0;.|
|00001420| 09 09 77 68 69 6c 65 20 | 28 70 30 21 3d 71 29 0d |..while |(p0!=q).|
|00001430| 09 09 09 69 66 20 28 70 | 30 2d 3e 77 69 6e 64 6f |...if (p|0->windo|
|00001440| 77 20 3d 3d 20 74 68 65 | 57 69 6e 64 6f 77 29 20 |w == the|Window) |
|00001450| 7b 0d 09 09 09 09 71 3d | 70 30 3b 7d 0d 09 09 09 |{.....q=|p0;}....|
|00001460| 65 6c 73 65 20 7b 0d 09 | 09 09 09 70 3d 70 30 3b |else {..|...p=p0;|
|00001470| 0d 09 09 09 09 70 30 3d | 70 30 2d 3e 6e 65 78 74 |.....p0=|p0->next|
|00001480| 3b 7d 0d 09 09 69 66 20 | 28 28 70 30 21 3d 30 29 |;}...if |((p0!=0)|
|00001490| 20 26 26 20 28 70 30 3d | 3d 71 29 29 20 7b 0d 09 | && (p0=|=q)) {..|
|000014a0| 09 09 48 42 53 68 6f 77 | 48 69 64 65 28 74 68 65 |..HBShow|Hide(the|
|000014b0| 57 69 6e 64 6f 77 2c 66 | 61 6c 73 65 29 3b 0d 09 |Window,f|alse);..|
|000014c0| 09 09 69 66 20 28 70 3d | 3d 30 29 20 7b 0d 09 09 |..if (p=|=0) {...|
|000014d0| 09 09 48 67 2d 3e 68 65 | 61 64 20 3d 20 70 30 2d |..Hg->he|ad = p0-|
|000014e0| 3e 6e 65 78 74 3b 7d 0d | 09 09 09 65 6c 73 65 20 |>next;}.|...else |
|000014f0| 7b 0d 09 09 09 09 70 2d | 3e 6e 65 78 74 20 3d 20 |{.....p-|>next = |
|00001500| 70 30 2d 3e 6e 65 78 74 | 3b 7d 0d 09 09 09 44 69 |p0->next|;}....Di|
|00001510| 73 70 6f 73 65 50 74 72 | 28 28 50 74 72 29 70 30 |sposePtr|((Ptr)p0|
|00001520| 29 3b 7d 0d 09 09 7d 0d | 09 7d 0d 09 0d 76 6f 69 |);}...}.|.}...voi|
|00001530| 64 20 09 09 48 42 49 6e | 76 65 72 74 28 48 42 50 |d ..HBIn|vert(HBP|
|00001540| 74 72 20 6e 6f 64 65 2c | 20 73 68 6f 72 74 20 69 |tr node,| short i|
|00001550| 73 53 65 6c 65 63 74 65 | 64 29 0d 09 7b 0d 09 65 |sSelecte|d)..{..e|
|00001560| 78 74 65 72 6e 20 09 09 | 48 42 47 6c 6f 62 61 6c |xtern ..|HBGlobal|
|00001570| 73 50 74 72 20 48 67 3b | 0d 09 52 65 63 74 09 09 |sPtr Hg;|..Rect..|
|00001580| 09 74 68 65 52 65 63 74 | 3b 0d 09 0d 09 74 68 65 |.theRect|;....the|
|00001590| 52 65 63 74 20 3d 20 47 | 65 74 48 42 52 65 63 74 |Rect = G|etHBRect|
|000015a0| 28 6e 6f 64 65 2d 3e 77 | 69 6e 64 6f 77 29 3b 0d |(node->w|indow);.|
|000015b0| 09 48 42 44 72 61 77 33 | 44 52 65 63 74 28 26 74 |.HBDraw3|DRect(&t|
|000015c0| 68 65 52 65 63 74 2c 20 | 69 73 53 65 6c 65 63 74 |heRect, |isSelect|
|000015d0| 65 64 29 3b 0d 09 4d 6f | 76 65 54 6f 28 74 68 65 |ed);..Mo|veTo(the|
|000015e0| 52 65 63 74 2e 6c 65 66 | 74 2b 39 2c 74 68 65 52 |Rect.lef|t+9,theR|
|000015f0| 65 63 74 2e 62 6f 74 74 | 6f 6d 2d 34 29 3b 0d 09 |ect.bott|om-4);..|
|00001600| 44 72 61 77 53 74 72 69 | 6e 67 28 6e 6f 64 65 2d |DrawStri|ng(node-|
|00001610| 3e 64 69 73 70 6c 61 79 | 29 3b 0d 09 7d 0d 09 0d |>display|);..}...|
|00001620| 76 6f 69 64 09 48 42 43 | 6c 69 63 6b 28 57 69 6e |void.HBC|lick(Win|
|00001630| 64 6f 77 50 74 72 20 74 | 68 65 57 69 6e 64 6f 77 |dowPtr t|heWindow|
|00001640| 2c 20 50 6f 69 6e 74 20 | 77 68 65 72 65 2c 20 4f |, Point |where, O|
|00001650| 53 54 79 70 65 20 2a 6b | 69 6e 64 29 0d 09 7b 0d |SType *k|ind)..{.|
|00001660| 09 52 65 63 74 09 09 74 | 68 65 52 65 63 74 3b 0d |.Rect..t|heRect;.|
|00001670| 09 48 42 50 74 72 09 6e | 6f 64 65 3b 0d 09 73 68 |.HBPtr.n|ode;..sh|
|00001680| 6f 72 74 09 69 6e 73 69 | 64 65 3b 0d 09 50 6f 69 |ort.insi|de;..Poi|
|00001690| 6e 74 09 09 6c 6f 63 61 | 6c 50 74 3b 0d 09 0d 09 |nt..loca|lPt;....|
|000016a0| 69 66 20 28 50 74 49 6e | 48 42 28 74 68 65 57 69 |if (PtIn|HB(theWi|
|000016b0| 6e 64 6f 77 2c 77 68 65 | 72 65 29 29 20 7b 0d 09 |ndow,whe|re)) {..|
|000016c0| 09 6e 6f 64 65 20 3d 20 | 47 65 74 48 42 46 72 6f |.node = |GetHBFro|
|000016d0| 6d 57 69 6e 64 6f 77 28 | 74 68 65 57 69 6e 64 6f |mWindow(|theWindo|
|000016e0| 77 29 3b 0d 09 09 48 42 | 53 65 74 55 70 50 65 6e |w);...HB|SetUpPen|
|000016f0| 53 74 75 66 66 28 74 68 | 65 57 69 6e 64 6f 77 29 |Stuff(th|eWindow)|
|00001700| 3b 0d 09 09 74 68 65 52 | 65 63 74 20 3d 20 47 65 |;...theR|ect = Ge|
|00001710| 74 48 42 52 65 63 74 28 | 74 68 65 57 69 6e 64 6f |tHBRect(|theWindo|
|00001720| 77 29 3b 0d 09 09 48 42 | 49 6e 76 65 72 74 28 6e |w);...HB|Invert(n|
|00001730| 6f 64 65 2c 74 72 75 65 | 29 3b 0d 09 09 69 6e 73 |ode,true|);...ins|
|00001740| 69 64 65 20 3d 20 74 72 | 75 65 3b 0d 09 09 77 68 |ide = tr|ue;...wh|
|00001750| 69 6c 65 20 28 42 75 74 | 74 6f 6e 28 29 29 20 7b |ile (But|ton()) {|
|00001760| 0d 09 09 09 47 65 74 4d | 6f 75 73 65 28 26 6c 6f |....GetM|ouse(&lo|
|00001770| 63 61 6c 50 74 29 3b 0d | 09 09 09 69 66 20 28 50 |calPt);.|...if (P|
|00001780| 74 49 6e 52 65 63 74 28 | 6c 6f 63 61 6c 50 74 2c |tInRect(|localPt,|
|00001790| 26 74 68 65 52 65 63 74 | 29 20 26 26 20 21 69 6e |&theRect|) && !in|
|000017a0| 73 69 64 65 29 20 7b 0d | 09 09 09 09 69 6e 73 69 |side) {.|....insi|
|000017b0| 64 65 20 3d 20 74 72 75 | 65 3b 0d 09 09 09 09 48 |de = tru|e;.....H|
|000017c0| 42 49 6e 76 65 72 74 28 | 6e 6f 64 65 2c 74 72 75 |BInvert(|node,tru|
|000017d0| 65 29 3b 7d 0d 09 09 09 | 65 6c 73 65 20 69 66 20 |e);}....|else if |
|000017e0| 28 21 50 74 49 6e 52 65 | 63 74 28 6c 6f 63 61 6c |(!PtInRe|ct(local|
|000017f0| 50 74 2c 26 74 68 65 52 | 65 63 74 29 20 26 26 20 |Pt,&theR|ect) && |
|00001800| 69 6e 73 69 64 65 29 20 | 7b 0d 09 09 09 09 69 6e |inside) |{.....in|
|00001810| 73 69 64 65 20 3d 20 66 | 61 6c 73 65 3b 0d 09 09 |side = f|alse;...|
|00001820| 09 09 48 42 49 6e 76 65 | 72 74 28 6e 6f 64 65 2c |..HBInve|rt(node,|
|00001830| 66 61 6c 73 65 29 3b 7d | 0d 09 09 09 7d 3b 0d 09 |false);}|....};..|
|00001840| 09 69 66 20 28 69 6e 73 | 69 64 65 29 20 7b 0d 09 |.if (ins|ide) {..|
|00001850| 09 09 48 42 49 6e 76 65 | 72 74 28 6e 6f 64 65 2c |..HBInve|rt(node,|
|00001860| 66 61 6c 73 65 29 3b 0d | 09 09 09 2a 6b 69 6e 64 |false);.|...*kind|
|00001870| 20 3d 20 27 48 45 4c 50 | 27 3b 0d 09 09 09 7d 0d | = 'HELP|';....}.|
|00001880| 09 09 48 42 52 65 73 74 | 6f 72 65 50 65 6e 53 74 |..HBRest|orePenSt|
|00001890| 75 66 66 28 29 3b 0d 09 | 09 48 42 44 72 61 77 28 |uff();..|.HBDraw(|
|000018a0| 74 68 65 57 69 6e 64 6f | 77 29 3b 0d 09 09 7d 0d |theWindo|w);...}.|
|000018b0| 09 7d 0d 09 0d 76 6f 69 | 64 09 48 42 44 72 61 77 |.}...voi|d.HBDraw|
|000018c0| 28 57 69 6e 64 6f 77 50 | 74 72 20 74 68 65 57 69 |(WindowP|tr theWi|
|000018d0| 6e 64 6f 77 29 0d 09 7b | 0d 09 65 78 74 65 72 6e |ndow)..{|..extern|
|000018e0| 20 09 48 42 47 6c 6f 62 | 61 6c 73 50 74 72 20 48 | .HBGlob|alsPtr H|
|000018f0| 67 3b 0d 09 48 42 50 74 | 72 09 6e 6f 64 65 3b 0d |g;..HBPt|r.node;.|
|00001900| 09 52 65 63 74 09 09 74 | 68 65 52 65 63 74 3b 0d |.Rect..t|heRect;.|
|00001910| 09 0d 09 6e 6f 64 65 20 | 3d 20 47 65 74 48 42 46 |...node |= GetHBF|
|00001920| 72 6f 6d 57 69 6e 64 6f | 77 28 74 68 65 57 69 6e |romWindo|w(theWin|
|00001930| 64 6f 77 29 3b 0d 09 69 | 66 20 28 6e 6f 64 65 21 |dow);..i|f (node!|
|00001940| 3d 30 29 20 7b 0d 09 09 | 69 66 20 28 6e 6f 64 65 |=0) {...|if (node|
|00001950| 2d 3e 69 73 56 69 73 69 | 62 6c 65 29 20 7b 0d 09 |->isVisi|ble) {..|
|00001960| 09 09 48 42 53 65 74 55 | 70 50 65 6e 53 74 75 66 |..HBSetU|pPenStuf|
|00001970| 66 28 74 68 65 57 69 6e | 64 6f 77 29 3b 0d 09 09 |f(theWin|dow);...|
|00001980| 09 74 68 65 52 65 63 74 | 20 3d 20 47 65 74 48 42 |.theRect| = GetHB|
|00001990| 52 65 63 74 28 74 68 65 | 57 69 6e 64 6f 77 29 3b |Rect(the|Window);|
|000019a0| 0d 09 09 09 69 66 20 28 | 48 67 2d 3e 63 6f 6c 6f |....if (|Hg->colo|
|000019b0| 72 2e 69 73 43 61 70 61 | 62 6c 65 29 20 7b 0d 09 |r.isCapa|ble) {..|
|000019c0| 09 09 09 52 47 42 42 61 | 63 6b 43 6f 6c 6f 72 28 |...RGBBa|ckColor(|
|000019d0| 26 48 67 2d 3e 63 6f 6c | 6f 72 2e 6c 69 67 68 74 |&Hg->col|or.light|
|000019e0| 47 72 61 79 29 3b 7d 0d | 09 09 09 45 72 61 73 65 |Gray);}.|...Erase|
|000019f0| 52 65 63 74 28 26 74 68 | 65 52 65 63 74 29 3b 0d |Rect(&th|eRect);.|
|00001a00| 09 09 09 48 42 44 72 61 | 77 33 44 52 65 63 74 28 |...HBDra|w3DRect(|
|00001a10| 26 74 68 65 52 65 63 74 | 2c 20 66 61 6c 73 65 29 |&theRect|, false)|
|00001a20| 3b 0d 09 09 09 48 67 2d | 3e 74 65 78 74 49 6e 66 |;....Hg-|>textInf|
|00001a30| 6f 2e 6c 65 61 64 69 6e | 67 2d 2d 3b 0d 09 09 09 |o.leadin|g--;....|
|00001a40| 4d 6f 76 65 54 6f 28 30 | 2c 48 67 2d 3e 74 65 78 |MoveTo(0|,Hg->tex|
|00001a50| 74 49 6e 66 6f 2e 6c 65 | 61 64 69 6e 67 29 3b 0d |tInfo.le|ading);.|
|00001a60| 09 09 09 4c 69 6e 65 54 | 6f 28 74 68 65 57 69 6e |...LineT|o(theWin|
|00001a70| 64 6f 77 2d 3e 70 6f 72 | 74 52 65 63 74 2e 72 69 |dow->por|tRect.ri|
|00001a80| 67 68 74 2c 48 67 2d 3e | 74 65 78 74 49 6e 66 6f |ght,Hg->|textInfo|
|00001a90| 2e 6c 65 61 64 69 6e 67 | 29 3b 0d 09 09 09 4d 6f |.leading|);....Mo|
|00001aa0| 76 65 54 6f 28 31 30 2c | 48 67 2d 3e 74 65 78 74 |veTo(10,|Hg->text|
|00001ab0| 49 6e 66 6f 2e 6c 65 61 | 64 69 6e 67 20 2d 20 34 |Info.lea|ding - 4|
|00001ac0| 29 3b 0d 09 09 09 44 72 | 61 77 53 74 72 69 6e 67 |);....Dr|awString|
|00001ad0| 28 6e 6f 64 65 2d 3e 64 | 69 73 70 6c 61 79 29 3b |(node->d|isplay);|
|00001ae0| 0d 09 09 09 48 42 52 65 | 73 74 6f 72 65 50 65 6e |....HBRe|storePen|
|00001af0| 53 74 75 66 66 28 29 3b | 7d 0d 09 09 7d 0d 09 7d |Stuff();|}...}..}|
|00001b00| 0d 09 0d 63 68 61 72 09 | 50 74 49 6e 48 42 28 57 |...char.|PtInHB(W|
|00001b10| 69 6e 64 6f 77 50 74 72 | 20 74 68 65 57 69 6e 64 |indowPtr| theWind|
|00001b20| 6f 77 2c 20 50 6f 69 6e | 74 20 74 68 65 50 6f 69 |ow, Poin|t thePoi|
|00001b30| 6e 74 29 0d 09 7b 0d 09 | 65 78 74 65 72 6e 20 09 |nt)..{..|extern .|
|00001b40| 48 42 47 6c 6f 62 61 6c | 73 50 74 72 20 48 67 3b |HBGlobal|sPtr Hg;|
|00001b50| 0d 09 48 42 50 74 72 09 | 6e 6f 64 65 3b 0d 09 63 |..HBPtr.|node;..c|
|00001b60| 68 61 72 09 09 72 65 73 | 75 6c 74 3b 0d 09 0d 09 |har..res|ult;....|
|00001b70| 69 66 20 28 48 67 3d 3d | 30 29 20 7b 0d 09 09 72 |if (Hg==|0) {...r|
|00001b80| 65 74 75 72 6e 20 66 61 | 6c 73 65 3b 7d 0d 09 65 |eturn fa|lse;}..e|
|00001b90| 6c 73 65 20 7b 0d 09 09 | 6e 6f 64 65 20 3d 20 47 |lse {...|node = G|
|00001ba0| 65 74 48 42 46 72 6f 6d | 57 69 6e 64 6f 77 28 74 |etHBFrom|Window(t|
|00001bb0| 68 65 57 69 6e 64 6f 77 | 29 3b 0d 09 09 69 66 20 |heWindow|);...if |
|00001bc0| 28 6e 6f 64 65 2d 3e 69 | 73 56 69 73 69 62 6c 65 |(node->i|sVisible|
|00001bd0| 29 20 7b 0d 09 09 09 48 | 42 53 65 74 55 70 50 65 |) {....H|BSetUpPe|
|00001be0| 6e 53 74 75 66 66 28 74 | 68 65 57 69 6e 64 6f 77 |nStuff(t|heWindow|
|00001bf0| 29 3b 0d 09 09 09 47 6c | 6f 62 61 6c 54 6f 4c 6f |);....Gl|obalToLo|
|00001c00| 63 61 6c 28 26 74 68 65 | 50 6f 69 6e 74 29 3b 0d |cal(&the|Point);.|
|00001c10| 09 09 09 72 65 73 75 6c | 74 20 3d 20 50 74 49 6e |...resul|t = PtIn|
|00001c20| 52 65 63 74 28 74 68 65 | 50 6f 69 6e 74 2c 20 26 |Rect(the|Point, &|
|00001c30| 47 65 74 48 42 52 65 63 | 74 28 74 68 65 57 69 6e |GetHBRec|t(theWin|
|00001c40| 64 6f 77 29 29 3b 0d 09 | 09 09 48 42 52 65 73 74 |dow));..|..HBRest|
|00001c50| 6f 72 65 50 65 6e 53 74 | 75 66 66 28 29 3b 0d 09 |orePenSt|uff();..|
|00001c60| 09 09 72 65 74 75 72 6e | 20 72 65 73 75 6c 74 3b |..return| result;|
|00001c70| 7d 0d 09 09 7d 0d 09 72 | 65 74 75 72 6e 20 66 61 |}...}..r|eturn fa|
|00001c80| 6c 73 65 3b 0d 09 7d 0d | 09 0d 76 6f 69 64 09 48 |lse;..}.|..void.H|
|00001c90| 42 53 68 6f 77 48 69 64 | 65 28 57 69 6e 64 6f 77 |BShowHid|e(Window|
|00001ca0| 50 74 72 20 74 68 65 57 | 69 6e 64 6f 77 2c 20 63 |Ptr theW|indow, c|
|00001cb0| 68 61 72 20 73 68 6f 77 | 49 74 29 0d 09 7b 0d 09 |har show|It)..{..|
|00001cc0| 65 78 74 65 72 6e 20 09 | 48 42 47 6c 6f 62 61 6c |extern .|HBGlobal|
|00001cd0| 73 50 74 72 20 48 67 3b | 0d 09 48 42 50 74 72 09 |sPtr Hg;|..HBPtr.|
|00001ce0| 09 6e 6f 64 65 3b 0d 09 | 52 65 63 74 09 09 09 74 |.node;..|Rect...t|
|00001cf0| 68 65 52 65 63 74 3b 0d | 09 0d 09 6e 6f 64 65 20 |heRect;.|...node |
|00001d00| 3d 20 47 65 74 48 42 46 | 72 6f 6d 57 69 6e 64 6f |= GetHBF|romWindo|
|00001d10| 77 28 74 68 65 57 69 6e | 64 6f 77 29 3b 0d 09 69 |w(theWin|dow);..i|
|00001d20| 66 20 28 6e 6f 64 65 21 | 3d 30 29 20 7b 0d 09 09 |f (node!|=0) {...|
|00001d30| 69 66 20 28 6e 6f 64 65 | 2d 3e 69 73 56 69 73 69 |if (node|->isVisi|
|00001d40| 62 6c 65 21 3d 73 68 6f | 77 49 74 29 20 7b 0d 09 |ble!=sho|wIt) {..|
|00001d50| 09 09 6e 6f 64 65 2d 3e | 69 73 56 69 73 69 62 6c |..node->|isVisibl|
|00001d60| 65 20 3d 20 73 68 6f 77 | 49 74 3b 0d 09 09 09 48 |e = show|It;....H|
|00001d70| 42 53 65 74 55 70 50 65 | 6e 53 74 75 66 66 28 74 |BSetUpPe|nStuff(t|
|00001d80| 68 65 57 69 6e 64 6f 77 | 29 3b 0d 09 09 09 74 68 |heWindow|);....th|
|00001d90| 65 52 65 63 74 20 3d 20 | 74 68 65 57 69 6e 64 6f |eRect = |theWindo|
|00001da0| 77 2d 3e 70 6f 72 74 52 | 65 63 74 3b 0d 09 09 09 |w->portR|ect;....|
|00001db0| 69 66 20 28 21 73 68 6f | 77 49 74 29 20 7b 0d 09 |if (!sho|wIt) {..|
|00001dc0| 09 09 09 53 69 7a 65 57 | 69 6e 64 6f 77 28 74 68 |...SizeW|indow(th|
|00001dd0| 65 57 69 6e 64 6f 77 2c | 74 68 65 52 65 63 74 2e |eWindow,|theRect.|
|00001de0| 72 69 67 68 74 20 2d 20 | 74 68 65 52 65 63 74 2e |right - |theRect.|
|00001df0| 6c 65 66 74 2c 20 74 68 | 65 52 65 63 74 2e 62 6f |left, th|eRect.bo|
|00001e00| 74 74 6f 6d 20 2d 20 74 | 68 65 52 65 63 74 2e 74 |ttom - t|heRect.t|
|00001e10| 6f 70 20 2d 20 48 67 2d | 3e 74 65 78 74 49 6e 66 |op - Hg-|>textInf|
|00001e20| 6f 2e 6c 65 61 64 69 6e | 67 2c 20 74 72 75 65 29 |o.leadin|g, true)|
|00001e30| 3b 0d 09 09 09 09 48 67 | 2d 3e 73 61 76 65 4f 72 |;.....Hg|->saveOr|
|00001e40| 69 67 69 6e 20 3d 20 48 | 67 2d 3e 73 61 76 65 4f |igin = H|g->saveO|
|00001e50| 72 69 67 69 6e 20 2b 20 | 48 67 2d 3e 74 65 78 74 |rigin + |Hg->text|
|00001e60| 49 6e 66 6f 2e 6c 65 61 | 64 69 6e 67 3b 7d 0d 09 |Info.lea|ding;}..|
|00001e70| 09 09 65 6c 73 65 20 7b | 0d 09 09 09 09 53 69 7a |..else {|.....Siz|
|00001e80| 65 57 69 6e 64 6f 77 28 | 74 68 65 57 69 6e 64 6f |eWindow(|theWindo|
|00001e90| 77 2c 74 68 65 52 65 63 | 74 2e 72 69 67 68 74 20 |w,theRec|t.right |
|00001ea0| 2d 20 74 68 65 52 65 63 | 74 2e 6c 65 66 74 2c 20 |- theRec|t.left, |
|00001eb0| 74 68 65 52 65 63 74 2e | 62 6f 74 74 6f 6d 20 2d |theRect.|bottom -|
|00001ec0| 20 74 68 65 52 65 63 74 | 2e 74 6f 70 20 2b 20 48 | theRect|.top + H|
|00001ed0| 67 2d 3e 74 65 78 74 49 | 6e 66 6f 2e 6c 65 61 64 |g->textI|nfo.lead|
|00001ee0| 69 6e 67 2c 74 72 75 65 | 29 3b 0d 09 09 09 09 48 |ing,true|);.....H|
|00001ef0| 67 2d 3e 73 61 76 65 4f | 72 69 67 69 6e 20 3d 20 |g->saveO|rigin = |
|00001f00| 48 67 2d 3e 73 61 76 65 | 4f 72 69 67 69 6e 20 2d |Hg->save|Origin -|
|00001f10| 20 48 67 2d 3e 74 65 78 | 74 49 6e 66 6f 2e 6c 65 | Hg->tex|tInfo.le|
|00001f20| 61 64 69 6e 67 3b 7d 0d | 09 09 09 45 72 61 73 65 |ading;}.|...Erase|
|00001f30| 52 65 63 74 28 26 28 74 | 68 65 57 69 6e 64 6f 77 |Rect(&(t|heWindow|
|00001f40| 2d 3e 70 6f 72 74 52 65 | 63 74 29 29 3b 0d 09 09 |->portRe|ct));...|
|00001f50| 09 49 6e 76 61 6c 52 65 | 63 74 28 26 28 74 68 65 |.InvalRe|ct(&(the|
|00001f60| 57 69 6e 64 6f 77 2d 3e | 70 6f 72 74 52 65 63 74 |Window->|portRect|
|00001f70| 29 29 3b 0d 09 09 09 48 | 42 52 65 73 74 6f 72 65 |));....H|BRestore|
|00001f80| 50 65 6e 53 74 75 66 66 | 28 29 3b 0d 09 09 09 6e |PenStuff|();....n|
|00001f90| 6f 64 65 2d 3e 6f 66 66 | 73 65 74 20 3d 20 74 68 |ode->off|set = th|
|00001fa0| 65 57 69 6e 64 6f 77 2d | 3e 70 6f 72 74 52 65 63 |eWindow-|>portRec|
|00001fb0| 74 2e 74 6f 70 20 2b 20 | 48 67 2d 3e 74 65 78 74 |t.top + |Hg->text|
|00001fc0| 49 6e 66 6f 2e 6c 65 61 | 64 69 6e 67 3b 0d 09 09 |Info.lea|ding;...|
|00001fd0| 09 7d 0d 09 09 7d 0d 09 | 7d 0d 09 0d 48 42 53 74 |.}...}..|}...HBSt|
|00001fe0| 79 6c 65 09 48 42 47 65 | 74 53 74 79 6c 65 28 57 |yle.HBGe|tStyle(W|
|00001ff0| 69 6e 64 6f 77 50 74 72 | 20 74 68 65 57 69 6e 64 |indowPtr| theWind|
|00002000| 6f 77 29 0d 09 7b 0d 09 | 72 65 74 75 72 6e 20 28 |ow)..{..|return (|
|00002010| 47 65 74 48 42 46 72 6f | 6d 57 69 6e 64 6f 77 28 |GetHBFro|mWindow(|
|00002020| 74 68 65 57 69 6e 64 6f | 77 29 2d 3e 73 74 79 6c |theWindo|w)->styl|
|00002030| 65 29 3b 0d 09 7d 0d 09 | 0d 76 6f 69 64 09 48 42 |e);..}..|.void.HB|
|00002040| 53 65 74 53 74 79 6c 65 | 28 57 69 6e 64 6f 77 50 |SetStyle|(WindowP|
|00002050| 74 72 20 74 68 65 57 69 | 6e 64 6f 77 2c 20 48 42 |tr theWi|ndow, HB|
|00002060| 53 74 79 6c 65 20 2a 6e | 65 77 53 74 79 6c 65 29 |Style *n|ewStyle)|
|00002070| 0d 09 7b 0d 09 48 42 53 | 65 74 55 70 50 65 6e 53 |..{..HBS|etUpPenS|
|00002080| 74 75 66 66 28 74 68 65 | 57 69 6e 64 6f 77 29 3b |tuff(the|Window);|
|00002090| 0d 09 47 65 74 48 42 46 | 72 6f 6d 57 69 6e 64 6f |..GetHBF|romWindo|
|000020a0| 77 28 74 68 65 57 69 6e | 64 6f 77 29 2d 3e 73 74 |w(theWin|dow)->st|
|000020b0| 79 6c 65 20 3d 20 2a 6e | 65 77 53 74 79 6c 65 3b |yle = *n|ewStyle;|
|000020c0| 0d 09 49 6e 76 61 6c 52 | 65 63 74 28 26 28 74 68 |..InvalR|ect(&(th|
|000020d0| 65 57 69 6e 64 6f 77 2d | 3e 70 6f 72 74 52 65 63 |eWindow-|>portRec|
|000020e0| 74 29 29 3b 0d 09 48 42 | 52 65 73 74 6f 72 65 50 |t));..HB|RestoreP|
|000020f0| 65 6e 53 74 75 66 66 28 | 29 3b 0d 09 7d 0d 09 0d |enStuff(|);..}...|
|00002100| 73 68 6f 72 74 09 48 42 | 47 65 74 48 65 69 67 68 |short.HB|GetHeigh|
|00002110| 74 28 57 69 6e 64 6f 77 | 50 74 72 20 74 68 65 57 |t(Window|Ptr theW|
|00002120| 69 6e 64 6f 77 29 0d 09 | 7b 0d 09 65 78 74 65 72 |indow)..|{..exter|
|00002130| 6e 20 09 48 42 47 6c 6f | 62 61 6c 73 50 74 72 20 |n .HBGlo|balsPtr |
|00002140| 48 67 3b 0d 09 73 68 6f | 72 74 09 73 69 7a 65 3b |Hg;..sho|rt.size;|
|00002150| 0d 09 0d 09 48 42 53 65 | 74 55 70 50 65 6e 53 74 |....HBSe|tUpPenSt|
|00002160| 75 66 66 28 74 68 65 57 | 69 6e 64 6f 77 29 3b 0d |uff(theW|indow);.|
|00002170| 09 73 69 7a 65 20 3d 20 | 28 48 67 2d 3e 74 65 78 |.size = |(Hg->tex|
|00002180| 74 49 6e 66 6f 2e 6c 65 | 61 64 69 6e 67 29 3b 0d |tInfo.le|ading);.|
|00002190| 09 48 42 52 65 73 74 6f | 72 65 50 65 6e 53 74 75 |.HBResto|rePenStu|
|000021a0| 66 66 28 29 3b 0d 09 72 | 65 74 75 72 6e 20 73 69 |ff();..r|eturn si|
|000021b0| 7a 65 3b 0d 09 7d 0d 09 | 0d 73 68 6f 72 74 09 48 |ze;..}..|.short.H|
|000021c0| 42 47 65 74 4f 66 66 73 | 65 74 28 57 69 6e 64 6f |BGetOffs|et(Windo|
|000021d0| 77 50 74 72 20 74 68 65 | 57 69 6e 64 6f 77 29 0d |wPtr the|Window).|
|000021e0| 09 7b 0d 09 48 42 50 74 | 72 09 6e 6f 64 65 3b 0d |.{..HBPt|r.node;.|
|000021f0| 09 0d 09 6e 6f 64 65 20 | 3d 20 47 65 74 48 42 46 |...node |= GetHBF|
|00002200| 72 6f 6d 57 69 6e 64 6f | 77 28 74 68 65 57 69 6e |romWindo|w(theWin|
|00002210| 64 6f 77 29 3b 0d 09 69 | 66 20 28 6e 6f 64 65 21 |dow);..i|f (node!|
|00002220| 3d 30 29 20 7b 0d 09 09 | 72 65 74 75 72 6e 20 6e |=0) {...|return n|
|00002230| 6f 64 65 2d 3e 6f 66 66 | 73 65 74 3b 7d 0d 09 72 |ode->off|set;}..r|
|00002240| 65 74 75 72 6e 20 30 3b | 0d 09 7d 0d 09 0d 76 6f |eturn 0;|..}...vo|
|00002250| 69 64 09 48 42 53 65 74 | 4f 66 66 73 65 74 28 57 |id.HBSet|Offset(W|
|00002260| 69 6e 64 6f 77 50 74 72 | 20 74 68 65 57 69 6e 64 |indowPtr| theWind|
|00002270| 6f 77 2c 20 73 68 6f 72 | 74 20 6e 65 77 4f 66 66 |ow, shor|t newOff|
|00002280| 73 65 74 29 0d 09 7b 0d | 09 48 42 50 74 72 09 6e |set)..{.|.HBPtr.n|
|00002290| 6f 64 65 3b 0d 0d 09 6e | 6f 64 65 20 3d 20 47 65 |ode;...n|ode = Ge|
|000022a0| 74 48 42 46 72 6f 6d 57 | 69 6e 64 6f 77 28 74 68 |tHBFromW|indow(th|
|000022b0| 65 57 69 6e 64 6f 77 29 | 3b 0d 09 69 66 20 28 6e |eWindow)|;..if (n|
|000022c0| 6f 64 65 21 3d 30 29 20 | 7b 0d 09 09 6e 6f 64 65 |ode!=0) |{...node|
|000022d0| 2d 3e 6f 66 66 73 65 74 | 20 3d 20 6e 65 77 4f 66 |->offset| = newOf|
|000022e0| 66 73 65 74 3b 7d 0d 09 | 7d 0d 09 0d 76 6f 69 64 |fset;}..|}...void|
|000022f0| 09 48 42 47 65 74 53 74 | 72 69 6e 67 28 57 69 6e |.HBGetSt|ring(Win|
|00002300| 64 6f 77 50 74 72 20 74 | 68 65 57 69 6e 64 6f 77 |dowPtr t|heWindow|
|00002310| 2c 20 53 74 72 32 35 35 | 20 74 68 65 53 74 72 69 |, Str255| theStri|
|00002320| 6e 67 29 0d 09 7b 0d 09 | 48 42 50 74 72 09 6e 6f |ng)..{..|HBPtr.no|
|00002330| 64 65 3b 0d 09 0d 09 6e | 6f 64 65 20 3d 20 47 65 |de;....n|ode = Ge|
|00002340| 74 48 42 46 72 6f 6d 57 | 69 6e 64 6f 77 28 74 68 |tHBFromW|indow(th|
|00002350| 65 57 69 6e 64 6f 77 29 | 3b 0d 09 69 66 20 28 6e |eWindow)|;..if (n|
|00002360| 6f 64 65 21 3d 30 29 20 | 7b 0d 09 09 42 6c 6f 63 |ode!=0) |{...Bloc|
|00002370| 6b 4d 6f 76 65 28 6e 6f | 64 65 2d 3e 64 69 73 70 |kMove(no|de->disp|
|00002380| 6c 61 79 2c 74 68 65 53 | 74 72 69 6e 67 2c 32 35 |lay,theS|tring,25|
|00002390| 36 29 3b 7d 0d 09 7d 0d | 0d 76 6f 69 64 09 48 42 |6);}..}.|.void.HB|
|000023a0| 53 65 74 53 74 72 69 6e | 67 28 57 69 6e 64 6f 77 |SetStrin|g(Window|
|000023b0| 50 74 72 20 74 68 65 57 | 69 6e 64 6f 77 2c 20 53 |Ptr theW|indow, S|
|000023c0| 74 72 32 35 35 20 74 68 | 65 53 74 72 69 6e 67 29 |tr255 th|eString)|
|000023d0| 0d 09 7b 0d 09 48 42 50 | 74 72 09 6e 6f 64 65 3b |..{..HBP|tr.node;|
|000023e0| 0d 0d 09 6e 6f 64 65 20 | 3d 20 47 65 74 48 42 46 |...node |= GetHBF|
|000023f0| 72 6f 6d 57 69 6e 64 6f | 77 28 74 68 65 57 69 6e |romWindo|w(theWin|
|00002400| 64 6f 77 29 3b 0d 09 69 | 66 20 28 6e 6f 64 65 21 |dow);..i|f (node!|
|00002410| 3d 30 29 20 7b 0d 09 09 | 42 6c 6f 63 6b 4d 6f 76 |=0) {...|BlockMov|
|00002420| 65 28 74 68 65 53 74 72 | 69 6e 67 2c 6e 6f 64 65 |e(theStr|ing,node|
|00002430| 2d 3e 64 69 73 70 6c 61 | 79 2c 32 35 36 29 3b 0d |->displa|y,256);.|
|00002440| 09 09 48 42 44 72 61 77 | 28 74 68 65 57 69 6e 64 |..HBDraw|(theWind|
|00002450| 6f 77 29 3b 7d 0d 09 7d | 00 00 00 00 00 00 00 00 |ow);}..}|........|
|00002460| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002470| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002480| 00 00 01 00 00 00 01 54 | 00 00 00 54 00 00 00 46 |.......T|...T...F|
|00002490| 00 f6 2b 2b 2b ff ff ff | ff ff ff ff ff ff ff ff |..+++...|........|
|000024a0| ff 2b 2b 2b f7 f7 ff 00 | 00 00 00 00 00 00 00 ff |.+++....|........|
|000024b0| 0e 48 65 6c 70 42 61 72 | 55 74 69 6c 73 2e 63 48 |.HelpBar|Utils.cH|
|000024c0| 02 00 00 00 54 45 58 54 | 43 57 49 45 01 00 00 00 |....TEXT|CWIE....|
|000024d0| 00 00 54 45 58 54 43 57 | 49 45 01 00 00 00 00 8c |..TEXTCW|IE......|
|000024e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000024f0| 00 00 63 3e 48 4e 00 00 | 23 d8 00 00 01 9a 00 00 |..c>HN..|#.......|
|00002500| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002580| 00 00 00 48 00 09 47 65 | 6e 65 76 61 00 00 00 00 |...H..Ge|neva....|
|00002590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000025a0| 00 00 00 00 00 00 00 03 | 00 04 00 6a 00 09 01 d0 |........|...j....|
|000025b0| 02 68 00 6a 00 09 01 d0 | 02 68 63 42 62 a5 00 00 |.h.j....|.hcBb...|
|000025c0| 1f 52 00 00 1f 52 00 00 | 1c 0a 01 00 00 00 00 04 |.R...R..|........|
|000025d0| 00 01 00 01 00 00 01 00 | 00 00 01 54 00 00 00 54 |........|...T...T|
|000025e0| 00 00 00 46 01 33 96 10 | 1b ea 00 00 00 1c 00 46 |...F.3..|.......F|
|000025f0| 00 01 4d 50 53 52 00 00 | 00 12 4d 57 42 42 00 00 |..MPSR..|..MWBB..|
|00002600| 00 1e 03 ed ff ff 00 00 | 00 00 00 00 00 00 03 f0 |........|........|
|00002610| ff ff 00 00 00 4c 00 00 | 00 00 00 00 00 00 00 00 |.....L..|........|
|00002620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+