home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Tools / Languages / Mops 2.5 / Mops source.sit / Mops source / Module source / windowmod.txt < prev   
MacBinary  |  1994-10-24  |  10.6 KB  |  [TEXT/MSET]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

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

You can browse this item here: windowmod.txt

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Mon Oct 24 18:43:12 1994, modified Mon Oct 24 18:43:12 1994, creator 'MSET', type ASCII, 10343 bytes "windowmod.txt" , at 0x28e7 286 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[MSET]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0d 77 69 6e 64 6f 77 | 6d 6f 64 2e 74 78 74 00 |..window|mod.txt.|
|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 4d 53 45 | 54 01 00 00 00 00 00 00 |.TEXTMSE|T.......|
|00000050| 00 00 00 00 00 28 67 00 | 00 01 1e aa d1 e9 00 aa |.....(g.|........|
|00000060| d1 e9 00 00 00 06 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 32 10 00 00 |........|....2...|
|00000080| 5c 20 57 69 6e 64 6f 77 | 20 63 6c 61 73 73 2e 0d |\ Window| class..|
|00000090| 0d 5c 20 20 4d 61 79 20 | 39 31 20 6d 72 68 09 41 |.\ May |91 mrh.A|
|000000a0| 64 64 65 64 20 4e 6f 6e | 53 63 72 6f 6c 6c 57 69 |dded Non|ScrollWi|
|000000b0| 6e 64 2e 0d 5c 09 44 65 | 66 61 75 6c 74 20 67 72 |nd..\.De|fault gr|
|000000c0| 6f 77 20 61 6e 64 20 64 | 72 61 67 20 6c 69 6d 69 |ow and d|rag limi|
|000000d0| 74 73 20 73 65 74 20 61 | 74 20 67 72 6f 77 20 61 |ts set a|t grow a|
|000000e0| 6e 64 20 64 72 61 67 20 | 74 69 6d 65 2e 0d 5c 09 |nd drag |time..\.|
|000000f0| 41 6c 73 6f 20 66 69 78 | 65 64 20 61 20 6e 75 6d |Also fix|ed a num|
|00000100| 62 65 72 20 6f 66 20 6c | 6f 6e 67 2d 73 74 61 6e |ber of l|ong-stan|
|00000110| 64 69 6e 67 20 62 75 67 | 73 20 69 6e 20 64 72 61 |ding bug|s in dra|
|00000120| 77 3a 2c 20 65 6e 61 62 | 6c 65 3a 2c 20 64 69 73 |w:, enab|le:, dis|
|00000130| 61 62 6c 65 3a 0d 5c 09 | 65 74 63 2e 20 20 4e 65 |able:.\.|etc. Ne|
|00000140| 77 3a 20 64 65 61 63 74 | 69 76 61 74 65 73 20 63 |w: deact|ivates c|
|00000150| 75 72 72 65 6e 74 20 77 | 69 6e 64 6f 77 2e 20 20 |urrent w|indow. |
|00000160| 41 64 64 65 64 20 50 65 | 6e 49 6e 74 6f 57 69 6e |Added Pe|nIntoWin|
|00000170| 64 3a 2e 0d 0d 0d 5c 09 | 09 3d 3d 3d 3d 3d 3d 3d |d:....\.|.=======|
|00000180| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000190| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 0d 0d 5c 20 |========|====..\ |
|000001a0| 57 49 4e 44 4f 57 20 69 | 73 20 74 68 65 20 62 61 |WINDOW i|s the ba|
|000001b0| 73 69 63 20 77 69 6e 64 | 6f 77 20 63 6c 61 73 73 |sic wind|ow class|
|000001c0| 2c 20 77 69 74 68 20 6e | 6f 20 63 6f 6e 74 72 6f |, with n|o contro|
|000001d0| 6c 73 2e 0d 5c 20 20 46 | 6f 72 20 77 69 6e 64 6f |ls..\ F|or windo|
|000001e0| 77 73 20 77 69 74 68 20 | 63 6f 6e 74 72 6f 6c 73 |ws with |controls|
|000001f0| 2c 20 75 73 65 20 57 69 | 6e 64 6f 77 2b 2e 0d 0d |, use Wi|ndow+...|
|00000200| 5c 09 09 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |\..=====|========|
|00000210| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000220| 3d 3d 3d 3d 3d 3d 0d 0d | 3a 63 6c 61 73 73 09 57 |======..|:class.W|
|00000230| 49 4e 44 4f 57 20 20 73 | 75 70 65 72 7b 20 67 72 |INDOW s|uper{ gr|
|00000240| 61 66 50 6f 72 74 20 7d | 0d 72 65 63 6f 72 64 0d |afPort }|.record.|
|00000250| 7b 09 24 20 32 30 09 62 | 79 74 65 73 09 77 69 6e |{.$ 20.b|ytes.win|
|00000260| 64 31 09 09 09 5c 20 75 | 6e 6d 61 70 70 65 64 0d |d1...\ u|nmapped.|
|00000270| 09 09 09 68 61 6e 64 6c | 65 09 43 54 4c 4c 49 53 |...handl|e.CTLLIS|
|00000280| 54 09 09 09 5c 20 31 73 | 74 20 63 74 6c 0d 09 24 |T...\ 1s|t ctl..$|
|00000290| 20 30 43 09 62 79 74 65 | 73 09 77 69 6e 64 32 09 | 0C.byte|s.wind2.|
|000002a0| 09 09 5c 20 75 6e 6d 61 | 70 70 65 64 0d 0d 09 09 |..\ unma|pped....|
|000002b0| 09 72 65 63 74 09 43 4f | 4e 54 52 45 43 54 09 09 |.rect.CO|NTRECT..|
|000002c0| 5c 20 74 72 75 65 20 63 | 6f 6e 74 65 6e 74 0d 09 |\ true c|ontent..|
|000002d0| 09 09 72 65 63 74 09 47 | 52 4f 57 52 45 43 54 09 |..rect.G|ROWRECT.|
|000002e0| 09 5c 20 67 72 6f 77 20 | 73 69 7a 65 20 72 65 63 |.\ grow |size rec|
|000002f0| 74 61 6e 67 6c 65 0d 09 | 09 09 72 65 63 74 09 44 |tangle..|..rect.D|
|00000300| 52 41 47 52 45 43 54 09 | 09 5c 20 64 72 61 67 20 |RAGRECT.|.\ drag |
|00000310| 6c 69 6d 69 74 73 20 72 | 65 63 74 0d 0d 09 09 09 |limits r|ect.....|
|00000320| 62 6f 6f 6c 09 47 52 4f | 57 46 4c 47 09 09 09 5c |bool.GRO|WFLG...\|
|00000330| 20 74 72 75 65 20 69 66 | 20 67 72 6f 77 61 62 6c | true if| growabl|
|00000340| 65 0d 09 09 09 62 6f 6f | 6c 09 44 52 41 47 46 4c |e....boo|l.DRAGFL|
|00000350| 47 09 09 09 5c 20 74 72 | 75 65 20 69 66 20 64 72 |G...\ tr|ue if dr|
|00000360| 61 67 67 61 62 6c 65 0d | 09 09 09 62 6f 6f 6c 09 |aggable.|...bool.|
|00000370| 41 4c 49 56 45 09 09 09 | 5c 20 74 72 75 65 20 69 |ALIVE...|\ true i|
|00000380| 66 20 73 70 61 63 65 20 | 65 78 69 73 74 73 0d 09 |f space |exists..|
|00000390| 09 09 62 6f 6f 6c 09 53 | 43 52 4f 4c 4c 46 4c 47 |..bool.S|CROLLFLG|
|000003a0| 09 09 5c 20 74 72 75 65 | 20 69 66 20 73 63 72 6f |..\ true| if scro|
|000003b0| 6c 6c 61 62 6c 65 0d 0d | 09 09 09 78 2d 61 64 64 |llable..|...x-add|
|000003c0| 72 09 49 44 4c 45 09 09 | 09 5c 20 69 64 6c 65 20 |r.IDLE..|.\ idle |
|000003d0| 68 61 6e 64 6c 65 72 0d | 09 09 09 78 2d 61 64 64 |handler.|...x-add|
|000003e0| 72 09 44 45 41 43 54 09 | 09 09 5c 20 64 65 61 63 |r.DEACT.|..\ deac|
|000003f0| 74 69 76 61 74 65 20 65 | 76 65 6e 74 20 68 61 6e |tivate e|vent han|
|00000400| 64 6c 65 72 0d 0d 09 09 | 09 78 2d 61 64 64 72 09 |dler....|.x-addr.|
|00000410| 43 4f 4e 54 45 4e 54 09 | 09 09 5c 20 63 6f 6e 74 |CONTENT.|..\ cont|
|00000420| 65 6e 74 20 68 61 6e 64 | 6c 65 72 0d 09 09 09 78 |ent hand|ler....x|
|00000430| 2d 61 64 64 72 09 44 52 | 41 57 09 09 09 5c 20 64 |-addr.DR|AW...\ d|
|00000440| 72 61 77 20 68 61 6e 64 | 6c 65 72 0d 09 09 09 78 |raw hand|ler....x|
|00000450| 2d 61 64 64 72 09 45 4e | 41 43 54 09 09 09 5c 20 |-addr.EN|ACT...\ |
|00000460| 61 63 74 69 76 61 74 65 | 20 65 76 65 6e 74 20 68 |activate| event h|
|00000470| 61 6e 64 6c 65 72 0d 09 | 09 09 78 2d 61 64 64 72 |andler..|..x-addr|
|00000480| 09 43 4c 4f 53 45 09 09 | 09 5c 20 63 6c 6f 73 65 |.CLOSE..|.\ close|
|00000490| 20 68 61 6e 64 6c 65 72 | 0d 0d 09 09 09 69 6e 74 | handler|.....int|
|000004a0| 09 09 52 45 53 49 44 09 | 09 09 5c 20 72 65 73 6f |..RESID.|..\ reso|
|000004b0| 75 72 63 65 20 69 64 0d | 7d 0d 70 72 69 76 61 74 |urce id.|}.privat|
|000004c0| 65 0d 0d 3a 6d 20 53 45 | 54 4c 49 4d 49 54 53 3a |e..:m SE|TLIMITS:|
|000004d0| 09 5c 20 53 65 74 73 20 | 47 72 6f 77 52 65 63 74 |.\ Sets |GrowRect|
|000004e0| 20 61 6e 64 20 44 72 61 | 67 52 65 63 74 20 74 6f | and Dra|gRect to|
|000004f0| 20 72 65 61 73 6f 6e 61 | 62 6c 65 20 64 65 66 61 | reasona|ble defa|
|00000500| 75 6c 74 20 76 61 6c 75 | 65 73 0d 09 09 09 09 5c |ult valu|es.....\|
|00000510| 20 61 63 63 6f 72 64 69 | 6e 67 20 74 6f 20 74 68 | accordi|ng to th|
|00000520| 65 20 63 75 72 72 65 6e | 74 20 73 63 72 65 65 6e |e curren|t screen|
|00000530| 20 73 69 7a 65 20 61 74 | 20 74 68 65 20 74 69 6d | size at| the tim|
|00000540| 65 20 74 68 65 20 67 72 | 6f 77 0d 09 09 09 09 5c |e the gr|ow.....\|
|00000550| 20 6f 72 20 64 72 61 67 | 20 69 73 20 64 6f 6e 65 | or drag| is done|
|00000560| 2e 20 20 50 72 6f 67 72 | 61 6d 73 20 73 75 63 68 |. Progr|ams such|
|00000570| 20 61 73 20 53 74 65 70 | 70 69 6e 67 4f 75 74 20 | as Step|pingOut |
|00000580| 63 61 6e 20 63 68 61 6e | 67 65 0d 09 09 09 09 5c |can chan|ge.....\|
|00000590| 20 74 68 65 20 73 63 72 | 65 65 6e 20 73 69 7a 65 | the scr|een size|
|000005a0| 20 77 68 69 6c 65 20 61 | 20 77 69 6e 64 6f 77 20 | while a| window |
|000005b0| 69 73 20 6f 70 65 6e 21 | 0d 0d 09 73 63 72 65 65 |is open!|...scree|
|000005c0| 6e 62 69 74 73 20 20 70 | 75 74 3a 20 64 72 61 67 |nbits p|ut: drag|
|000005d0| 52 65 63 74 0d 09 34 30 | 20 34 30 20 67 65 74 42 |Rect..40| 40 getB|
|000005e0| 6f 74 3a 20 64 72 61 67 | 52 65 63 74 20 20 70 75 |ot: drag|Rect pu|
|000005f0| 74 3a 20 67 72 6f 77 52 | 65 63 74 0d 09 34 20 34 |t: growR|ect..4 4|
|00000600| 20 69 6e 73 65 74 3a 20 | 64 72 61 67 52 65 63 74 | inset: |dragRect|
|00000610| 20 20 3b 6d 0d 0d 3a 6d | 20 3f 53 45 54 46 50 52 | ;m..:m| ?SETFPR|
|00000620| 45 43 54 3a 09 5c 20 53 | 65 74 73 20 66 50 72 65 |ECT:.\ S|ets fPre|
|00000630| 63 74 20 69 66 20 73 63 | 72 6f 6c 6c 46 6c 67 20 |ct if sc|rollFlg |
|00000640| 69 73 20 74 72 75 65 2e | 20 20 66 50 72 65 63 74 |is true.| fPrect|
|00000650| 20 69 73 20 6e 65 65 64 | 65 64 20 62 79 0d 09 09 | is need|ed by...|
|00000660| 09 09 5c 20 74 68 65 20 | 6e 75 63 6c 65 75 73 20 |..\ the |nucleus |
|00000670| 66 6f 72 20 73 63 72 6f | 6c 6c 69 6e 67 20 66 57 |for scro|lling fW|
|00000680| 69 6e 64 2c 20 62 65 66 | 6f 72 65 20 70 72 6f 70 |ind, bef|ore prop|
|00000690| 65 72 20 77 69 6e 64 6f | 77 0d 09 09 09 09 5c 20 |er windo|w.....\ |
|000006a0| 68 61 6e 64 6c 69 6e 67 | 20 69 73 20 6c 6f 61 64 |handling| is load|
|000006b0| 65 64 2e 20 20 42 75 74 | 20 69 74 20 63 61 6e 20 |ed. But| it can |
|000006c0| 62 65 20 75 73 65 64 20 | 66 6f 72 20 73 63 72 6f |be used |for scro|
|000006d0| 6c 6c 69 6e 67 0d 09 09 | 09 09 5c 20 74 65 78 74 |lling...|..\ text|
|000006e0| 20 69 6e 20 61 6e 79 20 | 6f 74 68 65 72 20 77 69 | in any |other wi|
|000006f0| 6e 64 6f 77 20 61 73 20 | 77 65 6c 6c 2c 20 69 66 |ndow as |well, if|
|00000700| 20 73 63 72 6f 6c 6c 69 | 6e 67 20 69 73 20 65 6e | scrolli|ng is en|
|00000710| 61 62 6c 65 64 0d 09 09 | 09 09 5c 20 66 6f 72 20 |abled...|..\ for |
|00000720| 74 68 61 74 20 77 69 6e | 64 6f 77 2e 0d 0d 09 67 |that win|dow....g|
|00000730| 65 74 3a 20 73 63 72 6f | 6c 6c 46 6c 67 20 49 46 |et: scro|llFlg IF|
|00000740| 20 20 67 65 74 3a 20 63 | 6f 6e 74 52 65 63 74 20 | get: c|ontRect |
|00000750| 20 70 75 74 3a 20 66 50 | 72 65 63 74 20 20 54 48 | put: fP|rect TH|
|00000760| 45 4e 20 20 3b 6d 0d 0d | 3a 6d 20 3f 44 49 53 41 |EN ;m..|:m ?DISA|
|00000770| 42 4c 45 5f 41 43 54 57 | 3a 09 5c 20 44 65 61 63 |BLE_ACTW|:.\ Deac|
|00000780| 74 69 76 61 74 65 73 20 | 74 68 65 20 63 75 72 72 |tivates |the curr|
|00000790| 65 6e 74 6c 79 20 61 63 | 74 69 76 65 20 77 69 6e |ently ac|tive win|
|000007a0| 64 6f 77 20 62 65 66 6f | 72 65 20 61 20 4e 65 77 |dow befo|re a New|
|000007b0| 3a 0d 09 09 09 09 09 5c | 20 6f 72 20 47 65 74 4e |:......\| or GetN|
|000007c0| 65 77 3a 20 63 61 6c 6c | 2c 20 69 66 20 74 68 65 |ew: call|, if the|
|000007d0| 72 65 20 69 73 20 61 20 | 63 75 72 72 65 6e 74 6c |re is a |currentl|
|000007e0| 79 20 61 63 74 69 76 65 | 20 4d 6f 70 73 20 0d 09 |y active| Mops ..|
|000007f0| 09 09 09 09 5c 20 77 69 | 6e 64 6f 77 2e 0d 09 61 |....\ wi|ndow...a|
|00000800| 63 74 57 20 20 30 45 58 | 49 54 0d 09 64 69 73 61 |ctW 0EX|IT..disa|
|00000810| 62 6c 65 3a 20 61 63 74 | 57 20 20 30 20 2d 3e 20 |ble: act|W 0 -> |
|00000820| 61 63 74 57 20 20 3b 6d | 0d 0d 3a 6d 20 49 6e 69 |actW ;m|..:m Ini|
|00000830| 74 4e 65 77 57 69 6e 64 | 6f 77 3a 0d 09 73 65 74 |tNewWind|ow:..set|
|00000840| 43 6f 6e 74 52 65 63 74 | 3a 20 5b 73 65 6c 66 5d |ContRect|: [self]|
|00000850| 0d 09 73 65 74 3a 20 73 | 65 6c 66 20 20 69 6e 69 |..set: s|elf ini|
|00000860| 74 66 6f 6e 74 20 20 74 | 72 75 65 20 20 70 75 74 |tfont t|rue put|
|00000870| 3a 20 61 6c 69 76 65 0d | 09 63 6c 73 20 20 3b 6d |: alive.|.cls ;m|
|00000880| 0d 0d 3a 6d 20 50 65 6e | 49 6e 74 6f 57 69 6e 64 |..:m Pen|IntoWind|
|00000890| 3a 09 5c 20 4d 6f 76 65 | 73 20 74 68 65 20 47 72 |:.\ Move|s the Gr|
|000008a0| 61 66 50 6f 72 74 20 70 | 65 6e 20 62 61 63 6b 20 |afPort p|en back |
|000008b0| 69 6e 74 6f 20 74 68 65 | 20 77 69 6e 64 6f 77 20 |into the| window |
|000008c0| 61 72 65 61 20 69 66 0d | 09 09 09 09 5c 20 6e 65 |area if.|....\ ne|
|000008d0| 63 65 73 73 61 72 79 2c | 20 61 66 74 65 72 20 74 |cessary,| after t|
|000008e0| 68 65 20 77 69 6e 64 6f | 77 20 68 61 73 20 62 65 |he windo|w has be|
|000008f0| 65 6e 20 72 65 73 69 7a | 65 64 2e 0d 09 09 09 09 |en resiz|ed......|
|00000900| 5c 20 41 63 74 75 61 6c | 6c 79 20 61 74 20 74 68 |\ Actual|ly at th|
|00000910| 65 20 6d 6f 6d 65 6e 74 | 20 77 65 20 6f 6e 6c 79 |e moment| we only|
|00000920| 20 77 6f 72 72 79 20 61 | 62 6f 75 74 20 74 68 65 | worry a|bout the|
|00000930| 20 76 65 72 74 69 63 61 | 6c 0d 09 09 09 09 5c 20 | vertica|l.....\ |
|00000940| 64 69 72 65 63 74 69 6f | 6e 2e 0d 09 40 78 79 20 |directio|n...@xy |
|00000950| 62 6f 74 74 6f 6d 20 6d | 69 6e 20 20 67 6f 74 6f |bottom m|in goto|
|00000960| 78 79 20 20 3b 6d 0d 0d | 70 75 62 6c 69 63 0d 0d |xy ;m..|public..|
|00000970| 5c 20 47 72 6f 77 20 69 | 63 6f 6e 20 6d 65 74 68 |\ Grow i|con meth|
|00000980| 6f 64 73 3a 0d 0d 3a 6d | 20 44 52 41 57 47 52 4f |ods:..:m| DRAWGRO|
|00000990| 57 3a 0d 09 67 65 74 3a | 20 67 72 6f 77 46 6c 67 |W:..get:| growFlg|
|000009a0| 20 20 30 45 58 49 54 0d | 09 6e 6f 43 6c 69 70 20 | 0EXIT.|.noClip |
|000009b0| 20 40 78 79 0d 09 5e 62 | 61 73 65 20 20 63 61 6c | @xy..^b|ase cal|
|000009c0| 6c 20 44 72 61 77 47 72 | 6f 77 49 63 6f 6e 0d 09 |l DrawGr|owIcon..|
|000009d0| 67 6f 74 6f 78 79 20 20 | 3b 6d 0d 0d 3a 6d 20 45 |gotoxy |;m..:m E|
|000009e0| 52 41 53 45 47 52 4f 57 | 3a 20 20 7b 20 5c 20 6c |RASEGROW|: { \ l|
|000009f0| 20 74 20 72 20 62 20 2d | 2d 20 7d 0d 09 67 65 74 | t r b -|- }..get|
|00000a00| 3a 20 67 72 6f 77 46 6c | 67 20 20 30 45 58 49 54 |: growFl|g 0EXIT|
|00000a10| 0d 09 6e 6f 43 6c 69 70 | 0d 09 67 65 74 52 65 63 |..noClip|..getRec|
|00000a20| 74 3a 20 73 65 6c 66 20 | 20 2d 3e 20 62 20 2d 3e |t: self | -> b ->|
|00000a30| 20 72 20 2d 3e 20 74 20 | 2d 3e 20 6c 0d 09 72 20 | r -> t |-> l..r |
|00000a40| 31 33 20 2d 20 20 62 20 | 31 33 20 2d 20 20 72 20 |13 - b |13 - r |
|00000a50| 20 62 20 20 70 75 74 3a | 20 74 65 6d 70 52 65 63 | b put:| tempRec|
|00000a60| 74 0d 09 63 6c 65 61 72 | 3a 20 74 65 6d 70 52 65 |t..clear|: tempRe|
|00000a70| 63 74 20 20 3b 6d 0d 0d | 0d 0d 3a 6d 20 53 45 54 |ct ;m..|..:m SET|
|00000a80| 43 4f 4e 54 52 45 43 54 | 3a 09 5c 20 53 65 74 73 |CONTRECT|:.\ Sets|
|00000a90| 20 43 6f 6e 74 52 65 63 | 74 20 74 6f 20 74 68 65 | ContRec|t to the|
|00000aa0| 20 76 69 65 77 69 6e 67 | 20 61 72 65 61 2e 20 20 | viewing| area. |
|00000ab0| 4d 75 73 74 20 62 65 20 | 70 75 62 6c 69 63 20 73 |Must be |public s|
|00000ac0| 69 6e 63 65 20 0d 09 09 | 09 09 5c 20 77 65 20 6c |ince ...|..\ we l|
|00000ad0| 61 74 65 2d 62 69 6e 64 | 20 74 6f 20 69 74 2c 20 |ate-bind| to it, |
|00000ae0| 61 6e 64 20 69 74 20 67 | 65 74 73 20 63 61 6c 6c |and it g|ets call|
|00000af0| 65 64 20 66 72 6f 6d 20 | 4f 62 6a 49 6e 69 74 20 |ed from |ObjInit |
|00000b00| 61 6e 79 77 61 79 2e 0d | 0d 09 67 65 74 3a 20 70 |anyway..|..get: p|
|00000b10| 6f 72 74 52 65 63 74 20 | 20 67 65 74 3a 20 67 72 |ortRect | get: gr|
|00000b20| 6f 77 46 6c 67 0d 09 49 | 46 20 20 73 77 61 70 20 |owFlg..I|F swap |
|00000b30| 31 35 20 2d 20 20 73 77 | 61 70 20 20 31 35 20 2d |15 - sw|ap 15 -|
|00000b40| 20 20 54 48 45 4e 20 20 | 20 70 75 74 3a 20 63 6f | THEN | put: co|
|00000b50| 6e 74 52 65 63 74 0d 09 | 3f 73 65 74 66 50 72 65 |ntRect..|?setfPre|
|00000b60| 63 74 3a 20 73 65 6c 66 | 20 20 3b 6d 0d 0d 3a 6d |ct: self| ;m..:m|
|00000b70| 20 43 4c 4f 53 45 3a 0d | 09 67 65 74 3a 20 61 6c | CLOSE:.|.get: al|
|00000b80| 69 76 65 20 20 30 65 78 | 69 74 0d 09 5e 62 61 73 |ive 0ex|it..^bas|
|00000b90| 65 20 20 63 61 6c 6c 20 | 43 6c 6f 73 65 57 69 6e |e call |CloseWin|
|00000ba0| 64 6f 77 0d 09 63 6c 65 | 61 72 3a 20 61 6c 69 76 |dow..cle|ar: aliv|
|00000bb0| 65 20 20 20 65 78 65 63 | 3a 20 63 6c 6f 73 65 20 |e exec|: close |
|00000bc0| 20 3b 6d 0d 0d 3a 6d 20 | 52 45 4c 45 41 53 45 3a | ;m..:m |RELEASE:|
|00000bd0| 09 63 6c 6f 73 65 3a 20 | 5b 73 65 6c 66 5d 20 20 |.close: |[self] |
|00000be0| 3b 6d 09 5c 20 53 74 61 | 6e 64 61 72 64 20 64 65 |;m.\ Sta|ndard de|
|00000bf0| 73 74 72 75 63 74 6f 72 | 20 2d 20 73 61 6d 65 20 |structor| - same |
|00000c00| 61 73 20 63 6c 6f 73 65 | 2e 0d 0d 3a 6d 20 53 45 |as close|...:m SE|
|00000c10| 54 3a 09 09 5c 20 4d 61 | 6b 65 73 20 74 68 69 73 |T:..\ Ma|kes this|
|00000c20| 20 77 69 6e 64 20 74 68 | 65 20 63 75 72 72 65 6e | wind th|e curren|
|00000c30| 74 20 47 72 61 66 50 6f | 72 74 2e 20 20 49 74 20 |t GrafPo|rt. It |
|00000c40| 75 73 65 64 0d 09 09 09 | 5c 20 74 6f 20 63 61 6c |used....|\ to cal|
|00000c50| 6c 20 73 65 74 43 6f 6e | 74 52 65 63 74 3a 20 62 |l setCon|tRect: b|
|00000c60| 75 74 20 74 68 65 72 65 | 27 73 20 72 65 61 6c 6c |ut there|'s reall|
|00000c70| 79 20 6e 6f 20 6e 65 65 | 64 2e 0d 09 73 65 74 3a |y no nee|d...set:|
|00000c80| 20 73 75 70 65 72 0d 09 | 3f 73 65 74 66 50 72 65 | super..|?setfPre|
|00000c90| 63 74 3a 20 73 65 6c 66 | 20 20 3b 6d 0d 0d 3a 6d |ct: self| ;m..:m|
|00000ca0| 20 55 50 44 41 54 45 3a | 09 5c 20 47 65 6e 65 72 | UPDATE:|.\ Gener|
|00000cb0| 61 74 65 73 20 61 6e 20 | 75 70 64 61 74 65 20 65 |ates an |update e|
|00000cc0| 76 65 6e 74 20 66 6f 72 | 20 74 68 65 20 77 69 6e |vent for| the win|
|00000cd0| 64 6f 77 20 77 69 74 68 | 20 69 74 73 0d 09 09 09 |dow with| its....|
|00000ce0| 5c 20 20 65 6e 74 69 72 | 65 20 70 6f 72 74 20 72 |\ entir|e port r|
|00000cf0| 65 63 74 61 6e 67 6c 65 | 20 61 73 20 74 68 65 20 |ectangle| as the |
|00000d00| 75 70 64 61 74 65 20 72 | 65 67 69 6f 6e 2e 0d 09 |update r|egion...|
|00000d10| 70 75 73 68 50 6f 72 74 | 20 20 73 65 74 3a 20 73 |pushPort| set: s|
|00000d20| 65 6c 66 0d 09 67 65 74 | 52 65 63 74 3a 20 73 65 |elf..get|Rect: se|
|00000d30| 6c 66 20 20 70 75 74 3a | 20 74 65 6d 70 52 65 63 |lf put:| tempRec|
|00000d40| 74 20 20 75 70 64 61 74 | 65 3a 20 74 65 6d 70 52 |t updat|e: tempR|
|00000d50| 65 63 74 0d 09 70 6f 70 | 50 6f 72 74 20 20 3b 6d |ect..pop|Port ;m|
|00000d60| 0d 0d 0d 3a 6d 20 4e 45 | 57 3a 20 7b 20 62 6e 64 |...:m NE|W: { bnd|
|00000d70| 73 52 65 63 74 20 74 41 | 64 64 72 20 74 4c 65 6e |sRect tA|ddr tLen|
|00000d80| 20 70 72 6f 63 49 44 20 | 76 69 73 20 67 6f 41 77 | procID |vis goAw|
|00000d90| 61 79 20 5c 20 73 32 35 | 35 20 2d 2d 20 7d 0d 0d |ay \ s25|5 -- }..|
|00000da0| 20 20 5c 20 44 65 66 69 | 6e 65 73 20 61 20 6e 65 | \ Defi|nes a ne|
|00000db0| 77 20 77 69 6e 64 6f 77 | 20 6f 6e 20 74 68 65 20 |w window| on the |
|00000dc0| 68 65 61 70 20 77 69 74 | 68 20 74 68 65 20 73 70 |heap wit|h the sp|
|00000dd0| 65 63 69 66 69 65 64 20 | 66 65 61 74 75 72 65 73 |ecified |features|
|00000de0| 2e 0d 20 20 5c 20 4e 6f | 74 20 72 65 73 6f 75 72 |.. \ No|t resour|
|00000df0| 63 65 20 62 61 73 65 64 | 2e 0d 20 0d 09 67 65 74 |ce based|.. ..get|
|00000e00| 3a 20 61 6c 69 76 65 20 | 20 3f 45 58 49 54 09 09 |: alive | ?EXIT..|
|00000e10| 09 09 09 5c 20 4f 75 74 | 20 69 66 20 61 6c 72 65 |...\ Out| if alre|
|00000e20| 61 64 79 20 61 6c 69 76 | 65 0d 09 62 6e 64 73 52 |ady aliv|e..bndsR|
|00000e30| 65 63 74 20 2d 3e 3a 20 | 63 6f 6e 74 52 65 63 74 |ect ->: |contRect|
|00000e40| 09 09 09 09 5c 20 73 61 | 76 65 20 72 65 63 74 20 |....\ sa|ve rect |
|00000e50| 6c 6f 63 61 6c 6c 79 0d | 09 3f 64 69 73 61 62 6c |locally.|.?disabl|
|00000e60| 65 5f 61 63 74 57 3a 20 | 73 65 6c 66 0d 09 74 41 |e_actW: |self..tA|
|00000e70| 64 64 72 20 74 4c 65 6e | 20 20 73 74 72 32 35 35 |ddr tLen| str255|
|00000e80| 20 20 2d 3e 20 73 32 35 | 35 0d 09 30 20 20 5e 62 | -> s25|5..0 ^b|
|00000e90| 61 73 65 20 20 61 64 64 | 72 3a 20 63 6f 6e 74 52 |ase add|r: contR|
|00000ea0| 65 63 74 20 20 73 32 35 | 35 20 20 76 69 73 20 54 |ect s25|5 vis T|
|00000eb0| 62 6f 6f 6c 0d 09 70 72 | 6f 63 49 44 20 6d 61 6b |bool..pr|ocID mak|
|00000ec0| 65 69 6e 74 0d 09 69 6e | 46 72 6f 6e 74 20 20 67 |eint..in|Front g|
|00000ed0| 6f 41 77 61 79 20 54 62 | 6f 6f 6c 20 20 30 09 09 |oAway Tb|ool 0..|
|00000ee0| 09 5c 20 64 65 66 61 75 | 6c 74 20 69 73 20 69 6e |.\ defau|lt is in|
|00000ef0| 69 74 69 61 6c 6c 79 20 | 69 6e 20 66 72 6f 6e 74 |itially |in front|
|00000f00| 0d 09 63 61 6c 6c 20 4e | 65 77 57 69 6e 64 6f 77 |..call N|ewWindow|
|00000f10| 20 20 64 72 6f 70 0d 09 | 69 6e 69 74 4e 65 77 57 | drop..|initNewW|
|00000f20| 69 6e 64 6f 77 3a 20 73 | 65 6c 66 20 20 3b 6d 0d |indow: s|elf ;m.|
|00000f30| 0d 0d 3a 6d 20 47 45 54 | 4e 45 57 3a 09 09 5c 20 |..:m GET|NEW:..\ |
|00000f40| 28 20 72 65 73 69 64 20 | 2d 2d 20 29 20 20 20 52 |( resid |-- ) R|
|00000f50| 65 73 6f 75 72 63 65 20 | 62 61 73 65 64 20 6e 65 |esource |based ne|
|00000f60| 77 20 77 69 6e 64 6f 77 | 2e 0d 0d 09 67 65 74 3a |w window|....get:|
|00000f70| 20 61 6c 69 76 65 20 20 | 49 46 20 20 64 72 6f 70 | alive |IF drop|
|00000f80| 20 20 45 58 49 54 20 20 | 54 48 45 4e 09 5c 20 4f | EXIT |THEN.\ O|
|00000f90| 75 74 20 69 66 20 61 6c | 72 65 61 64 79 20 61 6c |ut if al|ready al|
|00000fa0| 69 76 65 0d 09 3f 64 69 | 73 61 62 6c 65 5f 61 63 |ive..?di|sable_ac|
|00000fb0| 74 57 3a 20 73 65 6c 66 | 0d 09 64 75 70 20 20 70 |tW: self|..dup p|
|00000fc0| 75 74 3a 20 72 65 73 69 | 64 20 20 30 20 73 77 61 |ut: resi|d 0 swa|
|00000fd0| 70 20 6d 61 6b 65 69 6e | 74 20 5e 62 61 73 65 20 |p makein|t ^base |
|00000fe0| 20 69 6e 46 72 6f 6e 74 | 0d 09 63 61 6c 6c 20 47 | inFront|..call G|
|00000ff0| 65 74 4e 65 77 57 69 6e | 64 6f 77 20 20 64 72 6f |etNewWin|dow dro|
|00001000| 70 0d 09 69 6e 69 74 4e | 65 77 57 69 6e 64 6f 77 |p..initN|ewWindow|
|00001010| 3a 20 73 65 6c 66 20 20 | 3b 6d 0d 0d 0d 3a 6d 20 |: self |;m...:m |
|00001020| 47 45 54 56 53 52 45 43 | 54 3a 09 5c 20 28 20 6c |GETVSREC|T:.\ ( l|
|00001030| 20 74 20 72 20 62 20 2d | 2d 20 6c 27 20 74 27 20 | t r b -|- l' t' |
|00001040| 72 27 20 62 27 20 29 0d | 09 09 09 09 5c 20 52 65 |r' b' ).|....\ Re|
|00001050| 74 75 72 6e 73 20 74 68 | 65 20 64 65 66 61 75 6c |turns th|e defaul|
|00001060| 74 20 76 65 72 74 2e 20 | 73 63 72 6f 6c 6c 20 62 |t vert. |scroll b|
|00001070| 61 72 20 72 65 63 74 2e | 0d 09 67 65 74 3a 20 70 |ar rect.|..get: p|
|00001080| 6f 72 74 52 65 63 74 20 | 20 3e 76 72 65 63 74 20 |ortRect | >vrect |
|00001090| 20 3b 6d 0d 0d 3a 6d 20 | 47 45 54 48 53 52 45 43 | ;m..:m |GETHSREC|
|000010a0| 54 3a 09 5c 20 28 20 6c | 20 74 20 72 20 62 20 2d |T:.\ ( l| t r b -|
|000010b0| 2d 20 6c 27 20 74 27 20 | 72 27 20 62 27 20 29 0d |- l' t' |r' b' ).|
|000010c0| 09 09 09 09 5c 20 52 65 | 74 75 72 6e 73 20 74 68 |....\ Re|turns th|
|000010d0| 65 20 64 65 66 61 75 6c | 74 20 68 6f 72 69 7a 2e |e defaul|t horiz.|
|000010e0| 20 73 63 72 6f 6c 6c 20 | 62 61 72 20 72 65 63 74 | scroll |bar rect|
|000010f0| 2e 0d 09 67 65 74 3a 20 | 70 6f 72 74 52 65 63 74 |...get: |portRect|
|00001100| 20 20 3e 68 72 65 63 74 | 20 20 3b 6d 0d 0d 0d 5c | >hrect| ;m...\|
|00001110| 20 54 68 65 20 44 52 41 | 57 3a 20 6d 65 74 68 6f | The DRA|W: metho|
|00001120| 64 20 69 73 20 63 61 6c | 6c 65 64 2c 20 6c 61 74 |d is cal|led, lat|
|00001130| 65 2d 62 6f 75 6e 64 2c | 20 77 68 65 6e 65 76 65 |e-bound,| wheneve|
|00001140| 72 20 61 20 77 69 6e 64 | 6f 77 20 69 73 20 75 70 |r a wind|ow is up|
|00001150| 64 61 74 65 64 2e 0d 5c | 20 54 68 65 20 69 6d 70 |dated..\| The imp|
|00001160| 6c 65 6d 65 6e 74 61 74 | 69 6f 6e 20 6d 75 73 74 |lementat|ion must|
|00001170| 20 62 65 67 69 6e 20 77 | 69 74 68 20 61 20 42 65 | begin w|ith a Be|
|00001180| 67 69 6e 55 70 64 61 74 | 65 20 63 61 6c 6c 20 61 |ginUpdat|e call a|
|00001190| 6e 64 20 65 6e 64 20 77 | 69 74 68 20 61 6e 0d 5c |nd end w|ith an.\|
|000011a0| 20 45 6e 64 55 70 64 61 | 74 65 20 63 61 6c 6c 2e | EndUpda|te call.|
|000011b0| 20 20 57 65 20 75 73 65 | 20 74 68 65 20 43 61 6c | We use| the Cal|
|000011c0| 6c 46 69 72 73 74 2f 43 | 61 6c 6c 4c 61 73 74 20 |lFirst/C|allLast |
|000011d0| 6d 65 63 68 61 6e 69 73 | 6d 20 74 6f 20 65 6e 73 |mechanis|m to ens|
|000011e0| 75 72 65 20 74 68 69 73 | 2c 0d 5c 20 61 6e 64 20 |ure this|,.\ and |
|000011f0| 61 6c 73 6f 20 74 6f 20 | 64 72 61 77 20 74 68 65 |also to |draw the|
|00001200| 20 67 72 6f 77 20 69 63 | 6f 6e 20 69 66 20 74 68 | grow ic|on if th|
|00001210| 69 73 20 69 73 20 61 20 | 67 72 6f 77 61 62 6c 65 |is is a |growable|
|00001220| 20 77 69 6e 64 6f 77 2e | 20 20 54 68 69 73 20 6d | window.| This m|
|00001230| 65 61 6e 73 0d 5c 20 74 | 68 61 74 20 61 6e 79 20 |eans.\ t|hat any |
|00001240| 72 65 64 65 66 69 6e 69 | 74 69 6f 6e 20 6f 66 20 |redefini|tion of |
|00001250| 44 52 41 57 3a 20 69 6e | 20 61 20 73 75 62 63 6c |DRAW: in| a subcl|
|00001260| 61 73 73 20 73 68 6f 75 | 6c 64 20 6e 6f 74 20 63 |ass shou|ld not c|
|00001270| 61 6c 6c 20 44 52 41 57 | 3a 20 73 75 70 65 72 2c |all DRAW|: super,|
|00001280| 0d 5c 20 73 69 6e 63 65 | 20 74 68 69 73 20 77 6f |.\ since| this wo|
|00001290| 75 6c 64 20 6c 65 61 64 | 20 74 6f 20 42 65 67 69 |uld lead| to Begi|
|000012a0| 6e 55 70 64 61 74 65 20 | 61 6e 64 20 45 6e 64 55 |nUpdate |and EndU|
|000012b0| 70 64 61 74 65 20 62 65 | 69 6e 67 20 63 61 6c 6c |pdate be|ing call|
|000012c0| 65 64 20 6d 6f 72 65 20 | 74 68 61 6e 0d 5c 20 6f |ed more |than.\ o|
|000012d0| 6e 63 65 2e 20 20 53 6f | 20 77 65 20 64 65 66 69 |nce. So| we defi|
|000012e0| 6e 65 20 61 6e 6f 74 68 | 65 72 20 6d 65 74 68 6f |ne anoth|er metho|
|000012f0| 64 20 28 44 52 41 57 29 | 3a 20 74 6f 20 64 6f 20 |d (DRAW)|: to do |
|00001300| 74 68 65 20 61 63 74 75 | 61 6c 20 77 6f 72 6b 20 |the actu|al work |
|00001310| 66 6f 72 20 44 52 41 57 | 3a 2c 0d 5c 20 61 6e 64 |for DRAW|:,.\ and|
|00001320| 20 73 75 62 63 6c 61 73 | 73 65 73 20 77 68 69 63 | subclas|ses whic|
|00001330| 68 20 6e 65 65 64 20 74 | 68 65 69 72 20 6f 77 6e |h need t|heir own|
|00001340| 20 76 65 72 73 69 6f 6e | 73 20 6f 66 20 44 52 41 | version|s of DRA|
|00001350| 57 3a 20 6d 61 79 20 63 | 61 6c 6c 20 28 44 52 41 |W: may c|all (DRA|
|00001360| 57 29 3a 0d 5c 20 66 72 | 65 65 6c 79 2e 0d 0d 70 |W):.\ fr|eely...p|
|00001370| 72 69 76 61 74 65 0d 0d | 3a 6d 20 28 44 52 41 57 |rivate..|:m (DRAW|
|00001380| 29 3a 09 09 5c 20 44 6f | 65 73 20 74 68 65 20 6d |):..\ Do|es the m|
|00001390| 61 69 6e 20 77 6f 72 6b | 20 66 6f 72 20 44 52 41 |ain work| for DRA|
|000013a0| 57 3a 2e 0d 09 73 61 76 | 65 50 6f 72 74 20 20 40 |W:...sav|ePort @|
|000013b0| 78 79 20 20 73 65 74 3a | 20 73 65 6c 66 09 09 5c |xy set:| self..\|
|000013c0| 20 53 61 76 65 20 70 6f | 72 74 20 61 6e 64 20 70 | Save po|rt and p|
|000013d0| 65 6e 20 70 6f 73 6e 2c | 20 72 65 73 65 74 20 74 |en posn,| reset t|
|000013e0| 6f 20 74 68 69 73 20 0d | 09 09 09 09 09 09 09 09 |o this .|........|
|000013f0| 09 5c 20 20 77 69 6e 64 | 6f 77 0d 09 65 78 65 63 |.\ wind|ow..exec|
|00001400| 3a 20 64 72 61 77 09 09 | 09 09 09 09 5c 20 43 61 |: draw..|....\ Ca|
|00001410| 6c 6c 20 75 73 65 72 20 | 64 72 61 77 20 72 6f 75 |ll user |draw rou|
|00001420| 74 69 6e 65 0d 09 72 65 | 73 74 70 6f 72 74 20 67 |tine..re|stport g|
|00001430| 6f 74 6f 78 79 20 20 3b | 6d 09 09 09 09 5c 20 52 |otoxy ;|m....\ R|
|00001440| 65 73 74 6f 72 65 20 70 | 65 6e 20 70 6f 73 6e 2c |estore p|en posn,|
|00001450| 20 72 65 73 74 6f 72 65 | 20 6f 72 69 67 69 6e 61 | restore| origina|
|00001460| 6c 20 70 6f 72 74 0d 0d | 0d 3a 6d 20 53 45 54 55 |l port..|.:m SETU|
|00001470| 50 5f 44 52 41 57 3a 0d | 09 67 65 74 3a 20 66 50 |P_DRAW:.|.get: fP|
|00001480| 72 65 63 74 09 09 09 09 | 09 09 5c 20 53 61 76 65 |rect....|..\ Save|
|00001490| 20 66 50 72 65 63 74 20 | 61 73 20 69 74 20 6d 69 | fPrect |as it mi|
|000014a0| 67 68 74 20 67 65 74 20 | 63 68 61 6e 67 65 64 0d |ght get |changed.|
|000014b0| 09 5e 62 61 73 65 20 20 | 63 61 6c 6c 20 42 65 67 |.^base |call Beg|
|000014c0| 69 6e 55 70 64 61 74 65 | 20 20 3b 6d 0d 0d 3a 6d |inUpdate| ;m..:m|
|000014d0| 20 57 49 4e 44 55 50 5f | 44 52 41 57 3a 0d 09 64 | WINDUP_|DRAW:..d|
|000014e0| 72 61 77 47 72 6f 77 3a | 20 73 65 6c 66 0d 09 5e |rawGrow:| self..^|
|000014f0| 62 61 73 65 20 20 63 61 | 6c 6c 20 45 6e 64 55 70 |base ca|ll EndUp|
|00001500| 64 61 74 65 0d 09 70 75 | 74 3a 20 66 50 72 65 63 |date..pu|t: fPrec|
|00001510| 74 20 20 3b 6d 09 09 09 | 09 09 5c 20 52 65 73 74 |t ;m...|..\ Rest|
|00001520| 6f 72 65 20 66 50 72 65 | 63 74 0d 0d 0d 63 61 6c |ore fPre|ct...cal|
|00001530| 6c 46 69 72 73 74 09 73 | 65 74 75 70 5f 64 72 61 |lFirst.s|etup_dra|
|00001540| 77 3a 0d 63 61 6c 6c 4c | 61 73 74 09 77 69 6e 64 |w:.callL|ast.wind|
|00001550| 75 70 5f 64 72 61 77 3a | 0d 0d 70 75 62 6c 69 63 |up_draw:|..public|
|00001560| 0d 0d 3a 6d 20 44 52 41 | 57 3a 09 28 64 72 61 77 |..:m DRA|W:.(draw|
|00001570| 29 3a 20 73 65 6c 66 20 | 20 3b 6d 0d 0d 0d 3a 6d |): self | ;m...:m|
|00001580| 20 53 45 4c 45 43 54 3a | 09 09 5c 20 4d 61 6b 65 | SELECT:|..\ Make|
|00001590| 73 20 74 68 69 73 20 74 | 68 65 20 66 72 6f 6e 74 |s this t|he front|
|000015a0| 20 77 69 6e 64 6f 77 2e | 0d 09 5e 62 61 73 65 20 | window.|..^base |
|000015b0| 20 63 61 6c 6c 20 53 65 | 6c 65 63 74 57 69 6e 64 | call Se|lectWind|
|000015c0| 6f 77 0d 09 3f 73 65 74 | 66 50 72 65 63 74 3a 20 |ow..?set|fPrect: |
|000015d0| 73 65 6c 66 20 20 3b 6d | 0d 0d 0d 5c 20 54 68 65 |self ;m|...\ The|
|000015e0| 20 69 64 6c 65 3a 20 6d | 65 74 68 6f 64 20 69 73 | idle: m|ethod is|
|000015f0| 20 63 61 6c 6c 65 64 20 | 66 6f 72 20 74 68 65 20 | called |for the |
|00001600| 66 72 6f 6e 74 6d 6f 73 | 74 20 77 69 6e 64 6f 77 |frontmos|t window|
|00001610| 2c 20 77 68 65 6e 65 76 | 65 72 20 61 20 6e 75 6c |, whenev|er a nul|
|00001620| 6c 0d 5c 20 65 76 65 6e | 74 20 6f 63 63 75 72 73 |l.\ even|t occurs|
|00001630| 2e 20 20 4e 55 4c 4c 2d | 45 56 54 20 69 73 20 74 |. NULL-|EVT is t|
|00001640| 68 65 20 6e 6f 72 6d 61 | 6c 20 77 6f 72 64 20 77 |he norma|l word w|
|00001650| 68 69 63 68 20 73 65 6e | 64 73 20 69 64 6c 65 3a |hich sen|ds idle:|
|00001660| 2e 20 20 49 6e 0d 5c 20 | 73 75 62 63 6c 61 73 73 |. In.\ |subclass|
|00001670| 65 73 20 77 65 20 72 65 | 64 65 66 69 6e 65 20 74 |es we re|define t|
|00001680| 68 69 73 20 6d 65 74 68 | 6f 64 20 74 6f 20 64 6f |his meth|od to do|
|00001690| 20 74 68 69 6e 67 73 20 | 6c 69 6b 65 20 63 61 6c | things |like cal|
|000016a0| 6c 69 6e 67 20 54 45 69 | 64 6c 65 2c 0d 5c 20 77 |ling TEi|dle,.\ w|
|000016b0| 68 69 63 68 20 68 61 76 | 65 20 74 6f 20 62 65 20 |hich hav|e to be |
|000016c0| 64 6f 6e 65 20 70 65 72 | 69 6f 64 69 63 61 6c 6c |done per|iodicall|
|000016d0| 79 2e 20 20 54 68 65 20 | 49 64 6c 65 20 68 61 6e |y. The |Idle han|
|000016e0| 64 6c 65 72 20 69 73 20 | 61 6c 73 6f 20 63 61 6c |dler is |also cal|
|000016f0| 6c 65 64 2c 0d 5c 20 77 | 68 69 63 68 20 61 6c 6c |led,.\ w|hich all|
|00001700| 6f 77 73 20 61 20 77 69 | 6e 64 6f 77 2d 73 70 65 |ows a wi|ndow-spe|
|00001710| 63 69 66 69 63 20 61 63 | 74 69 6f 6e 20 74 6f 20 |cific ac|tion to |
|00001720| 62 65 20 74 61 6b 65 6e | 2e 20 20 49 6e 20 74 68 |be taken|. In th|
|00001730| 65 20 63 6c 61 73 73 20 | 57 69 6e 64 6f 77 0d 5c |e class |Window.\|
|00001740| 20 69 74 73 65 6c 66 2c | 20 74 68 69 73 20 69 73 | itself,| this is|
|00001750| 20 61 6c 6c 20 77 65 20 | 64 6f 2e 0d 0d 3a 6d 20 | all we |do...:m |
|00001760| 49 44 4c 45 3a 09 09 65 | 78 65 63 3a 20 69 64 6c |IDLE:..e|xec: idl|
|00001770| 65 20 20 3b 6d 0d 0d 3a | 6d 20 53 45 54 49 44 4c |e ;m..:|m SETIDL|
|00001780| 45 3a 09 09 70 75 74 3a | 20 69 64 6c 65 20 20 3b |E:..put:| idle ;|
|00001790| 6d 0d 0d 0d 3a 6d 20 45 | 4e 41 42 4c 45 3a 09 09 |m...:m E|NABLE:..|
|000017a0| 5c 20 48 61 6e 64 6c 65 | 73 20 61 6e 20 61 63 74 |\ Handle|s an act|
|000017b0| 69 76 61 74 65 20 65 76 | 65 6e 74 2e 0d 09 73 65 |ivate ev|ent...se|
|000017c0| 74 3a 20 73 65 6c 66 0d | 09 64 72 61 77 47 72 6f |t: self.|.drawGro|
|000017d0| 77 3a 20 73 65 6c 66 0d | 09 65 78 65 63 3a 20 65 |w: self.|.exec: e|
|000017e0| 6e 61 63 74 20 20 3b 6d | 0d 0d 3a 6d 20 44 49 53 |nact ;m|..:m DIS|
|000017f0| 41 42 4c 45 3a 09 09 5c | 20 48 61 6e 64 6c 65 73 |ABLE:..\| Handles|
|00001800| 20 61 20 64 65 61 63 74 | 69 76 61 74 65 20 65 76 | a deact|ivate ev|
|00001810| 65 6e 74 2e 0d 09 65 72 | 61 73 65 47 72 6f 77 3a |ent...er|aseGrow:|
|00001820| 20 73 65 6c 66 0d 09 65 | 78 65 63 3a 20 64 65 61 | self..e|xec: dea|
|00001830| 63 74 20 20 3b 6d 0d 0d | 0d 3a 6d 20 41 43 54 49 |ct ;m..|.:m ACTI|
|00001840| 4f 4e 53 3a 09 09 5c 20 | 28 20 63 6c 6f 73 65 20 |ONS:..\ |( close |
|00001850| 65 6e 61 63 74 20 64 72 | 61 77 20 63 6f 6e 74 20 |enact dr|aw cont |
|00001860| 34 20 2d 2d 20 29 0d 09 | 09 09 09 5c 20 53 65 74 |4 -- )..|...\ Set|
|00001870| 73 20 75 70 20 77 69 6e | 64 6f 77 20 65 76 65 6e |s up win|dow even|
|00001880| 74 20 68 61 6e 64 6c 65 | 72 20 77 6f 72 64 73 2e |t handle|r words.|
|00001890| 20 20 57 65 20 72 65 71 | 75 69 72 65 0d 09 09 09 | We req|uire....|
|000018a0| 09 5c 20 61 6e 20 78 74 | 20 63 6f 75 6e 74 20 61 |.\ an xt| count a|
|000018b0| 73 20 74 68 69 73 20 69 | 73 20 6e 6f 72 6d 61 6c |s this i|s normal|
|000018c0| 20 66 6f 72 20 61 63 74 | 69 6f 6e 73 3a 20 6d 65 | for act|ions: me|
|000018d0| 74 68 6f 64 73 2e 0d 09 | 34 20 3f 23 78 74 73 0d |thods...|4 ?#xts.|
|000018e0| 09 70 75 74 3a 20 63 6f | 6e 74 65 6e 74 20 20 70 |.put: co|ntent p|
|000018f0| 75 74 3a 20 64 72 61 77 | 20 20 70 75 74 3a 20 65 |ut: draw| put: e|
|00001900| 6e 61 63 74 20 20 70 75 | 74 3a 20 63 6c 6f 73 65 |nact pu|t: close|
|00001910| 20 20 3b 6d 0d 0d 0d 3a | 6d 20 53 45 54 41 43 54 | ;m...:|m SETACT|
|00001920| 3a 09 5c 20 28 20 65 6e | 61 63 74 20 64 65 61 63 |:.\ ( en|act deac|
|00001930| 74 20 2d 2d 20 29 20 20 | 53 65 74 73 20 6a 75 73 |t -- ) |Sets jus|
|00001940| 74 20 74 68 65 20 61 63 | 74 69 76 61 74 65 2f 64 |t the ac|tivate/d|
|00001950| 65 61 63 74 69 76 61 74 | 65 0d 09 09 09 5c 20 65 |eactivat|e....\ e|
|00001960| 76 65 6e 74 20 68 61 6e | 64 6c 65 72 73 0d 09 70 |vent han|dlers..p|
|00001970| 75 74 3a 20 64 65 61 63 | 74 20 20 70 75 74 3a 20 |ut: deac|t put: |
|00001980| 65 6e 61 63 74 20 20 3b | 6d 0d 0d 0d 3a 6d 20 53 |enact ;|m...:m S|
|00001990| 45 54 44 52 41 57 3a 09 | 09 5c 20 28 20 78 74 20 |ETDRAW:.|.\ ( xt |
|000019a0| 2d 2d 20 29 20 20 53 65 | 74 73 20 74 68 65 20 64 |-- ) Se|ts the d|
|000019b0| 72 61 77 20 68 61 6e 64 | 6c 65 72 0d 09 70 75 74 |raw hand|ler..put|
|000019c0| 3a 20 64 72 61 77 20 20 | 3b 6d 0d 0d 0d 3a 6d 20 |: draw |;m...:m |
|000019d0| 41 43 54 49 56 45 3a 09 | 5c 20 28 20 2d 2d 20 62 |ACTIVE:.|\ ( -- b|
|000019e0| 20 29 20 20 49 73 20 74 | 68 69 73 20 77 69 6e 64 | ) Is t|his wind|
|000019f0| 6f 77 20 61 63 74 69 76 | 65 20 3f 0d 09 30 20 20 |ow activ|e ?..0 |
|00001a00| 63 61 6c 6c 20 46 72 6f | 6e 74 57 69 6e 64 6f 77 |call Fro|ntWindow|
|00001a10| 20 20 5e 62 61 73 65 20 | 20 3d 20 20 3b 6d 0d 0d | ^base | = ;m..|
|00001a20| 0d 3a 6d 20 41 4c 49 56 | 45 3a 09 5c 20 28 20 2d |.:m ALIV|E:.\ ( -|
|00001a30| 2d 20 62 20 29 20 20 49 | 73 20 74 68 69 73 20 77 |- b ) I|s this w|
|00001a40| 69 6e 64 6f 77 20 61 6c | 69 76 65 3f 0d 09 67 65 |indow al|ive?..ge|
|00001a50| 74 3a 20 61 6c 69 76 65 | 20 20 3b 6d 0d 0d 0d 3a |t: alive| ;m...:|
|00001a60| 6d 20 44 52 41 47 3a 09 | 5c 20 48 61 6e 64 6c 65 |m DRAG:.|\ Handle|
|00001a70| 73 20 61 20 64 72 61 67 | 20 72 65 67 69 6f 6e 20 |s a drag| region |
|00001a80| 63 6c 69 63 6b 0d 09 73 | 65 74 4c 69 6d 69 74 73 |click..s|etLimits|
|00001a90| 3a 20 73 65 6c 66 09 09 | 09 09 09 5c 20 4f 6d 69 |: self..|...\ Omi|
|00001aa0| 74 20 69 6e 20 73 75 62 | 63 6c 61 73 73 65 73 20 |t in sub|classes |
|00001ab0| 77 68 69 63 68 20 6e 65 | 65 64 0d 09 09 09 09 09 |which ne|ed......|
|00001ac0| 09 09 09 09 5c 20 20 63 | 75 73 74 6f 6d 20 64 72 |....\ c|ustom dr|
|00001ad0| 61 67 20 6c 69 6d 69 74 | 73 0d 09 67 65 74 3a 20 |ag limit|s..get: |
|00001ae0| 64 72 61 67 46 6c 67 20 | 20 30 65 78 69 74 0d 09 |dragFlg | 0exit..|
|00001af0| 5e 62 61 73 65 20 20 77 | 68 72 46 45 76 20 20 61 |^base w|hrFEv a|
|00001b00| 64 64 72 3a 20 64 72 61 | 67 52 65 63 74 0d 09 63 |ddr: dra|gRect..c|
|00001b10| 61 6c 6c 20 44 72 61 67 | 57 69 6e 64 6f 77 20 20 |all Drag|Window |
|00001b20| 3b 6d 0d 0d 70 72 69 76 | 61 74 65 0d 0d 5c 20 53 |;m..priv|ate..\ S|
|00001b30| 6f 6d 65 20 68 6f 75 73 | 65 6b 65 65 70 69 6e 67 |ome hous|ekeeping|
|00001b40| 20 72 6f 75 74 69 6e 65 | 73 20 66 6f 72 20 53 69 | routine|s for Si|
|00001b50| 7a 65 3a 20 61 6e 64 20 | 5a 6f 6f 6d 3a 0d 0d 3a |ze: and |Zoom:..:|
|00001b60| 6d 20 43 6c 72 4f 6c 64 | 42 61 72 73 3a 0d 09 67 |m ClrOld|Bars:..g|
|00001b70| 65 74 56 53 72 65 63 74 | 3a 20 73 65 6c 66 20 31 |etVSrect|: self 1|
|00001b80| 36 20 2b 20 20 70 75 74 | 3a 20 74 65 6d 70 52 65 |6 + put|: tempRe|
|00001b90| 63 74 0d 09 63 6c 65 61 | 72 3a 20 74 65 6d 70 52 |ct..clea|r: tempR|
|00001ba0| 65 63 74 20 20 75 70 64 | 61 74 65 3a 20 74 65 6d |ect upd|ate: tem|
|00001bb0| 70 52 65 63 74 09 5c 20 | 49 6e 63 6c 75 64 69 6e |pRect.\ |Includin|
|00001bc0| 67 20 74 68 65 20 67 72 | 6f 77 20 62 6f 78 0d 09 |g the gr|ow box..|
|00001bd0| 67 65 74 48 53 72 65 63 | 74 3a 20 73 65 6c 66 20 |getHSrec|t: self |
|00001be0| 20 70 75 74 3a 20 74 65 | 6d 70 52 65 63 74 0d 09 | put: te|mpRect..|
|00001bf0| 63 6c 65 61 72 3a 20 74 | 65 6d 70 52 65 63 74 20 |clear: t|empRect |
|00001c00| 20 75 70 64 61 74 65 3a | 20 74 65 6d 70 72 65 63 | update:| temprec|
|00001c10| 74 20 20 3b 6d 0d 0d 3a | 6d 20 46 69 78 4e 65 77 |t ;m..:|m FixNew|
|00001c20| 42 61 72 73 3a 0d 09 43 | 6c 72 4f 6c 64 42 61 72 |Bars:..C|lrOldBar|
|00001c30| 73 3a 20 73 65 6c 66 09 | 09 09 09 09 5c 20 59 65 |s: self.|....\ Ye|
|00001c40| 73 2c 20 74 68 65 20 63 | 6f 64 65 27 73 20 74 68 |s, the c|ode's th|
|00001c50| 65 20 73 61 6d 65 20 73 | 6f 20 66 61 72 21 21 0d |e same s|o far!!.|
|00001c60| 09 61 64 64 72 3a 20 70 | 6f 72 74 52 65 63 74 20 |.addr: p|ortRect |
|00001c70| 20 63 61 6c 6c 20 43 6c | 69 70 52 65 63 74 0d 09 | call Cl|ipRect..|
|00001c80| 73 65 74 43 6f 6e 74 52 | 65 63 74 3a 20 5b 73 65 |setContR|ect: [se|
|00001c90| 6c 66 5d 0d 09 70 65 6e | 49 6e 74 6f 57 69 6e 64 |lf]..pen|IntoWind|
|00001ca0| 3a 20 73 65 6c 66 20 20 | 3b 6d 0d 0d 70 75 62 6c |: self |;m..publ|
|00001cb0| 69 63 0d 0d 3a 6d 20 53 | 49 5a 45 3a 09 5c 20 28 |ic..:m S|IZE:.\ (|
|00001cc0| 20 77 20 68 20 2d 2d 20 | 29 20 20 52 65 73 69 7a | w h -- |) Resiz|
|00001cd0| 65 73 20 77 69 6e 64 6f | 77 20 61 6e 64 20 61 63 |es windo|w and ac|
|00001ce0| 63 75 6d 75 6c 61 74 65 | 73 20 75 70 64 61 74 65 |cumulate|s update|
|00001cf0| 20 72 65 67 69 6f 6e 73 | 2e 0d 09 70 61 63 6b 20 | regions|...pack |
|00001d00| 20 5e 62 61 73 65 20 20 | 73 77 61 70 20 20 74 72 | ^base |swap tr|
|00001d10| 75 65 20 6d 61 6b 65 69 | 6e 74 0d 09 43 6c 72 4f |ue makei|nt..ClrO|
|00001d20| 6c 64 42 61 72 73 3a 20 | 73 65 6c 66 0d 09 63 61 |ldBars: |self..ca|
|00001d30| 6c 6c 20 53 69 7a 65 57 | 69 6e 64 6f 77 0d 09 46 |ll SizeW|indow..F|
|00001d40| 69 78 4e 65 77 42 61 72 | 73 3a 20 73 65 6c 66 20 |ixNewBar|s: self |
|00001d50| 20 3b 6d 0d 0d 3a 6d 20 | 53 45 54 53 49 5a 45 3a | ;m..:m |SETSIZE:|
|00001d60| 09 73 69 7a 65 3a 20 73 | 65 6c 66 20 20 3b 6d 09 |.size: s|elf ;m.|
|00001d70| 5c 20 46 6f 72 20 6e 61 | 6d 69 6e 67 20 63 6f 6e |\ For na|ming con|
|00001d80| 73 69 73 74 65 6e 63 79 | 20 77 69 74 68 20 52 65 |sistency| with Re|
|00001d90| 63 74 73 20 61 6e 64 20 | 0d 09 09 09 09 09 09 09 |cts and |........|
|00001da0| 5c 20 20 56 69 65 77 73 | 2e 0d 0d 0d 3a 6d 20 4d |\ Views|....:m M|
|00001db0| 4f 56 45 3a 09 5c 20 28 | 20 78 20 79 20 2d 2d 20 |OVE:.\ (| x y -- |
|00001dc0| 29 20 20 4d 6f 76 65 73 | 20 74 68 65 20 77 69 6e |) Moves| the win|
|00001dd0| 64 6f 77 2e 0d 09 70 61 | 63 6b 20 20 5e 62 61 73 |dow...pa|ck ^bas|
|00001de0| 65 20 20 73 77 61 70 20 | 20 77 20 30 0d 09 63 61 |e swap | w 0..ca|
|00001df0| 6c 6c 20 4d 6f 76 65 57 | 69 6e 64 6f 77 20 20 3b |ll MoveW|indow ;|
|00001e00| 6d 0d 0d 0d 3a 6d 20 43 | 45 4e 54 45 52 3a 20 20 |m...:m C|ENTER: |
|00001e10| 7b 20 5c 20 73 77 20 73 | 68 20 70 77 20 70 68 20 |{ \ sw s|h pw ph |
|00001e20| 2d 2d 20 7d 0d 09 09 5c | 20 43 65 6e 74 65 72 73 |-- }...\| Centers|
|00001e30| 20 74 68 65 20 77 69 6e | 64 6f 77 20 6f 6e 20 74 | the win|dow on t|
|00001e40| 68 65 20 73 63 72 65 65 | 6e 2e 0d 09 09 5c 20 59 |he scree|n....\ Y|
|00001e50| 65 61 68 2c 20 49 20 6b | 6e 6f 77 2c 20 68 65 72 |eah, I k|now, her|
|00001e60| 65 20 69 6e 20 4f 7a 20 | 77 65 20 73 70 65 6c 6c |e in Oz |we spell|
|00001e70| 20 74 68 69 73 20 22 63 | 65 6e 74 72 65 22 2c 20 | this "c|entre", |
|00001e80| 62 75 74 20 77 65 20 4f | 7a 7a 69 65 73 0d 09 09 |but we O|zzies...|
|00001e90| 5c 20 61 72 65 20 6d 6f | 72 65 20 66 6c 65 78 69 |\ are mo|re flexi|
|00001ea0| 62 6c 65 20 74 68 61 6e | 20 74 68 65 20 59 61 6e |ble than| the Yan|
|00001eb0| 6b 73 2c 20 73 6f 20 77 | 65 27 6c 6c 20 6d 61 67 |ks, so w|e'll mag|
|00001ec0| 6e 61 6e 69 6d 6f 75 73 | 6c 79 20 64 6f 20 69 74 |nanimous|ly do it|
|00001ed0| 0d 09 09 5c 20 74 68 65 | 69 72 20 77 61 79 2c 20 |...\ the|ir way, |
|00001ee0| 6e 6f 74 20 6f 75 72 73 | 2e 0d 09 09 0d 09 73 63 |not ours|......sc|
|00001ef0| 72 65 65 6e 62 69 74 73 | 20 20 2d 3e 20 73 68 20 |reenbits| -> sh |
|00001f00| 20 2d 3e 20 73 77 20 20 | 32 64 72 6f 70 0d 09 73 | -> sw |2drop..s|
|00001f10| 69 7a 65 3a 20 70 6f 72 | 74 52 65 63 74 20 20 2d |ize: por|tRect -|
|00001f20| 3e 20 70 68 20 20 2d 3e | 20 70 77 0d 09 73 77 20 |> ph ->| pw..sw |
|00001f30| 70 77 20 2d 20 32 2f 20 | 20 73 68 20 70 68 20 2d |pw - 2/ | sh ph -|
|00001f40| 20 32 2f 20 20 6d 6f 76 | 65 3a 20 73 65 6c 66 20 | 2/ mov|e: self |
|00001f50| 20 3b 6d 0d 0d 0d 3a 6d | 20 5a 4f 4f 4d 3a 20 20 | ;m...:m| ZOOM: |
|00001f60| 7b 20 70 61 72 74 20 2d | 2d 20 7d 0d 09 77 6f 72 |{ part -|- }..wor|
|00001f70| 64 30 20 20 5e 62 61 73 | 65 20 20 77 68 72 46 45 |d0 ^bas|e whrFE|
|00001f80| 76 0d 09 70 61 72 74 20 | 6d 61 6b 65 69 6e 74 20 |v..part |makeint |
|00001f90| 20 63 61 6c 6c 20 54 72 | 61 63 6b 42 6f 78 20 20 | call Tr|ackBox |
|00001fa0| 69 2d 3e 6c 0d 09 49 46 | 09 67 65 74 52 65 63 74 |i->l..IF|.getRect|
|00001fb0| 3a 20 73 65 6c 66 20 20 | 70 75 74 3a 20 74 65 6d |: self |put: tem|
|00001fc0| 70 52 65 63 74 20 20 74 | 65 6d 70 52 65 63 74 20 |pRect t|empRect |
|00001fd0| 20 63 61 6c 6c 20 45 72 | 61 73 65 52 65 63 74 0d | call Er|aseRect.|
|00001fe0| 09 09 5e 62 61 73 65 20 | 20 70 61 72 74 20 6d 61 |..^base | part ma|
|00001ff0| 6b 65 69 6e 74 20 20 77 | 6f 72 64 30 20 20 63 61 |keint w|ord0 ca|
|00002000| 6c 6c 20 5a 6f 6f 6d 57 | 69 6e 64 6f 77 0d 09 09 |ll ZoomW|indow...|
|00002010| 46 69 78 4e 65 77 42 61 | 72 73 3a 20 73 65 6c 66 |FixNewBa|rs: self|
|00002020| 0d 09 54 48 45 4e 20 20 | 3b 6d 0d 0d 0d 3a 6d 20 |..THEN |;m...:m |
|00002030| 47 52 4f 57 3a 09 09 5c | 20 48 61 6e 64 6c 65 73 |GROW:..\| Handles|
|00002040| 20 61 20 6d 6f 75 73 65 | 2d 64 6f 77 6e 20 69 6e | a mouse|-down in|
|00002050| 20 74 68 65 20 67 72 6f | 77 20 62 6f 78 2e 0d 09 | the gro|w box...|
|00002060| 67 65 74 3a 20 67 72 6f | 77 46 6c 67 0d 09 49 46 |get: gro|wFlg..IF|
|00002070| 09 73 65 74 4c 69 6d 69 | 74 73 3a 20 73 65 6c 66 |.setLimi|ts: self|
|00002080| 09 09 09 09 09 5c 20 4f | 6d 69 74 20 69 6e 20 73 |.....\ O|mit in s|
|00002090| 75 62 63 6c 61 73 73 65 | 73 20 77 68 69 63 68 20 |ubclasse|s which |
|000020a0| 6e 65 65 64 0d 09 09 09 | 09 09 09 09 09 09 09 5c |need....|.......\|
|000020b0| 20 20 63 75 73 74 6f 6d | 20 67 72 6f 77 20 6c 69 | custom| grow li|
|000020c0| 6d 69 74 73 0d 09 09 30 | 20 5e 62 61 73 65 20 20 |mits...0| ^base |
|000020d0| 77 68 72 46 45 76 20 20 | 61 64 64 72 3a 20 67 72 |whrFEv |addr: gr|
|000020e0| 6f 77 72 65 63 74 0d 09 | 09 63 61 6c 6c 20 47 72 |owrect..|.call Gr|
|000020f0| 6f 77 57 69 6e 64 6f 77 | 20 20 3f 64 75 70 0d 09 |owWindow| ?dup..|
|00002100| 09 49 46 09 75 6e 70 61 | 63 6b 20 20 73 69 7a 65 |.IF.unpa|ck size|
|00002110| 3a 20 73 65 6c 66 20 20 | 28 20 64 72 61 77 3a 20 |: self |( draw: |
|00002120| 73 65 6c 66 20 29 0d 09 | 09 09 70 65 6e 49 6e 74 |self )..|..penInt|
|00002130| 6f 57 69 6e 64 3a 20 73 | 65 6c 66 0d 09 09 54 48 |oWind: s|elf...TH|
|00002140| 45 4e 0d 09 45 4c 53 45 | 0d 09 09 5e 62 61 73 65 |EN..ELSE|...^base|
|00002150| 20 20 63 61 6c 6c 20 53 | 65 6c 65 63 74 57 69 6e | call S|electWin|
|00002160| 64 6f 77 0d 09 54 48 45 | 4e 0d 09 75 70 64 61 74 |dow..THE|N..updat|
|00002170| 65 3a 20 73 65 6c 66 20 | 20 3b 6d 0d 0d 0d 3a 6d |e: self | ;m...:m|
|00002180| 20 43 4f 4e 54 45 4e 54 | 3a 09 09 5c 20 48 61 6e | CONTENT|:..\ Han|
|00002190| 64 6c 65 73 20 61 20 63 | 6f 6e 74 65 6e 74 20 63 |dles a c|ontent c|
|000021a0| 6c 69 63 6b 2e 0d 09 61 | 63 74 69 76 65 3a 20 73 |lick...a|ctive: s|
|000021b0| 65 6c 66 0d 09 49 46 09 | 09 65 78 65 63 3a 20 63 |elf..IF.|.exec: c|
|000021c0| 6f 6e 74 65 6e 74 0d 09 | 45 4c 53 45 09 73 65 6c |ontent..|ELSE.sel|
|000021d0| 65 63 74 3a 20 73 65 6c | 66 0d 09 54 48 45 4e 20 |ect: sel|f..THEN |
|000021e0| 20 3b 6d 0d 0d 0d 3a 6d | 20 54 49 54 4c 45 3a 09 | ;m...:m| TITLE:.|
|000021f0| 5c 20 28 20 61 64 64 72 | 20 6c 65 6e 20 2d 2d 20 |\ ( addr| len -- |
|00002200| 29 20 20 53 65 74 73 20 | 74 68 65 20 74 69 74 6c |) Sets |the titl|
|00002210| 65 20 6f 66 20 74 68 65 | 20 77 69 6e 64 6f 77 2e |e of the| window.|
|00002220| 0d 09 73 74 72 32 35 35 | 20 20 5e 62 61 73 65 20 |..str255| ^base |
|00002230| 20 73 77 61 70 20 20 63 | 61 6c 6c 20 53 65 74 57 | swap c|all SetW|
|00002240| 54 69 74 6c 65 20 20 3b | 6d 0d 0d 3a 6d 20 4e 41 |Title ;|m..:m NA|
|00002250| 4d 45 3a 20 20 28 20 61 | 64 64 72 20 6c 65 6e 20 |ME: ( a|ddr len |
|00002260| 2d 2d 20 29 09 74 69 74 | 6c 65 3a 20 73 65 6c 66 |-- ).tit|le: self|
|00002270| 20 20 3b 6d 09 09 5c 20 | 41 6e 20 61 6c 69 61 73 | ;m..\ |An alias|
|00002280| 20 66 6f 72 20 54 49 54 | 4c 45 3a 2e 0d 0d 0d 3a | for TIT|LE:....:|
|00002290| 6d 20 47 45 54 4e 41 4d | 45 3a 09 5c 20 28 20 2d |m GETNAM|E:.\ ( -|
|000022a0| 2d 20 61 64 64 72 20 6c | 65 6e 20 29 20 20 52 65 |- addr l|en ) Re|
|000022b0| 74 75 72 6e 73 20 6e 61 | 6d 65 20 6f 66 20 77 69 |turns na|me of wi|
|000022c0| 6e 64 6f 77 2e 0d 09 5e | 62 61 73 65 20 20 62 75 |ndow...^|base bu|
|000022d0| 66 32 35 35 20 20 63 61 | 6c 6c 20 47 65 74 57 54 |f255 ca|ll GetWT|
|000022e0| 69 74 6c 65 0d 09 62 75 | 66 32 35 35 20 63 6f 75 |itle..bu|f255 cou|
|000022f0| 6e 74 20 20 3b 6d 0d 0d | 0d 3a 6d 20 4d 41 58 58 |nt ;m..|.:m MAXX|
|00002300| 3a 09 5c 20 28 20 2d 2d | 20 78 20 29 20 20 52 65 |:.\ ( --| x ) Re|
|00002310| 74 75 72 6e 73 20 74 68 | 65 20 78 20 63 6f 6f 72 |turns th|e x coor|
|00002320| 64 69 6e 61 74 65 20 76 | 61 6c 75 65 20 63 6f 72 |dinate v|alue cor|
|00002330| 72 65 73 70 6f 6e 64 69 | 6e 67 20 74 6f 0d 09 09 |respondi|ng to...|
|00002340| 09 5c 20 20 74 68 65 20 | 77 69 6e 64 6f 77 20 62 |.\ the |window b|
|00002350| 65 69 6e 67 20 6d 6f 76 | 65 64 20 74 6f 20 74 68 |eing mov|ed to th|
|00002360| 65 20 72 69 67 68 74 20 | 6f 66 20 74 68 65 20 73 |e right |of the s|
|00002370| 63 72 65 65 6e 2e 0d 09 | 73 63 72 65 65 6e 62 69 |creen...|screenbi|
|00002380| 74 73 20 64 72 6f 70 20 | 6e 69 70 20 6e 69 70 0d |ts drop |nip nip.|
|00002390| 09 73 69 7a 65 3a 20 70 | 6f 72 74 52 65 63 74 20 |.size: p|ortRect |
|000023a0| 20 64 72 6f 70 20 20 2d | 20 20 3b 6d 0d 0d 0d 3a | drop -| ;m...:|
|000023b0| 6d 20 4d 41 58 59 3a 09 | 5c 20 28 20 2d 2d 20 79 |m MAXY:.|\ ( -- y|
|000023c0| 20 29 0d 09 73 63 72 65 | 65 6e 62 69 74 73 20 6e | )..scre|enbits n|
|000023d0| 69 70 20 6e 69 70 20 6e | 69 70 0d 09 73 69 7a 65 |ip nip n|ip..size|
|000023e0| 3a 20 70 6f 72 74 52 65 | 63 74 20 20 6e 69 70 20 |: portRe|ct nip |
|000023f0| 20 2d 20 20 3b 6d 0d 0d | 5c 09 09 09 3d 3d 3d 3d | - ;m..|\...====|
|00002400| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 0d 0d 3a |========|=====..:|
|00002410| 6d 20 4b 45 59 3a 09 09 | 5c 20 28 20 63 20 2d 2d |m KEY:..|\ ( c --|
|00002420| 20 29 20 20 4d 61 79 20 | 62 65 20 75 73 65 64 20 | ) May |be used |
|00002430| 69 6e 20 73 75 62 63 6c | 61 73 73 65 73 20 74 6f |in subcl|asses to|
|00002440| 20 64 6f 20 73 6f 6d 65 | 74 68 69 6e 67 20 77 69 | do some|thing wi|
|00002450| 74 68 0d 09 09 09 5c 20 | 20 74 79 70 65 64 20 6b |th....\ | typed k|
|00002460| 65 79 73 2e 20 20 48 65 | 72 65 2c 20 77 65 20 6a |eys. He|re, we j|
|00002470| 75 73 74 20 64 72 6f 70 | 20 69 74 2e 0d 09 64 72 |ust drop| it...dr|
|00002480| 6f 70 20 20 3b 6d 0d 0d | 0d 3a 6d 20 53 48 4f 57 |op ;m..|.:m SHOW|
|00002490| 3a 09 5e 62 61 73 65 20 | 20 63 61 6c 6c 20 53 68 |:.^base | call Sh|
|000024a0| 6f 77 57 69 6e 64 6f 77 | 20 20 3b 6d 0d 0d 3a 6d |owWindow| ;m..:m|
|000024b0| 20 48 49 44 45 3a 09 5e | 62 61 73 65 20 20 63 61 | HIDE:.^|base ca|
|000024c0| 6c 6c 20 48 69 64 65 57 | 69 6e 64 6f 77 20 20 3b |ll HideW|indow ;|
|000024d0| 6d 0d 0d 0d 3a 6d 20 53 | 45 54 47 52 4f 57 3a 09 |m...:m S|ETGROW:.|
|000024e0| 5c 20 28 20 6c 20 74 20 | 72 20 62 20 20 54 20 20 |\ ( l t |r b T |
|000024f0| 7c 20 20 46 20 2d 2d 20 | 29 20 20 53 65 74 73 20 || F -- |) Sets |
|00002500| 67 72 6f 77 20 6c 69 6d | 69 74 73 2c 20 69 66 20 |grow lim|its, if |
|00002510| 62 6f 6f 6c 65 61 6e 20 | 69 73 20 74 72 75 65 2e |boolean |is true.|
|00002520| 0d 0d 09 5c 20 4e 6f 74 | 65 3a 20 69 6e 20 63 6c |...\ Not|e: in cl|
|00002530| 61 73 73 20 57 69 6e 64 | 6f 77 20 69 74 73 65 6c |ass Wind|ow itsel|
|00002540| 66 2c 20 77 65 20 49 47 | 4e 4f 52 45 20 74 68 65 |f, we IG|NORE the|
|00002550| 73 65 20 67 72 6f 77 20 | 6c 69 6d 69 74 73 20 61 |se grow |limits a|
|00002560| 6e 64 0d 09 5c 20 20 75 | 73 65 20 61 20 64 65 66 |nd..\ u|se a def|
|00002570| 61 75 6c 74 20 76 61 6c | 75 65 20 62 61 73 65 64 |ault val|ue based|
|00002580| 20 6f 6e 20 74 68 65 20 | 73 69 7a 65 20 6f 66 20 | on the |size of |
|00002590| 74 68 65 20 73 63 72 65 | 65 6e 20 61 74 20 74 68 |the scre|en at th|
|000025a0| 65 20 74 69 6d 65 0d 09 | 5c 20 20 74 68 65 20 67 |e time..|\ the g|
|000025b0| 72 6f 77 20 69 73 20 61 | 63 74 75 61 6c 6c 79 20 |row is a|ctually |
|000025c0| 64 6f 6e 65 2e 0d 0d 09 | 64 75 70 20 20 70 75 74 |done....|dup put|
|000025d0| 3a 20 67 72 6f 77 46 6c | 67 0d 09 69 66 20 20 70 |: growFl|g..if p|
|000025e0| 75 74 3a 20 67 72 6f 77 | 72 65 63 74 20 20 74 68 |ut: grow|rect th|
|000025f0| 65 6e 20 20 3b 6d 0d 0d | 3a 6d 20 53 45 54 44 52 |en ;m..|:m SETDR|
|00002600| 41 47 3a 09 5c 20 28 20 | 6c 20 74 20 72 20 62 20 |AG:.\ ( |l t r b |
|00002610| 20 54 20 20 7c 20 20 46 | 20 2d 2d 20 29 20 20 53 | T | F| -- ) S|
|00002620| 65 74 73 20 64 72 61 67 | 20 6c 69 6d 69 74 73 2e |ets drag| limits.|
|00002630| 0d 0d 09 5c 20 4e 6f 74 | 65 3a 20 69 6e 20 63 6c |...\ Not|e: in cl|
|00002640| 61 73 73 20 57 69 6e 64 | 6f 77 20 69 74 73 65 6c |ass Wind|ow itsel|
|00002650| 66 2c 20 77 65 20 49 47 | 4e 4f 52 45 20 74 68 65 |f, we IG|NORE the|
|00002660| 73 65 20 64 72 61 67 20 | 6c 69 6d 69 74 73 20 61 |se drag |limits a|
|00002670| 6e 64 0d 09 5c 20 20 75 | 73 65 20 61 20 64 65 66 |nd..\ u|se a def|
|00002680| 61 75 6c 74 20 76 61 6c | 75 65 20 62 61 73 65 64 |ault val|ue based|
|00002690| 20 6f 6e 20 74 68 65 20 | 73 69 7a 65 20 6f 66 20 | on the |size of |
|000026a0| 74 68 65 20 73 63 72 65 | 65 6e 20 61 74 20 74 68 |the scre|en at th|
|000026b0| 65 20 74 69 6d 65 0d 09 | 5c 20 20 74 68 65 20 64 |e time..|\ the d|
|000026c0| 72 61 67 20 69 73 20 61 | 63 74 75 61 6c 6c 79 20 |rag is a|ctually |
|000026d0| 64 6f 6e 65 2e 0d 0d 09 | 64 75 70 20 20 70 75 74 |done....|dup put|
|000026e0| 3a 20 64 72 61 67 46 6c | 67 0d 09 69 66 20 20 70 |: dragFl|g..if p|
|000026f0| 75 74 3a 20 64 72 61 67 | 52 65 63 74 20 20 74 68 |ut: drag|Rect th|
|00002700| 65 6e 20 20 3b 6d 0d 0d | 3a 6d 20 53 45 54 53 43 |en ;m..|:m SETSC|
|00002710| 52 4f 4c 4c 3a 09 5c 20 | 28 20 62 20 2d 2d 20 29 |ROLL:.\ |( b -- )|
|00002720| 0d 09 70 75 74 3a 20 73 | 63 72 6f 6c 6c 46 6c 67 |..put: s|crollFlg|
|00002730| 20 20 3b 6d 0d 0d 0d 3a | 6d 20 43 4c 41 53 53 49 | ;m...:|m CLASSI|
|00002740| 4e 49 54 3a 0d 09 78 74 | 73 7b 20 6e 75 6c 6c 20 |NIT:..xt|s{ null |
|00002750| 6e 75 6c 6c 20 6e 75 6c | 6c 20 6e 75 6c 6c 20 7d |null nul|l null }|
|00002760| 20 20 61 63 74 69 6f 6e | 73 3a 20 73 65 6c 66 0d | action|s: self.|
|00002770| 09 5b 27 5d 20 6e 75 6c | 6c 20 20 64 75 70 20 20 |.['] nul|l dup |
|00002780| 70 75 74 3a 20 69 64 6c | 65 20 20 70 75 74 3a 20 |put: idl|e put: |
|00002790| 64 65 61 63 74 0d 09 74 | 72 75 65 20 20 70 75 74 |deact..t|rue put|
|000027a0| 3a 20 73 63 72 6f 6c 6c | 46 6c 67 20 20 74 72 75 |: scroll|Flg tru|
|000027b0| 65 20 20 70 75 74 3a 20 | 64 72 61 67 46 6c 67 20 |e put: |dragFlg |
|000027c0| 20 3b 6d 0d 0d 0d 3a 6d | 20 4d 41 52 4b 41 4c 49 | ;m...:m| MARKALI|
|000027d0| 56 45 3a 09 5c 20 41 20 | 73 70 65 63 69 61 6c 20 |VE:.\ A |special |
|000027e0| 6d 65 74 68 6f 64 20 72 | 65 61 6c 6c 79 20 69 6e |method r|eally in|
|000027f0| 74 65 6e 64 65 64 20 6a | 75 73 74 20 74 6f 20 61 |tended j|ust to a|
|00002800| 6c 6c 6f 77 20 75 73 20 | 74 6f 0d 09 09 09 09 5c |llow us |to.....\|
|00002810| 20 6d 61 72 6b 20 66 57 | 69 6e 64 20 61 6c 69 76 | mark fW|ind aliv|
|00002820| 65 20 6f 6e 20 73 74 61 | 72 74 75 70 2e 0d 09 74 |e on sta|rtup...t|
|00002830| 72 75 65 20 20 70 75 74 | 3a 20 61 6c 69 76 65 20 |rue put|: alive |
|00002840| 20 20 3b 6d 0d 0d 0d 3a | 6d 20 54 45 53 54 3a 09 | ;m...:|m TEST:.|
|00002850| 09 5c 20 46 69 72 65 73 | 20 75 70 20 61 20 74 65 |.\ Fires| up a te|
|00002860| 73 74 20 77 69 6e 64 6f | 77 2e 0d 09 31 30 30 20 |st windo|w...100 |
|00002870| 31 30 30 20 33 30 30 20 | 32 30 30 20 70 75 74 3a |100 300 |200 put:|
|00002880| 20 74 65 6d 70 52 65 63 | 74 0d 09 73 63 72 65 65 | tempRec|t..scree|
|00002890| 6e 62 69 74 73 20 74 72 | 75 65 20 73 65 74 47 72 |nbits tr|ue setGr|
|000028a0| 6f 77 3a 20 73 65 6c 66 | 0d 09 74 65 6d 70 52 65 |ow: self|..tempRe|
|000028b0| 63 74 20 20 22 20 54 65 | 73 74 22 20 20 64 6f 63 |ct " Te|st" doc|
|000028c0| 57 69 6e 64 20 20 74 72 | 75 65 20 74 72 75 65 20 |Wind tr|ue true |
|000028d0| 20 6e 65 77 3a 20 73 65 | 6c 66 20 20 3b 6d 0d 0d | new: se|lf ;m..|
|000028e0| 3b 63 6c 61 73 73 0d 00 | 00 00 00 00 00 00 00 00 |;class..|........|
|000028f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002900| 00 00 01 00 00 00 01 00 | 00 00 00 00 00 00 00 1e |........|........|
|00002910| 00 00 07 ca 07 be 00 03 | 7f 08 04 00 00 00 00 03 |........|........|
|00002920| 00 00 00 00 00 00 00 01 | 00 00 00 00 00 00 00 00 |........|........|
|00002930| 0d 77 69 6e 64 6f 77 6d | 6f 64 2e 74 78 74 02 00 |.windowm|od.txt..|
|00002940| 00 00 50 61 72 74 53 49 | 54 78 00 00 00 00 00 00 |..PartSI|Tx......|
|00002950| 00 00 50 61 72 74 53 49 | 54 78 00 00 00 00 00 00 |..PartSI|Tx......|
|00002960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002970| 00 00 ab 06 23 40 00 00 | 00 00 00 00 01 1e 00 00 |....#@..|........|
|00002980| 07 cb 2c 56 00 03 7f 08 | 06 00 00 00 00 02 00 00 |..,V....|........|
|00002990| 00 00 00 00 00 02 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000029a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000029b0| 00 00 a7 7a 35 f7 00 00 | 1d 8b 00 00 00 04 00 00 |...z5...|........|
|000029c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000029d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000029e0| 00 00 a7 79 f8 54 00 00 | 01 1e 05 00 00 00 07 cc |...y.T..|........|
|000029f0| 2c 65 00 03 7f 08 06 00 | 00 00 00 02 00 00 00 00 |,e......|........|
|00002a00| 00 00 01 00 00 00 01 00 | 00 00 00 00 00 00 00 1e |........|........|
|00002a10| 00 00 00 00 00 00 00 00 | 00 1c 00 1e ff ff 00 00 |........|........|
|00002a20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002a30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002a40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002a50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002a60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002a70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+