home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 5 / BBS in a Box -Volume V (BBS in a Box) (April 1992).iso / Files / Apple / Apple II TNs(Text).cpt / Apple II TNs(Text) / IIGS / TN.IIGS.003 < prev    next >
MacBinary  |  1989-11-15  |  17.1 KB  |  [TEXT/pdos]

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: TN.IIGS.003

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert GeoWorks GEOS Data (other/geoWorksGEOSData) ext Unsupported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Wed Nov 15 12:34:21 1989, modified Wed Nov 15 12:34:21 1989, creator Apple ProDOS file system, type ASCII, 16995 bytes "TN.IIGS.003" , at 0x42e3 382 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[pdos]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0b 54 4e 2e 49 49 47 | 53 2e 30 30 33 00 00 00 |..TN.IIG|S.003...|
|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 70 64 6f | 73 01 00 00 00 00 00 00 |.TEXTpdo|s.......|
|00000050| 00 00 00 00 00 42 63 00 | 00 01 7e a1 87 4e 9d a1 |.....Bc.|..~..N..|
|00000060| 87 4e 9d 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.N......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 6b f6 00 00 |........|....k...|
|00000080| 41 70 70 6c 65 20 49 49 | 0d 54 65 63 68 6e 69 63 |Apple II|.Technic|
|00000090| 61 6c 20 4e 6f 74 65 73 | 0d 5f 5f 5f 5f 5f 5f 5f |al Notes|._______|
|000000a0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000000b0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000000c0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000000d0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000000e0| 5f 5f 5f 5f 5f 5f 0d 20 | 20 20 20 20 20 20 20 20 |______. | |
|000000f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000100| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000110| 20 20 20 20 20 20 20 20 | 20 44 65 76 65 6c 6f 70 | | Develop|
|00000120| 65 72 20 54 65 63 68 6e | 69 63 61 6c 20 53 75 70 |er Techn|ical Sup|
|00000130| 70 6f 72 74 0d 0d 0d 41 | 70 70 6c 65 20 49 49 47 |port...A|pple IIG|
|00000140| 53 0d 23 33 3a 20 20 20 | 20 57 69 6e 64 6f 77 20 |S.#3: | Window |
|00000150| 49 6e 66 6f 72 6d 61 74 | 69 6f 6e 20 42 61 72 20 |Informat|ion Bar |
|00000160| 55 73 65 0d 0d 52 65 76 | 69 73 65 64 20 62 79 3a |Use..Rev|ised by:|
|00000170| 20 20 20 20 44 61 6e 20 | 4f 6c 69 76 65 72 20 20 | Dan |Oliver |
|00000180| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000190| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000001a0| 20 20 20 20 20 4e 6f 76 | 65 6d 62 65 72 20 31 39 | Nov|ember 19|
|000001b0| 38 38 0d 57 72 69 74 74 | 65 6e 20 62 79 3a 20 20 |88.Writt|en by: |
|000001c0| 20 20 44 61 6e 20 4f 6c | 69 76 65 72 20 20 20 20 | Dan Ol|iver |
|000001d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000001e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000001f0| 20 20 20 20 4f 63 74 6f | 62 65 72 20 31 39 38 36 | Octo|ber 1986|
|00000200| 0d 0d 54 68 69 73 20 54 | 65 63 68 6e 69 63 61 6c |..This T|echnical|
|00000210| 20 4e 6f 74 65 20 64 65 | 74 61 69 6c 73 20 74 68 | Note de|tails th|
|00000220| 65 20 75 73 65 20 6f 66 | 20 61 20 77 69 6e 64 6f |e use of| a windo|
|00000230| 77 27 73 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |w's info|rmation |
|00000240| 62 61 72 2c 20 69 6e 63 | 6c 75 64 69 6e 67 20 61 |bar, inc|luding a|
|00000250| 20 0d 63 6f 64 65 20 73 | 61 6d 70 6c 65 20 77 68 | .code s|ample wh|
|00000260| 69 63 68 20 70 6c 61 63 | 65 73 20 61 20 6d 65 6e |ich plac|es a men|
|00000270| 75 20 69 6e 20 61 6e 20 | 69 6e 66 6f 72 6d 61 74 |u in an |informat|
|00000280| 69 6f 6e 20 62 61 72 2e | 0d 5f 5f 5f 5f 5f 5f 5f |ion bar.|._______|
|00000290| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000002a0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000002b0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000002c0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000002d0| 5f 5f 5f 5f 5f 5f 0d 0d | 41 70 70 6c 65 20 49 49 |______..|Apple II|
|000002e0| 47 53 20 77 69 6e 64 6f | 77 20 69 6e 66 6f 72 6d |GS windo|w inform|
|000002f0| 61 74 69 6f 6e 20 62 61 | 72 73 20 61 72 65 20 6e |ation ba|rs are n|
|00000300| 6f 74 20 61 73 20 73 74 | 72 61 69 67 68 74 66 6f |ot as st|raightfo|
|00000310| 72 77 61 72 64 20 61 73 | 20 6f 74 68 65 72 20 77 |rward as| other w|
|00000320| 69 6e 64 6f 77 20 0d 66 | 65 61 74 75 72 65 73 2c |indow .f|eatures,|
|00000330| 20 61 6e 64 20 6f 6e 65 | 20 72 65 61 73 6f 6e 20 | and one| reason |
|00000340| 66 6f 72 20 74 68 69 73 | 20 69 73 20 74 68 65 20 |for this| is the |
|00000350| 73 6d 61 6c 6c 20 61 6d | 6f 75 6e 74 20 6f 66 20 |small am|ount of |
|00000360| 73 70 61 63 65 20 6f 72 | 69 67 69 6e 61 6c 6c 79 |space or|iginally|
|00000370| 20 0d 61 6c 6c 6f 63 61 | 74 65 64 20 66 6f 72 20 | .alloca|ted for |
|00000380| 74 68 65 69 72 20 70 72 | 6f 63 65 73 73 69 6e 67 |their pr|ocessing|
|00000390| 2e 20 20 49 66 20 79 6f | 75 20 66 65 65 6c 20 79 |. If yo|u feel y|
|000003a0| 6f 75 72 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 |our appl|ication |
|000003b0| 63 61 6e 20 62 65 6e 65 | 66 69 74 20 66 72 6f 6d |can bene|fit from|
|000003c0| 20 0d 74 68 65 20 75 73 | 65 20 6f 66 20 69 6e 66 | .the us|e of inf|
|000003d0| 6f 72 6d 61 74 69 6f 6e | 20 62 61 72 73 2c 20 79 |ormation| bars, y|
|000003e0| 6f 75 20 63 61 6e 20 69 | 6d 70 6c 65 6d 65 6e 74 |ou can i|mplement|
|000003f0| 20 74 68 65 6d 2c 20 61 | 6e 64 20 74 68 69 73 20 | them, a|nd this |
|00000400| 54 65 63 68 6e 69 63 61 | 6c 20 4e 6f 74 65 20 0d |Technica|l Note .|
|00000410| 65 78 70 6c 61 69 6e 73 | 20 68 6f 77 20 74 6f 20 |explains| how to |
|00000420| 64 6f 20 69 74 20 61 6e | 64 20 69 6e 63 6c 75 64 |do it an|d includ|
|00000430| 65 73 20 73 6f 6d 65 20 | 73 75 67 67 65 73 74 69 |es some |suggesti|
|00000440| 6f 6e 73 20 66 6f 72 20 | 74 68 65 69 72 20 75 73 |ons for |their us|
|00000450| 65 2e 20 20 54 68 65 20 | 63 6f 64 65 20 0d 73 61 |e. The |code .sa|
|00000460| 6d 70 6c 65 73 20 62 65 | 6c 6f 77 20 64 65 6d 6f |mples be|low demo|
|00000470| 6e 73 74 72 61 74 65 20 | 68 6f 77 20 74 6f 20 70 |nstrate |how to p|
|00000480| 6c 61 63 65 20 61 20 6d | 65 6e 75 20 62 61 72 20 |lace a m|enu bar |
|00000490| 69 6e 20 61 6e 20 69 6e | 66 6f 72 6d 61 74 69 6f |in an in|formatio|
|000004a0| 6e 20 62 61 72 2c 20 62 | 75 74 20 20 0d 79 6f 75 |n bar, b|ut .you|
|000004b0| 72 20 75 73 65 20 6f 66 | 20 69 6e 66 6f 72 6d 61 |r use of| informa|
|000004c0| 74 69 6f 6e 20 62 61 72 | 73 20 69 73 20 6e 6f 74 |tion bar|s is not|
|000004d0| 20 6c 69 6d 69 74 65 64 | 20 74 6f 20 74 68 6f 73 | limited| to thos|
|000004e0| 65 20 64 65 73 63 72 69 | 62 65 64 20 68 65 72 65 |e descri|bed here|
|000004f0| 2e 0d 0d 0d 49 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |....Info|rmation |
|00000500| 42 61 72 20 49 6e 69 74 | 69 61 6c 69 7a 61 74 69 |Bar Init|ializati|
|00000510| 6f 6e 0d 0d 59 6f 75 20 | 63 61 6e 20 63 72 65 61 |on..You |can crea|
|00000520| 74 65 20 61 6e 20 69 6e | 66 6f 72 6d 61 74 69 6f |te an in|formatio|
|00000530| 6e 20 62 61 72 20 69 6e | 20 61 20 77 69 6e 64 6f |n bar in| a windo|
|00000540| 77 20 77 68 65 6e 20 79 | 6f 75 20 63 72 65 61 74 |w when y|ou creat|
|00000550| 65 20 74 68 65 20 77 69 | 6e 64 6f 77 20 62 79 20 |e the wi|ndow by |
|00000560| 0d 73 65 74 74 69 6e 67 | 20 74 68 65 20 66 6f 6c |.setting| the fol|
|00000570| 6c 6f 77 69 6e 67 20 66 | 69 65 6c 64 73 20 69 6e |lowing f|ields in|
|00000580| 20 74 68 65 20 70 61 72 | 61 6d 65 74 65 72 20 6c | the par|ameter l|
|00000590| 69 73 74 20 79 6f 75 20 | 70 61 73 73 20 74 6f 20 |ist you |pass to |
|000005a0| 4e 65 77 57 69 6e 64 6f | 77 3a 0d 0d 77 46 72 61 |NewWindo|w:..wFra|
|000005b0| 6d 65 20 20 20 20 20 20 | 20 20 20 20 53 65 74 20 |me | Set |
|000005c0| 62 69 74 20 34 2e 0d 0d | 77 49 6e 66 6f 48 65 69 |bit 4...|wInfoHei|
|000005d0| 67 68 74 20 20 20 20 20 | 53 65 74 20 74 6f 20 74 |ght |Set to t|
|000005e0| 68 65 20 68 65 69 67 68 | 74 20 6f 66 20 74 68 65 |he heigh|t of the|
|000005f0| 20 69 6e 66 6f 72 6d 61 | 74 69 6f 6e 20 62 61 72 | informa|tion bar|
|00000600| 20 28 73 68 6f 75 6c 64 | 20 6e 6f 74 20 65 78 63 | (should| not exc|
|00000610| 65 65 64 20 0d 20 20 20 | 20 20 20 20 20 20 20 20 |eed . | |
|00000620| 20 20 20 20 20 77 69 6e | 64 6f 77 20 68 65 69 67 | win|dow heig|
|00000630| 68 74 29 2e 0d 0d 77 49 | 6e 66 6f 44 65 66 50 72 |ht)...wI|nfoDefPr|
|00000640| 6f 63 20 20 20 20 53 65 | 74 20 74 6f 20 74 68 65 |oc Se|t to the|
|00000650| 20 61 64 64 72 65 73 73 | 20 6f 66 20 74 68 65 20 | address| of the |
|00000660| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 20 62 61 72 20 |informat|ion bar |
|00000670| 64 65 66 69 6e 69 74 69 | 6f 6e 20 0d 20 20 20 20 |definiti|on . |
|00000680| 20 20 20 20 20 20 20 20 | 20 20 20 20 70 72 6f 63 | | proc|
|00000690| 65 64 75 72 65 20 28 73 | 65 65 20 62 65 6c 6f 77 |edure (s|ee below|
|000006a0| 29 2e 0d 0d 49 66 20 79 | 6f 75 20 63 72 65 61 74 |)...If y|ou creat|
|000006b0| 65 20 61 20 77 69 6e 64 | 6f 77 20 61 73 20 76 69 |e a wind|ow as vi|
|000006c0| 73 69 62 6c 65 2c 20 74 | 68 65 20 57 69 6e 64 6f |sible, t|he Windo|
|000006d0| 77 20 4d 61 6e 61 67 65 | 72 20 77 69 6c 6c 20 63 |w Manage|r will c|
|000006e0| 61 6c 6c 20 79 6f 75 72 | 20 0d 69 6e 66 6f 72 6d |all your| .inform|
|000006f0| 61 74 69 6f 6e 20 62 61 | 72 20 64 65 66 69 6e 69 |ation ba|r defini|
|00000700| 74 69 6f 6e 20 70 72 6f | 63 65 64 75 72 65 20 28 |tion pro|cedure (|
|00000710| 49 6e 66 6f 44 65 66 50 | 72 6f 63 29 20 62 65 66 |InfoDefP|roc) bef|
|00000720| 6f 72 65 20 72 65 74 75 | 72 6e 69 6e 67 20 66 72 |ore retu|rning fr|
|00000730| 6f 6d 20 0d 4e 65 77 57 | 69 6e 64 6f 77 2e 20 20 |om .NewW|indow. |
|00000740| 49 66 20 79 6f 75 20 68 | 61 76 65 20 74 6f 20 63 |If you h|ave to c|
|00000750| 72 65 61 74 65 20 74 68 | 65 20 63 6f 6e 74 65 6e |reate th|e conten|
|00000760| 74 73 20 6f 66 20 74 68 | 65 20 69 6e 66 6f 72 6d |ts of th|e inform|
|00000770| 61 74 69 6f 6e 20 62 61 | 72 20 61 66 74 65 72 20 |ation ba|r after |
|00000780| 0d 74 68 65 20 77 69 6e | 64 6f 77 2c 20 79 6f 75 |.the win|dow, you|
|00000790| 20 77 69 6c 6c 20 68 61 | 76 65 20 61 20 70 72 6f | will ha|ve a pro|
|000007a0| 62 6c 65 6d 20 73 69 6e | 63 65 20 74 68 65 20 57 |blem sin|ce the W|
|000007b0| 69 6e 64 6f 77 20 4d 61 | 6e 61 67 65 72 20 77 69 |indow Ma|nager wi|
|000007c0| 6c 6c 20 65 78 70 65 63 | 74 20 79 6f 75 72 20 0d |ll expec|t your .|
|000007d0| 49 6e 66 6f 44 65 66 50 | 72 6f 63 20 74 6f 20 64 |InfoDefP|roc to d|
|000007e0| 72 61 77 20 74 68 69 6e | 67 73 20 77 68 69 63 68 |raw thin|gs which|
|000007f0| 20 64 6f 20 6e 6f 74 20 | 79 65 74 20 65 78 69 73 | do not |yet exis|
|00000800| 74 2e 20 20 59 6f 75 20 | 63 61 6e 20 73 6f 6c 76 |t. You |can solv|
|00000810| 65 20 74 68 69 73 20 70 | 72 6f 62 6c 65 6d 20 0d |e this p|roblem .|
|00000820| 62 79 20 63 72 65 61 74 | 69 6e 67 20 74 68 65 20 |by creat|ing the |
|00000830| 77 69 6e 64 6f 77 20 61 | 73 20 69 6e 76 69 73 69 |window a|s invisi|
|00000840| 62 6c 65 2c 20 63 72 65 | 61 74 69 6e 67 20 74 68 |ble, cre|ating th|
|00000850| 65 20 63 6f 6e 74 65 6e | 74 73 20 6f 66 20 74 68 |e conten|ts of th|
|00000860| 65 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 20 0d 62 |e inform|ation .b|
|00000870| 61 72 2c 20 74 68 65 6e | 20 73 68 6f 77 69 6e 67 |ar, then| showing|
|00000880| 20 74 68 65 20 77 69 6e | 64 6f 77 2e 20 20 41 6e | the win|dow. An|
|00000890| 6f 74 68 65 72 20 73 6f | 6c 75 74 69 6f 6e 20 77 |other so|lution w|
|000008a0| 6f 75 6c 64 20 62 65 20 | 74 6f 20 64 65 74 65 63 |ould be |to detec|
|000008b0| 74 2c 20 69 6e 20 74 68 | 65 20 0d 49 6e 66 6f 44 |t, in th|e .InfoD|
|000008c0| 65 66 50 72 6f 63 2c 20 | 74 68 61 74 20 74 68 65 |efProc, |that the|
|000008d0| 20 63 6f 6e 74 65 6e 74 | 73 20 6f 66 20 74 68 65 | content|s of the|
|000008e0| 20 69 6e 66 6f 72 6d 61 | 74 69 6f 6e 20 62 61 72 | informa|tion bar|
|000008f0| 20 64 6f 20 6e 6f 74 20 | 79 65 74 20 65 78 69 73 | do not |yet exis|
|00000900| 74 2e 0d 0d 42 65 6c 6f | 77 20 69 73 20 61 6e 20 |t...Belo|w is an |
|00000910| 65 78 61 6d 70 6c 65 20 | 6f 66 20 69 6e 69 74 69 |example |of initi|
|00000920| 61 6c 69 7a 69 6e 67 20 | 61 20 77 69 6e 64 6f 77 |alizing |a window|
|00000930| 27 73 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 20 62 |'s infor|mation b|
|00000940| 61 72 20 74 6f 20 63 6f | 6e 74 61 69 6e 20 61 20 |ar to co|ntain a |
|00000950| 0d 6d 65 6e 75 20 62 61 | 72 2e 20 20 54 68 65 20 |.menu ba|r. The |
|00000960| 74 68 72 65 65 20 6b 65 | 79 20 66 69 65 6c 64 73 |three ke|y fields|
|00000970| 20 6f 66 20 74 68 65 20 | 70 61 72 61 6d 65 74 65 | of the |paramete|
|00000980| 72 20 6c 69 73 74 20 77 | 68 69 63 68 20 79 6f 75 |r list w|hich you|
|00000990| 20 70 61 73 73 20 74 6f | 20 0d 4e 65 77 57 69 6e | pass to| .NewWin|
|000009a0| 64 6f 77 20 61 72 65 20 | 61 73 20 66 6f 6c 6c 6f |dow are |as follo|
|000009b0| 77 73 3a 0d 0d 77 46 72 | 61 6d 65 20 20 20 20 20 |ws:..wFr|ame |
|000009c0| 20 20 20 20 20 53 65 74 | 20 62 69 74 20 34 20 3d | Set| bit 4 =|
|000009d0| 20 31 20 61 6e 64 20 62 | 69 74 20 35 20 3d 20 30 | 1 and b|it 5 = 0|
|000009e0| 20 66 6f 72 20 61 6e 20 | 69 6e 76 69 73 69 62 6c | for an |invisibl|
|000009f0| 65 20 77 69 6e 64 6f 77 | 3b 20 74 68 65 20 0d 20 |e window|; the . |
|00000a00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 6f | | o|
|00000a10| 74 68 65 72 20 62 69 74 | 73 20 64 6f 20 6e 6f 74 |ther bit|s do not|
|00000a20| 20 61 66 66 65 63 74 20 | 74 68 65 20 69 6e 66 6f | affect |the info|
|00000a30| 72 6d 61 74 69 6f 6e 20 | 62 61 72 2c 20 73 6f 20 |rmation |bar, so |
|00000a40| 79 6f 75 20 63 61 6e 20 | 73 65 74 20 0d 20 20 20 |you can |set . |
|00000a50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 74 68 65 | | the|
|00000a60| 6d 20 61 73 20 79 6f 75 | 20 77 69 73 68 2e 0d 0d |m as you| wish...|
|00000a70| 77 49 6e 66 6f 48 65 69 | 67 68 74 20 20 20 20 20 |wInfoHei|ght |
|00000a80| 41 73 73 75 6d 69 6e 67 | 20 79 6f 75 20 61 72 65 |Assuming| you are|
|00000a90| 20 75 73 69 6e 67 20 61 | 20 73 79 73 74 65 6d 20 | using a| system |
|00000aa0| 6d 65 6e 75 20 62 61 72 | 20 61 6e 64 20 69 6e 69 |menu bar| and ini|
|00000ab0| 74 69 61 6c 69 7a 69 6e | 67 20 69 74 20 0d 20 20 |tializin|g it . |
|00000ac0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 62 65 | | be|
|00000ad0| 66 6f 72 65 20 74 68 65 | 20 77 69 6e 64 6f 77 2c |fore the| window,|
|00000ae0| 20 73 65 74 20 74 6f 20 | 74 68 65 20 68 65 69 67 | set to |the heig|
|00000af0| 68 74 20 46 69 78 4d 65 | 6e 75 42 61 72 20 72 65 |ht FixMe|nuBar re|
|00000b00| 74 75 72 6e 65 64 20 0d | 20 20 20 20 20 20 20 20 |turned .| |
|00000b10| 20 20 20 20 20 20 20 20 | 77 68 65 6e 20 79 6f 75 | |when you|
|00000b20| 20 63 72 65 61 74 65 64 | 20 74 68 65 20 73 79 73 | created| the sys|
|00000b30| 74 65 6d 20 6d 65 6e 75 | 20 62 61 72 2e 20 20 49 |tem menu| bar. I|
|00000b40| 66 20 79 6f 75 20 77 6f | 75 6c 64 20 72 61 74 68 |f you wo|uld rath|
|00000b50| 65 72 20 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |er . | |
|00000b60| 20 20 20 20 75 73 65 20 | 61 6e 20 61 62 73 6f 6c | use |an absol|
|00000b70| 75 74 65 20 76 61 6c 75 | 65 2c 20 77 68 69 63 68 |ute valu|e, which|
|00000b80| 20 77 65 20 64 6f 20 6e | 6f 74 20 61 64 76 69 73 | we do n|ot advis|
|00000b90| 65 2c 20 79 6f 75 20 63 | 6f 75 6c 64 20 75 73 65 |e, you c|ould use|
|00000ba0| 20 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | . | |
|00000bb0| 20 20 31 34 20 77 68 69 | 63 68 20 73 68 6f 75 6c | 14 whi|ch shoul|
|00000bc0| 64 20 62 65 20 61 62 6f | 75 74 20 72 69 67 68 74 |d be abo|ut right|
|00000bd0| 20 66 6f 72 20 74 68 65 | 20 63 75 72 72 65 6e 74 | for the| current|
|00000be0| 20 73 79 73 74 65 6d 20 | 66 6f 6e 74 2e 0d 0d 77 | system |font...w|
|00000bf0| 49 6e 66 6f 44 65 66 50 | 72 6f 63 20 20 20 20 53 |InfoDefP|roc S|
|00000c00| 65 74 20 74 6f 20 74 68 | 65 20 61 64 64 72 65 73 |et to th|e addres|
|00000c10| 73 20 6f 66 20 74 68 65 | 20 49 6e 66 6f 44 65 66 |s of the| InfoDef|
|00000c20| 50 72 6f 63 2c 20 69 6e | 20 74 68 69 73 20 63 61 |Proc, in| this ca|
|00000c30| 73 65 20 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |se . | |
|00000c40| 20 20 20 20 64 72 61 77 | 5f 69 6e 66 6f 2e 0d 0d | draw|_info...|
|00000c50| 41 66 74 65 72 20 79 6f | 75 20 63 72 65 61 74 65 |After yo|u create|
|00000c60| 20 74 68 65 20 77 69 6e | 64 6f 77 2c 20 62 75 74 | the win|dow, but|
|00000c70| 20 62 65 66 6f 72 65 20 | 79 6f 75 20 73 68 6f 77 | before |you show|
|00000c80| 20 69 74 2c 20 79 6f 75 | 20 63 61 6e 20 63 72 65 | it, you| can cre|
|00000c90| 61 74 65 20 74 68 65 20 | 6d 65 6e 75 20 0d 62 61 |ate the |menu .ba|
|00000ca0| 72 20 74 6f 20 70 6c 61 | 63 65 20 69 6e 20 74 68 |r to pla|ce in th|
|00000cb0| 65 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 20 62 61 |e inform|ation ba|
|00000cc0| 72 2e 20 20 54 68 65 20 | 63 6f 64 65 20 74 6f 20 |r. The |code to |
|00000cd0| 63 72 65 61 74 65 20 74 | 68 65 20 6d 65 6e 75 20 |create t|he menu |
|00000ce0| 62 61 72 20 6d 69 67 68 | 74 20 0d 6c 6f 6f 6b 20 |bar migh|t .look |
|00000cf0| 6c 69 6b 65 20 74 68 65 | 20 66 6f 6c 6c 6f 77 69 |like the| followi|
|00000d00| 6e 67 3a 0d 0d 77 69 6e | 64 6f 77 20 20 20 20 20 |ng:..win|dow |
|00000d10| 20 20 20 44 69 72 65 63 | 74 20 70 61 67 65 20 6c | Direc|t page l|
|00000d20| 6f 63 61 74 69 6f 6e 20 | 74 68 61 74 20 63 6f 6e |ocation |that con|
|00000d30| 74 61 69 6e 73 20 70 6f | 69 6e 74 65 72 20 74 6f |tains po|inter to|
|00000d40| 20 77 69 6e 64 6f 77 27 | 73 20 70 6f 72 74 2e 0d | window'|s port..|
|00000d50| 3b 0d 3b 20 2d 2d 2d 20 | 43 72 65 61 74 65 20 61 |;.; --- |Create a|
|00000d60| 20 6d 65 6e 75 20 62 61 | 72 20 2d 2d 2d 2d 2d 2d | menu ba|r ------|
|00000d70| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000d80| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000d90| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000da0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 0d 3b |--------|------.;|
|00000db0| 0d 20 20 20 20 20 20 20 | 20 70 68 61 20 20 20 20 |. | pha |
|00000dc0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000dd0| 20 20 20 20 20 20 20 20 | 20 53 70 61 63 65 20 66 | | Space f|
|00000de0| 6f 72 20 72 65 73 75 6c | 74 2e 0d 20 20 20 20 20 |or resul|t.. |
|00000df0| 20 20 20 70 68 61 0d 20 | 20 20 20 20 20 20 20 70 | pha. | p|
|00000e00| 65 61 20 20 20 20 24 46 | 46 46 46 20 20 20 20 20 |ea $F|FFF |
|00000e10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 53 | | S|
|00000e20| 65 74 20 22 75 73 65 20 | 63 75 72 72 65 6e 74 20 |et "use |current |
|00000e30| 70 6f 72 74 22 20 66 6c | 61 67 2e 0d 20 20 20 20 |port" fl|ag.. |
|00000e40| 20 20 20 20 70 65 61 20 | 20 20 20 24 46 46 46 46 | pea | $FFFF|
|00000e50| 0d 20 20 20 20 20 20 20 | 20 5f 4e 65 77 4d 65 6e |. | _NewMen|
|00000e60| 75 42 61 72 20 20 20 20 | 20 20 20 20 20 20 20 20 |uBar | |
|00000e70| 20 20 20 20 20 20 20 20 | 20 43 72 65 61 74 65 20 | | Create |
|00000e80| 61 20 6d 65 6e 75 20 62 | 61 72 2e 0d 20 20 20 20 |a menu b|ar.. |
|00000e90| 20 20 20 20 70 6c 61 20 | 20 20 20 20 20 20 20 20 | pla | |
|00000ea0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000eb0| 20 20 20 20 47 65 74 20 | 72 65 74 75 72 6e 65 64 | Get |returned|
|00000ec0| 20 6d 65 6e 75 20 62 61 | 72 20 68 61 6e 64 6c 65 | menu ba|r handle|
|00000ed0| 2e 0d 20 20 20 20 20 20 | 20 20 73 74 61 20 20 20 |.. | sta |
|00000ee0| 20 3c 6d 65 6e 75 42 61 | 72 20 20 20 20 20 20 20 | <menuBa|r |
|00000ef0| 20 20 20 20 20 20 20 20 | 20 20 52 65 6d 65 6d 62 | | Rememb|
|00000f00| 65 72 20 6d 65 6e 75 20 | 62 61 72 20 68 61 6e 64 |er menu |bar hand|
|00000f10| 6c 65 2e 0d 20 20 20 20 | 20 20 20 20 70 6c 61 0d |le.. | pla.|
|00000f20| 20 20 20 20 20 20 20 20 | 73 74 61 20 20 20 20 3c | |sta <|
|00000f30| 6d 65 6e 75 42 61 72 2b | 32 0d 3b 20 20 20 20 0d |menuBar+|2.; .|
|00000f40| 3b 0d 3b 20 2d 2d 2d 20 | 53 74 6f 72 65 20 6d 65 |;.; --- |Store me|
|00000f50| 6e 75 20 62 61 72 27 73 | 20 68 61 6e 64 6c 65 20 |nu bar's| handle |
|00000f60| 69 6e 20 74 68 65 20 77 | 69 6e 64 6f 77 27 73 20 |in the w|indow's |
|00000f70| 49 6e 66 6f 52 65 66 43 | 6f 6e 20 2d 2d 2d 2d 2d |InfoRefC|on -----|
|00000f80| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000f90| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 0d 3b |--------|------.;|
|00000fa0| 0d 20 20 20 20 20 20 20 | 20 70 65 69 20 20 20 20 |. | pei |
|00000fb0| 3c 6d 65 6e 75 42 61 72 | 2b 32 20 20 20 20 20 20 |<menuBar|+2 |
|00000fc0| 20 20 20 20 20 20 20 20 | 20 50 61 73 73 20 6d 65 | | Pass me|
|00000fd0| 6e 75 20 62 61 72 20 68 | 61 6e 64 6c 65 2e 0d 20 |nu bar h|andle.. |
|00000fe0| 20 20 20 20 20 20 20 70 | 65 69 20 20 20 20 3c 6d | p|ei <m|
|00000ff0| 65 6e 75 42 61 72 0d 20 | 20 20 20 20 20 20 20 70 |enuBar. | p|
|00001000| 65 69 20 20 20 20 3c 77 | 69 6e 64 6f 77 2b 32 20 |ei <w|indow+2 |
|00001010| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 57 | | W|
|00001020| 69 6e 64 6f 77 20 74 6f | 20 73 65 74 20 72 65 66 |indow to| set ref|
|00001030| 43 6f 6e 2e 0d 20 20 20 | 20 20 20 20 20 70 65 69 |Con.. | pei|
|00001040| 20 20 20 20 3c 77 69 6e | 64 6f 77 0d 20 20 20 20 | <win|dow. |
|00001050| 20 20 20 20 5f 53 65 74 | 49 6e 66 6f 52 65 66 43 | _Set|InfoRefC|
|00001060| 6f 6e 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |on | |
|00001070| 20 20 20 20 53 74 6f 72 | 65 20 6d 65 6e 75 20 62 | Stor|e menu b|
|00001080| 61 72 20 68 61 6e 64 6c | 65 20 69 6e 20 77 69 6e |ar handl|e in win|
|00001090| 64 6f 77 27 73 20 69 6e | 66 6f 52 65 66 43 6f 6e |dow's in|foRefCon|
|000010a0| 2e 0d 3b 0d 3b 0d 3b 20 | 2d 2d 2d 20 4d 61 6b 65 |..;.;.; |--- Make|
|000010b0| 20 74 68 65 20 77 69 6e | 64 6f 77 27 73 20 6d 65 | the win|dow's me|
|000010c0| 6e 75 20 62 61 72 20 74 | 68 65 20 63 75 72 72 65 |nu bar t|he curre|
|000010d0| 6e 74 20 6d 65 6e 75 20 | 62 61 72 20 2d 2d 2d 2d |nt menu |bar ----|
|000010e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000010f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001100| 2d 2d 0d 3b 0d 20 20 20 | 20 20 20 20 20 70 65 69 |--.;. | pei|
|00001110| 20 20 20 20 3c 6d 65 6e | 75 42 61 72 2b 32 20 20 | <men|uBar+2 |
|00001120| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 50 61 73 | | Pas|
|00001130| 73 20 6d 65 6e 75 20 62 | 61 72 20 68 61 6e 64 6c |s menu b|ar handl|
|00001140| 65 2e 0d 20 20 20 20 20 | 20 20 20 70 65 69 20 20 |e.. | pei |
|00001150| 20 20 3c 6d 65 6e 75 42 | 61 72 0d 20 20 20 20 20 | <menuB|ar. |
|00001160| 20 20 20 5f 53 65 74 4d | 65 6e 75 42 61 72 20 20 | _SetM|enuBar |
|00001170| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001180| 20 20 20 4d 61 6b 65 20 | 6e 65 77 20 6d 65 6e 75 | Make |new menu|
|00001190| 20 62 61 72 20 74 68 65 | 20 63 75 72 72 65 6e 74 | bar the| current|
|000011a0| 20 6d 65 6e 75 20 62 61 | 72 2e 0d 0d 3b 0d 3b 0d | menu ba|r...;.;.|
|000011b0| 3b 20 2d 2d 2d 20 47 65 | 74 20 74 68 65 20 52 45 |; --- Ge|t the RE|
|000011c0| 43 54 20 6f 66 20 74 68 | 65 20 77 69 6e 64 6f 77 |CT of th|e window|
|000011d0| 27 73 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 20 62 |'s infor|mation b|
|000011e0| 61 72 20 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |ar -----|--------|
|000011f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001200| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 0d 3b 0d 20 |--------|----.;. |
|00001210| 20 20 20 20 20 20 20 70 | 65 61 20 20 20 20 74 65 | p|ea te|
|00001220| 6d 70 52 65 63 74 7c 2d | 31 36 20 20 20 20 20 20 |mpRect|-|16 |
|00001230| 20 20 20 20 20 20 20 50 | 61 73 73 20 70 6f 69 6e | P|ass poin|
|00001240| 74 65 72 20 6f 66 20 52 | 45 43 54 2e 0d 20 20 20 |ter of R|ECT.. |
|00001250| 20 20 20 20 20 70 65 61 | 20 20 20 20 74 65 6d 70 | pea| temp|
|00001260| 52 65 63 74 0d 20 20 20 | 20 20 20 20 20 70 65 69 |Rect. | pei|
|00001270| 20 20 20 20 3c 77 69 6e | 64 6f 77 2b 32 20 20 20 | <win|dow+2 |
|00001280| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 50 61 73 | | Pas|
|00001290| 73 20 70 6f 69 6e 74 65 | 72 20 6f 66 20 77 69 6e |s pointe|r of win|
|000012a0| 64 6f 77 2e 0d 20 20 20 | 20 20 20 20 20 70 65 69 |dow.. | pei|
|000012b0| 20 20 20 20 3c 77 69 6e | 64 6f 77 0d 20 20 20 20 | <win|dow. |
|000012c0| 20 20 20 20 5f 47 65 74 | 52 65 63 74 49 6e 66 6f | _Get|RectInfo|
|000012d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000012e0| 20 20 20 20 74 65 6d 70 | 52 65 63 74 20 3d 20 69 | temp|Rect = i|
|000012f0| 6e 74 65 72 69 6f 72 20 | 52 45 43 54 20 6f 66 20 |nterior |RECT of |
|00001300| 77 69 6e 64 6f 77 27 73 | 20 49 6e 66 6f 20 42 61 |window's| Info Ba|
|00001310| 72 2e 0d 0d 0d 3b 20 2d | 2d 2d 20 44 65 72 65 66 |r....; -|-- Deref|
|00001320| 65 72 65 6e 63 65 20 6d | 65 6e 75 20 62 61 72 20 |erence m|enu bar |
|00001330| 68 61 6e 64 6c 65 20 2d | 2d 2d 2d 2d 2d 2d 2d 2d |handle -|--------|
|00001340| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001350| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001360| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001370| 2d 0d 3b 0d 20 20 20 20 | 20 20 20 20 6c 64 79 20 |-.;. | ldy |
|00001380| 20 20 20 23 32 20 20 20 | 20 0d 20 20 20 20 20 20 | #2 | . |
|00001390| 20 20 6c 64 61 20 20 20 | 20 5b 6d 65 6e 75 42 61 | lda | [menuBa|
|000013a0| 72 5d 2c 79 0d 20 20 20 | 20 20 20 20 20 74 61 79 |r],y. | tay|
|000013b0| 0d 20 20 20 20 20 20 20 | 20 6c 64 61 20 20 20 20 |. | lda |
|000013c0| 5b 6d 65 6e 75 42 61 72 | 5d 0d 20 20 20 20 20 20 |[menuBar|]. |
|000013d0| 20 20 73 74 61 20 20 20 | 20 3c 6d 65 6e 75 42 61 | sta | <menuBa|
|000013e0| 72 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |r | |
|000013f0| 20 20 4e 6f 77 20 6d 65 | 6e 75 42 61 72 20 69 73 | Now me|nuBar is|
|00001400| 20 74 68 65 20 70 6f 69 | 6e 74 65 72 20 74 6f 20 | the poi|nter to |
|00001410| 74 68 65 20 4d 65 6e 75 | 20 42 61 72 2e 0d 20 20 |the Menu| Bar.. |
|00001420| 20 20 20 20 20 20 73 74 | 79 20 20 20 20 3c 6d 65 | st|y <me|
|00001430| 6e 75 42 61 72 2b 32 0d | 3b 0d 3b 0d 3b 20 2d 2d |nuBar+2.|;.;.; --|
|00001440| 2d 20 53 65 74 20 73 69 | 7a 65 20 6f 66 20 6d 65 |- Set si|ze of me|
|00001450| 6e 75 20 62 61 72 20 2d | 2d 2d 2d 2d 2d 2d 2d 2d |nu bar -|--------|
|00001460| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001470| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001480| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001490| 2d 2d 2d 2d 2d 2d 2d 2d | 0d 3b 0d 3b 0d 20 20 20 |--------|.;.;. |
|000014a0| 20 20 20 20 20 6c 64 61 | 20 20 20 20 3c 74 65 6d | lda| <tem|
|000014b0| 70 52 65 63 74 2b 79 31 | 0d 20 20 20 20 20 20 20 |pRect+y1|. |
|000014c0| 20 64 65 63 20 20 20 20 | 61 20 20 20 20 20 20 20 | dec |a |
|000014d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000014e0| 20 4f 76 65 72 6c 61 70 | 20 74 6f 70 20 73 69 64 | Overlap| top sid|
|000014f0| 65 2e 0d 20 20 20 20 20 | 20 20 20 6c 64 79 20 20 |e.. | ldy |
|00001500| 20 20 23 43 74 6c 52 65 | 63 74 2b 79 31 20 20 20 | #CtlRe|ct+y1 |
|00001510| 20 0d 20 20 20 20 20 20 | 20 20 73 74 61 20 20 20 | . | sta |
|00001520| 20 5b 6d 65 6e 75 42 61 | 72 5d 2c 79 0d 3b 0d 20 | [menuBa|r],y.;. |
|00001530| 20 20 20 20 20 20 20 6c | 64 61 20 20 20 20 3c 74 | l|da <t|
|00001540| 65 6d 70 52 65 63 74 2b | 78 31 0d 20 20 20 20 20 |empRect+|x1. |
|00001550| 20 20 20 64 65 63 20 20 | 20 20 61 20 20 20 20 20 | dec | a |
|00001560| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001570| 20 20 20 4f 76 65 72 6c | 61 70 20 6c 65 66 74 20 | Overl|ap left |
|00001580| 73 69 64 65 2e 0d 20 20 | 20 20 20 20 20 20 6c 64 |side.. | ld|
|00001590| 79 20 20 20 20 23 43 74 | 6c 52 65 63 74 2b 78 31 |y #Ct|lRect+x1|
|000015a0| 20 20 20 20 0d 20 20 20 | 20 20 20 20 20 73 74 61 | . | sta|
|000015b0| 20 20 20 20 5b 6d 65 6e | 75 42 61 72 5d 2c 79 0d | [men|uBar],y.|
|000015c0| 3b 0d 20 20 20 20 20 20 | 20 20 6c 64 61 20 20 20 |;. | lda |
|000015d0| 20 3c 72 65 63 74 2b 79 | 32 0d 20 20 20 20 20 20 | <rect+y|2. |
|000015e0| 20 20 69 6e 63 20 20 20 | 20 61 20 20 20 20 20 20 | inc | a |
|000015f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001600| 20 20 4f 76 65 72 6c 61 | 70 20 62 6f 74 74 6f 6d | Overla|p bottom|
|00001610| 20 73 69 64 65 2e 0d 20 | 20 20 20 20 20 20 20 6c | side.. | l|
|00001620| 64 79 20 20 20 20 23 43 | 74 6c 52 65 63 74 2b 79 |dy #C|tlRect+y|
|00001630| 32 0d 20 20 20 20 20 20 | 20 20 73 74 61 20 20 20 |2. | sta |
|00001640| 20 5b 6d 65 6e 75 42 61 | 72 5d 2c 79 0d 3b 0d 3b | [menuBa|r],y.;.;|
|00001650| 0d 3b 20 2d 2d 2d 20 53 | 65 74 20 66 6c 61 67 20 |.; --- S|et flag |
|00001660| 74 6f 20 74 65 6c 6c 20 | 4d 65 6e 75 20 4d 61 6e |to tell |Menu Man|
|00001670| 61 67 65 72 20 74 6f 20 | 64 72 61 77 20 6d 65 6e |ager to |draw men|
|00001680| 75 20 69 6e 20 63 75 72 | 72 65 6e 74 20 70 6f 72 |u in cur|rent por|
|00001690| 74 20 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |t ------|--------|
|000016a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 0d 3b 0d |--------|-----.;.|
|000016b0| 20 20 20 20 20 20 20 20 | 6c 64 79 20 20 20 20 23 | |ldy #|
|000016c0| 43 74 6c 4f 77 6e 65 72 | 2b 32 20 20 20 20 20 20 |CtlOwner|+2 |
|000016d0| 20 20 20 20 20 20 20 20 | 53 65 74 20 68 69 67 68 | |Set high|
|000016e0| 20 62 69 74 20 69 6e 20 | 43 74 6c 4f 77 6e 65 72 | bit in |CtlOwner|
|000016f0| 2e 0d 20 20 20 20 20 20 | 20 20 6c 64 61 20 20 20 |.. | lda |
|00001700| 20 5b 6d 65 6e 75 42 61 | 72 5d 2c 79 0d 20 20 20 | [menuBa|r],y. |
|00001710| 20 20 20 20 20 6f 72 61 | 20 20 20 20 23 24 38 30 | ora| #$80|
|00001720| 30 30 0d 20 20 20 20 20 | 20 20 20 73 74 61 20 20 |00. | sta |
|00001730| 20 20 5b 6d 65 6e 75 42 | 61 72 5d 2c 79 0d 3b 0d | [menuB|ar],y.;.|
|00001740| 3b 0d 3b 20 2d 2d 2d 20 | 43 72 65 61 74 65 20 74 |;.; --- |Create t|
|00001750| 68 65 20 6d 65 6e 75 73 | 20 61 6e 64 20 61 64 64 |he menus| and add|
|00001760| 20 74 68 65 6d 20 74 6f | 20 74 68 65 20 77 69 6e | them to| the win|
|00001770| 64 6f 77 27 73 20 6d 65 | 6e 75 20 62 61 72 20 2d |dow's me|nu bar -|
|00001780| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001790| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 0d 3b |--------|------.;|
|000017a0| 0d 20 20 20 20 20 20 20 | 20 6c 64 61 20 20 20 20 |. | lda |
|000017b0| 23 34 0d 6c 6f 6f 70 20 | 20 20 20 70 68 61 20 20 |#4.loop | pha |
|000017c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000017d0| 20 20 20 20 20 20 20 20 | 20 20 20 53 61 76 65 20 | | Save |
|000017e0| 69 6e 64 65 78 20 69 6e | 74 6f 20 6d 65 6e 75 20 |index in|to menu |
|000017f0| 6c 69 73 74 2e 0d 20 20 | 20 20 20 20 20 20 74 61 |list.. | ta|
|00001800| 79 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |y | |
|00001810| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 53 77 | | Sw|
|00001820| 69 74 63 68 20 69 6e 64 | 65 78 20 74 6f 20 59 2e |itch ind|ex to Y.|
|00001830| 0d 3b 0d 20 20 20 20 20 | 20 20 20 70 68 61 20 20 |.;. | pha |
|00001840| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001850| 20 20 20 20 20 20 20 20 | 20 20 20 53 70 61 63 65 | | Space|
|00001860| 20 66 6f 72 20 72 65 74 | 75 72 6e 20 76 61 6c 75 | for ret|urn valu|
|00001870| 65 2e 0d 20 20 20 20 20 | 20 20 20 70 68 61 0d 20 |e.. | pha. |
|00001880| 20 20 20 20 20 20 20 6c | 64 61 20 20 20 20 6d 65 | l|da me|
|00001890| 6e 75 5f 6c 69 73 74 2b | 32 2c 79 20 20 20 20 20 |nu_list+|2,y |
|000018a0| 20 20 20 20 20 20 20 50 | 61 73 73 20 61 64 64 72 | P|ass addr|
|000018b0| 65 73 73 20 6f 66 20 6d | 65 6e 75 2f 69 74 65 6d |ess of m|enu/item|
|000018c0| 20 6c 69 6e 65 73 2e 0d | 20 20 20 20 20 20 20 20 | lines..| |
|000018d0| 70 68 61 0d 20 20 20 20 | 20 20 20 20 6c 64 61 20 |pha. | lda |
|000018e0| 20 20 20 6d 65 6e 75 5f | 6c 69 73 74 2c 79 0d 20 | menu_|list,y. |
|000018f0| 20 20 20 20 20 20 20 70 | 68 61 0d 20 20 20 20 20 | p|ha. |
|00001900| 20 20 20 5f 4e 65 77 4d | 65 6e 75 0d 3b 20 20 20 | _NewM|enu.; |
|00001910| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001920| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001930| 20 20 20 20 4d 65 6e 75 | 20 68 61 6e 64 6c 65 20 | Menu| handle |
|00001940| 61 6c 72 65 61 64 79 20 | 6f 6e 20 73 74 61 63 6b |already |on stack|
|00001950| 2e 0d 20 20 20 20 20 20 | 20 20 70 65 61 20 20 20 |.. | pea |
|00001960| 20 30 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | 0 | |
|00001970| 20 20 20 20 20 20 20 20 | 20 20 49 6e 73 65 72 74 | | Insert|
|00001980| 20 6d 65 6e 75 20 6c 69 | 73 74 20 61 74 20 66 72 | menu li|st at fr|
|00001990| 6f 6e 74 20 6f 66 20 6c | 69 73 74 2e 0d 20 20 20 |ont of l|ist.. |
|000019a0| 20 20 20 20 20 5f 49 6e | 73 65 72 74 4d 65 6e 75 | _In|sertMenu|
|000019b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000019c0| 20 20 20 20 20 41 64 64 | 20 6d 79 20 6d 65 6e 75 | Add| my menu|
|000019d0| 73 20 74 6f 20 74 68 65 | 20 73 79 73 74 65 6d 20 |s to the| system |
|000019e0| 6d 65 6e 75 20 62 61 72 | 2e 0d 3b 0d 20 20 20 20 |menu bar|..;. |
|000019f0| 20 20 20 20 70 6c 61 0d | 20 20 20 20 20 20 20 20 | pla.| |
|00001a00| 73 65 63 0d 20 20 20 20 | 20 20 20 20 73 62 63 20 |sec. | sbc |
|00001a10| 20 20 20 23 34 0d 20 20 | 20 20 20 20 20 20 62 70 | #4. | bp|
|00001a20| 6c 20 20 20 20 6c 6f 6f | 70 0d 3b 0d 3b 0d 3b 20 |l loo|p.;.;.; |
|00001a30| 2d 2d 2d 20 49 6e 69 74 | 69 61 6c 69 7a 65 20 74 |--- Init|ialize t|
|00001a40| 68 65 20 73 69 7a 65 20 | 6f 66 20 74 68 65 20 6d |he size |of the m|
|00001a50| 65 6e 75 20 62 61 72 20 | 61 6e 64 20 6d 65 6e 75 |enu bar |and menu|
|00001a60| 73 20 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |s ------|--------|
|00001a70| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001a80| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 0d 3b 0d 20 20 20 |--------|--.;. |
|00001a90| 20 20 20 20 20 70 68 61 | 20 20 20 20 20 20 20 20 | pha| |
|00001aa0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001ab0| 20 20 20 20 20 53 70 61 | 63 65 20 66 6f 72 20 72 | Spa|ce for r|
|00001ac0| 65 74 75 72 6e 65 64 20 | 62 61 72 20 68 65 69 67 |eturned |bar heig|
|00001ad0| 68 74 2e 0d 20 20 20 20 | 20 20 20 20 5f 46 69 78 |ht.. | _Fix|
|00001ae0| 4d 65 6e 75 42 61 72 20 | 20 20 20 20 20 20 20 20 |MenuBar | |
|00001af0| 20 20 20 20 20 20 20 20 | 20 20 20 20 46 69 78 20 | | Fix |
|00001b00| 75 70 20 70 6f 73 69 74 | 69 6f 6e 73 20 69 6e 20 |up posit|ions in |
|00001b10| 74 68 65 20 6d 65 6e 75 | 20 62 61 72 2e 0d 20 20 |the menu| bar.. |
|00001b20| 20 20 20 20 20 20 70 6c | 61 20 20 20 20 20 20 20 | pl|a |
|00001b30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001b40| 20 20 20 20 20 20 44 69 | 73 63 61 72 64 20 68 65 | Di|scard he|
|00001b50| 69 67 68 74 20 6f 66 20 | 6d 65 6e 75 20 62 61 72 |ight of |menu bar|
|00001b60| 2e 0d 3b 0d 3b 0d 3b 20 | 2d 2d 2d 20 52 65 73 74 |..;.;.; |--- Rest|
|00001b70| 6f 72 65 20 74 68 65 20 | 73 79 73 74 65 6d 20 6d |ore the |system m|
|00001b80| 65 6e 75 20 62 61 72 20 | 61 73 20 74 68 65 20 63 |enu bar |as the c|
|00001b90| 75 72 72 65 6e 74 20 6d | 65 6e 75 20 2d 2d 2d 2d |urrent m|enu ----|
|00001ba0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001bb0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001bc0| 2d 2d 0d 3b 0d 20 20 20 | 20 20 20 20 20 70 65 61 |--.;. | pea|
|00001bd0| 20 20 20 20 30 20 20 20 | 20 20 20 20 20 20 20 20 | 0 | |
|00001be0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 50 61 73 | | Pas|
|00001bf0| 73 20 66 6c 61 67 20 66 | 6f 72 20 73 79 73 74 65 |s flag f|or syste|
|00001c00| 6d 20 6d 65 6e 75 20 62 | 61 72 2e 0d 20 20 20 20 |m menu b|ar.. |
|00001c10| 20 20 20 20 70 65 61 20 | 20 20 20 30 0d 20 20 20 | pea | 0. |
|00001c20| 20 20 20 20 20 5f 53 65 | 74 4d 65 6e 75 42 61 72 | _Se|tMenuBar|
|00001c30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001c40| 20 20 20 20 20 4d 61 6b | 65 20 73 79 73 74 65 6d | Mak|e system|
|00001c50| 20 6d 65 6e 75 20 62 61 | 72 20 63 75 72 72 65 6e | menu ba|r curren|
|00001c60| 74 2e 0d 0d 54 68 65 20 | 77 69 6e 64 6f 77 27 73 |t...The |window's|
|00001c70| 20 6d 65 6e 75 20 62 61 | 72 20 69 73 20 6e 6f 77 | menu ba|r is now|
|00001c80| 20 69 6e 69 74 69 61 6c | 69 7a 65 64 2c 20 61 6e | initial|ized, an|
|00001c90| 64 20 79 6f 75 20 63 61 | 6e 20 6d 61 6b 65 20 74 |d you ca|n make t|
|00001ca0| 68 65 20 77 69 6e 64 6f | 77 20 76 69 73 69 62 6c |he windo|w visibl|
|00001cb0| 65 20 0d 77 69 74 68 20 | 61 20 63 61 6c 6c 20 74 |e .with |a call t|
|00001cc0| 6f 20 53 68 6f 77 57 69 | 6e 64 6f 77 3b 20 74 68 |o ShowWi|ndow; th|
|00001cd0| 65 20 49 6e 66 6f 44 65 | 66 50 72 6f 63 20 77 69 |e InfoDe|fProc wi|
|00001ce0| 6c 6c 20 64 72 61 77 20 | 74 68 65 20 6d 65 6e 75 |ll draw |the menu|
|00001cf0| 20 62 61 72 2e 0d 0d 0d | 49 6e 66 6f 72 6d 61 74 | bar....|Informat|
|00001d00| 69 6f 6e 20 42 61 72 20 | 44 65 66 69 6e 69 74 69 |ion Bar |Definiti|
|00001d10| 6f 6e 20 50 72 6f 63 65 | 64 75 72 65 20 28 49 6e |on Proce|dure (In|
|00001d20| 66 6f 44 65 66 50 72 6f | 63 29 0d 0d 54 68 65 20 |foDefPro|c)..The |
|00001d30| 49 6e 66 6f 44 65 66 50 | 72 6f 63 20 69 73 20 73 |InfoDefP|roc is s|
|00001d40| 6c 69 67 68 74 6c 79 20 | 6d 69 73 6c 65 61 64 69 |lightly |misleadi|
|00001d50| 6e 67 3b 20 69 74 20 69 | 73 20 6f 6e 6c 79 20 72 |ng; it i|s only r|
|00001d60| 65 73 70 6f 6e 73 69 62 | 6c 65 20 66 6f 72 20 64 |esponsib|le for d|
|00001d70| 72 61 77 69 6e 67 20 74 | 68 65 20 0d 69 6e 74 65 |rawing t|he .inte|
|00001d80| 72 69 6f 72 2c 20 61 62 | 6f 76 65 20 74 68 65 20 |rior, ab|ove the |
|00001d90| 62 61 63 6b 67 72 6f 75 | 6e 64 2c 20 6f 66 20 74 |backgrou|nd, of t|
|00001da0| 68 65 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 20 62 |he infor|mation b|
|00001db0| 61 72 2e 20 20 54 68 65 | 20 49 6e 66 6f 44 65 66 |ar. The| InfoDef|
|00001dc0| 50 72 6f 63 20 69 73 20 | 0d 6e 6f 74 20 72 65 73 |Proc is |.not res|
|00001dd0| 70 6f 6e 73 69 62 6c 65 | 20 66 6f 72 20 64 65 66 |ponsible| for def|
|00001de0| 69 6e 69 6e 67 20 74 68 | 65 20 69 6e 66 6f 72 6d |ining th|e inform|
|00001df0| 61 74 69 6f 6e 20 62 61 | 72 2c 20 64 72 61 77 69 |ation ba|r, drawi|
|00001e00| 6e 67 20 74 68 65 20 66 | 72 61 6d 65 20 61 6e 64 |ng the f|rame and|
|00001e10| 20 0d 62 61 63 6b 67 72 | 6f 75 6e 64 2c 20 74 65 | .backgr|ound, te|
|00001e20| 73 74 69 6e 67 20 66 6f | 72 20 68 69 74 73 2c 20 |sting fo|r hits, |
|00001e30| 6f 72 20 74 72 61 63 6b | 69 6e 67 20 74 68 65 20 |or track|ing the |
|00001e40| 75 73 65 72 2e 20 20 54 | 68 65 20 49 6e 66 6f 44 |user. T|he InfoD|
|00001e50| 65 66 50 72 6f 63 20 69 | 73 20 0d 6c 6f 63 61 74 |efProc i|s .locat|
|00001e60| 65 64 20 69 6e 73 69 64 | 65 20 79 6f 75 72 20 61 |ed insid|e your a|
|00001e70| 70 70 6c 69 63 61 74 69 | 6f 6e 2c 20 61 6e 64 20 |pplicati|on, and |
|00001e80| 74 68 65 20 57 69 6e 64 | 6f 77 20 4d 61 6e 61 67 |the Wind|ow Manag|
|00001e90| 65 72 20 63 61 6c 6c 73 | 20 69 74 20 77 68 65 6e |er calls| it when|
|00001ea0| 65 76 65 72 20 69 74 20 | 0d 6e 65 65 64 73 20 74 |ever it |.needs t|
|00001eb0| 6f 20 64 72 61 77 20 74 | 68 65 20 70 61 72 74 20 |o draw t|he part |
|00001ec0| 6f 66 20 74 68 65 20 77 | 69 6e 64 6f 77 20 66 72 |of the w|indow fr|
|00001ed0| 61 6d 65 20 74 68 61 74 | 20 63 6f 6e 74 61 69 6e |ame that| contain|
|00001ee0| 73 20 74 68 65 20 69 6e | 66 6f 72 6d 61 74 69 6f |s the in|formatio|
|00001ef0| 6e 20 62 61 72 2e 20 20 | 0d 45 61 63 68 20 77 69 |n bar. |.Each wi|
|00001f00| 6e 64 6f 77 20 77 69 74 | 68 20 61 6e 20 69 6e 66 |ndow wit|h an inf|
|00001f10| 6f 72 6d 61 74 69 6f 6e | 20 62 61 72 20 63 61 6e |ormation| bar can|
|00001f20| 20 68 61 76 65 20 69 74 | 73 20 6f 77 6e 20 49 6e | have it|s own In|
|00001f30| 66 6f 44 65 66 50 72 6f | 63 2c 20 6f 72 20 74 68 |foDefPro|c, or th|
|00001f40| 65 79 20 63 61 6e 20 0d | 63 61 6c 6c 20 73 68 61 |ey can .|call sha|
|00001f50| 72 65 20 61 20 63 6f 6d | 6d 6f 6e 20 49 6e 66 6f |re a com|mon Info|
|00001f60| 44 65 66 50 72 6f 63 2e | 20 20 57 68 65 6e 20 74 |DefProc.| When t|
|00001f70| 68 65 20 57 69 6e 64 6f | 77 20 4d 61 6e 61 67 65 |he Windo|w Manage|
|00001f80| 72 20 63 61 6c 6c 73 20 | 79 6f 75 72 20 0d 49 6e |r calls |your .In|
|00001f90| 66 6f 44 65 66 50 72 6f | 63 2c 20 69 74 20 73 65 |foDefPro|c, it se|
|00001fa0| 74 73 20 74 68 65 20 70 | 72 6f 70 65 72 20 70 6f |ts the p|roper po|
|00001fb0| 72 74 2c 20 74 68 65 20 | 57 69 6e 64 6f 77 20 4d |rt, the |Window M|
|00001fc0| 61 6e 61 67 65 72 27 73 | 20 70 6f 72 74 2c 20 61 |anager's| port, a|
|00001fd0| 6e 64 20 74 68 65 20 0d | 70 72 6f 70 65 72 20 73 |nd the .|proper s|
|00001fe0| 74 61 74 65 2c 20 61 6e | 20 6f 72 69 67 69 6e 20 |tate, an| origin |
|00001ff0| 6c 6f 63 61 6c 20 74 6f | 20 74 68 65 20 77 69 6e |local to| the win|
|00002000| 64 6f 77 20 66 72 61 6d | 65 20 61 6e 64 20 63 6c |dow fram|e and cl|
|00002010| 69 70 70 65 64 20 74 6f | 20 61 6e 79 20 77 69 6e |ipped to| any win|
|00002020| 64 6f 77 73 20 0d 61 62 | 6f 76 65 2e 20 20 54 68 |dows .ab|ove. Th|
|00002030| 65 20 64 69 72 65 63 74 | 20 70 61 67 65 20 61 6e |e direct| page an|
|00002040| 64 20 64 61 74 61 20 62 | 61 6e 6b 20 61 72 65 20 |d data b|ank are |
|00002050| 6e 6f 74 20 64 65 66 69 | 6e 65 64 20 61 6e 64 20 |not defi|ned and |
|00002060| 73 68 6f 75 6c 64 20 62 | 65 20 63 6f 6e 73 69 64 |should b|e consid|
|00002070| 65 72 65 64 20 0d 75 6e | 6b 6e 6f 77 6e 2e 0d 0d |ered .un|known...|
|00002080| 54 68 65 20 57 69 6e 64 | 6f 77 20 4d 61 6e 61 67 |The Wind|ow Manag|
|00002090| 65 72 20 70 61 73 73 65 | 73 20 79 6f 75 72 20 49 |er passe|s your I|
|000020a0| 6e 66 6f 44 65 66 50 72 | 6f 63 20 74 68 65 20 66 |nfoDefPr|oc the f|
|000020b0| 6f 6c 6c 6f 77 69 6e 67 | 20 69 6e 66 6f 72 6d 61 |ollowing| informa|
|000020c0| 74 69 6f 6e 3a 0d 0d 6f | 20 20 20 20 50 6f 69 6e |tion:..o| Poin|
|000020d0| 74 65 72 20 74 6f 20 74 | 68 65 20 69 6e 66 6f 72 |ter to t|he infor|
|000020e0| 6d 61 74 69 6f 6e 20 62 | 61 72 27 73 20 69 6e 74 |mation b|ar's int|
|000020f0| 65 72 69 6f 72 20 72 65 | 63 74 61 6e 67 6c 65 20 |erior re|ctangle |
|00002100| 28 6c 65 73 73 20 66 72 | 61 6d 65 29 2c 20 6c 6f |(less fr|ame), lo|
|00002110| 63 61 6c 20 0d 20 20 20 | 20 20 63 6f 6f 72 64 69 |cal . | coordi|
|00002120| 6e 61 74 65 73 2e 0d 6f | 20 20 20 20 56 61 6c 75 |nates..o| Valu|
|00002130| 65 20 6f 66 20 74 68 65 | 20 77 69 6e 64 6f 77 27 |e of the| window'|
|00002140| 73 20 77 49 6e 66 6f 52 | 65 66 43 6f 6e 2c 20 73 |s wInfoR|efCon, s|
|00002150| 65 74 20 61 6e 64 20 75 | 73 65 64 20 6f 6e 6c 79 |et and u|sed only|
|00002160| 20 62 79 20 79 6f 75 72 | 20 61 70 70 6c 69 63 61 | by your| applica|
|00002170| 74 69 6f 6e 2e 0d 6f 20 | 20 20 20 50 6f 69 6e 74 |tion..o | Point|
|00002180| 65 72 20 74 6f 20 74 68 | 65 20 77 69 6e 64 6f 77 |er to th|e window|
|00002190| 27 73 20 70 6f 72 74 20 | 28 64 6f 20 6e 6f 74 20 |'s port |(do not |
|000021a0| 73 77 69 74 63 68 20 74 | 6f 20 74 68 69 73 20 70 |switch t|o this p|
|000021b0| 6f 72 74 20 66 6f 72 20 | 64 72 61 77 69 6e 67 29 |ort for |drawing)|
|000021c0| 2e 0d 0d 41 20 77 69 6e | 64 6f 77 20 74 68 61 74 |...A win|dow that|
|000021d0| 20 68 61 73 20 61 6e 20 | 69 6e 66 6f 72 6d 61 74 | has an |informat|
|000021e0| 69 6f 6e 20 62 61 72 20 | 63 6f 6e 74 61 69 6e 69 |ion bar |containi|
|000021f0| 6e 67 20 61 20 6d 65 6e | 75 20 62 61 72 20 28 68 |ng a men|u bar (h|
|00002200| 61 6e 64 6c 65 20 73 74 | 6f 72 65 64 20 69 6e 20 |andle st|ored in |
|00002210| 0d 74 68 65 20 77 69 6e | 64 6f 77 27 73 20 49 6e |.the win|dow's In|
|00002220| 66 6f 52 65 66 43 6f 6e | 29 20 6d 69 67 68 74 20 |foRefCon|) might |
|00002230| 68 61 76 65 20 61 20 49 | 6e 66 6f 44 65 66 50 72 |have a I|nfoDefPr|
|00002240| 6f 63 20 61 73 20 66 6f | 6c 6c 6f 77 73 3a 0d 0d |oc as fo|llows:..|
|00002250| 64 72 61 77 5f 69 6e 66 | 6f 20 20 20 20 53 54 41 |draw_inf|o STA|
|00002260| 52 54 0d 3b 0d 74 68 65 | 57 69 6e 64 6f 77 20 20 |RT.;.the|Window |
|00002270| 20 20 65 71 75 20 20 20 | 20 36 20 20 20 20 20 20 | equ | 6 |
|00002280| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 4f 66 66 | | Off|
|00002290| 73 65 74 20 74 6f 20 74 | 68 65 20 69 6e 66 6f 72 |set to t|he infor|
|000022a0| 6d 61 74 69 6f 6e 20 62 | 61 72 20 6f 77 6e 65 72 |mation b|ar owner|
|000022b0| 20 77 69 6e 64 6f 77 2e | 0d 69 6e 66 6f 52 65 66 | window.|.infoRef|
|000022c0| 43 6f 6e 20 20 20 65 71 | 75 20 20 20 20 74 68 65 |Con eq|u the|
|000022d0| 57 69 6e 64 6f 77 2b 34 | 20 20 20 20 20 20 20 20 |Window+4| |
|000022e0| 20 4f 66 66 73 65 74 20 | 74 6f 20 74 68 65 20 77 | Offset |to the w|
|000022f0| 69 6e 64 6f 77 27 73 20 | 69 6e 66 6f 72 6d 61 74 |indow's |informat|
|00002300| 69 6f 6e 20 62 61 72 20 | 52 65 66 43 6f 6e 2e 0d |ion bar |RefCon..|
|00002310| 69 6e 66 6f 52 65 63 74 | 20 20 20 20 20 65 71 75 |infoRect| equ|
|00002320| 20 20 20 20 69 6e 66 6f | 52 65 66 43 6f 6e 2b 34 | info|RefCon+4|
|00002330| 20 20 20 20 20 20 20 20 | 4f 66 66 73 65 74 20 74 | |Offset t|
|00002340| 6f 20 74 68 65 20 69 6e | 66 6f 72 6d 61 74 69 6f |o the in|formatio|
|00002350| 6e 20 62 61 72 27 73 20 | 65 6e 63 6c 6f 73 69 6e |n bar's |enclosin|
|00002360| 67 20 52 45 43 54 2e 0d | 3b 0d 20 20 20 20 20 20 |g RECT..|;. |
|00002370| 20 20 70 68 64 20 20 20 | 20 20 20 20 20 20 20 20 | phd | |
|00002380| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002390| 20 20 53 61 76 65 20 6f | 72 69 67 69 6e 61 6c 20 | Save o|riginal |
|000023a0| 64 69 72 65 63 74 20 70 | 61 67 65 2e 0d 20 20 20 |direct p|age.. |
|000023b0| 20 20 20 20 20 74 73 63 | 20 20 20 20 20 20 20 20 | tsc| |
|000023c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000023d0| 20 20 20 20 20 53 77 69 | 74 63 68 20 74 6f 20 64 | Swi|tch to d|
|000023e0| 69 72 65 63 74 20 70 61 | 67 65 20 69 6e 20 73 74 |irect pa|ge in st|
|000023f0| 61 63 6b 2e 0d 20 20 20 | 20 20 20 20 20 74 63 64 |ack.. | tcd|
|00002400| 0d 3b 0d 3b 0d 3b 20 2d | 2d 2d 20 44 72 61 77 20 |.;.;.; -|-- Draw |
|00002410| 74 68 65 20 77 69 6e 64 | 6f 77 27 73 20 6d 65 6e |the wind|ow's men|
|00002420| 75 20 62 61 72 20 69 6e | 20 74 68 65 20 77 69 6e |u bar in| the win|
|00002430| 64 6f 77 27 73 20 69 6e | 66 6f 72 6d 61 74 69 6f |dow's in|formatio|
|00002440| 6e 20 62 61 72 20 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |n bar --|--------|
|00002450| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002460| 2d 0d 3b 0d 20 20 20 20 | 20 20 20 20 70 65 69 20 |-.;. | pei |
|00002470| 20 20 20 69 6e 66 6f 52 | 65 66 43 6f 6e 2b 32 20 | infoR|efCon+2 |
|00002480| 20 20 20 20 20 20 20 20 | 20 20 20 20 50 61 73 73 | | Pass|
|00002490| 20 68 61 6e 64 6c 65 20 | 6f 66 20 77 69 6e 64 6f | handle |of windo|
|000024a0| 77 27 73 20 6d 65 6e 75 | 20 62 61 72 20 68 61 6e |w's menu| bar han|
|000024b0| 64 6c 65 2e 0d 20 20 20 | 20 20 20 20 20 70 65 69 |dle.. | pei|
|000024c0| 20 20 20 20 69 6e 66 6f | 52 65 66 43 6f 6e 0d 20 | info|RefCon. |
|000024d0| 20 20 20 20 20 20 20 5f | 53 65 74 4d 65 6e 75 42 | _|SetMenuB|
|000024e0| 61 72 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |ar | |
|000024f0| 20 20 20 20 20 20 20 4d | 61 6b 65 20 74 68 65 20 | M|ake the |
|00002500| 77 69 6e 64 6f 77 27 73 | 20 6d 65 6e 75 20 62 61 |window's| menu ba|
|00002510| 72 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 6d 65 |r the cu|rrent me|
|00002520| 6e 75 20 62 61 72 2e 0d | 3b 0d 20 20 20 20 20 20 |nu bar..|;. |
|00002530| 20 20 5f 44 72 61 77 4d | 65 6e 75 42 61 72 20 20 | _DrawM|enuBar |
|00002540| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002550| 20 20 44 72 61 77 20 74 | 68 65 20 77 69 6e 64 6f | Draw t|he windo|
|00002560| 77 27 73 20 6d 65 6e 75 | 20 62 61 72 2c 20 61 73 |w's menu| bar, as|
|00002570| 20 72 65 71 75 65 73 74 | 65 64 2e 0d 3b 0d 20 20 | request|ed..;. |
|00002580| 20 20 20 20 20 20 6c 64 | 61 20 20 20 20 23 30 20 | ld|a #0 |
|00002590| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000025a0| 20 20 20 20 20 20 5a 65 | 72 6f 20 69 73 20 74 68 | Ze|ro is th|
|000025b0| 65 20 66 6c 61 67 20 66 | 6f 72 20 74 68 65 20 73 |e flag f|or the s|
|000025c0| 79 73 74 65 6d 20 6d 65 | 6e 75 20 62 61 72 2e 0d |ystem me|nu bar..|
|000025d0| 20 20 20 20 20 20 20 20 | 70 68 61 0d 20 20 20 20 | |pha. |
|000025e0| 20 20 20 20 70 68 61 0d | 20 20 20 20 20 20 20 20 | pha.| |
|000025f0| 5f 53 65 74 4d 65 6e 75 | 42 61 72 20 20 20 20 20 |_SetMenu|Bar |
|00002600| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002610| 4d 61 6b 65 20 74 68 65 | 20 73 79 73 74 65 6d 20 |Make the| system |
|00002620| 6d 65 6e 75 20 62 61 72 | 20 63 75 72 72 65 6e 74 |menu bar| current|
|00002630| 20 61 67 61 69 6e 2e 0d | 3b 0d 3b 0d 3b 20 2d 2d | again..|;.;.; --|
|00002640| 2d 20 52 65 6d 6f 76 65 | 20 69 6e 70 75 74 20 70 |- Remove| input p|
|00002650| 61 72 61 6d 65 74 65 72 | 73 20 66 72 6f 6d 20 74 |arameter|s from t|
|00002660| 68 65 20 73 74 61 63 6b | 20 2d 2d 2d 2d 2d 2d 2d |he stack| -------|
|00002670| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002680| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002690| 2d 2d 2d 2d 2d 2d 2d 2d | 0d 3b 20 20 20 20 20 20 |--------|.; |
|000026a0| 20 6c 64 78 20 20 20 20 | 23 31 32 20 20 20 20 20 | ldx |#12 |
|000026b0| 20 20 20 0d 20 20 20 20 | 20 20 20 20 70 6c 79 20 | . | ply |
|000026c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000026d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 50 75 6c 6c | | Pull|
|000026e0| 20 6f 72 69 67 69 6e 61 | 6c 20 64 69 72 65 63 74 | origina|l direct|
|000026f0| 20 70 61 67 65 20 6f 66 | 66 20 73 74 61 63 6b 2c | page of|f stack,|
|00002700| 20 73 61 76 65 20 69 6e | 20 59 2e 0d 3b 0d 20 20 | save in| Y..;. |
|00002710| 20 20 20 20 20 20 74 73 | 63 20 20 20 20 20 20 20 | ts|c |
|00002720| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002730| 20 20 20 20 20 20 4d 6f | 76 65 20 64 69 72 65 63 | Mo|ve direc|
|00002740| 74 20 70 61 67 65 20 70 | 6f 69 6e 74 20 74 6f 20 |t page p|oint to |
|00002750| 73 74 61 63 6b 2e 0d 20 | 20 20 20 20 20 20 20 74 |stack.. | t|
|00002760| 63 64 20 20 0d 20 20 20 | 20 20 20 20 20 6c 64 61 |cd . | lda|
|00002770| 20 20 20 20 32 2c 73 20 | 20 20 20 20 20 20 20 20 | 2,s | |
|00002780| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 4d 6f 76 | | Mov|
|00002790| 65 20 72 65 74 75 72 6e | 20 61 64 64 72 65 73 73 |e return| address|
|000027a0| 20 64 6f 77 6e 20 6f 76 | 65 72 20 69 6e 70 75 74 | down ov|er input|
|000027b0| 20 70 61 72 61 6d 65 74 | 65 72 73 2e 0d 20 20 20 | paramet|ers.. |
|000027c0| 20 20 20 20 20 73 74 61 | 20 20 20 20 32 2c 78 0d | sta| 2,x.|
|000027d0| 20 20 20 20 20 20 20 20 | 6c 64 61 20 20 20 20 30 | |lda 0|
|000027e0| 2c 73 0d 20 20 20 20 20 | 20 20 20 73 74 61 20 20 |,s. | sta |
|000027f0| 20 20 30 2c 78 0d 3b 0d | 20 20 20 20 20 20 20 20 | 0,x.;.| |
|00002800| 74 73 63 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |tsc | |
|00002810| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002820| 41 64 6a 75 73 74 20 73 | 74 61 63 6b 20 66 6f 72 |Adjust s|tack for|
|00002830| 20 73 74 72 69 70 70 65 | 64 20 69 6e 70 75 74 20 | strippe|d input |
|00002840| 70 61 72 61 6d 65 74 65 | 72 73 2e 0d 20 20 20 20 |paramete|rs.. |
|00002850| 20 20 20 20 70 68 78 20 | 20 20 20 20 20 20 20 20 | phx | |
|00002860| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002870| 20 20 20 20 4e 75 6d 62 | 65 72 20 6f 66 20 62 79 | Numb|er of by|
|00002880| 74 65 73 20 6f 66 20 69 | 6e 70 75 74 20 70 61 72 |tes of i|nput par|
|00002890| 61 6d 65 74 65 72 73 2e | 0d 20 20 20 20 20 20 20 |ameters.|. |
|000028a0| 20 63 6c 63 0d 20 20 20 | 20 20 20 20 20 61 64 63 | clc. | adc|
|000028b0| 20 20 20 20 31 2c 73 20 | 20 20 20 20 20 20 20 20 | 1,s | |
|000028c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 41 64 64 | | Add|
|000028d0| 20 6e 75 6d 62 65 72 20 | 6f 66 20 69 6e 70 75 74 | number |of input|
|000028e0| 20 70 61 72 61 6d 65 74 | 65 72 73 20 74 6f 20 73 | paramet|ers to s|
|000028f0| 74 61 63 6b 20 70 6f 69 | 6e 74 65 72 2e 0d 20 20 |tack poi|nter.. |
|00002900| 20 20 20 20 20 20 74 63 | 73 20 20 20 20 20 20 20 | tc|s |
|00002910| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002920| 20 20 20 20 20 20 41 6e | 64 20 72 65 73 65 74 20 | An|d reset |
|00002930| 73 74 61 63 6b 2e 0d 3b | 0d 20 20 20 20 20 20 20 |stack..;|. |
|00002940| 20 74 79 61 20 20 20 20 | 20 20 20 20 20 20 20 20 | tya | |
|00002950| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002960| 20 52 65 73 74 6f 72 65 | 20 6f 72 69 67 69 6e 61 | Restore| origina|
|00002970| 6c 20 64 69 72 65 63 74 | 20 70 61 67 65 2e 0d 20 |l direct| page.. |
|00002980| 20 20 20 20 20 20 20 74 | 63 64 0d 3b 0d 20 20 20 | t|cd.;. |
|00002990| 20 20 20 20 20 72 74 6c | 20 20 20 20 20 20 20 20 | rtl| |
|000029a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000029b0| 20 20 20 20 20 52 65 74 | 75 72 6e 20 74 6f 20 57 | Ret|urn to W|
|000029c0| 69 6e 64 6f 77 20 4d 61 | 6e 61 67 65 72 2e 0d 20 |indow Ma|nager.. |
|000029d0| 20 20 20 20 20 20 20 45 | 4e 44 0d 0d 0d 49 6e 66 | E|ND...Inf|
|000029e0| 6f 72 6d 61 74 69 6f 6e | 20 42 61 72 20 45 6e 76 |ormation| Bar Env|
|000029f0| 69 72 6f 6e 6d 65 6e 74 | 0d 0d 41 6e 20 69 6e 66 |ironment|..An inf|
|00002a00| 6f 72 6d 61 74 69 6f 6e | 20 62 61 72 20 69 73 20 |ormation| bar is |
|00002a10| 70 61 72 74 20 6f 66 20 | 61 20 77 69 6e 64 6f 77 |part of |a window|
|00002a20| 27 73 20 66 72 61 6d 65 | 2c 20 74 68 61 74 20 69 |'s frame|, that i|
|00002a30| 73 2c 20 6e 6f 74 20 70 | 61 72 74 20 6f 66 20 74 |s, not p|art of t|
|00002a40| 68 65 20 0d 77 69 6e 64 | 6f 77 27 73 20 63 6f 6e |he .wind|ow's con|
|00002a50| 74 65 6e 74 20 72 65 67 | 69 6f 6e 2e 20 20 42 65 |tent reg|ion. Be|
|00002a60| 63 61 75 73 65 20 69 74 | 20 69 73 20 70 61 72 74 |cause it| is part|
|00002a70| 20 6f 66 20 74 68 65 20 | 66 72 61 6d 65 2c 20 61 | of the |frame, a|
|00002a80| 6e 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 20 62 61 |n inform|ation ba|
|00002a90| 72 20 0d 69 73 20 69 6e | 20 74 68 65 20 57 69 6e |r .is in| the Win|
|00002aa0| 64 6f 77 20 4d 61 6e 61 | 67 65 72 27 73 20 70 6f |dow Mana|ger's po|
|00002ab0| 72 74 2c 20 73 6f 20 62 | 65 66 6f 72 65 20 61 6e |rt, so b|efore an|
|00002ac0| 20 69 6e 74 65 72 61 63 | 74 69 6f 6e 20 28 64 72 | interac|tion (dr|
|00002ad0| 61 77 69 6e 67 20 6f 72 | 20 6d 6f 75 73 65 20 0d |awing or| mouse .|
|00002ae0| 73 65 6c 65 63 74 69 6e | 67 29 2c 20 74 68 65 20 |selectin|g), the |
|00002af0| 70 72 6f 70 65 72 20 70 | 6f 72 74 20 28 57 69 6e |proper p|ort (Win|
|00002b00| 64 6f 77 20 4d 61 6e 61 | 67 65 72 27 73 29 20 6d |dow Mana|ger's) m|
|00002b10| 75 73 74 20 62 65 20 69 | 6e 20 74 68 65 20 70 72 |ust be i|n the pr|
|00002b20| 6f 70 65 72 20 73 74 61 | 74 65 2e 20 20 0d 54 68 |oper sta|te. .Th|
|00002b30| 65 20 70 72 6f 70 65 72 | 20 73 74 61 74 65 20 6d |e proper| state m|
|00002b40| 65 61 6e 73 20 74 68 65 | 20 6f 72 69 67 69 6e 20 |eans the| origin |
|00002b50| 6d 75 73 74 20 62 65 20 | 61 74 20 74 68 65 20 77 |must be |at the w|
|00002b60| 69 6e 64 6f 77 27 73 20 | 75 70 70 65 72 2d 6c 65 |indow's |upper-le|
|00002b70| 66 74 20 63 6f 72 6e 65 | 72 20 0d 61 6e 64 20 63 |ft corne|r .and c|
|00002b80| 6c 69 70 70 65 64 20 74 | 6f 20 61 6e 79 20 77 69 |lipped t|o any wi|
|00002b90| 6e 64 6f 77 73 20 61 62 | 6f 76 65 2e 0d 0d 57 68 |ndows ab|ove...Wh|
|00002ba0| 65 6e 20 74 68 65 20 57 | 69 6e 64 6f 77 20 4d 61 |en the W|indow Ma|
|00002bb0| 6e 61 67 65 72 20 63 61 | 6c 6c 73 20 74 68 65 20 |nager ca|lls the |
|00002bc0| 49 6e 66 6f 44 65 66 50 | 72 6f 63 20 69 74 20 73 |InfoDefP|roc it s|
|00002bd0| 65 74 73 20 74 68 65 20 | 70 72 6f 70 65 72 20 70 |ets the |proper p|
|00002be0| 6f 72 74 20 74 6f 20 74 | 68 65 20 0d 70 72 6f 70 |ort to t|he .prop|
|00002bf0| 65 72 20 73 74 61 74 65 | 3b 20 68 6f 77 65 76 65 |er state|; howeve|
|00002c00| 72 2c 20 74 6f 20 69 6e | 74 65 72 61 63 74 20 77 |r, to in|teract w|
|00002c10| 69 74 68 20 74 68 65 20 | 69 6e 66 6f 72 6d 61 74 |ith the |informat|
|00002c20| 69 6f 6e 20 62 61 72 20 | 6f 75 74 73 69 64 65 20 |ion bar |outside |
|00002c30| 74 68 65 20 0d 49 6e 66 | 6f 44 65 66 50 72 6f 63 |the .Inf|oDefProc|
|00002c40| 2c 20 79 6f 75 20 6d 75 | 73 74 20 73 65 74 20 74 |, you mu|st set t|
|00002c50| 68 65 20 70 72 6f 70 65 | 72 20 70 6f 72 74 20 74 |he prope|r port t|
|00002c60| 68 65 20 74 68 65 20 70 | 72 6f 70 65 72 20 73 74 |he the p|roper st|
|00002c70| 61 74 65 2e 20 20 59 6f | 75 20 63 61 6e 20 0d 61 |ate. Yo|u can .a|
|00002c80| 63 63 6f 6d 70 6c 69 73 | 68 20 74 68 69 73 20 77 |ccomplis|h this w|
|00002c90| 69 74 68 20 61 20 63 61 | 6c 6c 20 74 6f 20 53 74 |ith a ca|ll to St|
|00002ca0| 61 72 74 49 6e 66 6f 44 | 72 61 77 69 6e 67 2e 20 |artInfoD|rawing. |
|00002cb0| 20 57 68 65 6e 20 74 68 | 65 20 69 6e 74 65 72 61 | When th|e intera|
|00002cc0| 63 74 69 6f 6e 20 69 73 | 20 0d 63 6f 6d 70 6c 65 |ction is| .comple|
|00002cd0| 74 65 64 2c 20 79 6f 75 | 20 6d 75 73 74 20 61 6c |ted, you| must al|
|00002ce0| 6c 6f 77 20 74 68 65 20 | 57 69 6e 64 6f 77 20 4d |low the |Window M|
|00002cf0| 61 6e 61 67 65 72 20 74 | 6f 20 72 65 74 75 72 6e |anager t|o return|
|00002d00| 20 69 74 73 20 70 6f 72 | 74 20 74 6f 20 61 20 67 | its por|t to a g|
|00002d10| 65 6e 65 72 61 6c 20 0d | 73 74 61 74 65 20 76 69 |eneral .|state vi|
|00002d20| 61 20 61 20 63 61 6c 6c | 20 74 6f 20 45 6e 64 49 |a a call| to EndI|
|00002d30| 6e 66 6f 44 72 61 77 69 | 6e 67 2e 20 20 59 6f 75 |nfoDrawi|ng. You|
|00002d40| 20 61 72 65 20 69 6e 20 | 61 20 73 70 65 63 69 61 | are in |a specia|
|00002d50| 6c 20 73 74 61 74 65 20 | 74 68 61 74 20 72 65 71 |l state |that req|
|00002d60| 75 69 72 65 73 20 0d 73 | 6f 6d 65 20 63 6f 6e 73 |uires .s|ome cons|
|00002d70| 74 72 61 69 6e 74 73 20 | 28 64 69 73 63 75 73 73 |traints |(discuss|
|00002d80| 65 64 20 6c 61 74 65 72 | 29 20 62 65 74 77 65 65 |ed later|) betwee|
|00002d90| 6e 20 74 68 65 20 63 61 | 6c 6c 73 20 74 6f 20 53 |n the ca|lls to S|
|00002da0| 74 61 72 74 49 6e 66 6f | 44 72 61 77 69 6e 67 20 |tartInfo|Drawing |
|00002db0| 61 6e 64 20 0d 45 6e 64 | 49 6e 66 6f 44 72 61 77 |and .End|InfoDraw|
|00002dc0| 69 6e 67 2e 0d 0d 48 65 | 72 65 20 69 73 20 61 6e |ing...He|re is an|
|00002dd0| 20 65 78 61 6d 70 6c 65 | 20 6f 66 20 69 6e 74 65 | example| of inte|
|00002de0| 72 61 63 74 69 6e 67 20 | 77 69 74 68 20 6f 75 72 |racting |with our|
|00002df0| 20 77 69 6e 64 6f 77 27 | 73 20 6d 65 6e 75 20 62 | window'|s menu b|
|00002e00| 61 72 2e 0d 0d 3b 0d 70 | 6f 6c 6c 20 20 20 20 70 |ar...;.p|oll p|
|00002e10| 68 61 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |ha | |
|00002e20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 53 | | S|
|00002e30| 70 61 63 65 20 66 6f 72 | 20 72 65 74 75 72 6e 20 |pace for| return |
|00002e40| 76 61 6c 75 65 2e 0d 20 | 20 20 20 20 20 20 20 70 |value.. | p|
|00002e50| 65 61 20 20 20 20 25 30 | 30 30 30 31 31 31 31 30 |ea %0|00011110|
|00002e60| 31 31 30 31 31 31 30 20 | 20 20 20 20 20 20 20 50 |1101110 | P|
|00002e70| 61 73 73 20 65 76 65 6e | 74 20 6d 61 73 6b 20 74 |ass even|t mask t|
|00002e80| 6f 20 75 73 65 2e 0d 20 | 20 20 20 20 20 20 20 70 |o use.. | p|
|00002e90| 65 61 20 20 20 20 54 61 | 73 6b 52 65 63 7c 2d 31 |ea Ta|skRec|-1|
|00002ea0| 36 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 50 |6 | P|
|00002eb0| 61 73 73 20 70 6f 69 6e | 74 65 72 20 74 6f 20 54 |ass poin|ter to T|
|00002ec0| 61 73 6b 20 72 65 63 6f | 72 64 2e 0d 20 20 20 20 |ask reco|rd.. |
|00002ed0| 20 20 20 20 70 65 61 20 | 20 20 20 54 61 73 6b 52 | pea | TaskR|
|00002ee0| 65 63 0d 20 20 20 20 20 | 20 20 20 5f 54 61 73 6b |ec. | _Task|
|00002ef0| 4d 61 73 74 65 72 0d 20 | 20 20 20 20 20 20 20 70 |Master. | p|
|00002f00| 6c 61 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |la | |
|00002f10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 47 | | G|
|00002f20| 65 74 20 72 65 74 75 72 | 6e 65 64 20 76 61 6c 75 |et retur|ned valu|
|00002f30| 65 2e 0d 20 20 20 20 20 | 20 20 20 62 65 71 20 20 |e.. | beq |
|00002f40| 20 20 70 6f 6c 6c 20 20 | 20 20 20 20 20 20 20 20 | poll | |
|00002f50| 20 20 20 20 20 20 20 20 | 20 20 20 44 6f 65 73 20 | | Does |
|00002f60| 65 76 65 6e 74 20 6e 65 | 65 64 20 66 75 72 74 68 |event ne|ed furth|
|00002f70| 65 72 20 70 72 6f 63 65 | 73 73 69 6e 67 3f 0d 3b |er proce|ssing?.;|
|00002f80| 0d 3b 0d 3b 20 2d 2d 2d | 20 48 61 6e 64 6c 65 20 |.;.; ---| Handle |
|00002f90| 62 75 74 74 6f 6e 20 64 | 6f 77 6e 20 69 6e 20 77 |button d|own in w|
|00002fa0| 69 6e 64 6f 77 27 73 20 | 69 6e 66 6f 72 6d 61 74 |indow's |informat|
|00002fb0| 69 6f 6e 20 62 61 72 20 | 2d 2d 2d 2d 2d 2d 2d 2d |ion bar |--------|
|00002fc0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002fd0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 0d |--------|-------.|
|00002fe0| 3b 0d 20 20 20 20 20 20 | 20 20 63 6d 70 20 20 20 |;. | cmp |
|00002ff0| 20 23 49 6e 49 6e 66 6f | 20 20 20 20 20 20 20 20 | #InInfo| |
|00003000| 20 20 20 20 20 20 20 20 | 20 20 49 6e 20 49 6e 66 | | In Inf|
|00003010| 6f 72 6d 61 74 69 6f 6e | 20 62 61 72 3f 0d 20 20 |ormation| bar?. |
|00003020| 20 20 20 20 20 20 62 6e | 65 20 20 20 20 70 6f 6c | bn|e pol|
|00003030| 6c 0d 3b 0d 20 20 20 20 | 20 20 20 20 70 68 61 20 |l.;. | pha |
|00003040| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003050| 20 20 20 20 20 20 20 20 | 20 20 20 20 53 70 61 63 | | Spac|
|00003060| 65 20 66 6f 72 20 72 65 | 73 75 6c 74 2e 0d 20 20 |e for re|sult.. |
|00003070| 20 20 20 20 20 20 70 68 | 61 0d 20 20 20 20 20 20 | ph|a. |
|00003080| 20 20 6c 64 61 20 20 20 | 20 54 61 73 6b 52 65 63 | lda | TaskRec|
|00003090| 2b 54 61 73 6b 44 61 74 | 61 2b 32 20 20 20 20 20 |+TaskDat|a+2 |
|000030a0| 20 20 50 61 73 73 20 70 | 6f 69 6e 74 65 72 20 6f | Pass p|ointer o|
|000030b0| 66 20 77 69 6e 64 6f 77 | 2e 0d 20 20 20 20 20 20 |f window|.. |
|000030c0| 20 20 70 68 61 0d 20 20 | 20 20 20 20 20 20 6c 64 | pha. | ld|
|000030d0| 61 20 20 20 20 54 61 73 | 6b 52 65 63 2b 54 61 73 |a Tas|kRec+Tas|
|000030e0| 6b 44 61 74 61 0d 20 20 | 20 20 20 20 20 20 70 68 |kData. | ph|
|000030f0| 61 0d 20 20 20 20 20 20 | 20 20 5f 47 65 74 49 6e |a. | _GetIn|
|00003100| 66 6f 52 65 66 43 6f 6e | 20 20 20 20 20 20 20 20 |foRefCon| |
|00003110| 20 20 20 20 20 20 20 20 | 20 20 47 65 74 20 6d 65 | | Get me|
|00003120| 6e 75 20 62 61 72 20 68 | 61 6e 64 6c 65 20 66 72 |nu bar h|andle fr|
|00003130| 6f 6d 20 77 69 6e 64 6f | 77 27 73 20 49 6e 66 6f |om windo|w's Info|
|00003140| 52 65 66 43 6f 6e 2e 0d | 20 20 20 20 20 20 20 20 |RefCon..| |
|00003150| 70 6c 61 0d 20 20 20 20 | 20 20 20 20 73 74 61 20 |pla. | sta |
|00003160| 20 20 20 6d 65 6e 75 42 | 61 72 0d 20 20 20 20 20 | menuB|ar. |
|00003170| 20 20 20 70 6c 61 0d 20 | 20 20 20 20 20 20 20 73 | pla. | s|
|00003180| 74 61 20 20 20 20 6d 65 | 6e 75 42 61 72 2b 32 0d |ta me|nuBar+2.|
|00003190| 3b 20 20 20 20 20 20 20 | 20 20 20 20 20 0d 3b 0d |; | .;.|
|000031a0| 3b 20 2d 2d 2d 20 53 77 | 69 74 63 68 20 74 6f 20 |; --- Sw|itch to |
|000031b0| 70 72 6f 70 65 72 20 70 | 6f 72 74 20 69 6e 20 70 |proper p|ort in p|
|000031c0| 72 6f 70 65 72 20 63 6f | 6f 72 64 69 6e 61 74 65 |roper co|ordinate|
|000031d0| 20 73 79 73 74 65 6d 20 | 2d 2d 2d 2d 2d 2d 2d 2d | system |--------|
|000031e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000031f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 0d 3b 0d 20 |--------|----.;. |
|00003200| 20 20 20 20 20 20 20 70 | 65 61 20 20 20 20 74 65 | p|ea te|
|00003210| 6d 70 52 65 63 74 7c 2d | 31 36 20 20 20 20 20 20 |mpRect|-|16 |
|00003220| 20 20 20 20 20 20 20 50 | 61 73 73 20 70 6f 69 6e | P|ass poin|
|00003230| 74 65 72 20 74 6f 20 52 | 45 43 54 20 74 6f 20 73 |ter to R|ECT to s|
|00003240| 74 6f 72 65 20 69 6e 66 | 6f 20 62 61 72 20 52 45 |tore inf|o bar RE|
|00003250| 43 54 2e 0d 20 20 20 20 | 20 20 20 20 70 65 61 20 |CT.. | pea |
|00003260| 20 20 20 74 65 6d 70 52 | 65 63 74 0d 20 20 20 20 | tempR|ect. |
|00003270| 20 20 20 20 6c 64 61 20 | 20 20 20 54 61 73 6b 52 | lda | TaskR|
|00003280| 65 63 2b 54 61 73 6b 44 | 61 74 61 2b 32 20 20 20 |ec+TaskD|ata+2 |
|00003290| 20 20 20 20 50 61 73 73 | 20 70 6f 69 6e 74 65 72 | Pass| pointer|
|000032a0| 20 6f 66 20 77 69 6e 64 | 6f 77 2e 0d 20 20 20 20 | of wind|ow.. |
|000032b0| 20 20 20 20 70 68 61 0d | 20 20 20 20 20 20 20 20 | pha.| |
|000032c0| 6c 64 61 20 20 20 20 54 | 61 73 6b 52 65 63 2b 54 |lda T|askRec+T|
|000032d0| 61 73 6b 44 61 74 61 0d | 20 20 20 20 20 20 20 20 |askData.| |
|000032e0| 70 68 61 0d 20 20 20 20 | 20 20 20 20 5f 53 74 61 |pha. | _Sta|
|000032f0| 72 74 49 6e 66 6f 44 72 | 61 77 69 6e 67 0d 3b 0d |rtInfoDr|awing.;.|
|00003300| 3b 0d 3b 20 2d 2d 2d 20 | 48 61 6e 64 6c 65 20 6d |;.; --- |Handle m|
|00003310| 65 6e 75 20 73 65 6c 65 | 63 74 69 6f 6e 20 66 72 |enu sele|ction fr|
|00003320| 6f 6d 20 77 69 6e 64 6f | 77 27 73 20 6d 65 6e 75 |om windo|w's menu|
|00003330| 20 62 61 72 20 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d | bar ---|--------|
|00003340| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003350| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 0d 3b |--------|------.;|
|00003360| 0d 20 20 20 20 20 20 20 | 20 70 65 61 20 20 20 20 |. | pea |
|00003370| 54 61 73 6b 52 65 63 7c | 2d 31 36 20 20 20 20 20 |TaskRec||-16 |
|00003380| 20 20 20 20 20 20 20 20 | 20 50 61 73 73 20 70 6f | | Pass po|
|00003390| 69 6e 74 65 72 20 74 6f | 20 54 61 73 6b 20 72 65 |inter to| Task re|
|000033a0| 63 6f 72 64 20 66 6f 72 | 20 4d 65 6e 75 53 65 6c |cord for| MenuSel|
|000033b0| 65 63 74 2e 0d 20 20 20 | 20 20 20 20 20 70 65 61 |ect.. | pea|
|000033c0| 20 20 20 20 54 61 73 6b | 52 65 63 0d 20 20 20 20 | Task|Rec. |
|000033d0| 20 20 20 20 70 65 69 20 | 20 20 20 6d 65 6e 75 42 | pei | menuB|
|000033e0| 61 72 2b 32 20 20 20 20 | 20 20 20 20 20 20 20 20 |ar+2 | |
|000033f0| 20 20 20 20 50 61 73 73 | 20 68 61 6e 64 6c 65 20 | Pass| handle |
|00003400| 6f 66 20 6d 65 6e 75 20 | 62 61 72 2e 0d 20 20 20 |of menu |bar.. |
|00003410| 20 20 20 20 20 70 65 69 | 20 20 20 20 6d 65 6e 75 | pei| menu|
|00003420| 42 61 72 0d 20 20 20 20 | 20 20 20 20 5f 4d 65 6e |Bar. | _Men|
|00003430| 75 53 65 6c 65 63 74 20 | 20 20 20 20 20 20 20 20 |uSelect | |
|00003440| 20 20 20 20 20 20 20 20 | 20 20 20 20 4c 65 74 20 | | Let |
|00003450| 75 73 65 72 20 6d 61 6b | 65 20 73 65 6c 65 63 74 |user mak|e select|
|00003460| 69 6f 6e 2e 0d 3b 0d 20 | 20 20 20 20 20 20 20 6c |ion..;. | l|
|00003470| 64 61 20 20 20 20 65 76 | 65 6e 74 2b 54 61 73 6b |da ev|ent+Task|
|00003480| 44 61 74 61 20 20 20 20 | 20 20 20 20 20 20 20 47 |Data | G|
|00003490| 65 74 20 74 68 65 20 69 | 74 65 6d 27 73 20 49 44 |et the i|tem's ID|
|000034a0| 20 6e 75 6d 62 65 72 2e | 0d 20 20 20 20 20 20 20 | number.|. |
|000034b0| 20 62 65 71 20 20 20 20 | 65 78 69 74 20 20 20 20 | beq |exit |
|000034c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000034d0| 20 57 61 73 20 61 20 73 | 65 6c 65 63 74 69 6f 6e | Was a s|election|
|000034e0| 20 6d 61 64 65 3f 0d 3b | 0d 20 20 20 20 20 20 20 | made?.;|. |
|000034f0| 20 5f 45 6e 64 49 6e 66 | 6f 44 72 61 77 69 6e 67 | _EndInf|oDrawing|
|00003500| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003510| 20 53 77 69 74 63 68 20 | 62 61 63 6b 20 74 6f 20 | Switch |back to |
|00003520| 6f 72 69 67 69 6e 61 6c | 20 70 6f 72 74 2e 0d 0d |original| port...|
|00003530| 3b 0d 3b 20 20 20 20 20 | 20 20 20 20 28 48 61 6e |;.; | (Han|
|00003540| 64 6c 65 20 74 68 65 20 | 6d 65 6e 75 20 73 65 6c |dle the |menu sel|
|00003550| 65 63 74 69 6f 6e 2e 29 | 0d 3b 0d 3b 20 20 20 20 |ection.)|.;.; |
|00003560| 54 68 65 20 45 6e 64 49 | 6e 66 6f 44 72 61 77 69 |The EndI|nfoDrawi|
|00003570| 6e 67 20 66 6f 6c 6c 6f | 77 65 64 20 62 79 20 74 |ng follo|wed by t|
|00003580| 68 65 20 53 74 61 72 74 | 49 6e 66 6f 44 72 61 77 |he Start|InfoDraw|
|00003590| 69 6e 67 20 63 61 6c 6c | 20 69 73 20 6f 6e 6c 79 |ing call| is only|
|000035a0| 0d 3b 20 20 20 20 6e 65 | 65 64 65 64 20 77 68 65 |.; ne|eded whe|
|000035b0| 6e 20 63 6f 64 65 20 62 | 65 74 77 65 65 6e 20 74 |n code b|etween t|
|000035c0| 68 65 6d 20 63 61 6c 6c | 73 20 74 68 65 20 57 69 |hem call|s the Wi|
|000035d0| 6e 64 6f 77 20 4d 61 6e | 61 67 65 72 2e 0d 3b 0d |ndow Man|ager..;.|
|000035e0| 20 20 20 20 20 20 20 20 | 70 65 61 20 20 20 20 74 | |pea t|
|000035f0| 65 6d 70 52 65 63 74 7c | 2d 31 36 20 20 20 20 20 |empRect||-16 |
|00003600| 20 20 20 20 20 20 20 20 | 50 61 73 73 20 70 6f 69 | |Pass poi|
|00003610| 6e 74 65 72 20 74 6f 20 | 52 45 43 54 20 74 6f 20 |nter to |RECT to |
|00003620| 73 74 6f 72 65 20 69 6e | 66 6f 20 62 61 72 20 52 |store in|fo bar R|
|00003630| 45 43 54 2e 0d 20 20 20 | 20 20 20 20 20 70 65 61 |ECT.. | pea|
|00003640| 20 20 20 20 74 65 6d 70 | 52 65 63 74 0d 20 20 20 | temp|Rect. |
|00003650| 20 20 20 20 20 6c 64 61 | 20 20 20 20 54 61 73 6b | lda| Task|
|00003660| 52 65 63 2b 54 61 73 6b | 44 61 74 61 2b 32 20 20 |Rec+Task|Data+2 |
|00003670| 20 20 20 20 20 50 61 73 | 73 20 70 6f 69 6e 74 65 | Pas|s pointe|
|00003680| 72 20 6f 66 20 77 69 6e | 64 6f 77 2e 0d 20 20 20 |r of win|dow.. |
|00003690| 20 20 20 20 20 70 68 61 | 0d 20 20 20 20 20 20 20 | pha|. |
|000036a0| 20 6c 64 61 20 20 20 20 | 54 61 73 6b 52 65 63 2b | lda |TaskRec+|
|000036b0| 54 61 73 6b 44 61 74 61 | 0d 20 20 20 20 20 20 20 |TaskData|. |
|000036c0| 20 70 68 61 0d 20 20 20 | 20 20 20 20 20 5f 53 74 | pha. | _St|
|000036d0| 61 72 74 49 6e 66 6f 44 | 72 61 77 69 6e 67 20 20 |artInfoD|rawing |
|000036e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 53 77 69 | | Swi|
|000036f0| 74 63 68 20 74 6f 20 74 | 68 65 20 70 72 6f 70 65 |tch to t|he prope|
|00003700| 72 20 70 6f 72 74 20 69 | 6e 20 74 68 65 20 70 72 |r port i|n the pr|
|00003710| 6f 70 65 72 20 73 74 61 | 74 65 2e 0d 3b 0d 20 20 |oper sta|te..;. |
|00003720| 20 20 20 20 20 20 70 65 | 61 20 20 20 20 30 20 20 | pe|a 0 |
|00003730| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003740| 20 20 20 20 20 20 50 61 | 73 73 20 75 6e 68 69 6c | Pa|ss unhil|
|00003750| 69 74 65 20 66 6c 61 67 | 2e 0d 20 20 20 20 20 20 |ite flag|.. |
|00003760| 20 20 6c 64 61 20 20 20 | 20 54 61 73 6b 52 65 63 | lda | TaskRec|
|00003770| 2b 54 61 73 6b 44 61 74 | 61 2b 32 20 20 20 20 20 |+TaskDat|a+2 |
|00003780| 20 20 50 61 73 73 20 6d | 65 6e 75 27 73 20 49 44 | Pass m|enu's ID|
|00003790| 20 6e 75 6d 62 65 72 2e | 0d 20 20 20 20 20 20 20 | number.|. |
|000037a0| 20 70 68 61 20 20 20 20 | 0d 20 20 20 20 20 20 20 | pha |. |
|000037b0| 20 5f 48 69 6c 69 74 65 | 4d 65 6e 75 20 20 20 20 | _Hilite|Menu |
|000037c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000037d0| 20 55 6e 68 69 6c 69 74 | 65 20 6d 65 6e 75 27 73 | Unhilit|e menu's|
|000037e0| 20 74 69 74 6c 65 2e 0d | 3b 0d 3b 0d 3b 20 2d 2d | title..|;.;.; --|
|000037f0| 2d 20 43 6c 65 61 6e 20 | 75 70 20 61 6e 64 20 72 |- Clean |up and r|
|00003800| 65 74 75 72 6e 20 74 6f | 20 70 6f 6c 6c 69 6e 67 |eturn to| polling|
|00003810| 20 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d | -------|--------|
|00003820| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003830| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003840| 2d 2d 2d 2d 2d 2d 2d 2d | 0d 3b 0d 65 78 69 74 20 |--------|.;.exit |
|00003850| 20 20 20 5f 45 6e 64 49 | 6e 66 6f 44 72 61 77 69 | _EndI|nfoDrawi|
|00003860| 6e 67 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |ng | |
|00003870| 20 20 20 53 77 69 74 63 | 68 20 62 61 63 6b 20 74 | Switc|h back t|
|00003880| 6f 20 6f 72 69 67 69 6e | 61 6c 20 70 6f 72 74 2e |o origin|al port.|
|00003890| 0d 3b 0d 20 20 20 20 20 | 20 20 20 70 65 61 20 20 |.;. | pea |
|000038a0| 20 20 30 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | 0 | |
|000038b0| 20 20 20 20 20 20 20 20 | 20 20 20 4d 61 6b 65 20 | | Make |
|000038c0| 73 79 73 74 65 6d 20 6d | 65 6e 75 20 62 61 72 20 |system m|enu bar |
|000038d0| 63 75 72 72 65 6e 74 2e | 0d 20 20 20 20 20 20 20 |current.|. |
|000038e0| 20 70 65 61 20 20 20 20 | 30 0d 20 20 20 20 20 20 | pea |0. |
|000038f0| 20 20 5f 53 65 74 4d 65 | 6e 75 42 61 72 0d 3b 0d | _SetMe|nuBar.;.|
|00003900| 20 20 20 20 20 20 20 20 | 6a 6d 70 20 20 20 20 70 | |jmp p|
|00003910| 6f 6c 6c 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |oll | |
|00003920| 20 20 20 20 20 20 20 20 | 52 65 74 75 72 6e 20 74 | |Return t|
|00003930| 6f 20 70 6f 6c 6c 69 6e | 67 20 75 73 65 72 2e 0d |o pollin|g user..|
|00003940| 3b 0d 0d 0d 49 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |;...Info|rmation |
|00003950| 42 61 72 20 53 68 75 74 | 64 6f 77 6e 0d 0d 57 68 |Bar Shut|down..Wh|
|00003960| 65 6e 20 74 68 65 20 57 | 69 6e 64 6f 77 20 4d 61 |en the W|indow Ma|
|00003970| 6e 61 67 65 72 20 63 6c | 6f 73 65 73 20 74 68 65 |nager cl|oses the|
|00003980| 20 77 69 6e 64 6f 77 2c | 20 69 74 20 69 73 20 75 | window,| it is u|
|00003990| 70 20 74 6f 20 79 6f 75 | 20 74 6f 20 72 65 73 6f |p to you| to reso|
|000039a0| 6c 76 65 20 61 6e 79 20 | 0d 73 68 75 74 64 6f 77 |lve any |.shutdow|
|000039b0| 6e 20 6e 65 63 65 73 73 | 69 74 69 65 73 20 61 73 |n necess|ities as|
|000039c0| 73 6f 63 69 61 74 65 64 | 20 77 69 74 68 20 74 68 |sociated| with th|
|000039d0| 65 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 20 62 61 |e inform|ation ba|
|000039e0| 72 2e 20 20 55 73 69 6e | 67 20 6f 75 72 20 77 69 |r. Usin|g our wi|
|000039f0| 6e 64 6f 77 20 0d 6d 65 | 6e 75 20 62 61 72 20 65 |ndow .me|nu bar e|
|00003a00| 78 61 6d 70 6c 65 2c 20 | 74 68 65 20 63 6c 6f 73 |xample, |the clos|
|00003a10| 65 20 77 69 6e 64 6f 77 | 20 6d 69 67 68 74 20 6c |e window| might l|
|00003a20| 6f 6f 6b 20 6c 69 6b 65 | 20 74 68 65 20 66 6f 6c |ook like| the fol|
|00003a30| 6c 6f 77 69 6e 67 3a 0d | 0d 3b 0d 20 20 20 20 20 |lowing:.|.;. |
|00003a40| 20 20 20 70 65 69 20 20 | 20 20 6d 65 6e 75 42 61 | pei | menuBa|
|00003a50| 72 2b 32 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |r+2 | |
|00003a60| 20 20 20 50 61 73 73 20 | 68 61 6e 64 6c 65 20 6f | Pass |handle o|
|00003a70| 66 20 6d 65 6e 75 20 62 | 61 72 0d 20 20 20 20 20 |f menu b|ar. |
|00003a80| 20 20 20 70 65 69 20 20 | 20 20 6d 65 6e 75 42 61 | pei | menuBa|
|00003a90| 72 0d 20 20 20 20 20 20 | 20 20 5f 53 65 74 4d 65 |r. | _SetMe|
|00003aa0| 6e 75 42 61 72 0d 3b 0d | 20 20 20 20 20 20 20 20 |nuBar.;.| |
|00003ab0| 70 68 61 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |pha | |
|00003ac0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003ad0| 53 70 61 63 65 20 66 6f | 72 20 72 65 74 75 72 6e |Space fo|r return|
|00003ae0| 65 64 20 6d 65 6e 75 20 | 68 61 6e 64 6c 65 2e 0d |ed menu |handle..|
|00003af0| 20 20 20 20 20 20 20 20 | 70 68 61 0d 20 20 20 20 | |pha. |
|00003b00| 20 20 20 20 70 65 61 20 | 20 20 20 32 20 20 20 20 | pea | 2 |
|00003b10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003b20| 20 20 20 20 49 44 20 6e | 75 6d 62 65 72 20 6f 66 | ID n|umber of|
|00003b30| 20 73 65 63 6f 6e 64 20 | 6d 65 6e 75 2e 0d 20 20 | second |menu.. |
|00003b40| 20 20 20 20 20 20 5f 47 | 65 74 4d 48 61 6e 64 6c | _G|etMHandl|
|00003b50| 65 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |e | |
|00003b60| 20 20 20 20 20 20 47 65 | 74 20 74 68 65 20 6d 65 | Ge|t the me|
|00003b70| 6e 75 27 73 20 68 61 6e | 64 6c 65 2e 0d 20 20 20 |nu's han|dle.. |
|00003b80| 20 20 20 20 20 5f 44 69 | 73 70 6f 73 65 4d 65 6e | _Di|sposeMen|
|00003b90| 75 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |u | |
|00003ba0| 20 20 20 20 20 46 72 65 | 65 20 6d 65 6e 75 20 72 | Fre|e menu r|
|00003bb0| 65 63 6f 72 64 20 61 6e | 64 20 61 73 73 6f 63 69 |ecord an|d associ|
|00003bc0| 61 74 65 64 20 64 61 74 | 61 2e 0d 3b 0d 20 20 20 |ated dat|a..;. |
|00003bd0| 20 20 20 20 20 70 68 61 | 20 20 20 20 20 20 20 20 | pha| |
|00003be0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003bf0| 20 20 20 20 20 53 70 61 | 63 65 20 66 6f 72 20 72 | Spa|ce for r|
|00003c00| 65 74 75 72 6e 65 64 20 | 6d 65 6e 75 20 68 61 6e |eturned |menu han|
|00003c10| 64 6c 65 2e 0d 20 20 20 | 20 20 20 20 20 70 68 61 |dle.. | pha|
|00003c20| 0d 20 20 20 20 20 20 20 | 20 70 65 61 20 20 20 20 |. | pea |
|00003c30| 31 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |1 | |
|00003c40| 20 20 20 20 20 20 20 20 | 20 49 44 20 6e 75 6d 62 | | ID numb|
|00003c50| 65 72 20 6f 66 20 66 69 | 72 73 74 20 6d 65 6e 75 |er of fi|rst menu|
|00003c60| 2e 0d 20 20 20 20 20 20 | 20 20 5f 47 65 74 4d 48 |.. | _GetMH|
|00003c70| 61 6e 64 6c 65 20 20 20 | 20 20 20 20 20 20 20 20 |andle | |
|00003c80| 20 20 20 20 20 20 20 20 | 20 20 47 65 74 20 74 68 | | Get th|
|00003c90| 65 20 6d 65 6e 75 27 73 | 20 68 61 6e 64 6c 65 2e |e menu's| handle.|
|00003ca0| 0d 20 20 20 20 20 20 20 | 20 5f 44 69 73 70 6f 73 |. | _Dispos|
|00003cb0| 65 4d 65 6e 75 20 20 20 | 20 20 20 20 20 20 20 20 |eMenu | |
|00003cc0| 20 20 20 20 20 20 20 20 | 20 46 72 65 65 20 6d 65 | | Free me|
|00003cd0| 6e 75 20 72 65 63 6f 72 | 64 20 61 6e 64 20 61 73 |nu recor|d and as|
|00003ce0| 73 6f 63 69 61 74 65 64 | 20 64 61 74 61 2e 0d 3b |sociated| data..;|
|00003cf0| 0d 20 20 20 20 20 20 20 | 20 70 65 61 20 20 20 20 |. | pea |
|00003d00| 30 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |0 | |
|00003d10| 20 20 20 20 20 20 20 20 | 20 4d 61 6b 65 20 73 79 | | Make sy|
|00003d20| 73 74 65 6d 20 6d 65 6e | 75 20 62 61 72 20 63 75 |stem men|u bar cu|
|00003d30| 72 72 65 6e 74 2e 0d 20 | 20 20 20 20 20 20 20 70 |rrent.. | p|
|00003d40| 65 61 20 20 20 20 30 0d | 20 20 20 20 20 20 20 20 |ea 0.| |
|00003d50| 5f 53 65 74 4d 65 6e 75 | 42 61 72 0d 3b 0d 20 20 |_SetMenu|Bar.;. |
|00003d60| 20 20 20 20 20 20 70 68 | 61 20 20 20 20 20 20 20 | ph|a |
|00003d70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003d80| 20 20 20 20 20 20 53 70 | 61 63 65 20 66 6f 72 20 | Sp|ace for |
|00003d90| 6d 65 6e 75 20 62 61 72 | 27 73 20 68 61 6e 64 6c |menu bar|'s handl|
|00003da0| 65 2e 0d 20 20 20 20 20 | 20 20 20 70 68 61 0d 20 |e.. | pha. |
|00003db0| 20 20 20 20 20 20 20 70 | 65 69 20 20 20 20 3c 77 | p|ei <w|
|00003dc0| 69 6e 64 6f 77 2b 32 20 | 20 20 20 20 20 20 20 20 |indow+2 | |
|00003dd0| 20 20 20 20 20 20 20 50 | 61 73 73 20 70 6f 69 6e | P|ass poin|
|00003de0| 74 65 72 20 6f 66 20 77 | 69 6e 64 6f 77 20 74 6f |ter of w|indow to|
|00003df0| 20 63 6c 6f 73 65 2e 0d | 20 20 20 20 20 20 20 20 | close..| |
|00003e00| 70 65 69 20 20 20 20 3c | 77 69 6e 64 6f 77 0d 20 |pei <|window. |
|00003e10| 20 20 20 20 20 20 20 5f | 47 65 74 49 6e 66 6f 52 | _|GetInfoR|
|00003e20| 65 66 43 6f 6e 20 20 20 | 20 20 20 20 20 20 20 20 |efCon | |
|00003e30| 20 20 20 20 20 20 20 47 | 65 74 20 74 68 65 20 49 | G|et the I|
|00003e40| 6e 66 6f 52 65 66 43 6f | 6e 20 66 72 6f 6d 20 74 |nfoRefCo|n from t|
|00003e50| 68 65 20 77 69 6e 64 6f | 77 2e 0d 20 20 20 20 20 |he windo|w.. |
|00003e60| 20 20 20 5f 44 69 73 70 | 6f 73 65 48 61 6e 64 6c | _Disp|oseHandl|
|00003e70| 65 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |e | |
|00003e80| 20 20 20 46 72 65 65 20 | 6d 65 6e 75 20 62 61 72 | Free |menu bar|
|00003e90| 20 72 65 63 6f 72 64 2e | 0d 3b 0d 20 20 20 20 20 | record.|.;. |
|00003ea0| 20 20 20 70 65 69 20 20 | 20 20 3c 77 69 6e 64 6f | pei | <windo|
|00003eb0| 77 2b 32 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |w+2 | |
|00003ec0| 20 20 20 50 61 73 73 20 | 70 6f 69 6e 74 65 72 20 | Pass |pointer |
|00003ed0| 6f 66 20 77 69 6e 64 6f | 77 20 74 6f 20 63 6c 6f |of windo|w to clo|
|00003ee0| 73 65 2e 0d 20 20 20 20 | 20 20 20 20 70 65 69 20 |se.. | pei |
|00003ef0| 20 20 20 3c 77 69 6e 64 | 6f 77 0d 20 20 20 20 20 | <wind|ow. |
|00003f00| 20 20 20 5f 43 6c 6f 73 | 65 57 69 6e 64 6f 77 20 | _Clos|eWindow |
|00003f10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003f20| 20 20 20 4e 6f 77 20 74 | 68 65 20 77 69 6e 64 6f | Now t|he windo|
|00003f30| 77 20 63 61 6e 20 62 65 | 20 63 6c 6f 73 65 64 2e |w can be| closed.|
|00003f40| 0d 3b 0d 0d 54 68 65 20 | 74 79 70 65 20 6f 66 20 |.;..The |type of |
|00003f50| 73 68 75 74 64 6f 77 6e | 20 79 6f 75 20 75 73 65 |shutdown| you use|
|00003f60| 20 64 65 70 65 6e 64 73 | 20 75 70 6f 6e 20 74 68 | depends| upon th|
|00003f70| 65 20 63 6f 6e 74 65 6e | 74 73 20 6f 66 20 74 68 |e conten|ts of th|
|00003f80| 65 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 20 62 61 |e inform|ation ba|
|00003f90| 72 2e 0d 0d 57 68 79 20 | 64 69 64 6e 27 74 20 49 |r...Why |didn't I|
|00003fa0| 20 70 75 74 20 61 20 44 | 69 73 70 6f 73 65 4d 65 | put a D|isposeMe|
|00003fb0| 6e 75 42 61 72 20 63 61 | 6c 6c 20 69 6e 20 74 68 |nuBar ca|ll in th|
|00003fc0| 65 20 4d 65 6e 75 20 4d | 61 6e 61 67 65 72 3f 20 |e Menu M|anager? |
|00003fd0| 20 49 20 64 69 64 6e 27 | 74 20 74 68 69 6e 6b 20 | I didn'|t think |
|00003fe0| 6f 66 20 0d 69 74 20 75 | 6e 74 69 6c 20 61 20 77 |of .it u|ntil a w|
|00003ff0| 65 65 6b 20 74 6f 6f 20 | 6c 61 74 65 2e 20 20 53 |eek too |late. S|
|00004000| 6f 72 72 79 2e 0d 0d 0d | 4f 74 68 65 72 20 49 6e |orry....|Other In|
|00004010| 66 6f 72 6d 61 74 69 6f | 6e 20 42 61 72 20 55 73 |formatio|n Bar Us|
|00004020| 65 73 0d 0d 54 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |es..The |followin|
|00004030| 67 20 73 75 67 67 65 73 | 74 69 6f 6e 73 20 61 72 |g sugges|tions ar|
|00004040| 65 20 6f 6e 6c 79 20 74 | 68 65 6f 72 69 65 73 20 |e only t|heories |
|00004050| 61 6e 64 20 68 61 76 65 | 20 6e 6f 74 20 62 65 65 |and have| not bee|
|00004060| 6e 20 74 65 73 74 65 64 | 2e 0d 0d 6f 20 20 20 20 |n tested|...o |
|00004070| 44 69 73 70 6c 61 79 20 | 74 65 78 74 20 69 6e 66 |Display |text inf|
|00004080| 6f 72 6d 61 74 69 6f 6e | 2c 20 61 73 20 69 6e 20 |ormation|, as in |
|00004090| 4d 61 63 69 6e 74 6f 73 | 68 20 46 69 6e 64 65 72 |Macintos|h Finder|
|000040a0| 20 77 69 6e 64 6f 77 73 | 2e 0d 6f 20 20 20 20 53 | windows|..o S|
|000040b0| 70 6c 69 74 20 77 69 6e | 64 6f 77 2e 20 20 4c 69 |plit win|dow. Li|
|000040c0| 6b 65 20 74 68 65 20 63 | 6f 6e 74 65 6e 74 20 72 |ke the c|ontent r|
|000040d0| 65 67 69 6f 6e 2c 20 74 | 68 65 20 69 6e 66 6f 72 |egion, t|he infor|
|000040e0| 6d 61 74 69 6f 6e 20 62 | 61 72 20 63 6f 75 6c 64 |mation b|ar could|
|000040f0| 20 62 65 20 6c 61 72 67 | 65 20 0d 20 20 20 20 20 | be larg|e . |
|00004100| 65 6e 6f 75 67 68 20 74 | 6f 20 68 6f 6c 64 20 64 |enough t|o hold d|
|00004110| 61 74 61 2e 0d 6f 20 20 | 20 20 48 6f 6c 64 20 63 |ata..o | Hold c|
|00004120| 6f 6e 74 72 6f 6c 73 2e | 20 20 59 6f 75 20 63 6f |ontrols.| You co|
|00004130| 75 6c 64 20 73 63 72 6f | 6c 6c 20 64 61 74 61 20 |uld scro|ll data |
|00004140| 69 6e 20 74 68 65 20 63 | 6f 6e 74 65 6e 74 20 72 |in the c|ontent r|
|00004150| 65 67 69 6f 6e 20 77 68 | 69 6c 65 20 6b 65 65 70 |egion wh|ile keep|
|00004160| 69 6e 67 20 0d 20 20 20 | 20 20 74 68 65 20 63 6f |ing . | the co|
|00004170| 6e 74 72 6f 6c 73 20 77 | 68 69 63 68 20 61 66 66 |ntrols w|hich aff|
|00004180| 65 63 74 20 74 68 65 20 | 64 69 73 70 6c 61 79 20 |ect the |display |
|00004190| 69 6e 20 70 6c 61 63 65 | 20 61 6e 64 20 77 69 74 |in place| and wit|
|000041a0| 68 69 6e 20 74 68 65 20 | 75 73 65 72 27 73 5d 0d |hin the |user's].|
|000041b0| 20 20 20 20 20 72 65 61 | 63 68 2e 20 20 28 4e 6f | rea|ch. (No|
|000041c0| 74 65 3a 20 20 54 68 65 | 20 43 6f 6e 74 72 6f 6c |te: The| Control|
|000041d0| 20 4d 61 6e 61 67 65 72 | 20 63 75 72 72 65 6e 74 | Manager| current|
|000041e0| 6c 79 20 77 69 6c 6c 20 | 6e 6f 74 20 61 6c 6c 6f |ly will |not allo|
|000041f0| 77 20 63 6f 6e 74 72 6f | 6c 73 20 69 74 0d 20 20 |w contro|ls it. |
|00004200| 20 20 20 63 72 65 61 74 | 65 73 20 69 6e 20 61 6e | creat|es in an|
|00004210| 20 69 6e 66 6f 72 6d 61 | 74 69 6f 6e 20 62 61 72 | informa|tion bar|
|00004220| 2e 20 20 49 6e 20 74 68 | 69 73 20 63 61 73 65 2c |. In th|is case,|
|00004230| 20 4e 65 77 43 6f 6e 74 | 72 6f 6c 20 77 6f 75 6c | NewCont|rol woul|
|00004240| 64 20 62 65 20 75 73 69 | 6e 67 20 61 0d 20 20 20 |d be usi|ng a. |
|00004250| 20 20 70 6f 72 74 20 74 | 68 61 74 20 69 73 20 6e | port t|hat is n|
|00004260| 6f 74 20 69 6e 20 79 6f | 75 72 20 77 69 6e 64 6f |ot in yo|ur windo|
|00004270| 77 27 73 20 70 6f 72 74 | 2c 20 6e 61 6d 65 6c 79 |w's port|, namely|
|00004280| 20 74 68 65 20 57 69 6e | 64 6f 77 20 4d 61 6e 61 | the Win|dow Mana|
|00004290| 67 65 72 27 73 20 70 6f | 72 74 2e 29 0d 0d 0d 46 |ger's po|rt.)...F|
|000042a0| 75 72 74 68 65 72 20 52 | 65 66 65 72 65 6e 63 65 |urther R|eference|
|000042b0| 0d 6f 20 20 20 20 41 70 | 70 6c 65 20 49 49 47 53 |.o Ap|ple IIGS|
|000042c0| 20 54 6f 6f 6c 62 6f 78 | 20 52 65 66 65 72 65 6e | Toolbox| Referen|
|000042d0| 63 65 2c 20 56 6f 6c 75 | 6d 65 73 20 31 20 26 20 |ce, Volu|mes 1 & |
|000042e0| 32 0d 0d 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |2.......|........|
|000042f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004300| 00 00 01 00 00 00 01 4c | 00 00 00 4c 00 00 00 32 |.......L|...L...2|
|00004310| 6b 2c 20 73 61 76 65 20 | 69 6e 20 59 2e 0d 3b 0d |k, save |in Y..;.|
|00004320| 09 74 73 63 09 09 4d 6f | 76 65 20 64 69 72 65 63 |.tsc..Mo|ve direc|
|00004330| 18 31 2e 20 44 44 49 4e | 49 54 45 78 70 61 6e 64 |.1. DDIN|ITExpand|
|00004340| 54 65 6d 70 46 69 6c 65 | 20 70 02 00 00 00 44 44 |TempFile| p....DD|
|00004350| 00 00 44 44 54 4d 44 44 | 41 50 01 00 02 80 00 80 |..DDTMDD|AP......|
|00004360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004370| 00 00 a5 ca d0 b9 00 00 | 42 63 00 00 01 7e 65 74 |........|Bc...~et|
|00004380| 65 72 73 2e 0d 09 73 74 | 61 09 32 2c 78 0d 09 6c |ers...st|a.2,x..l|
|00004390| 64 61 09 30 2c 73 0d 09 | 73 74 61 09 30 2c 78 0d |da.0,s..|sta.0,x.|
|000043a0| 3b 0d 09 74 73 63 09 09 | 41 64 6a 75 73 74 20 73 |;..tsc..|Adjust s|
|000043b0| 74 61 63 6b 20 66 6f 72 | 20 73 74 72 69 70 70 65 |tack for| strippe|
|000043c0| 64 20 69 6e 70 75 74 20 | 70 61 72 61 6d 65 74 65 |d input |paramete|
|000043d0| 72 73 2e 0d 09 70 68 78 | 09 09 4e 75 6d 62 65 72 |rs...phx|..Number|
|000043e0| 20 6f 66 20 62 79 74 65 | 73 20 6f 66 20 69 6e 70 | of byte|s of inp|
|000043f0| 75 74 20 70 61 72 61 6d | 65 74 65 72 73 2e 0d 09 |ut param|eters...|
|00004400| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00004410| 00 00 00 48 00 00 00 48 | 00 00 00 00 00 01 00 01 |...H...H|........|
|00004420| 00 01 00 00 00 00 00 06 | 00 04 00 3c 00 24 01 dd |........|...<.$..|
|00004430| 02 3d 00 3c 00 24 01 dd | 02 3d 9f ce 71 c3 00 00 |.=.<.$..|.=..q...|
|00004440| 00 00 00 00 00 00 00 00 | 00 00 01 00 00 00 01 00 |........|........|
|00004450| 00 00 01 4c 00 00 00 4c | 00 00 00 32 00 1c 10 4c |...L...L|...2...L|
|00004460| 07 5a 00 00 00 1c 00 32 | 00 00 4d 50 53 52 00 00 |.Z.....2|..MPSR..|
|00004470| 00 0a 03 ed ff ff 00 00 | 00 00 00 1d 45 4c 00 00 |........|....EL..|
+--------+-------------------------+-------------------------+--------+--------+