home *** CD-ROM | disk | FTP | other *** search
/ APDL Public Domain 1 / APDL_PD1A.iso / fontutils / keycaps < prev    next >
ArcFS Archive  |  1995-10-01  |  28.8 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: ArcFS Archive (archive/arcFS).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert ArcFS Archive (archive/arcFS) magic Supported
100% file RISC OS archive (ArcFS format) default
99% file data default
100% TrID Acorn ArcFS Archive default
100% gt2 Kopftext: 'Archive' default (weak)
100% detectItEasy Archive: ArcFS default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 41 72 63 68 69 76 65 00 | 44 01 00 00 a4 01 00 00 |Archive.|D.......|
|00000010| 28 00 00 00 64 00 00 00 | 00 00 00 00 00 00 00 00 |(...d...|........|
|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 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000060| 82 21 4b 65 79 43 61 70 | 73 00 00 00 ff ff ff ff |.!KeyCap|s.......|
|00000070| 44 ff ff ff 21 df fe 19 | 30 00 00 00 ff ff ff ff |D...!...|0.......|
|00000080| 20 01 00 80 82 21 52 75 | 6e 00 00 00 45 fb f3 ff | ....!Ru|n...E...|
|00000090| 37 01 00 00 43 eb ff ff | 73 91 7b 68 03 00 2c bd |7...C...|s.{h..,.|
|000000a0| 37 01 00 00 24 00 00 00 | 82 21 52 75 6e 49 6d 61 |7...$...|.!RunIma|
|000000b0| 67 65 00 ff 2b 1a 00 00 | 42 fb ff ff c8 29 75 df |ge..+...|B....)u.|
|000000c0| 03 00 06 e5 2b 1a 00 00 | 7f 01 00 00 82 21 53 70 |....+...|.....!Sp|
|000000d0| 72 69 74 65 73 00 f3 ff | e8 03 00 00 42 f9 ff ff |rites...|....B...|
|000000e0| ba c4 86 78 03 00 07 ac | e8 03 00 00 ce 1b 00 00 |...x....|........|
|000000f0| 82 46 6e 74 4d 65 6e 75 | 44 6f 63 00 54 40 00 00 |.FntMenu|Doc.T@..|
|00000100| 42 ff ff ff 21 8e f5 d9 | 03 00 db 8a 54 40 00 00 |B...!...|....T@..|
|00000110| da 1f 00 00 82 46 6f 6e | 74 4d 65 6e 75 00 f3 ff |.....Fon|tMenu...|
|00000120| d4 0d 00 00 42 fa ff ff | 3e c9 a6 d6 03 00 34 3e |....B...|>.....4>|
|00000130| d4 0d 00 00 52 60 00 00 | 82 54 65 6d 70 6c 61 74 |....R`..|.Templat|
|00000140| 65 73 00 ff 31 03 00 00 | 42 ec ff ff ae 1f 4b b0 |es..1...|B.....K.|
|00000150| 03 00 48 d9 31 03 00 00 | 4a 6e 00 00 00 00 0e 07 |..H.1...|Jn......|
|00000160| 00 0d 00 00 45 fb f3 ff | 22 45 e7 8b ca a0 00 00 |....E...|"E......|
|00000170| 03 00 00 00 ff ff ff ff | 03 00 2e 00 51 65 d8 fd |........|....Qe..|
|00000180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| b0 01 00 00 46 69 6c 65 | 44 61 74 61 82 21 52 75 |....File|Data.!Ru|
|000001b0| 6e 00 00 00 45 fb f3 ff | 37 01 00 00 43 eb ff ff |n...E...|7...C...|
|000001c0| 73 91 7b 68 03 00 2c bd | 7c 21 52 75 6e 20 66 6f |s.{h..,.||!Run fo|
|000001d0| 72 20 4b 65 79 43 61 70 | 73 0a 49 63 6f 6e 53 70 |r KeyCap|s.IconSp|
|000001e0| 72 69 74 65 73 20 3c 4f | 62 65 79 24 44 69 72 3e |rites <O|bey$Dir>|
|000001f0| 2e 21 53 70 72 69 74 65 | 73 20 20 0a 0a 49 66 20 |.!Sprite|s ..If |
|00000200| 22 3c 46 6f 6e 74 24 50 | 61 74 68 3e 22 3d 22 22 |"<Font$P|ath>"=""|
|00000210| 20 54 68 65 6e 20 45 72 | 72 6f 72 20 30 20 54 68 | Then Er|ror 0 Th|
|00000220| 65 72 65 20 61 72 65 20 | 6e 6f 20 66 6f 6e 74 73 |ere are |no fonts|
|00000230| 20 61 76 61 69 6c 61 62 | 6c 65 2e 0a 53 65 74 20 | availab|le..Set |
|00000240| 4b 65 79 43 61 70 73 24 | 44 69 72 20 3c 4f 62 65 |KeyCaps$|Dir <Obe|
|00000250| 79 24 44 69 72 3e 0a 52 | 4d 45 6e 73 75 72 65 20 |y$Dir>.R|MEnsure |
|00000260| 46 6f 6e 74 4d 65 6e 75 | 20 31 2e 31 31 20 52 4d |FontMenu| 1.11 RM|
|00000270| 4c 6f 61 64 20 3c 4b 65 | 79 43 61 70 73 24 44 69 |Load <Ke|yCaps$Di|
|00000280| 72 3e 2e 46 6f 6e 74 4d | 65 6e 75 0a 52 4d 45 6e |r>.FontM|enu.RMEn|
|00000290| 73 75 72 65 20 46 6f 6e | 74 4d 65 6e 75 20 31 2e |sure Fon|tMenu 1.|
|000002a0| 31 31 20 45 72 72 6f 72 | 20 59 6f 75 20 6e 65 65 |11 Error| You nee|
|000002b0| 64 20 46 6f 6e 74 4d 65 | 6e 75 20 31 2e 31 31 20 |d FontMe|nu 1.11 |
|000002c0| 6f 72 20 6c 61 74 65 72 | 0a 0a 0a 57 69 6d 70 53 |or later|...WimpS|
|000002d0| 6c 6f 74 20 2d 6d 69 6e | 20 32 34 6b 20 2d 6d 61 |lot -min| 24k -ma|
|000002e0| 78 20 32 34 6b 0a 52 75 | 6e 20 3c 4f 62 65 79 24 |x 24k.Ru|n <Obey$|
|000002f0| 44 69 72 3e 2e 21 52 75 | 6e 49 6d 61 67 65 0a 46 |Dir>.!Ru|nImage.F|
|00000300| 69 6c 65 44 61 74 61 82 | 21 52 75 6e 49 6d 61 67 |ileData.|!RunImag|
|00000310| 65 00 ff 2b 1a 00 00 42 | fb ff ff c8 29 75 df 03 |e..+...B|....)u..|
|00000320| 00 06 e5 0d 00 0a 21 f4 | 3e 24 2e 46 6f 6e 74 54 |......!.|>$.FontT|
|00000330| 2a 2e 21 4b 65 79 43 61 | 70 73 2e 21 52 75 6e 49 |*.!KeyCa|ps.!RunI|
|00000340| 6d 61 67 65 0d 00 14 3e | f4 20 4b 65 79 43 61 70 |mage...>|. KeyCap|
|00000350| 73 2c 20 74 6f 20 64 72 | 61 77 20 66 6f 6e 74 73 |s, to dr|aw fonts|
|00000360| 20 65 74 63 2e 20 6f 6e | 20 73 63 72 65 65 6e 2c | etc. on| screen,|
|00000370| 20 61 6e 64 20 74 79 70 | 65 20 69 6e 20 74 68 65 | and typ|e in the|
|00000380| 6d 2e 0d 00 1e 04 0d 00 | 28 36 f4 20 41 64 61 70 |m.......|(6. Adap|
|00000390| 74 65 64 20 74 6f 20 6d | 61 6b 65 20 75 73 65 20 |ted to m|ake use |
|000003a0| 6f 66 20 46 6f 6e 74 4d | 65 6e 75 2c 20 62 79 20 |of FontM|enu, by |
|000003b0| 4a 6f 72 69 73 20 52 d6 | 6c 69 6e 67 0d 00 32 04 |Joris R.|ling..2.|
|000003c0| 0d 00 3c 0c 61 6c 69 61 | 73 25 3d a3 0d 00 46 0d |..<.alia|s%=...F.|
|000003d0| 69 62 6c 25 3d 31 30 32 | 34 0d 00 50 13 6d 65 6e |ibl%=102|4..P.men|
|000003e0| 75 6c 65 6e 67 74 68 25 | 3d 33 30 30 0d 00 5a 11 |ulength%|=300..Z.|
|000003f0| de 20 75 6e 69 6f 6e 25 | 20 32 30 34 38 0d 00 64 |. union%| 2048..d|
|00000400| 0e de 20 69 62 25 20 69 | 62 6c 25 0d 00 6e 15 de |.. ib% i|bl%..n..|
|00000410| 20 6d 62 25 20 6d 65 6e | 75 6c 65 6e 67 74 68 25 | mb% men|ulength%|
|00000420| 0d 00 78 13 de 20 66 6f | 6e 74 62 75 66 66 25 20 |..x.. fo|ntbuff% |
|00000430| 32 35 36 0d 00 82 2a e3 | 20 70 25 3d 66 6f 6e 74 |256...*.| p%=font|
|00000440| 62 75 66 66 25 20 b8 20 | 66 6f 6e 74 62 75 66 66 |buff% . |fontbuff|
|00000450| 25 2b 32 35 35 3a 3f 70 | 25 3d 30 3a ed 0d 00 8c |%+255:?p|%=0:....|
|00000460| 04 0d 00 96 0c 62 69 62 | 25 3d 69 62 25 0d 00 a0 |.....bib|%=ib%...|
|00000470| 0a 65 6e 64 25 3d a3 0d | 00 aa 22 76 65 72 73 69 |.end%=..|.."versi|
|00000480| 6f 6e 24 3d 22 31 2e 30 | 30 62 20 28 31 39 20 4a |on$="1.0|0b (19 J|
|00000490| 75 6e 20 31 39 39 30 29 | 22 0d 00 b4 0c 62 6d 62 |un 1990)|"....bmb|
|000004a0| 25 3d 6d 62 25 0d 00 be | 04 0d 00 c8 1a 66 6f 6e |%=mb%...|.....fon|
|000004b0| 74 24 3d 22 54 72 69 6e | 69 74 79 2e 4d 65 64 69 |t$="Trin|ity.Medi|
|000004c0| 75 6d 22 0d 00 d2 0d 66 | 6f 6e 74 75 70 25 3d a3 |um"....f|ontup%=.|
|000004d0| 0d 00 dc 0e 6d 65 6e 75 | 75 70 25 3d 2d 31 0d 00 |....menu|up%=-1..|
|000004e0| e6 04 0d 00 f0 12 24 75 | 6e 69 6f 6e 25 3d 22 54 |......$u|nion%="T|
|000004f0| 41 53 4b 22 0d 00 fa 3c | c8 99 22 57 69 6d 70 5f |ASK"...<|.."Wimp_|
|00000500| 49 6e 69 74 69 61 6c 69 | 73 65 22 2c 32 30 30 2c |Initiali|se",200,|
|00000510| 21 75 6e 69 6f 6e 25 2c | 22 4b 65 79 43 61 70 73 |!union%,|"KeyCaps|
|00000520| 22 20 b8 20 2c 74 61 73 | 6b 68 61 6e 64 6c 65 25 |" . ,tas|khandle%|
|00000530| 0d 01 04 04 0d 01 0e 10 | ee 20 85 20 f2 65 72 72 |........|. . .err|
|00000540| 28 2d 31 29 0d 01 18 04 | 0d 01 22 47 f4 20 54 68 |(-1)....|.."G. Th|
|00000550| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 6c 69 6e 65 |e follow|ing line|
|00000560| 73 20 77 69 6c 6c 20 61 | 73 73 75 72 65 20 74 68 |s will a|ssure th|
|00000570| 65 20 70 72 65 73 65 6e | 63 65 20 6f 66 20 61 20 |e presen|ce of a |
|00000580| 76 61 6c 69 64 20 66 6f | 6e 74 20 6d 65 6e 75 0d |valid fo|nt menu.|
|00000590| 01 2c 19 c8 99 20 22 58 | 46 6f 6e 74 4d 65 6e 75 |.,... "X|FontMenu|
|000005a0| 5f 43 72 65 61 74 65 22 | 0d 01 36 0d f2 69 63 6f |_Create"|..6..ico|
|000005b0| 6e 5f 62 61 72 0d 01 40 | 0e f2 74 65 6d 70 6c 61 |n_bar..@|..templa|
|000005c0| 74 65 73 0d 01 4a 04 0d | 01 54 04 0d 01 5e 4a f4 |tes..J..|.T...^J.|
|000005d0| 20 54 68 65 20 66 6f 6c | 6c 6f 77 69 6e 67 20 6c | The fol|lowing l|
|000005e0| 69 6e 65 73 20 77 69 6c | 6c 20 61 73 73 75 72 65 |ines wil|l assure|
|000005f0| 20 74 68 65 20 70 72 65 | 73 65 6e 63 65 20 6f 66 | the pre|sence of|
|00000600| 20 61 20 76 61 6c 69 64 | 20 73 74 61 72 74 75 70 | a valid| startup|
|00000610| 20 66 6f 6e 74 0d 01 68 | 48 f4 20 54 68 69 73 20 | font..h|H. This |
|00000620| 77 69 6c 6c 20 62 65 20 | 6e 65 65 64 65 64 20 69 |will be |needed i|
|00000630| 66 20 27 54 72 69 6e 69 | 74 79 2e 4d 65 64 69 75 |f 'Trini|ty.Mediu|
|00000640| 6d 27 20 69 73 20 6e 6f | 74 20 70 72 65 73 65 6e |m' is no|t presen|
|00000650| 74 20 69 6e 20 74 68 65 | 20 6d 65 6e 75 0d 01 72 |t in the| menu..r|
|00000660| 33 c8 99 20 22 58 46 6f | 6e 74 4d 65 6e 75 5f 53 |3.. "XFo|ntMenu_S|
|00000670| 65 6c 65 63 74 22 2c 66 | 6f 6e 74 24 2c 30 20 b8 |elect",f|ont$,0 .|
|00000680| 20 73 74 61 74 65 2c 66 | 6f 6e 74 6d 65 6e 75 25 | state,f|ontmenu%|
|00000690| 0d 01 7c 0f e7 20 73 74 | 61 74 65 3d 30 20 8c 0d |..|.. st|ate=0 ..|
|000006a0| 01 86 26 20 20 c8 99 20 | 22 46 6f 6e 74 5f 4c 69 |..& .. |"Font_Li|
|000006b0| 73 74 46 6f 6e 74 73 22 | 2c 2c 75 6e 69 6f 6e 25 |stFonts"|,,union%|
|000006c0| 2c 30 2c 2d 31 0d 01 90 | 1b 20 20 66 6f 6e 74 24 |,0,-1...|. font$|
|000006d0| 3d a4 47 65 74 53 74 72 | 28 75 6e 69 6f 6e 25 29 |=.GetStr|(union%)|
|000006e0| 0d 01 9a 05 cd 0d 01 a4 | 16 f2 63 68 61 6e 67 65 |........|..change|
|000006f0| 66 6f 6e 74 28 66 6f 6e | 74 24 29 0d 01 ae 04 0d |font(fon|t$).....|
|00000700| 01 b8 58 f2 63 72 65 61 | 74 65 6d 65 6e 75 28 6d |..X.crea|temenu(m|
|00000710| 62 25 2c 69 62 25 2c 22 | 4b 65 79 43 61 70 73 7c |b%,ib%,"|KeyCaps||
|00000720| 40 22 2b c3 28 69 6e 66 | 6f 77 69 6e 25 29 2b 22 |@"+.(inf|owin%)+"|
|00000730| 7c 49 6e 66 6f 7c 40 22 | 2b c3 28 66 6f 6e 74 6d ||Info|@"|+.(fontm|
|00000740| 65 6e 75 25 29 2b 22 7c | 54 79 70 65 66 61 63 65 |enu%)+"||Typeface|
|00000750| 7c 51 75 69 74 22 29 0d | 01 c2 26 21 28 6d 62 25 ||Quit").|..&!(mb%|
|00000760| 2b 32 38 2b 32 34 29 3d | 21 28 6d 62 25 2b 32 38 |+28+24)=|!(mb%+28|
|00000770| 2b 32 34 29 20 84 20 28 | 31 3c 3c 33 29 0d 01 cc |+24) . (|1<<3)...|
|00000780| 04 0d 01 d6 0c f2 76 65 | 72 73 69 6f 6e 0d 01 e0 |......ve|rsion...|
|00000790| 04 0d 01 ea 15 75 6e 69 | 6f 6e 25 21 30 3d 6d 61 |.....uni|on%!0=ma|
|000007a0| 69 6e 77 69 6e 25 0d 01 | f4 23 c8 99 22 57 69 6d |inwin%..|.#.."Wim|
|000007b0| 70 5f 47 65 74 57 69 6e | 64 6f 77 53 74 61 74 65 |p_GetWin|dowState|
|000007c0| 22 2c 2c 75 6e 69 6f 6e | 25 0d 01 fe 10 75 6e 69 |",,union|%....uni|
|000007d0| 6f 6e 25 21 32 38 3d 2d | 31 0d 02 08 1f c8 99 22 |on%!28=-|1......"|
|000007e0| 57 69 6d 70 5f 4f 70 65 | 6e 57 69 6e 64 6f 77 22 |Wimp_Ope|nWindow"|
|000007f0| 2c 2c 75 6e 69 6f 6e 25 | 0d 02 12 04 0d 02 1c 0f |,,union%|........|
|00000800| ee 20 85 20 f2 65 72 72 | 28 30 29 0d 02 26 05 f5 |. . .err|(0)..&..|
|00000810| 0d 02 30 23 c8 99 22 57 | 69 6d 70 5f 50 6f 6c 6c |..0#.."W|imp_Poll|
|00000820| 22 2c 31 2c 75 6e 69 6f | 6e 25 20 b8 20 65 76 65 |",1,unio|n% . eve|
|00000830| 6e 74 25 0d 02 3a 04 0d | 02 44 0f c8 8e 20 65 76 |nt%..:..|.D... ev|
|00000840| 65 6e 74 25 20 ca 0d 02 | 4e 24 c9 20 32 3a c8 99 |ent% ...|N$. 2:..|
|00000850| 22 57 69 6d 70 5f 4f 70 | 65 6e 57 69 6e 64 6f 77 |"Wimp_Op|enWindow|
|00000860| 22 2c 30 2c 75 6e 69 6f | 6e 25 0d 02 58 25 c9 20 |",0,unio|n%..X%. |
|00000870| 33 3a c8 99 22 57 69 6d | 70 5f 43 6c 6f 73 65 57 |3:.."Wim|p_CloseW|
|00000880| 69 6e 64 6f 77 22 2c 30 | 2c 75 6e 69 6f 6e 25 0d |indow",0|,union%.|
|00000890| 02 62 1b c9 20 36 3a f2 | 6d 6f 75 73 65 63 6c 69 |.b.. 6:.|mousecli|
|000008a0| 63 6b 28 75 6e 69 6f 6e | 25 29 0d 02 6c 19 c9 20 |ck(union|%)..l.. |
|000008b0| 38 3a f2 6b 65 79 70 72 | 65 73 73 28 75 6e 69 6f |8:.keypr|ess(unio|
|000008c0| 6e 25 29 0d 02 76 14 c9 | 20 39 3a f2 6d 65 6e 75 |n%)..v..| 9:.menu|
|000008d0| 5f 73 65 6c 65 63 74 0d | 02 80 1f c9 20 31 37 2c |_select.|.... 17,|
|000008e0| 31 38 2c 31 39 3a f2 6d | 65 73 73 61 67 65 28 75 |18,19:.m|essage(u|
|000008f0| 6e 69 6f 6e 25 29 0d 02 | 8a 05 cb 0d 02 94 0a fd |nion%)..|........|
|00000900| 20 65 6e 64 25 0d 02 9e | 04 0d 02 a8 10 e3 20 66 | end%...|...... f|
|00000910| 25 3d 30 20 b8 20 32 35 | 35 0d 02 b2 3e 20 20 c8 |%=0 . 25|5...> .|
|00000920| 95 20 66 6f 6e 74 62 75 | 66 66 25 3f 66 25 3e 30 |. fontbu|ff%?f%>0|
|00000930| 3a c8 99 22 46 6f 6e 74 | 5f 4c 6f 73 65 46 6f 6e |:.."Font|_LoseFon|
|00000940| 74 22 2c 66 25 3a 66 6f | 6e 74 62 75 66 66 25 3f |t",f%:fo|ntbuff%?|
|00000950| 66 25 2d 3d 31 3a ce 0d | 02 bc 05 ed 0d 02 c6 1a |f%-=1:..|........|
|00000960| c8 99 20 22 58 46 6f 6e | 74 4d 65 6e 75 5f 52 65 |.. "XFon|tMenu_Re|
|00000970| 6c 65 61 73 65 22 0d 02 | d0 22 c8 99 22 57 69 6d |lease"..|.".."Wim|
|00000980| 70 5f 43 6c 6f 73 65 44 | 6f 77 6e 22 2c 74 61 73 |p_CloseD|own",tas|
|00000990| 6b 68 61 6e 64 6c 65 25 | 0d 02 da 05 e0 0d 02 e4 |khandle%|........|
|000009a0| 04 0d 02 ee 11 dd f2 6d | 65 6e 75 5f 73 65 6c 65 |.......m|enu_sele|
|000009b0| 63 74 0d 02 f8 45 e7 20 | 6d 65 6e 75 75 70 25 3d |ct...E. |menuup%=|
|000009c0| 6d 62 25 20 80 20 21 75 | 6e 69 6f 6e 25 3d 31 20 |mb% . !u|nion%=1 |
|000009d0| 80 20 75 6e 69 6f 6e 25 | 21 34 3d 2d 31 20 8c 20 |. union%|!4=-1 . |
|000009e0| 61 6c 69 61 73 25 3d ac | 28 61 6c 69 61 73 25 29 |alias%=.|(alias%)|
|000009f0| 3a e5 20 8d 64 5e 43 0d | 03 02 44 e7 20 28 6d 65 |:. .d^C.|..D. (me|
|00000a00| 6e 75 75 70 25 3d 6d 62 | 25 20 80 20 21 75 6e 69 |nuup%=mb|% . !uni|
|00000a10| 6f 6e 25 3d 31 20 80 20 | 75 6e 69 6f 6e 25 21 34 |on%=1 . |union%!4|
|00000a20| 3c 3e 2d 31 29 20 84 20 | 6d 65 6e 75 75 70 25 3d |<>-1) . |menuup%=|
|00000a30| 66 6f 6e 74 6d 65 6e 75 | 25 20 8c 0d 03 0c 0c 20 |fontmenu|% ..... |
|00000a40| 20 66 66 6c 25 3d b9 0d | 03 16 3b 20 20 e7 20 6d | ffl%=..|..; . m|
|00000a50| 65 6e 75 75 70 25 3d 66 | 6f 6e 74 6d 65 6e 75 25 |enuup%=f|ontmenu%|
|00000a60| 20 8c 20 6d 65 73 65 6c | 25 3d 75 6e 69 6f 6e 25 | . mesel|%=union%|
|00000a70| 20 8b 20 6d 65 73 65 6c | 25 3d 75 6e 69 6f 6e 25 | . mesel|%=union%|
|00000a80| 2b 34 0d 03 20 04 0d 03 | 2a 3c f4 20 54 68 65 20 |+4.. ...|*<. The |
|00000a90| 66 6f 6c 6c 6f 77 69 6e | 67 20 6c 69 6e 65 20 77 |followin|g line w|
|00000aa0| 69 6c 6c 20 72 65 74 75 | 72 6e 20 74 68 65 20 73 |ill retu|rn the s|
|00000ab0| 65 6c 65 63 74 65 64 20 | 66 6f 6e 74 20 6e 61 6d |elected |font nam|
|00000ac0| 65 2e 0d 03 34 3f 20 20 | c8 99 20 22 58 46 6f 6e |e...4? |.. "XFon|
|00000ad0| 74 4d 65 6e 75 5f 44 65 | 63 6f 64 65 46 6f 6e 74 |tMenu_De|codeFont|
|00000ae0| 4d 65 6e 75 22 2c 6d 65 | 73 65 6c 25 2c c4 32 30 |Menu",me|sel%,.20|
|00000af0| 30 2c 22 20 22 29 20 b8 | 20 66 63 68 25 2c 66 6f |0," ") .| fch%,fo|
|00000b00| 24 0d 03 3e 38 20 20 e7 | 20 66 6f 24 3c 3e 22 22 |$..>8 .| fo$<>""|
|00000b10| 20 80 20 66 63 68 25 3c | 3e 30 20 8c 20 66 6f 6e | . fch%<|>0 . fon|
|00000b20| 74 24 3d 66 6f 24 3a f2 | 63 68 61 6e 67 65 66 6f |t$=fo$:.|changefo|
|00000b30| 6e 74 28 66 6f 6e 74 24 | 29 0d 03 48 04 0d 03 52 |nt(font$|)..H...R|
|00000b40| 39 f4 20 54 68 65 20 66 | 6f 6c 6c 6f 77 69 6e 67 |9. The f|ollowing|
|00000b50| 20 6c 69 6e 65 20 77 69 | 6c 6c 20 74 69 63 6b 20 | line wi|ll tick |
|00000b60| 74 68 65 20 6e 65 77 20 | 73 65 6c 65 63 74 65 64 |the new |selected|
|00000b70| 20 66 6f 6e 74 2c 0d 03 | 5c 39 f4 20 61 6e 64 20 | font,..|\9. and |
|00000b80| 69 74 20 77 69 6c 6c 20 | 72 65 74 75 72 6e 20 61 |it will |return a|
|00000b90| 20 70 6f 69 6e 74 65 72 | 20 74 6f 20 74 68 65 20 | pointer| to the |
|00000ba0| 6d 65 6e 75 20 73 74 72 | 75 63 74 75 72 65 2e 0d |menu str|ucture..|
|00000bb0| 03 66 04 0d 03 70 1d 20 | 20 66 6f 6e 74 6d 65 6e |.f...p. | fontmen|
|00000bc0| 75 25 3d a4 66 6f 6e 74 | 6d 65 6e 75 5f 70 74 72 |u%=.font|menu_ptr|
|00000bd0| 0d 03 7a 3a 20 20 e7 20 | 6d 65 6e 75 75 70 25 3d |..z: . |menuup%=|
|00000be0| 6d 62 25 20 8c 20 6d 62 | 25 21 35 36 3d 66 6f 6e |mb% . mb|%!56=fon|
|00000bf0| 74 6d 65 6e 75 25 20 8b | 20 6d 65 6e 75 75 70 25 |tmenu% .| menuup%|
|00000c00| 3d 66 6f 6e 74 6d 65 6e | 75 25 0d 03 84 05 cc 0d |=fontmen|u%......|
|00000c10| 03 8e 0c 20 20 66 66 6c | 25 3d a3 0d 03 98 04 0d |... ffl|%=......|
|00000c20| 03 a2 30 20 c8 99 20 22 | 57 69 6d 70 5f 44 65 63 |..0 .. "|Wimp_Dec|
|00000c30| 6f 64 65 4d 65 6e 75 22 | 2c 2c 6d 65 6e 75 75 70 |odeMenu"|,,menuup|
|00000c40| 25 2c 75 6e 69 6f 6e 25 | 2c 75 6e 69 6f 6e 25 0d |%,union%|,union%.|
|00000c50| 03 ac 0f 20 6d 24 3d 24 | 75 6e 69 6f 6e 25 0d 03 |... m$=$|union%..|
|00000c60| b6 18 20 66 77 24 3d c0 | 6d 24 2c a7 6d 24 2c 22 |.. fw$=.|m$,.m$,"|
|00000c70| 2e 22 29 2d 31 29 0d 03 | c0 0d 20 c8 8e 20 66 77 |.")-1)..|.. .. fw|
|00000c80| 24 20 ca 0d 03 ca 15 20 | 20 c9 20 22 51 75 69 74 |$ ..... | . "Quit|
|00000c90| 22 3a 65 6e 64 25 3d b9 | 0d 03 d4 05 cd 0d 03 de |":end%=.|........|
|00000ca0| 24 c8 99 20 22 57 69 6d | 70 5f 47 65 74 50 6f 69 |$.. "Wim|p_GetPoi|
|00000cb0| 6e 74 65 72 49 6e 66 6f | 22 2c 2c 75 6e 69 6f 6e |nterInfo|",,union|
|00000cc0| 25 0d 03 e8 31 e7 20 75 | 6e 69 6f 6e 25 21 38 3d |%...1. u|nion%!8=|
|00000cd0| 31 20 8c 20 c8 99 20 22 | 57 69 6d 70 5f 43 72 65 |1 . .. "|Wimp_Cre|
|00000ce0| 61 74 65 4d 65 6e 75 22 | 2c 30 2c 6d 65 6e 75 75 |ateMenu"|,0,menuu|
|00000cf0| 70 25 0d 03 f2 05 e1 0d | 03 fc 04 0d 04 06 1c dd |p%......|........|
|00000d00| f2 63 72 65 61 74 65 6d | 65 6e 75 28 6d 62 25 2c |.createm|enu(mb%,|
|00000d10| 69 62 25 2c 6d 24 29 0d | 04 10 0b 6e 69 25 3d 69 |ib%,m$).|...ni%=i|
|00000d20| 62 25 0d 04 1a 0c 62 6d | 62 25 3d 6d 62 25 0d 04 |b%....bm|b%=mb%..|
|00000d30| 24 1a 74 69 74 6c 65 24 | 3d c0 6d 24 2c a7 6d 24 |$.title$|=.m$,.m$|
|00000d40| 2c 22 7c 22 29 2d 31 29 | 0d 04 2e 15 6d 61 78 6c |,"|")-1)|....maxl|
|00000d50| 65 6e 25 3d a9 28 74 69 | 74 6c 65 24 29 0d 04 38 |en%=.(ti|tle$)..8|
|00000d60| 0f 24 6d 62 25 3d 74 69 | 74 6c 65 24 0d 04 42 0c |.$mb%=ti|tle$..B.|
|00000d70| 6d 62 25 3f 31 32 3d 37 | 0d 04 4c 0c 6d 62 25 3f |mb%?12=7|..L.mb%?|
|00000d80| 31 33 3d 32 0d 04 56 0c | 6d 62 25 3f 31 34 3d 37 |13=2..V.|mb%?14=7|
|00000d90| 0d 04 60 0c 6d 62 25 3f | 31 35 3d 30 0d 04 6a 18 |..`.mb%?|15=0..j.|
|00000da0| 6d 62 25 21 31 36 3d 6d | 61 78 6c 65 6e 25 2a 31 |mb%!16=m|axlen%*1|
|00000db0| 36 2b 31 36 0d 04 74 0d | 6d 62 25 21 32 30 3d 34 |6+16..t.|mb%!20=4|
|00000dc0| 30 0d 04 7e 0c 6d 62 25 | 21 32 34 3d 30 0d 04 88 |0..~.mb%|!24=0...|
|00000dd0| 0b 6d 62 25 2b 3d 32 38 | 0d 04 92 05 f5 0d 04 9c |.mb%+=28|........|
|00000de0| 16 6d 24 3d c1 6d 24 2c | a7 6d 24 2c 22 7c 22 29 |.m$=.m$,|.m$,"|")|
|00000df0| 2b 31 29 0d 04 a6 0b 73 | 75 62 25 3d 2d 31 0d 04 |+1)....s|ub%=-1..|
|00000e00| b0 0f 6d 65 6e 75 66 6c | 61 67 25 3d 30 0d 04 ba |..menufl|ag%=0...|
|00000e10| 2b 69 63 6f 6e 66 6c 61 | 67 25 3d 28 31 3c 3c 30 |+iconfla|g%=(1<<0|
|00000e20| 29 2b 28 31 3c 3c 34 29 | 2b 28 33 3c 3c 31 32 29 |)+(1<<4)|+(3<<12)|
|00000e30| 2b 28 37 3c 3c 32 34 29 | 0d 04 c4 12 e7 20 c0 6d |+(7<<24)|..... .m|
|00000e40| 24 2c 31 29 3d 22 40 22 | 20 8c 0d 04 ce 0d 6d 24 |$,1)="@"| .....m$|
|00000e50| 3d c1 6d 24 2c 32 29 0d | 04 d8 16 73 24 3d c0 6d |=.m$,2).|...s$=.m|
|00000e60| 24 2c a7 6d 24 2c 22 7c | 22 29 2d 31 29 0d 04 e2 |$,.m$,"||")-1)...|
|00000e70| 16 6d 24 3d c1 6d 24 2c | a7 6d 24 2c 22 7c 22 29 |.m$=.m$,|.m$,"|")|
|00000e80| 2b 31 29 0d 04 ec 0e 73 | 75 62 25 3d bb 28 73 24 |+1)....s|ub%=.(s$|
|00000e90| 29 0d 04 f6 05 cd 0d 05 | 00 2c e7 20 a7 6d 24 2c |).......|.,. .m$,|
|00000ea0| 22 7c 22 29 3d 30 20 8c | 20 6d 65 6e 75 66 6c 61 |"|")=0 .| menufla|
|00000eb0| 67 25 3d 6d 65 6e 75 66 | 6c 61 67 25 20 84 20 31 |g%=menuf|lag% . 1|
|00000ec0| 32 38 0d 05 0a 19 69 74 | 65 6d 24 3d c0 6d 24 2c |28....it|em$=.m$,|
|00000ed0| a7 6d 24 2c 22 7c 22 29 | 2d 31 29 0d 05 14 13 6d |.m$,"|")|-1)....m|
|00000ee0| 62 25 21 30 3d 6d 65 6e | 75 66 6c 61 67 25 0d 05 |b%!0=men|uflag%..|
|00000ef0| 1e 0e 6d 62 25 21 34 3d | 73 75 62 25 0d 05 28 13 |..mb%!4=|sub%..(.|
|00000f00| 6d 62 25 21 38 3d 69 63 | 6f 6e 66 6c 61 67 25 0d |mb%!8=ic|onflag%.|
|00000f10| 05 32 13 24 28 6d 62 25 | 2b 31 32 29 3d 69 74 65 |.2.$(mb%|+12)=ite|
|00000f20| 6d 24 0d 05 3c 3f e7 20 | a9 28 69 74 65 6d 24 29 |m$..<?. |.(item$)|
|00000f30| 3e 6d 61 78 6c 65 6e 25 | 20 8c 20 6d 61 78 6c 65 |>maxlen%| . maxle|
|00000f40| 6e 25 3d a9 28 69 74 65 | 6d 24 29 3a 62 6d 62 25 |n%=.(ite|m$):bmb%|
|00000f50| 21 31 36 3d 6d 61 78 6c | 65 6e 25 2a 31 36 2b 31 |!16=maxl|en%*16+1|
|00000f60| 36 0d 05 46 0b 6d 62 25 | 2b 3d 32 34 0d 05 50 10 |6..F.mb%|+=24..P.|
|00000f70| fd 20 a7 6d 24 2c 22 7c | 22 29 3d 30 0d 05 5a 0c |. .m$,"||")=0..Z.|
|00000f80| 6d 62 25 3d 62 6d 62 25 | 0d 05 64 05 e1 0d 05 6e |mb%=bmb%|..d....n|
|00000f90| 04 0d 05 78 18 dd f2 6d | 6f 75 73 65 63 6c 69 63 |...x...m|ouseclic|
|00000fa0| 6b 28 75 6e 69 6f 6e 25 | 29 0d 05 82 1b 66 6f 6e |k(union%|)....fon|
|00000fb0| 74 6d 65 6e 75 25 3d a4 | 66 6f 6e 74 6d 65 6e 75 |tmenu%=.|fontmenu|
|00000fc0| 5f 70 74 72 0d 05 8c 36 | e7 20 75 6e 69 6f 6e 25 |_ptr...6|. union%|
|00000fd0| 21 38 3d 32 20 80 20 75 | 6e 69 6f 6e 25 21 31 32 |!8=2 . u|nion%!12|
|00000fe0| 3d 2d 32 20 80 20 75 6e | 69 6f 6e 25 21 31 36 3d |=-2 . un|ion%!16=|
|00000ff0| 62 61 72 69 63 6f 6e 25 | 20 8c 0d 05 96 16 20 20 |baricon%| ..... |
|00001000| 6d 62 25 21 35 36 3d 66 | 6f 6e 74 6d 65 6e 75 25 |mb%!56=f|ontmenu%|
|00001010| 0d 05 a0 11 20 20 6d 65 | 6e 75 75 70 25 3d 6d 62 |.... me|nuup%=mb|
|00001020| 25 0d 05 aa 31 20 20 c8 | 99 22 57 69 6d 70 5f 43 |%...1 .|."Wimp_C|
|00001030| 72 65 61 74 65 4d 65 6e | 75 22 2c 30 2c 6d 62 25 |reateMen|u",0,mb%|
|00001040| 2c 75 6e 69 6f 6e 25 21 | 30 2d 36 34 2c 32 31 36 |,union%!|0-64,216|
|00001050| 3a e1 0d 05 b4 05 cd 0d | 05 be 04 0d 05 c8 73 e7 |:.......|......s.|
|00001060| 20 75 6e 69 6f 6e 25 21 | 38 3d 32 20 80 20 75 6e | union%!|8=2 . un|
|00001070| 69 6f 6e 25 21 31 32 3d | 6d 61 69 6e 77 69 6e 25 |ion%!12=|mainwin%|
|00001080| 20 8c 20 6d 65 6e 75 75 | 70 25 3d 66 6f 6e 74 6d | . menuu|p%=fontm|
|00001090| 65 6e 75 25 3a c8 99 22 | 57 69 6d 70 5f 43 72 65 |enu%:.."|Wimp_Cre|
|000010a0| 61 74 65 4d 65 6e 75 22 | 2c 30 2c 66 6f 6e 74 6d |ateMenu"|,0,fontm|
|000010b0| 65 6e 75 25 2c 75 6e 69 | 6f 6e 25 21 30 2d 36 34 |enu%,uni|on%!0-64|
|000010c0| 2c 75 6e 69 6f 6e 25 21 | 34 2b 31 36 3a e1 0d 05 |,union%!|4+16:...|
|000010d0| d2 81 e7 20 75 6e 69 6f | 6e 25 21 31 32 3d 6d 61 |... unio|n%!12=ma|
|000010e0| 69 6e 77 69 6e 25 20 80 | 20 75 6e 69 6f 6e 25 21 |inwin% .| union%!|
|000010f0| 31 36 3d 33 20 80 20 75 | 6e 69 6f 6e 25 21 38 3d |16=3 . u|nion%!8=|
|00001100| 34 20 8c 20 6d 65 6e 75 | 75 70 25 3d 66 6f 6e 74 |4 . menu|up%=font|
|00001110| 6d 65 6e 75 25 3a c8 99 | 22 57 69 6d 70 5f 43 72 |menu%:..|"Wimp_Cr|
|00001120| 65 61 74 65 4d 65 6e 75 | 22 2c 30 2c 66 6f 6e 74 |eateMenu|",0,font|
|00001130| 6d 65 6e 75 25 2c 75 6e | 69 6f 6e 25 21 30 2d 36 |menu%,un|ion%!0-6|
|00001140| 34 2c 75 6e 69 6f 6e 25 | 21 34 2b 31 36 3a e1 0d |4,union%|!4+16:..|
|00001150| 05 dc 92 e7 20 75 6e 69 | 6f 6e 25 21 38 3c 3e 32 |.... uni|on%!8<>2|
|00001160| 20 80 20 75 6e 69 6f 6e | 25 21 31 32 3d 2d 32 20 | . union|%!12=-2 |
|00001170| 80 20 75 6e 69 6f 6e 25 | 21 31 36 3d 62 61 72 69 |. union%|!16=bari|
|00001180| 63 6f 6e 25 20 8c 20 75 | 6e 69 6f 6e 25 21 30 3d |con% . u|nion%!0=|
|00001190| 6d 61 69 6e 77 69 6e 25 | 3a c8 99 22 57 69 6d 70 |mainwin%|:.."Wimp|
|000011a0| 5f 47 65 74 57 69 6e 64 | 6f 77 53 74 61 74 65 22 |_GetWind|owState"|
|000011b0| 2c 2c 75 6e 69 6f 6e 25 | 3a 75 6e 69 6f 6e 25 21 |,,union%|:union%!|
|000011c0| 32 38 3d 2d 31 3a c8 99 | 22 57 69 6d 70 5f 4f 70 |28=-1:..|"Wimp_Op|
|000011d0| 65 6e 57 69 6e 64 6f 77 | 22 2c 2c 75 6e 69 6f 6e |enWindow|",,union|
|000011e0| 25 0d 05 e6 05 e1 0d 05 | f0 04 0d 05 fa 17 dd f2 |%.......|........|
|000011f0| 63 68 61 6e 67 65 66 6f | 6e 74 28 66 6f 6e 74 24 |changefo|nt(font$|
|00001200| 29 0d 06 04 25 e7 20 66 | 6f 6e 74 75 70 25 3d a3 |)...%. f|ontup%=.|
|00001210| 20 8c 20 f2 66 69 72 73 | 74 66 6f 6e 74 28 66 6f | . .firs|tfont(fo|
|00001220| 6e 74 24 29 3a e1 0d 06 | 0e 15 75 6e 69 6f 6e 25 |nt$):...|..union%|
|00001230| 21 30 3d 6d 61 69 6e 77 | 69 6e 25 0d 06 18 0e 75 |!0=mainw|in%....u|
|00001240| 6e 69 6f 6e 25 21 34 3d | 30 0d 06 22 21 c8 99 22 |nion%!4=|0.."!.."|
|00001250| 57 69 6d 70 5f 47 65 74 | 49 63 6f 6e 53 74 61 74 |Wimp_Get|IconStat|
|00001260| 65 22 2c 2c 75 6e 69 6f | 6e 25 0d 06 2c 1e 66 6f |e",,unio|n%..,.fo|
|00001270| 6e 74 25 3d 28 75 6e 69 | 6f 6e 25 21 32 34 3e 3e |nt%=(uni|on%!24>>|
|00001280| 32 34 29 80 20 32 35 35 | 0d 06 36 2e c8 99 22 46 |24). 255|..6..."F|
|00001290| 6f 6e 74 5f 4c 6f 73 65 | 46 6f 6e 74 22 2c 66 6f |ont_Lose|Font",fo|
|000012a0| 6e 74 25 3a 66 6f 6e 74 | 62 75 66 66 25 3f 66 6f |nt%:font|buff%?fo|
|000012b0| 6e 74 25 2d 3d 31 0d 06 | 40 0e 75 6e 69 6f 6e 25 |nt%-=1..|@.union%|
|000012c0| 21 34 3d 31 0d 06 4a 21 | c8 99 22 57 69 6d 70 5f |!4=1..J!|.."Wimp_|
|000012d0| 47 65 74 49 63 6f 6e 53 | 74 61 74 65 22 2c 2c 75 |GetIconS|tate",,u|
|000012e0| 6e 69 6f 6e 25 0d 06 54 | 1a 66 73 25 3d bb 28 24 |nion%..T|.fs%=.($|
|000012f0| 28 75 6e 69 6f 6e 25 21 | 32 38 29 29 2a 31 36 0d |(union%!|28))*16.|
|00001300| 06 5e 0e 75 6e 69 6f 6e | 25 21 34 3d 33 0d 06 68 |.^.union|%!4=3..h|
|00001310| 21 c8 99 22 57 69 6d 70 | 5f 47 65 74 49 63 6f 6e |!.."Wimp|_GetIcon|
|00001320| 53 74 61 74 65 22 2c 2c | 75 6e 69 6f 6e 25 0d 06 |State",,|union%..|
|00001330| 72 16 24 28 75 6e 69 6f | 6e 25 21 32 38 29 3d 66 |r.$(unio|n%!28)=f|
|00001340| 6f 6e 74 24 0d 06 7c 0f | 75 6e 69 6f 6e 25 21 31 |ont$..|.|union%!1|
|00001350| 32 3d 30 0d 06 86 0e 75 | 6e 69 6f 6e 25 21 38 3d |2=0....u|nion%!8=|
|00001360| 30 0d 06 90 21 c8 99 22 | 57 69 6d 70 5f 53 65 74 |0...!.."|Wimp_Set|
|00001370| 49 63 6f 6e 53 74 61 74 | 65 22 2c 2c 75 6e 69 6f |IconStat|e",,unio|
|00001380| 6e 25 0d 06 9a 30 c8 99 | 22 46 6f 6e 74 5f 46 69 |n%...0..|"Font_Fi|
|00001390| 6e 64 46 6f 6e 74 22 2c | 2c 66 6f 6e 74 24 2c 66 |ndFont",|,font$,f|
|000013a0| 73 25 2c 66 73 25 2c 30 | 2c 30 20 b8 20 66 6f 6e |s%,fs%,0|,0 . fon|
|000013b0| 74 25 0d 06 a4 16 66 6f | 6e 74 62 75 66 66 25 3f |t%....fo|ntbuff%?|
|000013c0| 66 6f 6e 74 25 2b 3d 31 | 0d 06 ae 0e 75 6e 69 6f |font%+=1|....unio|
|000013d0| 6e 25 21 34 3d 30 0d 06 | b8 1a 75 6e 69 6f 6e 25 |n%!4=0..|..union%|
|000013e0| 21 31 32 3d 32 35 35 3c | 3c 32 34 20 84 20 36 34 |!12=255<|<24 . 64|
|000013f0| 0d 06 c2 1b 75 6e 69 6f | 6e 25 21 38 3d 66 6f 6e |....unio|n%!8=fon|
|00001400| 74 25 3c 3c 32 34 20 84 | 20 36 34 0d 06 cc 21 c8 |t%<<24 .| 64...!.|
|00001410| 99 22 57 69 6d 70 5f 53 | 65 74 49 63 6f 6e 53 74 |."Wimp_S|etIconSt|
|00001420| 61 74 65 22 2c 2c 75 6e | 69 6f 6e 25 0d 06 d6 0d |ate",,un|ion%....|
|00001430| 66 6f 6e 74 75 70 25 3d | b9 0d 06 e0 05 e1 0d 06 |fontup%=|........|
|00001440| ea 04 0d 06 f4 16 dd f2 | 66 69 72 73 74 66 6f 6e |........|firstfon|
|00001450| 74 28 66 6f 6e 74 24 29 | 0d 06 fe 15 75 6e 69 6f |t(font$)|....unio|
|00001460| 6e 25 21 30 3d 6d 61 69 | 6e 77 69 6e 25 0d 07 08 |n%!0=mai|nwin%...|
|00001470| 0e 75 6e 69 6f 6e 25 21 | 34 3d 31 0d 07 12 21 c8 |.union%!|4=1...!.|
|00001480| 99 22 57 69 6d 70 5f 47 | 65 74 49 63 6f 6e 53 74 |."Wimp_G|etIconSt|
|00001490| 61 74 65 22 2c 2c 75 6e | 69 6f 6e 25 0d 07 1c 1a |ate",,un|ion%....|
|000014a0| 66 73 25 3d bb 28 24 28 | 75 6e 69 6f 6e 25 21 32 |fs%=.($(|union%!2|
|000014b0| 38 29 29 2a 31 36 0d 07 | 26 0e 75 6e 69 6f 6e 25 |8))*16..|&.union%|
|000014c0| 21 34 3d 33 0d 07 30 21 | c8 99 22 57 69 6d 70 5f |!4=3..0!|.."Wimp_|
|000014d0| 47 65 74 49 63 6f 6e 53 | 74 61 74 65 22 2c 2c 75 |GetIconS|tate",,u|
|000014e0| 6e 69 6f 6e 25 0d 07 3a | 16 24 28 75 6e 69 6f 6e |nion%..:|.$(union|
|000014f0| 25 21 32 38 29 3d 66 6f | 6e 74 24 0d 07 44 0f 75 |%!28)=fo|nt$..D.u|
|00001500| 6e 69 6f 6e 25 21 31 32 | 3d 30 0d 07 4e 0e 75 6e |nion%!12|=0..N.un|
|00001510| 69 6f 6e 25 21 38 3d 30 | 0d 07 58 21 c8 99 22 57 |ion%!8=0|..X!.."W|
|00001520| 69 6d 70 5f 53 65 74 49 | 63 6f 6e 53 74 61 74 65 |imp_SetI|conState|
|00001530| 22 2c 2c 75 6e 69 6f 6e | 25 0d 07 62 30 c8 99 22 |",,union|%..b0.."|
|00001540| 46 6f 6e 74 5f 46 69 6e | 64 46 6f 6e 74 22 2c 2c |Font_Fin|dFont",,|
|00001550| 66 6f 6e 74 24 2c 66 73 | 25 2c 66 73 25 2c 30 2c |font$,fs|%,fs%,0,|
|00001560| 30 20 b8 20 66 6f 6e 74 | 25 0d 07 6c 16 66 6f 6e |0 . font|%..l.fon|
|00001570| 74 62 75 66 66 25 3f 66 | 6f 6e 74 25 2b 3d 31 0d |tbuff%?f|ont%+=1.|
|00001580| 07 76 0e 75 6e 69 6f 6e | 25 21 34 3d 30 0d 07 80 |.v.union|%!4=0...|
|00001590| 1a 75 6e 69 6f 6e 25 21 | 31 32 3d 32 35 35 3c 3c |.union%!|12=255<<|
|000015a0| 32 34 20 84 20 36 34 0d | 07 8a 1b 75 6e 69 6f 6e |24 . 64.|...union|
|000015b0| 25 21 38 3d 66 6f 6e 74 | 25 3c 3c 32 34 20 84 20 |%!8=font|%<<24 . |
|000015c0| 36 34 0d 07 94 21 c8 99 | 22 57 69 6d 70 5f 53 65 |64...!..|"Wimp_Se|
|000015d0| 74 49 63 6f 6e 53 74 61 | 74 65 22 2c 2c 75 6e 69 |tIconSta|te",,uni|
|000015e0| 6f 6e 25 0d 07 9e 0d 66 | 6f 6e 74 75 70 25 3d b9 |on%....f|ontup%=.|
|000015f0| 0d 07 a8 05 e1 0d 07 b2 | 04 0d 07 bc 16 dd f2 6b |........|.......k|
|00001600| 65 79 70 72 65 73 73 28 | 75 6e 69 6f 6e 25 29 0d |eypress(|union%).|
|00001610| 07 c6 14 e7 20 75 6e 69 | 6f 6e 25 21 32 34 3d 31 |.... uni|on%!24=1|
|00001620| 33 20 8c 0d 07 d0 11 c8 | 8e 20 75 6e 69 6f 6e 25 |3 ......|. union%|
|00001630| 21 30 20 ca 0d 07 da 0e | c9 20 6d 61 69 6e 77 69 |!0 .....|. mainwi|
|00001640| 6e 25 0d 07 e4 16 f2 63 | 68 61 6e 67 65 66 6f 6e |n%.....c|hangefon|
|00001650| 74 28 66 6f 6e 74 24 29 | 0d 07 ee 05 7f 0d 07 f8 |t(font$)|........|
|00001660| 21 c8 99 22 57 69 6d 70 | 5f 50 72 6f 63 65 73 73 |!.."Wimp|_Process|
|00001670| 4b 65 79 22 2c 75 6e 69 | 6f 6e 25 21 32 34 0d 08 |Key",uni|on%!24..|
|00001680| 02 05 cb 0d 08 0c 05 cc | 0d 08 16 21 c8 99 22 57 |........|...!.."W|
|00001690| 69 6d 70 5f 50 72 6f 63 | 65 73 73 4b 65 79 22 2c |imp_Proc|essKey",|
|000016a0| 75 6e 69 6f 6e 25 21 32 | 34 0d 08 20 05 cd 0d 08 |union%!2|4.. ....|
|000016b0| 2a 05 e1 0d 08 34 04 0d | 08 3e 15 dd f2 6d 65 73 |*....4..|.>...mes|
|000016c0| 73 61 67 65 28 75 6e 69 | 6f 6e 25 29 0d 08 48 1c |sage(uni|on%)..H.|
|000016d0| e7 20 75 6e 69 6f 6e 25 | 21 31 36 3d 30 20 8c 20 |. union%|!16=0 . |
|000016e0| 65 6e 64 25 3d b9 3a e1 | 0d 08 52 53 e7 20 75 6e |end%=.:.|..RS. un|
|000016f0| 69 6f 6e 25 21 31 36 3d | 26 34 30 30 43 30 20 8c |ion%!16=|&400C0 .|
|00001700| 20 c8 99 20 22 57 69 6d | 70 5f 43 72 65 61 74 65 | .. "Wim|p_Create|
|00001710| 53 75 62 4d 65 6e 75 22 | 2c 2c a4 66 6f 6e 74 6d |SubMenu"|,,.fontm|
|00001720| 65 6e 75 5f 70 74 72 2c | 75 6e 69 6f 6e 25 21 32 |enu_ptr,|union%!2|
|00001730| 34 2c 75 6e 69 6f 6e 25 | 21 32 38 0d 08 5c 04 0d |4,union%|!28..\..|
|00001740| 08 66 16 e7 20 75 6e 69 | 6f 6e 25 21 31 36 3d 26 |.f.. uni|on%!16=&|
|00001750| 35 30 32 20 8c 0d 08 70 | cc 24 28 75 6e 69 6f 6e |502 ...p|.$(union|
|00001760| 25 2b 32 30 29 3d 22 54 | 68 69 73 20 69 73 20 4b |%+20)="T|his is K|
|00001770| 65 79 43 61 70 73 2e 7c | 6d 45 64 69 74 20 74 68 |eyCaps.||mEdit th|
|00001780| 65 20 74 65 78 74 20 69 | 6e 20 74 68 65 20 77 68 |e text i|n the wh|
|00001790| 69 74 65 20 62 6f 78 2c | 20 73 70 65 63 69 66 79 |ite box,| specify|
|000017a0| 20 61 20 70 6f 69 6e 74 | 20 73 69 7a 65 20 69 6e | a point| size in|
|000017b0| 20 74 68 65 20 6c 69 74 | 74 6c 65 20 77 68 69 74 | the lit|tle whit|
|000017c0| 65 20 62 6f 78 2c 20 6f | 72 20 73 65 6c 65 63 74 |e box, o|r select|
|000017d0| 20 61 20 66 6f 6e 74 20 | 66 72 6f 6d 20 74 68 65 | a font |from the|
|000017e0| 20 6d 65 6e 75 2e 7c 6d | 43 6c 69 63 6b 20 6f 6e | menu.|m|Click on|
|000017f0| 20 74 68 65 20 69 63 6f | 6e 20 6f 6e 20 74 68 65 | the ico|n on the|
|00001800| 20 69 63 6f 6e 62 61 72 | 20 66 6f 72 20 74 68 65 | iconbar| for the|
|00001810| 20 6d 61 69 6e 20 77 69 | 6e 64 6f 77 2e 22 2b bd | main wi|ndow."+.|
|00001820| 30 0d 08 7a 34 75 6e 69 | 6f 6e 25 21 30 3d 2d a9 |0..z4uni|on%!0=-.|
|00001830| 28 24 28 75 6e 69 6f 6e | 25 2b 32 30 29 29 83 20 |($(union|%+20)). |
|00001840| 34 20 2b 32 38 2b a9 28 | 24 28 75 6e 69 6f 6e 25 |4 +28+.(|$(union%|
|00001850| 2b 32 30 29 29 0d 08 84 | 12 75 6e 69 6f 6e 25 21 |+20))...|.union%!|
|00001860| 31 36 3d 26 35 30 33 0d | 08 8e 16 75 6e 69 6f 6e |16=&503.|...union|
|00001870| 25 21 31 32 3d 75 6e 69 | 6f 6e 25 21 38 0d 08 98 |%!12=uni|on%!8...|
|00001880| 2b c8 99 22 57 69 6d 70 | 5f 53 65 6e 64 4d 65 73 |+.."Wimp|_SendMes|
|00001890| 73 61 67 65 22 2c 31 37 | 2c 75 6e 69 6f 6e 25 2c |sage",17|,union%,|
|000018a0| 75 6e 69 6f 6e 25 21 34 | 0d 08 a2 05 cd 0d 08 ac |union%!4|........|
|000018b0| 05 e1 0d 08 b6 04 0d 08 | c0 15 dd f2 65 72 72 28 |........|....err(|
|000018c0| 66 6f 72 63 65 71 75 69 | 74 25 29 0d 08 ca 06 ef |forcequi|t%).....|
|000018d0| 35 0d 08 d4 0e 52 24 3d | f6 24 2b c3 28 9e 29 0d |5....R$=|.$+.(.).|
|000018e0| 08 de 0e 75 6e 69 6f 6e | 25 21 30 3d 9f 0d 08 e8 |...union|%!0=....|
|000018f0| 15 24 28 75 6e 69 6f 6e | 25 2b 34 29 3d 52 24 2b |.$(union|%+4)=R$+|
|00001900| bd 30 0d 08 f2 08 66 25 | 3d 31 0d 08 fc 34 c8 99 |.0....f%|=1...4..|
|00001910| 22 57 69 6d 70 5f 52 65 | 70 6f 72 74 45 72 72 6f |"Wimp_Re|portErro|
|00001920| 72 22 2c 75 6e 69 6f 6e | 25 2c 66 25 2c 22 4b 65 |r",union|%,f%,"Ke|
|00001930| 79 43 61 70 73 22 20 b8 | 20 2c 61 6e 73 25 0d 09 |yCaps" .| ,ans%..|
|00001940| 06 16 e7 20 a6 28 2d 31 | 30 36 29 20 8c 20 61 6e |... .(-1|06) . an|
|00001950| 73 25 3d 32 0d 09 10 44 | e7 20 61 6e 73 25 3d 32 |s%=2...D|. ans%=2|
|00001960| 20 8c 20 c8 99 22 57 69 | 6d 70 5f 43 6c 6f 73 65 | . .."Wi|mp_Close|
|00001970| 44 6f 77 6e 22 3a f6 3a | f1 22 20 40 22 3b 9e 3a |Down":.:|." @";.:|
|00001980| c8 99 20 22 58 46 6f 6e | 74 4d 65 6e 75 5f 52 65 |.. "XFon|tMenu_Re|
|00001990| 6c 65 61 73 65 22 3a e0 | 0d 09 1a 3e e7 20 66 6f |lease":.|...>. fo|
|000019a0| 72 63 65 71 75 69 74 25 | 20 8c 20 c8 99 22 57 69 |rcequit%| . .."Wi|
|000019b0| 6d 70 5f 43 6c 6f 73 65 | 44 6f 77 6e 22 3a c8 99 |mp_Close|Down":..|
|000019c0| 20 22 58 46 6f 6e 74 4d | 65 6e 75 5f 52 65 6c 65 | "XFontM|enu_Rele|
|000019d0| 61 73 65 22 3a e0 0d 09 | 24 05 e1 0d 09 2e 04 0d |ase":...|$.......|
|000019e0| 09 38 0e dd f2 69 63 6f | 6e 5f 62 61 72 0d 09 42 |.8...ico|n_bar..B|
|000019f0| 0b de 20 62 25 20 34 30 | 0d 09 4c 0a 21 62 25 3d |.. b% 40|..L.!b%=|
|00001a00| 2d 31 0d 09 56 0a 62 25 | 21 34 3d 30 0d 09 60 0a |-1..V.b%|!4=0..`.|
|00001a10| 62 25 21 38 3d 30 0d 09 | 6a 0c 62 25 21 31 32 3d |b%!8=0..|j.b%!12=|
|00001a20| 38 30 0d 09 74 0c 62 25 | 21 31 36 3d 38 34 0d 09 |80..t.b%|!16=84..|
|00001a30| 7e 20 62 25 21 32 30 3d | 28 31 3c 3c 31 29 2b 28 |~ b%!20=|(1<<1)+(|
|00001a40| 33 3c 3c 31 32 29 2b 28 | 31 3c 3c 32 38 29 0d 09 |3<<12)+(|1<<28)..|
|00001a50| 88 17 24 28 62 25 2b 32 | 34 29 3d 22 21 6b 65 79 |..$(b%+2|4)="!key|
|00001a60| 63 61 70 73 22 0d 09 92 | 27 c8 99 22 57 69 6d 70 |caps"...|'.."Wimp|
|00001a70| 5f 43 72 65 61 74 65 49 | 63 6f 6e 22 2c 30 2c 62 |_CreateI|con",0,b|
|00001a80| 25 20 b8 20 62 61 72 69 | 63 6f 6e 25 0d 09 9c 05 |% . bari|con%....|
|00001a90| e1 0d 09 a6 04 0d 09 b0 | 0f dd f2 74 65 6d 70 6c |........|...templ|
|00001aa0| 61 74 65 73 0d 09 ba 35 | c8 99 22 57 69 6d 70 5f |ates...5|.."Wimp_|
|00001ab0| 4f 70 65 6e 54 65 6d 70 | 6c 61 74 65 22 2c 30 2c |OpenTemp|late",0,|
|00001ac0| 22 3c 4b 65 79 43 61 70 | 73 24 44 69 72 3e 2e 54 |"<KeyCap|s$Dir>.T|
|00001ad0| 65 6d 70 6c 61 74 65 73 | 22 0d 09 c4 4a c8 99 22 |emplates|"...J.."|
|00001ae0| 57 69 6d 70 5f 4c 6f 61 | 64 54 65 6d 70 6c 61 74 |Wimp_Loa|dTemplat|
|00001af0| 65 22 2c 2c 75 6e 69 6f | 6e 25 2c 69 62 25 2c 62 |e",,unio|n%,ib%,b|
|00001b00| 69 62 25 2b 69 62 6c 25 | 2c 66 6f 6e 74 62 75 66 |ib%+ibl%|,fontbuf|
|00001b10| 66 25 2c 22 69 6e 66 6f | 22 2c 30 20 b8 20 2c 2c |f%,"info|",0 . ,,|
|00001b20| 69 62 25 0d 09 ce 2d c8 | 99 22 57 69 6d 70 5f 43 |ib%...-.|."Wimp_C|
|00001b30| 72 65 61 74 65 57 69 6e | 64 6f 77 22 2c 30 2c 75 |reateWin|dow",0,u|
|00001b40| 6e 69 6f 6e 25 20 b8 20 | 69 6e 66 6f 77 69 6e 25 |nion% . |infowin%|
|00001b50| 0d 09 d8 4a c8 99 22 57 | 69 6d 70 5f 4c 6f 61 64 |...J.."W|imp_Load|
|00001b60| 54 65 6d 70 6c 61 74 65 | 22 2c 2c 75 6e 69 6f 6e |Template|",,union|
|00001b70| 25 2c 69 62 25 2c 62 69 | 62 25 2b 69 62 6c 25 2c |%,ib%,bi|b%+ibl%,|
|00001b80| 66 6f 6e 74 62 75 66 66 | 25 2c 22 6d 61 69 6e 22 |fontbuff|%,"main"|
|00001b90| 2c 30 20 b8 20 2c 2c 69 | 62 25 0d 09 e2 2d c8 99 |,0 . ,,i|b%...-..|
|00001ba0| 22 57 69 6d 70 5f 43 72 | 65 61 74 65 57 69 6e 64 |"Wimp_Cr|eateWind|
|00001bb0| 6f 77 22 2c 30 2c 75 6e | 69 6f 6e 25 20 b8 20 6d |ow",0,un|ion% . m|
|00001bc0| 61 69 6e 77 69 6e 25 0d | 09 ec 1a c8 99 22 57 69 |ainwin%.|....."Wi|
|00001bd0| 6d 70 5f 43 6c 6f 73 65 | 54 65 6d 70 6c 61 74 65 |mp_Close|Template|
|00001be0| 22 0d 09 f6 05 e1 0d 0a | 00 04 0d 0a 0a 0d dd f2 |".......|........|
|00001bf0| 76 65 72 73 69 6f 6e 0d | 0a 14 15 75 6e 69 6f 6e |version.|...union|
|00001c00| 25 21 30 3d 69 6e 66 6f | 77 69 6e 25 0d 0a 1e 0e |%!0=info|win%....|
|00001c10| 75 6e 69 6f 6e 25 21 34 | 3d 34 0d 0a 28 21 c8 99 |union%!4|=4..(!..|
|00001c20| 22 57 69 6d 70 5f 47 65 | 74 49 63 6f 6e 53 74 61 |"Wimp_Ge|tIconSta|
|00001c30| 74 65 22 2c 2c 75 6e 69 | 6f 6e 25 0d 0a 32 19 24 |te",,uni|on%..2.$|
|00001c40| 28 75 6e 69 6f 6e 25 21 | 32 38 29 3d 76 65 72 73 |(union%!|28)=vers|
|00001c50| 69 6f 6e 24 0d 0a 3c 05 | e1 0d 0a 46 05 3a 0d 0a |ion$..<.|...F.:..|
|00001c60| 50 20 dd 20 a4 47 65 74 | 53 74 72 28 73 25 29 20 |P . .Get|Str(s%) |
|00001c70| 3a 20 f4 20 67 65 74 20 | 73 74 72 69 6e 67 0d 0a |: . get |string..|
|00001c80| 5a 08 ea 20 6e 24 0d 0a | 64 1f c8 95 28 3f 73 25 |Z.. n$..|d...(?s%|
|00001c90| 29 3e 33 30 3a 6e 24 2b | 3d bd 3f 73 25 3a 73 25 |)>30:n$+|=.?s%:s%|
|00001ca0| 2b 3d 31 3a ce 0d 0a 6e | 07 3d 6e 24 0d 0a 78 05 |+=1:...n|.=n$..x.|
|00001cb0| 3a 0d 0a 82 12 dd a4 66 | 6f 6e 74 6d 65 6e 75 5f |:......f|ontmenu_|
|00001cc0| 70 74 72 0d 0a 8c 11 ea | 20 66 25 2c 6d 25 2c 61 |ptr.....| f%,m%,a|
|00001cd0| 25 2c 72 25 0d 0a 96 2d | c8 99 20 22 58 46 6f 6e |%,r%...-|.. "XFon|
|00001ce0| 74 4d 65 6e 75 5f 53 65 | 6c 65 63 74 22 2c 66 6f |tMenu_Se|lect",fo|
|00001cf0| 6e 74 24 2c 30 20 b8 20 | 2c 6d 25 2c 61 25 3b 66 |nt$,0 . |,m%,a%;f|
|00001d00| 25 0d 0a a0 11 e7 20 28 | 66 25 80 31 29 3c 3e 30 |%..... (|f%.1)<>0|
|00001d10| 20 8c 0d 0a aa 0b 20 20 | 72 25 3d 2d 31 0d 0a b4 | ..... |r%=-1...|
|00001d20| 05 cc 0d 0a be 1e 20 20 | e7 20 61 6c 69 61 73 25 |...... |. alias%|
|00001d30| 20 8c 20 72 25 3d 61 25 | 20 8b 20 72 25 3d 6d 25 | . r%=a%| . r%=m%|
|00001d40| 0d 0a c8 05 cd 0d 0a d2 | 07 3d 72 25 0d ff 46 69 |........|.=r%..Fi|
|00001d50| 6c 65 44 61 74 61 82 21 | 53 70 72 69 74 65 73 00 |leData.!|Sprites.|
|00001d60| f3 ff e8 03 00 00 42 f9 | ff ff ba c4 86 78 03 00 |......B.|.....x..|
|00001d70| 07 ac 01 00 00 00 10 00 | 00 00 ec 03 00 00 dc 03 |........|........|
|00001d80| 00 00 21 6b 65 79 63 61 | 70 73 00 00 00 00 05 00 |..!keyca|ps......|
|00001d90| 00 00 10 00 00 00 00 00 | 00 00 1b 00 00 00 ac 00 |........|........|
|00001da0| 00 00 44 02 00 00 0c 00 | 00 00 00 ff ff ff 00 ff |..D.....|........|
|00001db0| ff ff 00 dd dd dd 00 dd | dd dd 00 bb bb bb 00 bb |........|........|
|00001dc0| bb bb 00 99 99 99 00 99 | 99 99 00 77 77 77 00 77 |........|...www.w|
|00001dd0| 77 77 00 55 55 55 00 55 | 55 55 00 33 33 33 00 33 |ww.UUU.U|UU.333.3|
|00001de0| 33 33 00 00 00 00 00 00 | 00 00 00 00 44 99 00 00 |33......|....D...|
|00001df0| 44 99 00 ee ee 00 00 ee | ee 00 00 00 cc 00 00 00 |D.......|........|
|00001e00| cc 00 00 dd 00 00 00 dd | 00 00 00 ee ee bb 00 ee |........|........|
|00001e10| ee bb 00 55 88 00 00 55 | 88 00 00 ff bb 00 00 ff |...U...U|........|
|00001e20| bb 00 00 00 bb ff 00 00 | bb ff 00 00 00 00 00 00 |........|........|
|00001e30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e40| 00 40 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.@......|........|
|00001e50| 00 00 00 00 00 00 00 00 | 00 40 00 00 00 42 55 55 |........|.@...BUU|
|00001e60| 55 55 55 55 55 55 45 01 | 00 00 10 53 45 66 35 01 |UUUUUUE.|...SEf5.|
|00001e70| 00 40 00 00 00 00 72 77 | 77 26 11 11 52 77 57 01 |.@....rw|w&..RwW.|
|00001e80| 00 00 75 57 00 40 77 67 | 00 40 00 00 00 00 73 77 |..uW.@wg|.@....sw|
|00001e90| 77 02 00 00 00 72 27 00 | 00 30 77 77 01 30 77 77 |w....r'.|.0ww.0ww|
|00001ea0| 03 40 00 00 00 10 76 77 | 47 00 cc cc cc 5c c5 cc |.@....vw|G....\..|
|00001eb0| cc 1c 74 56 00 50 77 77 | 02 40 00 00 00 40 77 77 |..tV.Pww|.@...@ww|
|00001ec0| 17 00 cc 4c 93 99 99 99 | 99 c9 0c 00 10 75 77 57 |...L....|.....uwW|
|00001ed0| 00 40 00 00 00 71 77 77 | 04 00 1c 74 e2 ee ee ee |.@...qww|...t....|
|00001ee0| 99 c9 0c 00 63 77 57 01 | 00 40 00 00 00 74 77 77 |....cwW.|.@...tww|
|00001ef0| 66 66 77 57 ee be bb ee | 9e c9 0c 51 77 24 00 00 |ffwW....|...Qw$..|
|00001f00| 00 40 00 00 10 77 77 47 | 00 00 74 97 ee bb bb eb |.@...wwG|..t.....|
|00001f10| 9e c9 1c 77 02 00 00 00 | 00 40 00 00 50 77 77 17 |...w....|.@..Pww.|
|00001f20| 00 00 61 96 ee be bb ee | 9e c9 4c 15 00 00 00 00 |..a.....|..L.....|
|00001f30| 00 40 00 00 72 77 77 04 | 00 00 2c 91 e9 ee ee ee |.@..rww.|..,.....|
|00001f40| 99 c9 0c 00 00 00 00 00 | 00 40 00 00 75 77 67 01 |........|.@..uwg.|
|00001f50| 00 00 cc 99 99 99 99 99 | 99 49 45 02 00 00 00 00 |........|.IE.....|
|00001f60| 00 40 00 30 77 77 37 00 | 00 00 cc cc cc cc cc cc |.@.0ww7.|........|
|00001f70| cc 77 77 47 00 00 00 00 | 00 40 30 64 77 77 67 24 |.wwG....|.@0dwwg$|
|00001f80| 00 00 00 00 00 00 00 00 | 00 74 77 25 00 00 00 00 |........|.tw%....|
|00001f90| 00 40 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.@......|........|
|00001fa0| 00 00 11 00 00 00 00 00 | 00 40 00 00 00 00 00 00 |........|.@......|
|00001fb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001fc0| 00 40 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.@......|........|
|00001fd0| 00 00 00 00 00 00 00 00 | 00 f0 00 00 00 00 00 00 |........|........|
|00001fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ff0| 00 f0 00 00 00 ff ff ff | ff ff ff ff ff ff ff 0f |........|........|
|00002000| 00 00 f0 ff ff ff ff 0f | 00 f0 00 00 00 00 ff ff |........|........|
|00002010| ff ff ff ff ff ff ff 0f | 00 00 ff ff 00 f0 ff ff |........|........|
|00002020| 00 f0 00 00 00 00 ff ff | ff ff ff ff ff ff ff ff |........|........|
|00002030| ff ff ff ff 0f f0 ff ff | 0f f0 00 00 00 f0 ff ff |........|........|
|00002040| ff ff ff ff ff ff ff ff | ff ff ff ff 00 f0 ff ff |........|........|
|00002050| 0f f0 00 00 00 f0 ff ff | ff ff ff ff ff ff ff ff |........|........|
|00002060| ff ff ff 0f f0 ff ff ff | 00 f0 00 00 00 ff ff ff |........|........|
|00002070| 0f ff ff ff ff ff ff ff | ff ff ff 0f ff ff ff 0f |........|........|
|00002080| 00 f0 00 00 00 ff ff ff | ff ff ff ff ff ff ff ff |........|........|
|00002090| ff ff ff ff ff ff 00 00 | 00 f0 00 00 f0 ff ff ff |........|........|
|000020a0| 00 ff ff ff ff ff ff ff | ff ff ff ff 0f 00 00 00 |........|........|
|000020b0| 00 f0 00 00 f0 ff ff ff | 00 ff ff ff ff ff ff ff |........|........|
|000020c0| ff ff ff ff 00 00 00 00 | 00 f0 00 00 ff ff ff 0f |........|........|
|000020d0| 00 ff ff ff ff ff ff ff | ff ff ff 0f 00 00 00 00 |........|........|
|000020e0| 00 f0 00 00 ff ff ff 0f | 00 ff ff ff ff ff ff ff |........|........|
|000020f0| ff ff ff 0f 00 00 00 00 | 00 f0 00 f0 ff ff ff 00 |........|........|
|00002100| 00 ff ff ff ff ff ff ff | ff ff ff ff 00 00 00 00 |........|........|
|00002110| 00 f0 f0 ff ff ff ff ff | 00 ff ff ff ff ff ff ff |........|........|
|00002120| ff ff ff ff 00 00 00 00 | 00 f0 00 00 00 00 00 00 |........|........|
|00002130| 00 00 00 00 00 00 00 00 | 00 00 ff 00 00 00 00 00 |........|........|
|00002140| 00 f0 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002150| 00 00 00 00 00 00 00 00 | 00 f0 46 69 6c 65 44 61 |........|..FileDa|
|00002160| 74 61 82 46 6e 74 4d 65 | 6e 75 44 6f 63 00 54 40 |ta.FntMe|nuDoc.T@|
|00002170| 00 00 42 ff ff ff 21 8e | f5 d9 03 00 db 8a 0a 0a |..B...!.|........|
|00002180| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 44 | | D|
|00002190| 6f 63 75 6d 65 6e 74 61 | 74 69 6f 6e 20 66 6f 72 |ocumenta|tion for|
|000021a0| 20 74 68 65 20 46 6f 6e | 74 4d 65 6e 75 20 6d 6f | the Fon|tMenu mo|
|000021b0| 64 75 6c 65 20 76 2e 31 | 2e 31 36 0a 0a 20 20 20 |dule v.1|.16.. |
|000021c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000021d0| 20 20 20 20 20 20 20 20 | 20 20 a9 20 4a 2e 52 d6 | | . J.R.|
|000021e0| 6c 69 6e 67 20 31 39 39 | 30 0a 20 20 20 20 20 20 |ling 199|0. |
|000021f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002200| 20 20 0a 0a 0a 20 20 20 | 20 20 20 20 20 20 20 20 | ... | |
|00002210| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002220| 20 20 20 20 20 20 20 0a | 20 20 20 20 20 20 20 20 | .| |
|00002230| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002240| 20 20 20 20 20 20 20 20 | 20 57 41 52 4e 49 4e 47 | | WARNING|
|00002250| 0a 0a 20 54 68 65 20 53 | 57 49 20 49 20 75 73 65 |.. The S|WI I use|
|00002260| 20 69 73 20 4e 4f 54 20 | 6f 66 66 69 63 69 61 6c | is NOT |official|
|00002270| 20 61 6c 6c 6f 63 61 74 | 65 64 20 62 79 20 41 43 | allocat|ed by AC|
|00002280| 4f 52 4e 2e 20 49 20 64 | 69 64 20 74 72 79 20 74 |ORN. I d|id try t|
|00002290| 6f 20 67 65 74 20 6f 6e | 65 2c 20 62 75 74 0a 74 |o get on|e, but.t|
|000022a0| 68 65 79 20 72 65 66 75 | 73 65 64 2e 20 20 57 68 |hey refu|sed. Wh|
|000022b0| 79 2c 20 49 20 64 6f 6e | 27 74 20 6b 6e 6f 77 2e |y, I don|'t know.|
|000022c0| 20 50 72 6f 62 61 62 6c | 79 20 62 65 63 61 75 73 | Probabl|y becaus|
|000022d0| 65 20 49 20 68 61 76 65 | 20 6e 6f 20 49 53 56 20 |e I have| no ISV |
|000022e0| 73 74 61 74 75 73 2c 20 | 61 6e 64 0a 49 20 64 69 |status, |and.I di|
|000022f0| 64 20 74 68 65 20 77 6f | 72 6b 20 6f 6e 20 46 6f |d the wo|rk on Fo|
|00002300| 6e 74 4d 65 6e 75 20 6e | 6f 74 20 6f 6e 20 62 65 |ntMenu n|ot on be|
|00002310| 68 61 6c 66 20 6f 66 20 | 6f 6e 65 20 63 6f 6d 70 |half of |one comp|
|00002320| 61 6e 79 20 69 6e 20 70 | 61 72 74 69 63 75 6c 61 |any in p|articula|
|00002330| 72 2e 20 49 20 64 69 64 | 0a 64 69 73 63 6f 76 65 |r. I did|.discove|
|00002340| 72 20 74 68 6f 75 67 68 | 20 74 68 61 74 20 74 68 |r though| that th|
|00002350| 65 72 65 20 61 72 65 20 | 61 20 6c 6f 74 20 6f 66 |ere are |a lot of|
|00002360| 20 70 65 6f 70 6c 65 20 | 69 6e 74 65 72 72 65 73 | people |interres|
|00002370| 74 65 64 2c 20 61 6e 64 | 20 49 20 75 6e 64 65 73 |ted, and| I undes|
|00002380| 74 61 6e 64 0a 74 68 61 | 74 20 73 6f 6d 65 20 6f |tand.tha|t some o|
|00002390| 66 20 74 68 65 6d 20 61 | 72 65 20 61 63 74 75 61 |f them a|re actua|
|000023a0| 6c 6c 79 20 69 6d 70 6c | 65 6d 65 6e 74 69 6e 67 |lly impl|ementing|
|000023b0| 20 69 74 20 69 6e 20 74 | 68 65 69 72 20 63 6f 64 | it in t|heir cod|
|000023c0| 65 2e 20 53 6f 20 69 66 | 20 61 6e 79 6f 6e 65 0a |e. So if| anyone.|
|000023d0| 61 74 20 41 43 4f 52 4e | 20 69 73 20 72 65 61 64 |at ACORN| is read|
|000023e0| 69 6e 67 20 74 68 69 73 | 2c 20 70 6c 65 61 73 65 |ing this|, please|
|000023f0| 20 72 65 63 6f 6e 73 69 | 64 65 72 20 6d 79 20 72 | reconsi|der my r|
|00002400| 65 71 75 65 73 74 2e 0a | 0a 0a 0a 0a 2d 2d 2d 2d |equest..|....----|
|00002410| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002420| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002430| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002440| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002450| 2d 2d 2d 2d 2d 2d 2d 2d | 0a 0a 20 20 20 20 20 20 |--------|.. |
|00002460| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002470| 20 20 20 20 20 20 20 20 | 20 49 6e 74 72 6f 64 75 | | Introdu|
|00002480| 63 74 69 6f 6e 0a 0a 20 | 41 73 20 6d 6f 72 65 20 |ction.. |As more |
|00002490| 61 6e 64 20 6d 6f 72 65 | 20 6f 75 74 6c 69 6e 65 |and more| outline|
|000024a0| 64 20 66 6f 6e 74 73 20 | 66 6f 72 20 74 68 65 20 |d fonts |for the |
|000024b0| 41 72 63 68 69 6d 65 64 | 65 73 20 61 72 65 20 62 |Archimed|es are b|
|000024c0| 65 63 6f 6d 69 6e 67 20 | 61 76 61 69 6c 61 62 6c |ecoming |availabl|
|000024d0| 65 2c 0a 61 20 70 72 6f | 62 6c 65 6d 20 61 72 72 |e,.a pro|blem arr|
|000024e0| 69 73 65 73 20 66 6f 72 | 20 61 70 70 6c 69 63 61 |ises for| applica|
|000024f0| 74 69 6f 6e 73 20 61 63 | 63 65 73 73 69 6e 67 20 |tions ac|cessing |
|00002500| 74 68 65 73 65 20 66 6f | 6e 74 73 2e 20 54 68 65 |these fo|nts. The|
|00002510| 20 6e 75 6d 62 65 72 20 | 6f 66 0a 66 6f 6e 74 73 | number |of.fonts|
|00002520| 20 69 73 20 6e 6f 74 20 | 6b 6e 6f 77 6e 20 69 6e | is not |known in|
|00002530| 20 61 64 76 61 6e 63 65 | 2c 20 73 6f 20 74 6f 20 | advance|, so to |
|00002540| 63 72 65 61 74 65 20 61 | 20 66 6f 6e 74 20 6d 65 |create a| font me|
|00002550| 6e 75 20 74 68 65 20 61 | 70 70 6c 69 63 61 74 69 |nu the a|pplicati|
|00002560| 6f 6e 20 68 61 73 0a 74 | 6f 20 66 69 67 75 72 65 |on has.t|o figure|
|00002570| 20 6f 75 74 20 74 68 65 | 20 6e 75 6d 62 65 72 20 | out the| number |
|00002580| 6f 66 20 66 6f 6e 74 73 | 2c 20 63 6c 61 69 6d 20 |of fonts|, claim |
|00002590| 65 6e 6f 75 67 68 20 73 | 70 61 63 65 20 74 6f 20 |enough s|pace to |
|000025a0| 68 6f 6c 64 20 61 20 66 | 6f 6e 74 20 6d 65 6e 75 |hold a f|ont menu|
|000025b0| 2c 0a 61 6e 64 20 63 72 | 65 61 74 65 20 69 74 2e |,.and cr|eate it.|
|000025c0| 20 54 68 69 73 20 63 61 | 6e 20 62 65 20 64 6f 6e | This ca|n be don|
|000025d0| 65 20 69 6e 20 74 68 65 | 20 64 75 6c 6c 20 73 69 |e in the| dull si|
|000025e0| 6e 67 6c 65 20 6c 65 76 | 65 6c 20 28 73 74 72 61 |ngle lev|el (stra|
|000025f0| 69 67 68 74 20 66 6f 72 | 65 77 61 72 64 29 0a 77 |ight for|eward).w|
|00002600| 61 79 2e 20 54 68 69 73 | 20 73 61 76 65 73 20 73 |ay. This| saves s|
|00002610| 6f 6d 65 20 73 70 61 63 | 65 2c 20 61 6e 64 20 63 |ome spac|e, and c|
|00002620| 6f 64 65 20 63 6f 6d 70 | 6c 65 78 65 74 79 2c 20 |ode comp|lexety, |
|00002630| 62 75 74 20 69 74 20 69 | 73 20 6e 6f 74 20 70 72 |but it i|s not pr|
|00002640| 65 66 65 72 65 64 2c 20 | 61 73 0a 74 68 65 20 75 |efered, |as.the u|
|00002650| 73 65 72 20 77 69 6c 6c | 20 62 65 20 70 72 65 73 |ser will| be pres|
|00002660| 65 6e 74 65 64 20 62 79 | 20 61 20 73 6f 6d 65 74 |ented by| a somet|
|00002670| 69 6d 65 73 20 76 65 72 | 79 20 6c 6f 6e 67 20 6d |imes ver|y long m|
|00002680| 65 6e 75 20 63 6f 6e 74 | 61 69 6e 69 6e 67 20 69 |enu cont|aining i|
|00002690| 74 65 6d 73 0a 77 69 74 | 68 20 74 68 65 20 73 61 |tems.wit|h the sa|
|000026a0| 6d 65 20 70 72 65 66 69 | 78 2c 20 65 2e 67 2e 20 |me prefi|x, e.g. |
|000026b0| 0a 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | |
|000026c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 54 | | T|
|000026d0| 72 69 6e 69 74 79 0a 20 | 20 20 20 20 20 20 20 20 |rinity. | |
|000026e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000026f0| 20 20 20 20 54 72 69 6e | 69 74 79 2e 42 6f 6c 64 | Trin|ity.Bold|
|00002700| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00002710| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 54 72 | | Tr|
|00002720| 69 6e 69 74 79 2e 42 6f | 6c 64 2e 49 74 61 6c 69 |inity.Bo|ld.Itali|
|00002730| 63 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |c. | |
|00002740| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 54 | | T|
|00002750| 72 69 6e 69 74 79 2e 4d | 65 64 69 75 6d 0a 20 20 |rinity.M|edium. |
|00002760| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002770| 20 20 20 20 20 20 20 20 | 20 20 20 54 72 69 6e 69 | | Trini|
|00002780| 74 79 2e 4d 65 64 69 75 | 6d 2e 49 74 61 6c 69 63 |ty.Mediu|m.Italic|
|00002790| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|000027a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 65 74 | | et|
|000027b0| 63 2e 0a 0a 20 54 68 65 | 20 6d 6f 72 65 20 66 6f |c... The| more fo|
|000027c0| 6e 74 73 20 62 65 63 6f | 6d 65 20 61 76 61 69 6c |nts beco|me avail|
|000027d0| 61 62 6c 65 2c 20 74 68 | 65 20 6c 6f 6e 67 65 72 |able, th|e longer|
|000027e0| 20 74 68 69 73 20 6d 65 | 6e 75 20 62 65 63 6f 6d | this me|nu becom|
|000027f0| 65 73 2c 20 74 68 65 20 | 6d 6f 72 65 0a 69 72 72 |es, the |more.irr|
|00002800| 69 74 61 74 69 6e 67 20 | 69 74 20 69 73 2e 20 0a |itating |it is. .|
|00002810| 0a 20 4d 61 6e 79 20 61 | 70 70 6c 69 63 61 74 69 |. Many a|pplicati|
|00002820| 6f 6e 73 20 6e 6f 77 20 | 61 72 65 20 65 76 65 6e |ons now |are even|
|00002830| 20 75 6e 63 61 70 61 62 | 6c 65 20 6f 66 20 63 72 | uncapab|le of cr|
|00002840| 65 61 74 69 6e 67 20 6d | 65 6e 75 73 20 6c 6f 6e |eating m|enus lon|
|00002850| 67 65 72 20 74 68 65 6e | 20 61 0a 63 65 72 74 61 |ger then| a.certa|
|00002860| 69 6e 20 61 6d 6f 75 6e | 74 2e 20 45 78 61 6d 70 |in amoun|t. Examp|
|00002870| 6c 65 73 20 6f 66 20 74 | 68 65 73 65 20 61 72 65 |les of t|hese are|
|00002880| 20 21 45 64 69 74 20 28 | 34 38 20 65 6e 74 72 69 | !Edit (|48 entri|
|00002890| 65 73 29 2c 20 21 44 72 | 61 77 20 28 36 34 0a 65 |es), !Dr|aw (64.e|
|000028a0| 6e 74 72 69 65 73 29 2c | 20 61 6e 64 20 65 76 65 |ntries),| and eve|
|000028b0| 6e 20 21 49 6d 70 72 65 | 73 73 69 6f 6e 20 72 65 |n !Impre|ssion re|
|000028c0| 61 63 74 73 20 73 69 63 | 6b 2e 0a 0a 20 57 68 65 |acts sic|k... Whe|
|000028d0| 6e 20 72 75 6e 6e 69 6e | 67 20 6d 6f 72 65 20 74 |n runnin|g more t|
|000028e0| 68 65 6e 20 6f 6e 65 20 | 61 70 70 6c 69 63 61 74 |hen one |applicat|
|000028f0| 69 6f 6e 20 77 69 74 68 | 20 61 20 66 6f 6e 74 20 |ion with| a font |
|00002900| 6d 65 6e 75 2c 20 74 68 | 65 72 65 20 69 73 20 61 |menu, th|ere is a|
|00002910| 72 69 73 65 73 0a 61 6e | 6f 74 68 65 72 20 64 69 |rises.an|other di|
|00002920| 73 61 64 76 61 6e 74 61 | 67 65 20 6f 66 20 74 68 |sadvanta|ge of th|
|00002930| 69 73 20 6d 65 74 68 6f | 64 2e 20 53 65 76 65 72 |is metho|d. Sever|
|00002940| 61 6c 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 73 20 |al appli|cations |
|00002950| 75 73 69 6e 67 20 61 20 | 69 64 65 6e 74 69 63 61 |using a |identica|
|00002960| 6c 0a 6d 65 6e 75 20 73 | 74 72 75 63 74 75 72 65 |l.menu s|tructure|
|00002970| 20 62 75 74 20 6e 6f 74 | 20 73 68 61 72 69 6e 67 | but not| sharing|
|00002980| 20 74 68 65 20 72 65 73 | 6f 75 72 63 65 2c 20 69 | the res|ource, i|
|00002990| 73 20 6e 6f 74 20 74 68 | 65 20 70 6f 6c 69 63 79 |s not th|e policy|
|000029a0| 20 6f 66 20 41 63 6f 72 | 6e 20 6f 6e 0a 6f 74 68 | of Acor|n on.oth|
|000029b0| 65 72 20 73 75 62 6a 65 | 63 74 73 2e 20 0a 0a 20 |er subje|cts. .. |
|000029c0| 53 6f 20 68 65 72 65 20 | 69 73 20 61 20 6e 65 61 |So here |is a nea|
|000029d0| 74 20 73 6f 6c 75 74 69 | 6f 6e 20 66 6f 72 20 65 |t soluti|on for e|
|000029e0| 76 65 72 79 6f 6e 65 20 | 77 68 6f 20 77 61 6e 74 |veryone |who want|
|000029f0| 73 20 61 20 70 72 6f 70 | 65 72 20 66 6f 6e 74 20 |s a prop|er font |
|00002a00| 6d 65 6e 75 2c 0a 77 69 | 74 68 6f 75 74 20 74 68 |menu,.wi|thout th|
|00002a10| 65 20 68 61 73 73 65 6c | 20 74 6f 20 63 72 65 61 |e hassel| to crea|
|00002a20| 74 65 20 6f 6e 65 2c 20 | 61 6e 64 20 77 69 74 68 |te one, |and with|
|00002a30| 6f 75 74 20 63 6c 61 69 | 6d 69 6e 67 20 65 78 74 |out clai|ming ext|
|00002a40| 72 61 20 73 70 61 63 65 | 2e 0a 0a 20 20 20 20 20 |ra space|... |
|00002a50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002a60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002a70| 20 20 20 20 20 20 20 20 | 20 20 20 20 0a 20 20 20 | | . |
|00002a80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002a90| 20 20 20 20 20 20 20 0a | 0a 20 20 20 20 20 20 20 | .|. |
|00002aa0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002ab0| 20 20 20 57 68 61 74 20 | 64 6f 65 73 20 46 6f 6e | What |does Fon|
|00002ac0| 74 4d 65 6e 75 20 64 6f | 20 3f 0a 0a 20 54 68 65 |tMenu do| ?.. The|
|00002ad0| 20 46 6f 6e 74 4d 65 6e | 75 20 6d 6f 64 75 6c 65 | FontMen|u module|
|00002ae0| 20 69 73 20 61 62 6c 65 | 20 6f 66 20 63 72 65 61 | is able| of crea|
|00002af0| 74 69 6e 67 20 61 20 6d | 75 6c 74 69 2d 6c 65 76 |ting a m|ulti-lev|
|00002b00| 65 6c 20 66 6f 6e 74 20 | 6d 65 6e 75 2c 20 61 6e |el font |menu, an|
|00002b10| 64 20 6c 65 74 73 0a 65 | 76 65 72 79 20 61 70 70 |d lets.e|very app|
|00002b20| 6c 69 63 61 74 69 6f 6e | 20 73 68 61 72 65 20 74 |lication| share t|
|00002b30| 68 65 20 6a 6f 79 2e 20 | 49 74 20 63 6f 6e 74 61 |he joy. |It conta|
|00002b40| 69 6e 73 20 73 65 76 65 | 72 61 6c 20 53 57 49 27 |ins seve|ral SWI'|
|00002b50| 73 20 74 6f 20 63 72 65 | 61 74 65 2c 20 61 6e 64 |s to cre|ate, and|
|00002b60| 0a 61 63 63 65 73 73 20 | 74 68 69 73 20 72 65 73 |.access |this res|
|00002b70| 6f 75 72 63 65 2e 20 49 | 66 20 6e 6f 20 61 70 70 |ource. I|f no app|
|00002b80| 6c 69 63 61 74 69 6f 6e | 20 69 73 20 75 73 69 6e |lication| is usin|
|00002b90| 67 20 74 68 65 20 73 74 | 72 75 63 74 75 72 65 20 |g the st|ructure |
|00002ba0| 61 6e 79 6d 6f 72 65 0a | 28 62 65 63 61 75 73 65 |anymore.|(because|
|00002bb0| 20 74 68 65 79 20 77 65 | 72 65 20 61 6c 6c 20 71 | they we|re all q|
|00002bc0| 75 69 74 65 64 20 66 6f | 72 20 65 78 61 6d 70 6c |uited fo|r exampl|
|00002bd0| 65 29 20 74 68 65 20 6d | 65 6d 6f 72 79 20 66 6f |e) the m|emory fo|
|00002be0| 72 20 74 68 65 20 6d 65 | 6e 75 20 73 74 72 75 63 |r the me|nu struc|
|00002bf0| 74 75 72 65 0a 77 69 6c | 6c 20 62 65 20 72 65 61 |ture.wil|l be rea|
|00002c00| 6c 65 73 65 64 20 62 79 | 20 46 6f 6e 74 4d 65 6e |lesed by| FontMen|
|00002c10| 75 2c 20 73 6f 20 6e 6f | 20 75 6e 6e 65 63 65 73 |u, so no| unneces|
|00002c20| 73 61 72 79 20 6d 65 6d | 6f 72 79 20 69 73 20 69 |sary mem|ory is i|
|00002c30| 6e 20 75 73 65 2e 20 49 | 74 20 68 61 73 20 6e 6f |n use. I|t has no|
|00002c40| 0a 70 72 6f 62 6c 65 6d | 73 20 69 66 20 6d 6f 72 |.problem|s if mor|
|00002c50| 65 20 74 68 61 6e 20 6f | 6e 65 20 66 6f 6e 74 20 |e than o|ne font |
|00002c60| 64 69 72 65 63 74 6f 72 | 79 20 69 73 20 69 6e 20 |director|y is in |
|00002c70| 75 73 65 2e 20 54 68 65 | 20 6d 65 6e 75 20 69 73 |use. The| menu is|
|00002c80| 20 73 6f 72 74 65 64 0a | 61 6c 70 68 61 62 65 74 | sorted.|alphabet|
|00002c90| 69 63 6c 79 20 28 65 76 | 65 6e 20 77 68 65 6e 20 |icly (ev|en when |
|00002ca0| 6d 6f 72 65 20 74 68 61 | 6e 20 6f 6e 65 20 66 6f |more tha|n one fo|
|00002cb0| 6e 74 20 64 69 72 65 63 | 74 6f 72 69 73 20 61 72 |nt direc|toris ar|
|00002cc0| 65 20 75 73 65 64 29 2c | 20 73 6f 20 74 68 65 20 |e used),| so the |
|00002cd0| 75 73 65 72 0a 69 73 20 | 61 62 6c 65 20 74 6f 20 |user.is |able to |
|00002ce0| 66 69 6e 64 20 74 68 65 | 20 72 65 71 75 69 72 65 |find the| require|
|00002cf0| 64 20 66 6f 6e 74 20 61 | 74 20 61 6e 20 69 6e 73 |d font a|t an ins|
|00002d00| 74 61 6e 63 65 2e 20 49 | 74 20 72 65 71 75 69 72 |tance. I|t requir|
|00002d10| 65 73 20 61 20 6d 69 6e | 69 6d 75 6d 20 6f 66 0a |es a min|imum of.|
|00002d20| 64 69 73 63 20 61 63 63 | 65 73 73 20 77 68 65 6e |disc acc|ess when|
|00002d30| 20 61 20 6e 65 77 20 6d | 65 6e 75 20 69 73 20 63 | a new m|enu is c|
|00002d40| 72 65 61 74 65 64 2e 20 | 4e 65 77 20 6d 65 6e 75 |reated. |New menu|
|00002d50| 73 20 61 72 65 20 6f 6e | 6c 79 20 63 72 65 61 74 |s are on|ly creat|
|00002d60| 65 64 20 69 66 20 6f 6e | 65 20 69 73 0a 72 65 71 |ed if on|e is.req|
|00002d70| 75 69 72 65 64 2c 20 61 | 6e 64 20 74 68 65 72 65 |uired, a|nd there|
|00002d80| 20 69 73 6e 27 74 20 61 | 6c 72 65 61 64 79 20 61 | isn't a|lready a|
|00002d90| 20 76 61 6c 69 64 20 6f | 6e 65 2e 20 57 68 65 6e | valid o|ne. When|
|00002da0| 20 61 20 66 6f 6e 74 20 | 6d 65 6e 75 20 65 78 73 | a font |menu exs|
|00002db0| 69 73 74 73 2c 20 61 6e | 64 0a 74 68 65 20 75 73 |ists, an|d.the us|
|00002dc0| 65 72 20 68 61 73 20 73 | 65 6c 65 63 74 65 64 20 |er has s|elected |
|00002dd0| 61 20 6e 65 77 20 66 6f | 6e 74 20 64 69 72 65 63 |a new fo|nt direc|
|00002de0| 74 6f 72 79 2c 20 74 68 | 65 20 66 6f 6e 74 20 6d |tory, th|e font m|
|00002df0| 65 6e 75 20 77 69 6c 6c | 20 62 65 20 72 65 62 75 |enu will| be rebu|
|00002e00| 69 6c 64 20 61 73 0a 73 | 6f 6f 6e 20 61 73 20 74 |ild as.s|oon as t|
|00002e10| 68 65 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 61 |he appli|cation a|
|00002e20| 63 63 65 73 73 65 73 20 | 74 68 69 73 20 66 6f 6e |ccesses |this fon|
|00002e30| 74 20 6d 65 6e 75 2e 20 | 0a 0a 20 46 6f 6e 74 4d |t menu. |.. FontM|
|00002e40| 65 6e 75 20 63 72 65 61 | 74 65 73 20 61 6e 20 6d |enu crea|tes an m|
|00002e50| 75 6c 74 69 2d 6c 65 76 | 65 6c 65 64 20 66 6f 6e |ulti-lev|eled fon|
|00002e60| 74 20 6d 65 6e 75 2e 20 | 49 6e 20 74 68 65 20 65 |t menu. |In the e|
|00002e70| 78 61 6d 70 6c 65 20 61 | 62 6f 76 65 20 74 68 69 |xample a|bove thi|
|00002e80| 73 20 69 73 20 61 0a 6d | 65 6e 75 20 77 68 65 72 |s is a.m|enu wher|
|00002e90| 65 20 27 54 72 69 6e 69 | 74 79 27 20 6f 63 63 75 |e 'Trini|ty' occu|
|00002ea0| 72 73 20 6f 6e 6c 79 20 | 6f 6e 63 65 2c 20 62 75 |rs only |once, bu|
|00002eb0| 74 20 69 74 20 77 69 6c | 6c 20 68 61 76 65 20 61 |t it wil|l have a|
|00002ec0| 20 73 75 62 6d 65 6e 75 | 20 63 6f 6e 74 61 69 6e | submenu| contain|
|00002ed0| 69 6e 67 0a 74 77 6f 20 | 69 74 65 6d 73 3a 20 27 |ing.two |items: '|
|00002ee0| 42 6f 6c 64 27 20 61 6e | 64 20 27 4d 65 64 69 75 |Bold' an|d 'Mediu|
|00002ef0| 6d 27 2e 20 42 65 63 61 | 75 73 65 20 74 68 65 72 |m'. Beca|use ther|
|00002f00| 65 20 61 72 65 20 74 77 | 6f 20 74 79 70 65 73 20 |e are tw|o types |
|00002f10| 6f 66 0a 27 54 72 69 6e | 69 74 79 2e 42 6f 6c 64 |of.'Trin|ity.Bold|
|00002f20| 27 20 28 27 54 72 69 6e | 69 74 79 2e 42 6f 6c 64 |' ('Trin|ity.Bold|
|00002f30| 27 20 61 6e 64 20 27 54 | 72 69 6e 69 79 2e 42 6f |' and 'T|riniy.Bo|
|00002f40| 6c 64 2e 49 74 61 6c 69 | 63 27 29 20 27 42 6f 6c |ld.Itali|c') 'Bol|
|00002f50| 64 27 20 77 69 6c 6c 20 | 68 61 76 65 0a 61 6e 6f |d' will |have.ano|
|00002f60| 74 68 65 72 20 73 75 62 | 6d 65 6e 75 2e 20 49 6e |ther sub|menu. In|
|00002f70| 20 74 68 69 73 20 73 75 | 62 6d 65 6e 75 20 74 68 | this su|bmenu th|
|00002f80| 65 20 66 69 72 73 74 20 | 69 74 65 6d 20 77 69 6c |e first |item wil|
|00002f90| 6c 20 62 65 20 27 50 6c | 61 69 6e 27 2e 20 54 68 |l be 'Pl|ain'. Th|
|00002fa0| 69 73 20 6e 61 6d 65 0a | 69 73 20 6d 61 64 65 20 |is name.|is made |
|00002fb0| 75 70 2c 20 62 75 74 20 | 69 74 20 69 73 20 6d 6f |up, but |it is mo|
|00002fc0| 72 65 20 63 6c 65 61 72 | 20 74 68 65 6e 20 61 20 |re clear| then a |
|00002fd0| 65 6d 70 74 79 20 6d 65 | 6e 79 20 65 6e 74 72 79 |empty me|ny entry|
|00002fe0| 2e 20 54 68 65 20 73 65 | 63 6f 6e 64 20 65 6e 74 |. The se|cond ent|
|00002ff0| 72 79 0a 77 69 6c 6c 20 | 6f 66 20 63 6f 75 72 73 |ry.will |of cours|
|00003000| 65 20 62 65 20 27 49 74 | 61 6c 69 63 27 2e 0a 0a |e be 'It|alic'...|
|00003010| 0a 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | |
|00003020| 20 20 20 20 20 20 20 20 | 20 20 20 20 48 6f 77 20 | | How |
|00003030| 64 6f 65 73 20 46 6f 6e | 74 4d 65 6e 75 20 77 6f |does Fon|tMenu wo|
|00003040| 72 6b 20 3f 0a 0a 20 54 | 6f 20 75 73 65 20 46 6f |rk ?.. T|o use Fo|
|00003050| 6e 74 4d 65 6e 75 20 69 | 74 20 69 73 20 6e 65 63 |ntMenu i|t is nec|
|00003060| 65 73 73 61 72 79 20 74 | 6f 20 75 6e 64 65 72 73 |essary t|o unders|
|00003070| 74 61 6e 64 20 68 6f 77 | 20 74 68 65 20 57 69 6d |tand how| the Wim|
|00003080| 70 20 77 6f 72 6b 73 2c | 20 61 6e 64 20 68 6f 77 |p works,| and how|
|00003090| 0a 74 6f 20 63 72 65 61 | 74 65 20 61 20 61 70 70 |.to crea|te a app|
|000030a0| 6c 69 63 61 74 69 6f 6e | 20 6f 6e 20 74 68 65 20 |lication| on the |
|000030b0| 41 72 63 68 69 6d 65 64 | 65 73 20 65 6e 76 69 72 |Archimed|es envir|
|000030c0| 6f 6e 6d 65 6e 74 2e 20 | 49 74 20 69 73 20 61 73 |onment. |It is as|
|000030d0| 73 75 6d 65 64 20 74 68 | 61 74 0a 74 68 65 20 72 |sumed th|at.the r|
|000030e0| 65 61 64 65 72 20 75 6e | 64 65 72 73 74 61 6e 64 |eader un|derstand|
|000030f0| 73 20 74 68 65 20 61 62 | 6f 76 65 20 66 6f 72 20 |s the ab|ove for |
|00003100| 74 68 65 20 72 65 73 74 | 20 6f 66 20 74 68 69 73 |the rest| of this|
|00003110| 20 64 6f 63 75 6d 65 6e | 74 2e 0a 0a 20 57 68 65 | documen|t... Whe|
|00003120| 6e 20 61 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 |n a appl|ication |
|00003130| 77 61 6e 74 73 20 74 6f | 20 61 63 63 65 73 73 20 |wants to| access |
|00003140| 74 68 65 20 46 6f 6e 74 | 4d 65 6e 75 20 6d 65 6e |the Font|Menu men|
|00003150| 75 20 73 74 72 75 63 74 | 75 72 65 2c 20 69 74 20 |u struct|ure, it |
|00003160| 68 61 73 20 74 6f 0a 63 | 61 6c 6c 20 53 57 49 20 |has to.c|all SWI |
|00003170| 22 46 6f 6e 74 4d 65 6e | 75 5f 43 72 65 61 74 65 |"FontMen|u_Create|
|00003180| 22 20 62 65 66 6f 72 65 | 20 61 6e 79 20 6f 74 68 |" before| any oth|
|00003190| 65 72 20 46 6f 6e 74 4d | 65 6e 75 20 53 57 49 27 |er FontM|enu SWI'|
|000031a0| 73 20 61 72 65 20 63 61 | 6c 6c 65 64 2e 20 54 68 |s are ca|lled. Th|
|000031b0| 69 73 0a 77 69 6c 6c 20 | 61 73 73 75 72 65 20 74 |is.will |assure t|
|000031c0| 68 61 74 20 61 20 70 72 | 6f 70 65 72 20 66 6f 6e |hat a pr|oper fon|
|000031d0| 74 20 6d 65 6e 75 20 73 | 74 72 75 63 74 75 72 65 |t menu s|tructure|
|000031e0| 20 77 69 6c 6c 20 62 65 | 20 61 76 61 69 6c 61 62 | will be| availab|
|000031f0| 6c 65 2e 20 54 68 69 73 | 20 63 61 6e 20 62 65 0a |le. This| can be.|
|00003200| 64 6f 6e 65 20 6f 6e 20 | 69 6e 69 74 69 61 6c 69 |done on |initiali|
|00003210| 73 61 74 69 6f 6e 20 6f | 66 20 74 68 65 20 61 70 |sation o|f the ap|
|00003220| 70 6c 69 63 61 74 69 6f | 6e 2c 20 62 75 74 20 69 |plicatio|n, but i|
|00003230| 73 20 6e 6f 74 20 61 62 | 73 6f 6c 75 74 6c 79 20 |s not ab|solutly |
|00003240| 6e 65 63 65 73 73 61 72 | 79 2e 0a 57 68 65 6e 20 |necessar|y..When |
|00003250| 65 78 69 74 69 6e 67 20 | 74 68 65 20 61 70 70 6c |exiting |the appl|
|00003260| 69 63 61 74 69 6f 6e 2c | 20 53 57 49 20 22 46 6f |ication,| SWI "Fo|
|00003270| 6e 74 4d 65 6e 75 5f 52 | 65 6c 65 61 73 65 22 20 |ntMenu_R|elease" |
|00003280| 68 61 73 20 74 6f 20 62 | 65 20 63 61 6c 6c 65 64 |has to b|e called|
|00003290| 2c 20 73 6f 20 69 66 0a | 74 68 69 73 20 77 61 73 |, so if.|this was|
|000032a0| 20 74 68 65 20 6f 6e 6c | 79 20 61 70 70 6c 69 63 | the onl|y applic|
|000032b0| 61 74 69 6f 6e 20 75 73 | 69 6e 67 20 74 68 65 20 |ation us|ing the |
|000032c0| 66 6f 6e 74 20 6d 65 6e | 75 2c 20 46 6f 6e 74 4d |font men|u, FontM|
|000032d0| 65 6e 75 20 63 61 6e 20 | 72 65 6c 65 61 73 65 20 |enu can |release |
|000032e0| 74 68 65 0a 6d 65 6d 6f | 72 79 20 66 6f 72 20 69 |the.memo|ry for i|
|000032f0| 74 2e 20 45 76 65 72 79 | 20 74 69 6d 65 20 53 57 |t. Every| time SW|
|00003300| 49 20 22 46 6f 6e 74 4d | 65 6e 75 5f 43 72 65 61 |I "FontM|enu_Crea|
|00003310| 74 65 22 20 69 73 20 63 | 61 6c 6c 65 64 2c 20 61 |te" is c|alled, a|
|00003320| 20 63 6f 75 6e 74 65 72 | 20 69 73 0a 69 6e 63 72 | counter| is.incr|
|00003330| 65 6d 65 6e 74 65 64 2c | 20 61 6e 64 20 69 66 20 |emented,| and if |
|00003340| 69 74 20 77 61 73 20 7a | 65 72 6f 20 28 74 68 69 |it was z|ero (thi|
|00003350| 73 20 69 73 20 74 68 65 | 20 69 6e 69 74 69 61 6c |s is the| initial|
|00003360| 20 76 61 6c 75 65 29 2c | 20 69 74 20 77 69 6c 6c | value),| it will|
|00003370| 20 63 72 65 61 74 65 0a | 61 20 6e 65 77 20 66 6f | create.|a new fo|
|00003380| 6e 74 20 6d 65 6e 75 2e | 20 57 68 65 6e 20 63 61 |nt menu.| When ca|
|00003390| 6c 6c 69 6e 67 20 53 57 | 49 20 22 46 6f 6e 74 4d |lling SW|I "FontM|
|000033a0| 65 6e 75 5f 52 65 6c 65 | 61 73 65 22 2c 20 74 68 |enu_Rele|ase", th|
|000033b0| 65 20 63 6f 75 6e 74 65 | 72 20 69 73 0a 64 65 63 |e counte|r is.dec|
|000033c0| 72 65 6d 65 6e 74 65 64 | 2c 20 61 6e 64 20 69 66 |remented|, and if|
|000033d0| 20 69 74 20 72 65 61 63 | 68 65 64 20 7a 65 72 6f | it reac|hed zero|
|000033e0| 20 46 6f 6e 74 4d 65 6e | 75 20 77 69 6c 6c 20 72 | FontMen|u will r|
|000033f0| 65 6c 65 61 73 65 20 74 | 68 65 20 6d 65 6e 75 20 |elease t|he menu |
|00003400| 6d 65 6d 6f 72 79 2c 0a | 61 73 20 6e 6f 20 61 70 |memory,.|as no ap|
|00003410| 70 6c 69 63 61 74 69 6f | 6e 20 69 73 20 75 73 69 |plicatio|n is usi|
|00003420| 6e 67 20 74 68 65 20 6d | 65 6e 75 20 73 74 72 75 |ng the m|enu stru|
|00003430| 63 74 75 72 65 20 61 6e | 79 6d 6f 72 65 2e 0a 0a |cture an|ymore...|
|00003440| 0a 20 46 72 6f 6d 20 68 | 65 72 65 20 6f 6e 20 74 |. From h|ere on t|
|00003450| 68 65 72 65 20 61 72 65 | 20 74 77 6f 20 77 61 79 |here are| two way|
|00003460| 73 20 6f 66 20 70 72 6f | 67 72 61 6d 6d 69 6e 67 |s of pro|gramming|
|00003470| 20 77 68 65 6e 20 75 73 | 69 6e 67 20 46 6f 6e 74 | when us|ing Font|
|00003480| 4d 65 6e 75 2e 20 54 68 | 65 0a 66 69 72 73 74 20 |Menu. Th|e.first |
|00003490| 69 73 20 74 68 65 20 73 | 69 6d 70 6c 65 20 6f 6e |is the s|imple on|
|000034a0| 65 2c 20 74 68 65 20 73 | 65 63 6f 6e 64 20 61 20 |e, the s|econd a |
|000034b0| 6c 69 74 74 6c 65 20 62 | 69 74 20 6d 6f 72 65 20 |little b|it more |
|000034c0| 63 6f 6d 70 6c 69 63 61 | 74 65 64 2c 20 61 73 20 |complica|ted, as |
|000034d0| 69 74 0a 69 6e 76 6f 6c | 76 65 73 20 74 68 65 20 |it.invol|ves the |
|000034e0| 75 73 65 20 74 68 65 20 | 57 69 6d 70 20 6d 65 73 |use the |Wimp mes|
|000034f0| 73 61 67 65 20 73 79 73 | 74 65 6d 2e 0a 0a 20 54 |sage sys|tem... T|
|00003500| 68 65 20 65 61 73 79 20 | 77 61 79 0a 20 2d 2d 2d |he easy |way. ---|
|00003510| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 0a 20 57 68 65 6e 65 |--------|-. Whene|
|00003520| 76 65 72 20 74 68 65 20 | 75 73 65 72 20 6f 70 65 |ver the |user ope|
|00003530| 6e 73 20 74 68 65 20 6d | 65 6e 75 20 73 74 72 75 |ns the m|enu stru|
|00003540| 63 74 75 72 65 20 6f 66 | 20 74 68 65 20 61 70 70 |cture of| the app|
|00003550| 6c 69 63 61 74 69 6f 6e | 20 62 79 20 70 72 65 73 |lication| by pres|
|00003560| 73 69 6e 67 0a 74 68 65 | 20 4d 45 4e 55 20 62 75 |sing.the| MENU bu|
|00003570| 74 74 6f 6e 2c 20 61 20 | 63 61 6c 6c 20 68 61 73 |tton, a |call has|
|00003580| 20 74 6f 20 62 65 20 6d | 61 64 65 20 74 6f 20 46 | to be m|ade to F|
|00003590| 6f 6e 74 4d 65 6e 75 5f | 53 65 6c 65 63 74 20 77 |ontMenu_|Select w|
|000035a0| 69 74 68 20 52 30 20 70 | 6f 69 6e 74 69 6e 67 0a |ith R0 p|ointing.|
|000035b0| 74 6f 20 61 20 70 6f 69 | 6e 74 20 73 65 70 65 61 |to a poi|nt sepea|
|000035c0| 72 74 65 64 20 28 7a 65 | 72 6f 20 74 65 72 6d 69 |rted (ze|ro termi|
|000035d0| 6e 61 74 65 64 29 20 66 | 6f 6e 74 20 73 74 72 69 |nated) f|ont stri|
|000035e0| 6e 67 2c 20 61 6e 64 20 | 69 6e 20 52 31 20 74 68 |ng, and |in R1 th|
|000035f0| 65 20 76 61 6c 75 65 20 | 30 20 6f 72 0a 31 20 74 |e value |0 or.1 t|
|00003600| 6f 20 74 65 6c 6c 20 46 | 6f 6e 74 4d 65 6e 75 20 |o tell F|ontMenu |
|00003610| 69 66 20 69 74 20 61 6c | 6c 6f 77 73 20 74 68 65 |if it al|lows the|
|00003620| 20 75 73 65 72 20 74 6f | 20 73 65 6c 65 63 74 20 | user to| select |
|00003630| 74 68 65 20 53 79 73 74 | 65 6d 46 6f 6e 74 2e 20 |the Syst|emFont. |
|00003640| 54 68 65 20 63 61 6c 6c | 0a 77 69 6c 6c 20 72 65 |The call|.will re|
|00003650| 74 75 72 6e 20 77 69 74 | 68 20 61 20 70 6f 69 6e |turn wit|h a poin|
|00003660| 74 65 72 20 74 6f 20 74 | 68 65 20 66 6f 6e 74 20 |ter to t|he font |
|00003670| 6d 65 6e 75 20 73 74 72 | 75 63 74 75 72 65 20 69 |menu str|ucture i|
|00003680| 6e 20 52 31 2e 20 4e 6f | 77 20 69 74 20 69 73 20 |n R1. No|w it is |
|00003690| 75 70 20 74 6f 0a 74 68 | 65 20 70 72 6f 67 72 61 |up to.th|e progra|
|000036a0| 6d 6d 65 72 20 77 68 61 | 74 20 74 6f 20 64 6f 20 |mmer wha|t to do |
|000036b0| 77 69 74 68 20 74 68 69 | 73 20 70 6f 69 6e 74 65 |with thi|s pointe|
|000036c0| 72 2e 20 57 68 65 6e 20 | 70 61 73 73 65 64 20 69 |r. When |passed i|
|000036d0| 6e 20 52 31 20 77 68 65 | 6e 20 63 61 6c 6c 69 6e |n R1 whe|n callin|
|000036e0| 67 0a 57 69 6d 70 5f 43 | 72 65 61 74 65 4d 65 6e |g.Wimp_C|reateMen|
|000036f0| 75 2c 20 74 68 65 20 6d | 65 6e 75 20 74 72 65 65 |u, the m|enu tree|
|00003700| 20 77 69 6c 6c 20 63 6f | 6e 73 69 73 74 20 65 6e | will co|nsist en|
|00003710| 74 69 72 65 6c 79 20 6f | 66 20 46 6f 6e 74 4d 65 |tirely o|f FontMe|
|00003720| 6e 75 20 73 74 72 75 63 | 74 75 72 65 73 2e 0a 49 |nu struc|tures..I|
|00003730| 66 20 74 68 65 20 66 6f | 6e 74 20 6d 65 6e 75 20 |f the fo|nt menu |
|00003740| 73 68 6f 75 6c 64 20 62 | 65 20 61 20 73 75 62 6d |should b|e a subm|
|00003750| 65 6e 75 20 6f 66 20 74 | 68 65 20 61 70 70 6c 69 |enu of t|he appli|
|00003760| 63 61 74 69 6f 6e 73 20 | 6f 77 6e 20 6d 65 6e 75 |cations |own menu|
|00003770| 20 73 74 72 75 63 74 75 | 72 65 2c 0a 74 68 65 20 | structu|re,.the |
|00003780| 70 6f 69 6e 74 65 72 20 | 73 68 6f 75 6c 64 20 62 |pointer |should b|
|00003790| 65 20 70 75 74 20 69 6e | 20 74 68 65 20 73 75 62 |e put in| the sub|
|000037a0| 6d 65 6e 75 2d 77 6f 72 | 64 20 6f 66 20 74 68 65 |menu-wor|d of the|
|000037b0| 20 70 61 72 65 6e 74 20 | 6d 65 6e 75 20 65 6e 74 | parent |menu ent|
|000037c0| 72 79 2c 20 61 6e 64 0a | 57 69 6d 70 5f 43 72 65 |ry, and.|Wimp_Cre|
|000037d0| 61 74 65 4d 65 6e 75 20 | 73 68 6f 75 6c 64 20 62 |ateMenu |should b|
|000037e0| 65 20 63 61 6c 6c 65 64 | 20 77 69 74 68 20 61 20 |e called| with a |
|000037f0| 70 6f 69 6e 74 65 72 20 | 74 6f 20 74 68 65 20 61 |pointer |to the a|
|00003800| 70 70 6c 69 63 61 74 69 | 6f 6e 73 20 6f 77 6e 20 |pplicati|ons own |
|00003810| 6d 65 6e 75 0a 73 74 72 | 75 63 74 75 72 65 2e 0a |menu.str|ucture..|
|00003820| 0a 20 57 68 65 6e 20 61 | 20 6d 65 6e 75 20 73 65 |. When a| menu se|
|00003830| 6c 65 63 74 69 6f 6e 20 | 77 61 73 20 64 6f 6e 65 |lection |was done|
|00003840| 2c 20 74 68 65 20 61 70 | 70 6c 69 63 61 74 69 6f |, the ap|plicatio|
|00003850| 6e 20 73 68 6f 75 6c 64 | 20 64 65 74 65 72 6d 69 |n should| determi|
|00003860| 6e 65 20 62 79 20 74 68 | 65 0a 72 65 74 75 72 6e |ne by th|e.return|
|00003870| 65 64 20 27 6d 65 6e 75 | 20 74 72 65 65 20 73 6f |ed 'menu| tree so|
|00003880| 20 66 61 72 27 20 76 61 | 6c 75 65 73 20 69 66 20 | far' va|lues if |
|00003890| 74 68 65 20 75 73 65 72 | 20 73 65 6c 65 63 74 65 |the user| selecte|
|000038a0| 64 20 61 20 65 6e 74 72 | 79 20 69 6e 20 74 68 65 |d a entr|y in the|
|000038b0| 20 66 6f 6e 74 0a 6d 65 | 6e 75 2e 20 49 66 20 73 | font.me|nu. If s|
|000038c0| 6f 2c 20 69 74 20 73 68 | 6f 75 6c 64 20 73 65 74 |o, it sh|ould set|
|000038d0| 20 61 6e 20 69 6e 74 65 | 72 6e 61 6c 20 66 6c 61 | an inte|rnal fla|
|000038e0| 67 20 28 73 61 79 20 27 | 46 6f 6e 74 4d 65 6e 75 |g (say '|FontMenu|
|000038f0| 53 65 6c 65 63 74 65 64 | 27 29 20 74 6f 0a 54 52 |Selected|') to.TR|
|00003900| 55 45 2c 20 65 6c 73 65 | 20 69 74 20 73 68 6f 75 |UE, else| it shou|
|00003910| 6c 64 20 73 65 74 20 69 | 74 20 74 6f 20 46 41 4c |ld set i|t to FAL|
|00003920| 53 45 2c 20 73 6f 20 6c | 61 74 65 72 20 6f 6e 20 |SE, so l|ater on |
|00003930| 69 74 20 69 73 20 73 74 | 69 6c 6c 20 6b 6e 6f 77 |it is st|ill know|
|00003940| 6e 20 69 66 20 74 68 65 | 0a 75 73 65 72 20 6d 61 |n if the|.user ma|
|00003950| 79 20 68 61 76 65 20 73 | 65 6c 65 63 74 65 64 20 |y have s|elected |
|00003960| 61 20 6e 65 77 20 66 6f | 6e 74 2e 20 41 66 74 65 |a new fo|nt. Afte|
|00003970| 72 20 74 68 61 74 20 69 | 74 20 73 68 6f 75 6c 64 |r that i|t should|
|00003980| 20 63 61 6c 6c 20 53 57 | 49 0a 22 46 6f 6e 74 4d | call SW|I."FontM|
|00003990| 65 6e 75 5f 44 65 63 6f | 64 65 46 6f 6e 74 4d 65 |enu_Deco|deFontMe|
|000039a0| 6e 75 22 20 77 69 74 68 | 20 52 30 20 70 6f 69 6e |nu" with| R0 poin|
|000039b0| 74 69 6e 67 20 74 6f 20 | 74 68 65 20 66 69 72 73 |ting to |the firs|
|000039c0| 74 20 6d 65 6e 75 20 73 | 65 6c 65 63 74 69 6f 6e |t menu s|election|
|000039d0| 20 69 6e 0a 74 68 65 20 | 27 6d 65 6e 75 20 74 72 | in.the |'menu tr|
|000039e0| 65 65 20 73 6f 20 66 61 | 72 27 20 62 6c 6f 63 6b |ee so fa|r' block|
|000039f0| 20 77 69 63 68 20 64 65 | 74 65 72 6d 69 6e 65 73 | wich de|termines|
|00003a00| 20 74 68 65 20 73 65 6c | 65 63 74 65 64 20 66 6f | the sel|ected fo|
|00003a10| 6e 74 2e 20 52 31 20 73 | 68 6f 75 6c 64 0a 70 6f |nt. R1 s|hould.po|
|00003a20| 69 6e 74 20 74 6f 20 61 | 20 62 75 66 66 65 72 20 |int to a| buffer |
|00003a30| 74 6f 20 63 6f 6e 74 61 | 69 6e 20 74 68 65 20 61 |to conta|in the a|
|00003a40| 6e 73 77 65 72 2e 20 54 | 68 69 73 20 62 75 66 66 |nswer. T|his buff|
|00003a50| 65 72 20 6d 75 73 74 20 | 62 65 20 61 74 20 6c 65 |er must |be at le|
|00003a60| 61 73 74 20 34 38 0a 62 | 79 74 65 73 2e 20 49 66 |ast 48.b|ytes. If|
|00003a70| 20 6f 6e 20 72 65 74 75 | 72 6e 20 6f 66 20 74 68 | on retu|rn of th|
|00003a80| 69 73 20 63 61 6c 6c 20 | 52 30 20 3e 20 30 2c 20 |is call |R0 > 0, |
|00003a90| 74 68 65 20 75 73 65 72 | 20 73 65 6c 65 63 74 65 |the user| selecte|
|00003aa0| 64 20 61 20 6e 65 77 20 | 66 6f 6e 74 2e 20 54 68 |d a new |font. Th|
|00003ab0| 65 0a 62 75 66 66 65 72 | 20 70 61 73 73 65 64 20 |e.buffer| passed |
|00003ac0| 69 6e 20 52 31 20 77 69 | 6c 6c 20 63 6f 6e 74 61 |in R1 wi|ll conta|
|00003ad0| 69 6e 20 74 68 65 20 66 | 6f 6e 74 20 6e 61 6d 65 |in the f|ont name|
|00003ae0| 20 28 61 20 70 6f 69 6e | 74 20 73 65 70 65 72 61 | (a poin|t sepera|
|00003af0| 74 65 64 2c 20 7a 65 72 | 6f 0a 74 65 72 6d 69 6e |ted, zer|o.termin|
|00003b00| 61 74 65 64 20 66 6f 6e | 74 20 73 74 72 69 6e 67 |ated fon|t string|
|00003b10| 29 2e 0a 0a 20 41 66 74 | 65 72 20 61 20 6d 65 6e |)... Aft|er a men|
|00003b20| 75 20 73 65 6c 63 74 69 | 6f 6e 2c 20 61 6e 64 20 |u selcti|on, and |
|00003b30| 74 61 6b 69 6e 67 20 61 | 70 70 72 6f 70 72 69 61 |taking a|ppropria|
|00003b40| 74 65 20 61 63 74 69 6f | 6e 73 2c 20 74 68 65 20 |te actio|ns, the |
|00003b50| 61 70 70 6c 69 63 61 74 | 69 6f 6e 0a 73 68 6f 75 |applicat|ion.shou|
|00003b60| 6c 64 20 63 68 65 63 6b | 20 74 68 65 20 6d 6f 75 |ld check| the mou|
|00003b70| 73 65 20 62 75 74 74 6f | 6e 20 73 74 61 74 65 20 |se butto|n state |
|00003b80| 74 6f 20 73 65 65 20 69 | 66 20 69 74 20 68 61 73 |to see i|f it has|
|00003b90| 20 74 6f 20 63 61 6c 6c | 20 53 57 49 0a 22 57 69 | to call| SWI."Wi|
|00003ba0| 6d 70 5f 43 72 65 61 74 | 65 4d 65 6e 75 22 20 61 |mp_Creat|eMenu" a|
|00003bb0| 67 61 69 6e 2e 20 49 66 | 20 61 64 6a 75 73 74 20 |gain. If| adjust |
|00003bc0| 77 61 73 20 75 73 65 64 | 20 74 6f 20 6d 61 6b 65 |was used| to make|
|00003bd0| 20 74 68 65 20 73 65 6c | 65 63 74 69 6f 6e 2c 20 | the sel|ection, |
|00003be0| 69 74 20 68 61 73 20 74 | 6f 0a 63 68 65 63 6b 20 |it has t|o.check |
|00003bf0| 20 74 68 65 20 27 46 6f | 6e 74 4d 65 6e 75 53 65 | the 'Fo|ntMenuSe|
|00003c00| 6c 65 63 74 65 64 27 20 | 66 6c 61 67 20 74 6f 20 |lected' |flag to |
|00003c10| 64 65 74 65 72 6d 69 6e | 65 20 69 66 20 74 68 65 |determin|e if the|
|00003c20| 20 75 73 65 72 20 73 65 | 6c 65 63 74 65 64 20 61 | user se|lected a|
|00003c30| 20 66 6f 6e 74 0a 6d 65 | 6e 75 20 65 6e 74 72 79 | font.me|nu entry|
|00003c40| 2e 20 49 66 20 73 6f 2c | 20 69 74 20 73 68 6f 75 |. If so,| it shou|
|00003c50| 6c 64 20 63 61 6c 6c 20 | 46 6f 6e 74 4d 65 6e 75 |ld call |FontMenu|
|00003c60| 5f 53 65 6c 65 63 74 20 | 61 73 20 64 69 73 63 72 |_Select |as discr|
|00003c70| 69 62 65 64 20 61 62 6f | 76 65 2e 20 54 68 69 73 |ibed abo|ve. This|
|00003c80| 0a 73 68 6f 75 6c 64 20 | 62 65 20 64 6f 6e 65 20 |.should |be done |
|00003c90| 77 69 74 68 20 52 30 20 | 70 6f 69 6e 74 69 6e 67 |with R0 |pointing|
|00003ca0| 20 74 6f 20 74 68 65 20 | 73 74 72 69 6e 67 20 46 | to the |string F|
|00003cb0| 6f 6e 74 4d 65 6e 75 5f | 44 65 63 6f 64 65 46 6f |ontMenu_|DecodeFo|
|00003cc0| 6e 74 4d 65 6e 75 0a 72 | 65 74 75 72 6e 65 64 2e |ntMenu.r|eturned.|
|00003cd0| 20 54 68 65 20 6d 65 6e | 75 20 70 6f 69 6e 74 65 | The men|u pointe|
|00003ce0| 72 20 72 65 74 75 72 6e | 65 64 20 62 79 20 46 6f |r return|ed by Fo|
|00003cf0| 6e 74 4d 65 6e 75 5f 53 | 65 6c 65 63 74 20 68 61 |ntMenu_S|elect ha|
|00003d00| 73 20 74 6f 20 62 65 20 | 70 75 74 20 69 6e 20 74 |s to be |put in t|
|00003d10| 68 65 0a 27 73 75 62 2d | 6d 65 6e 75 20 70 6f 69 |he.'sub-|menu poi|
|00003d20| 6e 74 65 72 27 20 77 6f | 72 64 20 6f 66 20 74 68 |nter' wo|rd of th|
|00003d30| 65 20 27 46 6f 6e 74 73 | 27 20 65 6e 74 72 79 2e |e 'Fonts|' entry.|
|00003d40| 20 4e 6f 77 20 74 68 65 | 20 63 61 6c 6c 20 74 6f | Now the| call to|
|00003d50| 0a 57 69 6d 70 5f 43 72 | 65 61 74 65 4d 65 6e 75 |.Wimp_Cr|eateMenu|
|00003d60| 20 63 61 6e 20 62 65 20 | 64 6f 6e 65 2e 20 49 6e | can be |done. In|
|00003d70| 20 74 68 69 73 20 77 61 | 79 20 69 74 20 69 73 20 | this wa|y it is |
|00003d80| 70 6f 73 73 69 62 6c 65 | 20 66 6f 72 20 74 68 65 |possible| for the|
|00003d90| 20 75 73 65 72 20 74 6f | 0a 63 6c 69 63 6b 20 77 | user to|.click w|
|00003da0| 69 74 68 20 61 64 6a 75 | 73 74 20 69 6e 20 74 68 |ith adju|st in th|
|00003db0| 65 20 66 6f 6e 74 20 6d | 65 6e 75 2c 20 61 6e 64 |e font m|enu, and|
|00003dc0| 20 6b 65 65 70 69 6e 67 | 20 74 68 65 20 6d 65 6e | keeping| the men|
|00003dd0| 75 20 6f 6e 20 73 63 72 | 65 65 6e 20 61 66 74 65 |u on scr|een afte|
|00003de0| 72 20 74 68 65 0a 73 65 | 6c 65 63 74 69 6f 6e 2e |r the.se|lection.|
|00003df0| 0a 0a 20 54 68 65 72 65 | 20 69 73 20 6f 6e 65 20 |.. There| is one |
|00003e00| 6c 69 74 74 6c 65 20 64 | 72 61 77 62 61 63 6b 20 |little d|rawback |
|00003e10| 6f 66 20 74 68 69 73 20 | 6d 65 74 68 6f 64 2e 20 |of this |method. |
|00003e20| 49 66 20 74 68 65 20 75 | 73 65 72 20 73 65 6c 65 |If the u|ser sele|
|00003e30| 63 74 65 64 20 61 20 6e | 65 77 0a 21 46 6f 6e 74 |cted a n|ew.!Font|
|00003e40| 73 20 64 69 72 65 63 74 | 6f 72 79 2c 20 69 74 20 |s direct|ory, it |
|00003e50| 77 69 6c 6c 20 62 65 20 | 6e 6f 74 65 64 20 62 65 |will be |noted be|
|00003e60| 20 74 68 65 20 46 6f 6e | 74 4d 65 6e 75 5f 53 65 | the Fon|tMenu_Se|
|00003e70| 6c 65 63 74 20 63 6f 64 | 65 2c 20 61 6e 64 20 61 |lect cod|e, and a|
|00003e80| 20 6e 65 77 0a 66 6f 6e | 74 20 6d 65 6e 75 20 73 | new.fon|t menu s|
|00003e90| 74 72 75 63 74 75 72 65 | 20 77 69 6c 6c 20 62 65 |tructure| will be|
|00003ea0| 20 67 65 6e 65 72 61 74 | 65 64 2e 20 54 68 69 73 | generat|ed. This|
|00003eb0| 20 69 73 20 61 6c 77 61 | 79 73 20 74 68 65 20 63 | is alwa|ys the c|
|00003ec0| 61 73 65 2c 20 61 6c 73 | 6f 20 77 69 74 68 0a 74 |ase, als|o with.t|
|00003ed0| 68 65 20 6d 65 74 68 6f | 64 20 64 69 73 63 72 69 |he metho|d discri|
|00003ee0| 62 65 64 20 62 65 6c 6f | 77 2e 20 42 75 74 20 69 |bed belo|w. But i|
|00003ef0| 74 20 63 6f 75 6c 64 20 | 62 65 20 70 6f 73 73 69 |t could |be possi|
|00003f00| 62 6c 65 20 74 68 61 74 | 20 74 68 65 20 75 73 65 |ble that| the use|
|00003f10| 72 20 77 61 73 20 67 6f | 69 6e 67 0a 74 6f 20 64 |r was go|ing.to d|
|00003f20| 6f 20 73 6f 6d 65 74 68 | 69 6e 67 20 65 6c 73 65 |o someth|ing else|
|00003f30| 20 69 6e 20 74 68 65 20 | 6d 65 6e 75 2c 20 6e 6f | in the |menu, no|
|00003f40| 74 20 73 65 6c 65 63 74 | 69 6e 67 20 61 20 66 6f |t select|ing a fo|
|00003f50| 6e 74 20 61 74 20 61 6c | 6c 2e 20 48 65 20 63 6f |nt at al|l. He co|
|00003f60| 75 6c 64 20 66 6f 72 0a | 69 6e 73 74 61 6e 63 65 |uld for.|instance|
|00003f70| 20 77 61 6e 74 20 74 6f | 20 71 75 69 74 2e 20 4e | want to| quit. N|
|00003f80| 6f 77 20 68 65 20 28 73 | 68 65 29 20 68 61 73 20 |ow he (s|he) has |
|00003f90| 74 6f 20 77 61 69 74 20 | 66 6f 72 20 74 68 65 20 |to wait |for the |
|00003fa0| 46 6f 6e 74 4d 65 6e 75 | 20 6d 6f 64 75 6c 65 20 |FontMenu| module |
|00003fb0| 74 6f 0a 63 72 65 61 74 | 65 20 74 68 65 20 6e 65 |to.creat|e the ne|
|00003fc0| 77 20 6d 65 6e 75 20 73 | 74 72 75 63 74 75 72 65 |w menu s|tructure|
|00003fd0| 2c 20 62 65 66 6f 72 65 | 20 68 65 20 28 73 68 65 |, before| he (she|
|00003fe0| 29 20 69 73 20 61 62 6c | 65 20 74 6f 20 61 63 63 |) is abl|e to acc|
|00003ff0| 65 73 73 20 74 68 65 20 | 27 51 75 69 74 27 0a 65 |ess the |'Quit'.e|
|00004000| 6e 74 72 79 2e 20 53 6f | 20 74 68 65 20 6e 65 78 |ntry. So| the nex|
|00004010| 74 20 73 6f 6c 75 74 69 | 6f 6e 20 69 73 20 74 6f |t soluti|on is to|
|00004020| 20 77 61 69 74 20 77 69 | 74 68 20 63 61 6c 6c 69 | wait wi|th calli|
|00004030| 6e 67 20 46 6f 6e 74 4d | 65 6e 75 5f 53 65 6c 65 |ng FontM|enu_Sele|
|00004040| 63 74 2c 20 75 6e 74 69 | 6c 0a 74 68 65 20 75 73 |ct, unti|l.the us|
|00004050| 65 72 20 77 61 6e 74 73 | 20 74 6f 20 73 65 6c 65 |er wants| to sele|
|00004060| 63 74 20 61 20 6e 65 77 | 20 66 6f 6e 74 2e 20 54 |ct a new| font. T|
|00004070| 68 69 73 20 63 61 6e 20 | 6f 6e 6c 79 20 62 65 20 |his can |only be |
|00004080| 64 6f 6e 65 20 62 79 20 | 6d 61 6b 69 6e 67 20 75 |done by |making u|
|00004090| 73 65 20 6f 66 0a 74 68 | 65 20 57 69 6d 70 20 6d |se of.th|e Wimp m|
|000040a0| 65 73 73 61 67 65 20 73 | 79 73 74 65 6d 2e 20 54 |essage s|ystem. T|
|000040b0| 68 65 20 64 69 66 66 69 | 63 75 6c 74 20 74 68 69 |he diffi|cult thi|
|000040c0| 6e 67 20 6f 66 20 74 68 | 69 73 20 6d 65 74 68 6f |ng of th|is metho|
|000040d0| 64 20 28 61 73 20 64 69 | 73 63 72 69 62 65 64 0a |d (as di|scribed.|
|000040e0| 6c 61 74 65 72 29 20 69 | 73 20 74 68 61 74 20 74 |later) i|s that t|
|000040f0| 68 65 20 57 69 6d 70 20 | 69 73 20 75 6e 61 62 6c |he Wimp |is unabl|
|00004100| 65 20 74 6f 20 72 65 2d | 6f 70 65 6e 20 74 68 65 |e to re-|open the|
|00004110| 20 6d 65 6e 75 20 73 74 | 72 75 63 74 75 72 65 20 | menu st|ructure |
|00004120| 65 6e 74 69 72 65 6c 79 | 0a 61 66 74 65 72 20 61 |entirely|.after a|
|00004130| 20 6d 65 6e 75 20 73 65 | 6c 65 63 74 69 6f 6e 20 | menu se|lection |
|00004140| 75 73 69 6e 67 20 74 68 | 65 20 41 44 4a 55 53 54 |using th|e ADJUST|
|00004150| 20 62 75 74 74 6f 6e 2e | 20 53 6f 20 61 20 6c 69 | button.| So a li|
|00004160| 74 74 6c 65 20 74 72 69 | 63 6b 20 68 61 73 20 74 |ttle tri|ck has t|
|00004170| 6f 0a 73 6f 6c 76 65 20 | 74 68 69 73 20 70 72 6f |o.solve |this pro|
|00004180| 62 6c 65 6d 2e 0a 0a 20 | 54 68 65 20 68 61 72 64 |blem... |The hard|
|00004190| 20 77 61 79 0a 20 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d | way. --|--------|
|000041a0| 2d 2d 0a 20 49 6e 20 74 | 68 65 20 61 70 70 6c 69 |--. In t|he appli|
|000041b0| 63 61 74 69 6f 6e 73 20 | 6f 77 6e 20 6d 65 6e 75 |cations |own menu|
|000041c0| 20 73 74 72 75 63 74 75 | 72 65 2c 20 74 68 65 72 | structu|re, ther|
|000041d0| 65 20 73 68 6f 75 6c 64 | 20 62 65 20 61 20 6d 65 |e should| be a me|
|000041e0| 6e 75 20 65 6e 74 72 79 | 20 28 65 2e 67 2e 0a 27 |nu entry| (e.g..'|
|000041f0| 46 6f 6e 74 73 27 29 20 | 77 69 74 68 20 62 69 74 |Fonts') |with bit|
|00004200| 20 33 20 69 66 20 69 74 | 73 20 6d 65 6e 75 20 66 | 3 if it|s menu f|
|00004210| 6c 61 67 73 20 73 65 74 | 2e 20 54 68 65 20 61 70 |lags set|. The ap|
|00004220| 70 6c 69 63 61 74 69 6f | 6e 20 68 61 73 20 74 6f |plicatio|n has to|
|00004230| 20 61 73 73 75 72 65 0a | 74 68 61 74 20 74 68 69 | assure.|that thi|
|00004240| 73 20 62 69 74 20 69 73 | 20 73 65 74 20 77 68 65 |s bit is| set whe|
|00004250| 6e 65 76 65 72 20 69 74 | 20 63 61 6c 6c 73 20 53 |never it| calls S|
|00004260| 57 49 20 22 57 69 6d 70 | 5f 43 72 65 61 74 65 4d |WI "Wimp|_CreateM|
|00004270| 65 6e 75 22 20 61 73 20 | 69 74 20 6d 61 79 20 62 |enu" as |it may b|
|00004280| 65 0a 63 6f 72 72 75 70 | 74 65 64 20 28 73 65 65 |e.corrup|ted (see|
|00004290| 20 62 65 6c 6f 77 29 2e | 20 53 6f 20 77 68 65 6e | below).| So when|
|000042a0| 65 76 65 72 20 74 68 65 | 20 75 73 65 72 20 70 75 |ever the| user pu|
|000042b0| 74 73 20 74 68 65 20 70 | 6f 69 6e 74 65 72 20 61 |ts the p|ointer a|
|000042c0| 62 6f 76 65 20 74 68 65 | 20 61 72 72 6f 77 0a 6f |bove the| arrow.o|
|000042d0| 6e 20 74 68 65 20 72 69 | 67 68 74 20 6f 66 20 74 |n the ri|ght of t|
|000042e0| 68 69 73 20 65 6e 74 72 | 79 2c 20 61 20 77 61 72 |his entr|y, a war|
|000042f0| 6e 69 6e 67 20 6d 65 73 | 73 61 67 65 20 28 26 34 |ning mes|sage (&4|
|00004300| 30 30 43 30 29 20 77 69 | 6c 6c 20 62 65 20 73 65 |00C0) wi|ll be se|
|00004310| 6e 64 20 62 79 20 74 68 | 65 0a 57 69 6d 70 2e 20 |nd by th|e.Wimp. |
|00004320| 4f 6e 20 72 65 63 65 69 | 76 69 6e 67 20 6f 66 20 |On recei|ving of |
|00004330| 74 68 69 73 20 6d 65 73 | 73 61 67 65 2c 20 74 68 |this mes|sage, th|
|00004340| 65 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 73 68 |e applic|ation sh|
|00004350| 6f 75 6c 64 20 72 65 73 | 70 6f 6e 64 20 62 79 20 |ould res|pond by |
|00004360| 63 61 6c 6c 69 6e 67 0a | 53 57 49 20 22 46 6f 6e |calling.|SWI "Fon|
|00004370| 74 4d 65 6e 75 5f 53 65 | 6c 65 63 74 22 20 77 69 |tMenu_Se|lect" wi|
|00004380| 74 68 20 52 30 20 70 6f | 69 6e 74 69 6e 67 20 74 |th R0 po|inting t|
|00004390| 6f 20 61 20 70 6f 69 6e | 74 20 73 65 70 65 61 72 |o a poin|t sepear|
|000043a0| 74 65 64 20 28 7a 65 72 | 6f 0a 74 65 72 6d 69 6e |ted (zer|o.termin|
|000043b0| 61 74 65 64 29 20 66 6f | 6e 74 20 73 74 72 69 6e |ated) fo|nt strin|
|000043c0| 67 2c 20 61 6e 64 20 69 | 6e 20 52 31 20 74 68 65 |g, and i|n R1 the|
|000043d0| 20 76 61 6c 75 65 20 30 | 20 6f 72 20 31 20 74 6f | value 0| or 1 to|
|000043e0| 20 74 65 6c 6c 20 46 6f | 6e 74 4d 65 6e 75 20 69 | tell Fo|ntMenu i|
|000043f0| 66 20 69 74 0a 61 6c 6c | 6f 77 73 20 74 68 65 20 |f it.all|ows the |
|00004400| 75 73 65 72 20 74 6f 20 | 73 65 6c 65 63 74 20 74 |user to |select t|
|00004410| 68 65 20 53 79 73 74 65 | 6d 46 6f 6e 74 2e 20 54 |he Syste|mFont. T|
|00004420| 68 65 20 66 6f 6e 74 20 | 73 74 72 69 6e 67 20 6d |he font |string m|
|00004430| 61 79 20 62 65 20 61 20 | 7a 65 72 6f 0a 6c 65 6e |ay be a |zero.len|
|00004440| 67 74 68 20 73 74 72 69 | 6e 67 2c 20 77 69 63 68 |gth stri|ng, wich|
|00004450| 20 6d 65 61 6e 73 20 74 | 68 61 74 20 6e 6f 20 63 | means t|hat no c|
|00004460| 75 72 72 65 6e 74 20 66 | 6f 6e 74 20 69 73 20 73 |urrent f|ont is s|
|00004470| 65 6c 65 63 74 65 64 2e | 20 46 6f 6e 74 4d 65 6e |elected.| FontMen|
|00004480| 75 20 77 69 6c 6c 0a 73 | 65 6c 65 63 74 20 74 68 |u will.s|elect th|
|00004490| 65 20 66 6f 6e 74 20 69 | 6e 20 69 74 73 20 6d 65 |e font i|n its me|
|000044a0| 6e 75 20 73 74 72 75 63 | 74 75 72 65 2e 20 49 66 |nu struc|ture. If|
|000044b0| 20 31 20 77 61 73 20 70 | 61 73 73 65 64 20 69 6e | 1 was p|assed in|
|000044c0| 20 52 31 2c 20 74 68 65 | 20 66 69 72 73 74 20 69 | R1, the| first i|
|000044d0| 74 65 6d 0a 69 6e 20 74 | 68 65 20 6d 65 6e 75 20 |tem.in t|he menu |
|000044e0| 73 74 72 75 63 74 75 72 | 65 20 77 69 6c 6c 20 62 |structur|e will b|
|000044f0| 65 20 27 53 79 73 74 65 | 6d 46 6f 6e 74 73 27 2e |e 'Syste|mFonts'.|
|00004500| 20 49 6e 20 63 61 73 65 | 20 52 31 20 3d 20 30 2c | In case| R1 = 0,|
|00004510| 20 74 68 69 73 20 65 6e | 74 72 79 20 77 69 6c 6c | this en|try will|
|00004520| 0a 6e 6f 74 20 62 65 20 | 74 68 65 72 65 2e 20 54 |.not be |there. T|
|00004530| 68 69 73 20 63 61 6c 6c | 20 77 69 6c 6c 20 72 65 |his call| will re|
|00004540| 74 75 72 6e 20 77 69 74 | 68 20 61 20 70 6f 69 6e |turn wit|h a poin|
|00004550| 74 65 72 20 74 6f 20 74 | 68 65 20 6d 65 6e 75 20 |ter to t|he menu |
|00004560| 73 74 72 75 63 74 75 72 | 65 20 69 6e 0a 52 31 2e |structur|e in.R1.|
|00004570| 20 54 68 69 73 20 70 6f | 69 6e 74 65 72 20 73 68 | This po|inter sh|
|00004580| 6f 75 6c 64 20 62 65 20 | 70 61 73 73 65 64 20 74 |ould be |passed t|
|00004590| 6f 20 53 57 49 20 22 57 | 69 6d 70 5f 43 72 65 61 |o SWI "W|imp_Crea|
|000045a0| 74 65 53 75 62 4d 65 6e | 75 22 2e 0a 0a 20 57 68 |teSubMen|u"... Wh|
|000045b0| 65 6e 20 61 20 6d 65 6e | 75 20 73 65 6c 65 63 74 |en a men|u select|
|000045c0| 69 6f 6e 20 77 61 73 20 | 64 6f 6e 65 2c 20 74 68 |ion was |done, th|
|000045d0| 65 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 73 68 |e applic|ation sh|
|000045e0| 6f 75 6c 64 20 64 65 74 | 65 72 6d 69 6e 65 20 62 |ould det|ermine b|
|000045f0| 79 20 74 68 65 0a 72 65 | 74 75 72 6e 65 64 20 27 |y the.re|turned '|
|00004600| 6d 65 6e 75 20 74 72 65 | 65 20 73 6f 20 66 61 72 |menu tre|e so far|
|00004610| 27 20 76 61 6c 75 65 73 | 20 69 66 20 74 68 65 20 |' values| if the |
|00004620| 75 73 65 72 20 73 65 6c | 65 63 74 65 64 20 61 20 |user sel|ected a |
|00004630| 65 6e 74 72 79 20 69 6e | 20 74 68 65 20 66 6f 6e |entry in| the fon|
|00004640| 74 0a 6d 65 6e 75 2e 20 | 49 66 20 73 6f 2c 20 69 |t.menu. |If so, i|
|00004650| 74 20 73 68 6f 75 6c 64 | 20 73 65 74 20 61 6e 20 |t should| set an |
|00004660| 69 6e 74 65 72 6e 61 6c | 20 66 6c 61 67 20 28 73 |internal| flag (s|
|00004670| 61 79 20 27 46 6f 6e 74 | 4d 65 6e 75 53 65 6c 65 |ay 'Font|MenuSele|
|00004680| 63 74 65 64 27 29 20 74 | 6f 0a 54 52 55 45 2c 20 |cted') t|o.TRUE, |
|00004690| 65 6c 73 65 20 69 74 20 | 73 68 6f 75 6c 64 20 73 |else it |should s|
|000046a0| 65 74 20 69 74 20 74 6f | 20 46 41 4c 53 45 2c 20 |et it to| FALSE, |
|000046b0| 73 6f 20 6c 61 74 65 72 | 20 6f 6e 20 69 74 20 69 |so later| on it i|
|000046c0| 73 20 73 74 69 6c 6c 20 | 6b 6e 6f 77 6e 20 69 66 |s still |known if|
|000046d0| 20 74 68 65 0a 75 73 65 | 72 20 6d 61 79 20 68 61 | the.use|r may ha|
|000046e0| 76 65 20 73 65 6c 65 63 | 74 65 64 20 61 20 6e 65 |ve selec|ted a ne|
|000046f0| 77 20 66 6f 6e 74 2e 20 | 41 66 74 65 72 20 74 68 |w font. |After th|
|00004700| 61 74 20 69 74 20 73 68 | 6f 75 6c 64 20 63 61 6c |at it sh|ould cal|
|00004710| 6c 20 53 57 49 0a 22 46 | 6f 6e 74 4d 65 6e 75 5f |l SWI."F|ontMenu_|
|00004720| 44 65 63 6f 64 65 46 6f | 6e 74 4d 65 6e 75 22 20 |DecodeFo|ntMenu" |
|00004730| 77 69 74 68 20 52 30 20 | 70 6f 69 6e 74 69 6e 67 |with R0 |pointing|
|00004740| 20 74 6f 20 74 68 65 20 | 66 69 72 73 74 20 6d 65 | to the |first me|
|00004750| 6e 75 20 73 65 6c 65 63 | 74 69 6f 6e 20 69 6e 0a |nu selec|tion in.|
|00004760| 74 68 65 20 27 6d 65 6e | 75 20 74 72 65 65 20 73 |the 'men|u tree s|
|00004770| 6f 20 66 61 72 27 20 62 | 6c 6f 63 6b 20 77 69 63 |o far' b|lock wic|
|00004780| 68 20 64 65 74 65 72 6d | 69 6e 65 73 20 74 68 65 |h determ|ines the|
|00004790| 20 73 65 6c 65 63 74 65 | 64 20 66 6f 6e 74 2e 20 | selecte|d font. |
|000047a0| 52 31 20 73 68 6f 75 6c | 64 0a 70 6f 69 6e 74 20 |R1 shoul|d.point |
|000047b0| 74 6f 20 61 20 62 75 66 | 66 65 72 20 74 6f 20 63 |to a buf|fer to c|
|000047c0| 6f 6e 74 61 69 6e 20 74 | 68 65 20 61 6e 73 77 65 |ontain t|he answe|
|000047d0| 72 2e 20 54 68 69 73 20 | 62 75 66 66 65 72 20 6d |r. This |buffer m|
|000047e0| 75 73 74 20 62 65 20 61 | 74 20 6c 65 61 73 74 20 |ust be a|t least |
|000047f0| 34 38 0a 62 79 74 65 73 | 2e 20 49 66 20 6f 6e 20 |48.bytes|. If on |
|00004800| 72 65 74 75 72 6e 20 6f | 66 20 74 68 69 73 20 63 |return o|f this c|
|00004810| 61 6c 6c 20 52 30 20 3e | 20 30 2c 20 74 68 65 20 |all R0 >| 0, the |
|00004820| 75 73 65 72 20 73 65 6c | 65 63 74 65 64 20 61 20 |user sel|ected a |
|00004830| 6e 65 77 20 66 6f 6e 74 | 2e 20 54 68 65 0a 62 75 |new font|. The.bu|
|00004840| 66 66 65 72 20 70 61 73 | 73 65 64 20 69 6e 20 52 |ffer pas|sed in R|
|00004850| 31 20 77 69 6c 6c 20 63 | 6f 6e 74 61 69 6e 20 74 |1 will c|ontain t|
|00004860| 68 65 20 66 6f 6e 74 20 | 6e 61 6d 65 20 28 61 20 |he font |name (a |
|00004870| 70 6f 69 6e 74 20 73 65 | 70 65 72 61 74 65 64 2c |point se|perated,|
|00004880| 20 7a 65 72 6f 0a 74 65 | 72 6d 69 6e 61 74 65 64 | zero.te|rminated|
|00004890| 20 66 6f 6e 74 20 73 74 | 72 69 6e 67 29 2e 0a 0a | font st|ring)...|
|000048a0| 20 41 66 74 65 72 20 61 | 20 6d 65 6e 75 20 73 65 | After a| menu se|
|000048b0| 6c 63 74 69 6f 6e 2c 20 | 61 6e 64 20 74 61 6b 69 |lction, |and taki|
|000048c0| 6e 67 20 61 70 70 72 6f | 70 72 69 61 74 65 20 61 |ng appro|priate a|
|000048d0| 63 74 69 6f 6e 73 2c 20 | 74 68 65 20 61 70 70 6c |ctions, |the appl|
|000048e0| 69 63 61 74 69 6f 6e 0a | 73 68 6f 75 6c 64 20 63 |ication.|should c|
|000048f0| 68 65 63 6b 20 74 68 65 | 20 6d 6f 75 73 65 20 62 |heck the| mouse b|
|00004900| 75 74 74 6f 6e 20 73 74 | 61 74 65 20 74 6f 20 73 |utton st|ate to s|
|00004910| 65 65 20 69 66 20 69 74 | 20 68 61 73 20 74 6f 20 |ee if it| has to |
|00004920| 63 61 6c 6c 20 53 57 49 | 0a 22 57 69 6d 70 5f 43 |call SWI|."Wimp_C|
|00004930| 72 65 61 74 65 4d 65 6e | 75 22 20 61 67 61 69 6e |reateMen|u" again|
|00004940| 2e 20 49 66 20 61 64 6a | 75 73 74 20 77 61 73 20 |. If adj|ust was |
|00004950| 75 73 65 64 20 74 6f 20 | 6d 61 6b 65 20 74 68 65 |used to |make the|
|00004960| 20 73 65 6c 65 63 74 69 | 6f 6e 2c 20 69 74 20 68 | selecti|on, it h|
|00004970| 61 73 20 74 6f 0a 63 68 | 65 63 6b 20 20 74 68 65 |as to.ch|eck the|
|00004980| 20 27 46 6f 6e 74 4d 65 | 6e 75 53 65 6c 65 63 74 | 'FontMe|nuSelect|
|00004990| 65 64 27 20 66 6c 61 67 | 20 74 6f 20 64 65 74 65 |ed' flag| to dete|
|000049a0| 72 6d 69 6e 65 20 69 66 | 20 74 68 65 20 75 73 65 |rmine if| the use|
|000049b0| 72 20 73 65 6c 65 63 74 | 65 64 20 61 20 66 6f 6e |r select|ed a fon|
|000049c0| 74 0a 6d 65 6e 75 20 65 | 6e 74 72 79 2e 20 49 66 |t.menu e|ntry. If|
|000049d0| 20 73 6f 2c 20 69 74 20 | 73 68 6f 75 6c 64 20 63 | so, it |should c|
|000049e0| 61 6c 6c 20 53 57 49 20 | 22 46 6f 6e 74 4d 65 6e |all SWI |"FontMen|
|000049f0| 75 5f 53 65 6c 65 63 74 | 22 20 61 73 20 64 69 73 |u_Select|" as dis|
|00004a00| 63 72 69 62 65 64 20 61 | 62 6f 76 65 2e 0a 54 68 |cribed a|bove..Th|
|00004a10| 69 73 20 73 68 6f 75 6c | 64 20 62 65 20 64 6f 6e |is shoul|d be don|
|00004a20| 65 20 77 69 74 68 20 52 | 30 20 70 6f 69 6e 74 69 |e with R|0 pointi|
|00004a30| 6e 67 20 74 6f 20 74 68 | 65 20 73 74 72 69 6e 67 |ng to th|e string|
|00004a40| 20 53 57 49 0a 22 46 6f | 6e 74 4d 65 6e 75 5f 44 | SWI."Fo|ntMenu_D|
|00004a50| 65 63 6f 64 65 46 6f 6e | 74 4d 65 6e 75 22 20 72 |ecodeFon|tMenu" r|
|00004a60| 65 74 75 72 6e 65 64 2e | 20 20 41 73 20 74 68 65 |eturned.| As the|
|00004a70| 20 4d 65 6e 75 57 61 72 | 6e 69 6e 67 46 6c 61 67 | MenuWar|ningFlag|
|00004a80| 20 69 6e 20 74 68 65 20 | 6d 65 6e 75 0a 66 6c 61 | in the |menu.fla|
|00004a90| 67 73 20 6f 66 20 74 68 | 65 20 6d 65 6e 75 20 65 |gs of th|e menu e|
|00004aa0| 6e 74 72 79 20 28 65 2e | 67 2e 20 27 46 6f 6e 74 |ntry (e.|g. 'Font|
|00004ab0| 73 27 29 20 70 72 65 63 | 65 64 69 6e 67 20 74 68 |s') prec|eding th|
|00004ac0| 65 20 66 6f 6e 74 20 6d | 65 6e 75 20 77 61 73 20 |e font m|enu was |
|00004ad0| 73 65 74 0a 28 70 68 68 | 68 21 29 2c 20 74 68 65 |set.(phh|h!), the|
|00004ae0| 20 57 69 6d 70 20 69 73 | 20 75 6e 61 62 6c 65 20 | Wimp is| unable |
|00004af0| 74 6f 20 72 65 63 72 65 | 61 74 69 6e 67 20 74 68 |to recre|ating th|
|00004b00| 65 20 77 68 6f 6c 65 20 | 6d 65 6e 75 20 74 72 65 |e whole |menu tre|
|00004b10| 65 20 61 75 74 6f 6d 61 | 74 69 63 6c 79 2e 0a 53 |e automa|ticly..S|
|00004b20| 6f 20 61 20 6c 69 74 6c | 65 20 74 72 69 63 6b 20 |o a litl|e trick |
|00004b30| 68 61 73 20 74 6f 20 61 | 73 73 75 72 65 20 74 68 |has to a|ssure th|
|00004b40| 61 74 20 69 74 20 77 69 | 6c 6c 20 77 6f 72 6b 20 |at it wi|ll work |
|00004b50| 63 6f 72 72 65 63 74 2e | 20 54 68 65 20 6d 65 6e |correct.| The men|
|00004b60| 75 20 70 6f 69 6e 74 65 | 72 0a 72 65 74 75 72 6e |u pointe|r.return|
|00004b70| 65 64 20 62 79 20 53 57 | 49 20 22 46 6f 6e 74 4d |ed by SW|I "FontM|
|00004b80| 65 6e 75 5f 53 65 6c 65 | 63 74 22 20 68 61 73 20 |enu_Sele|ct" has |
|00004b90| 74 6f 20 62 65 20 70 75 | 74 20 69 6e 20 74 68 65 |to be pu|t in the|
|00004ba0| 20 27 73 75 62 2d 6d 65 | 6e 75 20 70 6f 69 6e 74 | 'sub-me|nu point|
|00004bb0| 65 72 27 0a 77 6f 72 64 | 20 6f 66 20 74 68 65 20 |er'.word| of the |
|00004bc0| 27 46 6f 6e 74 73 27 20 | 65 6e 74 72 79 2c 20 61 |'Fonts' |entry, a|
|00004bd0| 6e 64 20 74 68 65 20 4d | 65 6e 75 57 61 72 6e 69 |nd the M|enuWarni|
|00004be0| 6e 67 46 6c 61 67 20 28 | 62 69 74 20 33 29 20 6f |ngFlag (|bit 3) o|
|00004bf0| 66 20 74 68 65 20 6d 65 | 6e 75 20 66 6c 61 67 73 |f the me|nu flags|
|00004c00| 0a 77 6f 72 64 20 6f 66 | 20 74 68 69 73 20 65 6e |.word of| this en|
|00004c10| 74 72 79 20 73 68 6f 75 | 6c 64 20 62 65 20 63 6c |try shou|ld be cl|
|00004c20| 65 61 72 65 64 2e 20 4e | 6f 77 20 74 68 65 20 63 |eared. N|ow the c|
|00004c30| 61 6c 6c 20 74 6f 20 53 | 57 49 20 22 57 69 6d 70 |all to S|WI "Wimp|
|00004c40| 5f 43 72 65 61 74 65 4d | 65 6e 75 22 0a 63 61 6e |_CreateM|enu".can|
|00004c50| 20 62 65 20 64 6f 6e 65 | 2e 20 49 6e 20 74 68 69 | be done|. In thi|
|00004c60| 73 20 77 61 79 20 69 74 | 20 69 73 20 70 6f 73 73 |s way it| is poss|
|00004c70| 69 62 6c 65 20 66 6f 72 | 20 74 68 65 20 75 73 65 |ible for| the use|
|00004c80| 72 20 74 6f 20 63 6c 69 | 63 6b 20 77 69 74 68 20 |r to cli|ck with |
|00004c90| 61 64 6a 75 73 74 20 69 | 6e 0a 74 68 65 20 66 6f |adjust i|n.the fo|
|00004ca0| 6e 74 20 6d 65 6e 75 2c | 20 61 6e 64 20 6b 65 65 |nt menu,| and kee|
|00004cb0| 70 69 6e 67 20 74 68 65 | 20 6d 65 6e 75 20 6f 6e |ping the| menu on|
|00004cc0| 20 73 63 72 65 65 6e 20 | 61 66 74 65 72 20 74 68 | screen |after th|
|00004cd0| 65 20 73 65 6c 65 63 74 | 69 6f 6e 2e 20 54 68 65 |e select|ion. The|
|00004ce0| 20 6e 65 78 74 0a 74 69 | 6d 65 20 74 68 65 20 75 | next.ti|me the u|
|00004cf0| 73 65 72 20 6f 70 65 6e | 73 20 74 68 65 20 61 70 |ser open|s the ap|
|00004d00| 70 6c 69 63 61 74 69 6f | 6e 20 6d 65 6e 75 2c 20 |plicatio|n menu, |
|00004d10| 74 68 65 20 4d 65 6e 75 | 57 61 72 6e 69 6e 67 46 |the Menu|WarningF|
|00004d20| 6c 61 67 20 28 62 69 74 | 20 33 29 20 73 68 6f 75 |lag (bit| 3) shou|
|00004d30| 6c 64 0a 62 65 20 73 65 | 74 20 61 67 61 69 6e 2c |ld.be se|t again,|
|00004d40| 20 61 73 20 6f 74 68 65 | 72 20 61 70 70 6c 69 63 | as othe|r applic|
|00004d50| 61 74 69 6f 6e 73 20 6d | 61 79 20 68 61 76 65 20 |ations m|ay have |
|00004d60| 75 73 65 64 20 74 68 65 | 20 66 6f 6e 74 20 6d 65 |used the| font me|
|00004d70| 6e 75 20 69 6e 20 74 68 | 65 0a 6d 65 61 6e 77 68 |nu in th|e.meanwh|
|00004d80| 69 6c 65 2c 20 61 6e 64 | 20 69 74 20 69 73 20 6e |ile, and| it is n|
|00004d90| 65 63 65 73 73 61 72 79 | 20 74 68 61 74 20 53 57 |ecessary| that SW|
|00004da0| 49 20 22 46 6f 6e 74 4d | 65 6e 75 5f 53 65 6c 65 |I "FontM|enu_Sele|
|00004db0| 63 74 22 20 69 73 20 63 | 61 6c 6c 65 64 20 6a 75 |ct" is c|alled ju|
|00004dc0| 73 74 0a 62 65 66 6f 72 | 65 20 74 68 65 20 66 6f |st.befor|e the fo|
|00004dd0| 6e 74 20 6d 65 6e 75 20 | 6f 70 65 6e 73 2e 0a 0a |nt menu |opens...|
|00004de0| 20 42 65 63 61 75 73 65 | 20 73 6f 6d 65 20 46 6f | Because| some Fo|
|00004df0| 6e 74 4d 65 6e 75 20 53 | 57 49 27 73 20 6d 61 79 |ntMenu S|WI's may|
|00004e00| 20 74 61 6b 65 20 73 6f | 6d 65 20 74 69 6d 65 20 | take so|me time |
|00004e10| 62 65 66 6f 72 65 20 74 | 68 65 79 20 72 65 74 75 |before t|hey retu|
|00004e20| 72 6e 0a 28 74 68 69 73 | 20 69 73 20 64 75 65 20 |rn.(this| is due |
|00004e30| 74 6f 20 46 6f 6e 74 5f | 4c 69 73 74 46 6f 6e 74 |to Font_|ListFont|
|00004e40| 73 29 2c 20 74 68 65 20 | 48 6f 75 72 67 6c 61 73 |s), the |Hourglas|
|00004e50| 73 20 4f 6e 20 26 20 4f | 66 66 20 53 57 49 27 73 |s On & O|ff SWI's|
|00004e60| 20 61 72 65 20 75 73 65 | 64 0a 6f 6e 20 65 6e 74 | are use|d.on ent|
|00004e70| 72 79 20 61 6e 64 20 65 | 78 69 74 20 72 65 73 70 |ry and e|xit resp|
|00004e80| 65 63 74 69 76 65 6c 79 | 2e 20 53 6f 20 69 6e 20 |ectively|. So in |
|00004e90| 74 68 65 6f 72 79 20 69 | 74 20 69 73 20 70 6f 73 |theory i|t is pos|
|00004ea0| 73 69 62 6c 65 20 74 68 | 61 74 0a 77 68 65 6e 65 |sible th|at.whene|
|00004eb0| 76 65 72 20 6f 6e 65 20 | 6f 66 20 74 68 65 20 46 |ver one |of the F|
|00004ec0| 6f 6e 74 4d 65 6e 75 20 | 53 57 49 27 73 20 74 61 |ontMenu |SWI's ta|
|00004ed0| 6b 65 20 6c 6f 6e 67 65 | 72 20 74 68 61 6e 20 31 |ke longe|r than 1|
|00004ee0| 2f 33 20 6f 66 20 61 20 | 73 65 63 6f 6e 64 2c 20 |/3 of a |second, |
|00004ef0| 61 0a 68 6f 75 72 67 6c | 61 73 73 20 61 70 70 65 |a.hourgl|ass appe|
|00004f00| 61 72 73 2e 20 49 6e 20 | 70 72 61 63 74 69 63 65 |ars. In |practice|
|00004f10| 20 74 68 69 73 20 6f 6e | 6c 79 20 6f 63 63 75 72 | this on|ly occur|
|00004f20| 73 20 77 68 65 6e 20 46 | 6f 6e 74 4d 65 6e 75 5f |s when F|ontMenu_|
|00004f30| 43 72 65 61 74 65 0a 6f | 72 20 46 6f 6e 74 4d 65 |Create.o|r FontMe|
|00004f40| 6e 75 5f 53 65 6c 65 63 | 74 20 69 73 20 63 61 6c |nu_Selec|t is cal|
|00004f50| 6c 65 64 20 61 6e 64 20 | 74 68 65 79 20 68 61 76 |led and |they hav|
|00004f60| 65 20 74 6f 20 61 63 74 | 75 61 6c 6c 79 20 63 72 |e to act|ually cr|
|00004f70| 65 61 74 65 20 61 20 6e | 65 77 0a 6d 65 6e 75 20 |eate a n|ew.menu |
|00004f80| 73 74 72 75 63 74 75 72 | 65 20 28 42 65 63 61 75 |structur|e (Becau|
|00004f90| 73 65 20 6f 66 20 61 20 | 66 69 72 73 74 20 63 61 |se of a |first ca|
|00004fa0| 6c 6c 2c 20 6f 72 20 61 | 20 63 68 61 6e 67 65 64 |ll, or a| changed|
|00004fb0| 20 46 6f 6e 74 24 50 61 | 74 68 29 2e 0a 0a 0a 0a | Font$Pa|th).....|
|00004fc0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00004fd0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 4e 6f 74 | | Not|
|00004fe0| 65 73 20 66 72 6f 6d 20 | 74 68 65 20 61 75 74 68 |es from |the auth|
|00004ff0| 6f 72 0a 0a 20 54 68 65 | 20 72 65 61 73 6f 6e 20 |or.. The| reason |
|00005000| 77 68 79 20 49 20 77 72 | 6f 74 65 20 74 68 69 73 |why I wr|ote this|
|00005010| 20 6d 6f 64 75 6c 65 2c | 20 69 73 20 62 65 63 61 | module,| is beca|
|00005020| 75 73 65 20 49 27 6d 20 | 6e 6f 74 20 6f 6e 6c 79 |use I'm |not only|
|00005030| 20 61 20 70 72 6f 67 72 | 61 6d 6d 65 72 2c 0a 62 | a progr|ammer,.b|
|00005040| 75 74 20 61 6c 73 6f 20 | 61 20 75 73 65 72 20 77 |ut also |a user w|
|00005050| 68 6f 20 6c 69 6b 65 73 | 20 74 6f 20 77 6f 72 6b |ho likes| to work|
|00005060| 20 77 69 74 68 20 74 68 | 65 20 41 72 63 68 69 6d | with th|e Archim|
|00005070| 65 64 65 73 2e 20 54 68 | 69 73 20 69 73 20 62 65 |edes. Th|is is be|
|00005080| 63 61 75 73 65 20 69 74 | 27 73 0a 61 20 66 61 73 |cause it|'s.a fas|
|00005090| 74 20 6d 61 63 68 69 6e | 65 20 61 6e 64 20 62 65 |t machin|e and be|
|000050a0| 63 61 75 73 65 20 6d 6f | 73 74 20 70 61 72 74 73 |cause mo|st parts|
|000050b0| 20 6f 66 20 52 69 73 63 | 2d 4f 53 20 61 6c 6c 6f | of Risc|-OS allo|
|000050c0| 77 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 73 20 74 |w applic|ations t|
|000050d0| 6f 20 62 65 0a 76 65 72 | 79 20 69 6e 74 75 69 74 |o be.ver|y intuit|
|000050e0| 69 76 65 2e 20 49 20 64 | 69 64 6e 27 74 20 6c 69 |ive. I d|idn't li|
|000050f0| 6b 65 20 74 68 65 20 77 | 61 79 20 74 68 65 20 61 |ke the w|ay the a|
|00005100| 76 61 69 6c 61 62 6c 65 | 20 66 6f 6e 74 73 20 77 |vailable| fonts w|
|00005110| 65 72 65 20 70 72 65 73 | 65 6e 74 65 64 20 69 6e |ere pres|ented in|
|00005120| 0a 6d 6f 73 74 20 61 70 | 70 6c 69 63 61 74 69 6f |.most ap|plicatio|
|00005130| 6e 73 2c 20 73 6f 20 49 | 20 73 74 61 72 74 65 64 |ns, so I| started|
|00005140| 20 74 6f 20 66 69 67 75 | 72 65 20 6f 75 74 20 61 | to figu|re out a|
|00005150| 20 70 72 6f 70 65 72 20 | 73 6f 6c 75 74 69 6f 6e | proper |solution|
|00005160| 3a 20 46 6f 6e 74 4d 65 | 6e 75 2e 0a 0a 20 49 20 |: FontMe|nu... I |
|00005170| 68 6f 70 65 20 74 68 61 | 74 20 66 75 74 75 72 65 |hope tha|t future|
|00005180| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 73 20 61 64 | applica|tions ad|
|00005190| 6f 70 74 20 74 6f 20 74 | 68 69 73 20 6d 65 74 68 |opt to t|his meth|
|000051a0| 6f 64 2c 20 73 6f 20 70 | 6c 65 61 73 65 20 70 61 |od, so p|lease pa|
|000051b0| 73 73 20 69 74 20 6f 6e | 2e 0a 45 76 65 72 79 62 |ss it on|..Everyb|
|000051c0| 6f 64 79 20 69 73 20 66 | 72 65 65 20 74 6f 20 75 |ody is f|ree to u|
|000051d0| 73 65 20 69 74 2c 20 65 | 76 65 6e 20 69 6e 20 63 |se it, e|ven in c|
|000051e0| 6f 6d 6d 65 72 63 69 61 | 6c 20 63 6f 64 65 2e 20 |ommercia|l code. |
|000051f0| 54 68 65 20 6f 6e 6c 79 | 20 72 65 73 74 72 69 63 |The only| restric|
|00005200| 74 69 6f 6e 0a 69 73 20 | 74 68 61 74 20 74 68 69 |tion.is |that thi|
|00005210| 73 20 64 6f 63 75 6d 65 | 6e 74 20 73 68 6f 75 6c |s docume|nt shoul|
|00005220| 64 20 6e 6f 74 20 62 65 | 20 73 65 70 65 72 61 74 |d not be| seperat|
|00005230| 65 64 20 66 72 6f 6d 20 | 74 68 65 20 46 6f 6e 74 |ed from |the Font|
|00005240| 4d 65 6e 75 20 6d 6f 64 | 75 6c 65 2c 20 61 6e 64 |Menu mod|ule, and|
|00005250| 0a 74 68 61 74 20 62 6f | 74 68 20 74 68 65 20 6d |.that bo|th the m|
|00005260| 6f 64 75 6c 65 20 61 6e | 64 20 74 68 69 73 20 64 |odule an|d this d|
|00005270| 6f 63 75 6d 65 6e 74 20 | 72 65 6d 61 69 6e 20 75 |ocument |remain u|
|00005280| 6e 63 68 61 6e 67 65 64 | 2e 20 49 6e 20 63 61 73 |nchanged|. In cas|
|00005290| 65 20 6f 66 0a 63 6f 6d | 6d 65 72 63 69 61 6c 20 |e of.com|mercial |
|000052a0| 75 73 65 20 49 20 77 6f | 75 6c 64 20 6c 69 6b 65 |use I wo|uld like|
|000052b0| 20 74 6f 20 6b 6e 6f 77 | 20 74 68 69 73 20 69 6e | to know| this in|
|000052c0| 20 61 64 76 61 6e 63 65 | 20 28 49 20 63 6f 75 6c | advance| (I coul|
|000052d0| 64 20 74 68 61 6e 20 70 | 72 6f 76 69 64 65 0a 79 |d than p|rovide.y|
|000052e0| 6f 75 20 77 69 74 68 20 | 69 74 73 20 6c 61 74 65 |ou with |its late|
|000052f0| 73 74 20 72 65 6c 65 61 | 73 65 29 2e 20 4d 79 20 |st relea|se). My |
|00005300| 61 64 64 72 65 73 73 20 | 69 73 20 61 74 20 74 68 |address |is at th|
|00005310| 65 20 65 6e 64 20 6f 66 | 20 74 68 69 73 20 64 6f |e end of| this do|
|00005320| 63 75 6d 65 6e 74 2e 20 | 59 6f 75 0a 63 61 6e 20 |cument. |You.can |
|00005330| 61 6c 77 61 79 73 20 63 | 6f 6e 74 61 63 74 20 6d |always c|ontact m|
|00005340| 65 20 69 66 20 79 6f 75 | 20 66 6f 75 6e 64 20 73 |e if you| found s|
|00005350| 6f 6d 65 20 62 75 67 2c | 20 6f 72 20 77 68 65 6e |ome bug,| or when|
|00005360| 20 68 61 76 69 6e 67 20 | 6f 74 68 65 72 0a 73 75 | having |other.su|
|00005370| 67 67 65 73 74 69 6f 6e | 73 2e 0a 0a 0a 2d 2d 2d |ggestion|s....---|
|00005380| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005390| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000053a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000053b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000053c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 0a 0a 20 20 20 20 |--------|--.. |
|000053d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000053e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 46 6f 6e 74 | | Font|
|000053f0| 4d 65 6e 75 20 53 57 49 | 27 73 0a 0a 20 20 20 20 |Menu SWI|'s.. |
|00005400| 20 20 20 20 20 20 20 42 | 65 6c 6f 77 20 61 72 65 | B|elow are|
|00005410| 20 74 68 65 20 73 68 6f | 72 74 20 64 69 73 63 72 | the sho|rt discr|
|00005420| 69 70 74 69 6f 6e 73 20 | 6f 66 20 74 68 65 20 46 |iptions |of the F|
|00005430| 6f 6e 74 4d 65 6e 75 20 | 53 57 49 27 73 2e 0a 20 |ontMenu |SWI's.. |
|00005440| 20 20 20 20 20 20 20 20 | 20 20 0a 0a 46 6f 6e 74 | | ..Font|
|00005450| 4d 65 6e 75 5f 43 72 65 | 61 74 65 20 26 38 44 30 |Menu_Cre|ate &8D0|
|00005460| 38 30 0a 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |80.-----|--------|
|00005470| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 0a 4f 6e 20 65 6e 74 |--------|-.On ent|
|00005480| 72 79 3a 20 2d 2d 0a 4f | 6e 20 65 78 69 74 20 3a |ry: --.O|n exit :|
|00005490| 20 52 30 20 3d 20 4e 75 | 6d 62 65 72 20 6f 66 20 | R0 = Nu|mber of |
|000054a0| 66 6f 6e 74 73 20 66 6f | 75 6e 64 0a 0a 20 54 68 |fonts fo|und.. Th|
|000054b0| 69 73 20 77 69 6c 6c 20 | 63 72 65 61 74 65 20 61 |is will |create a|
|000054c0| 20 66 6f 6e 74 20 6d 65 | 6e 75 20 73 74 72 75 63 | font me|nu struc|
|000054d0| 74 75 72 65 20 69 6e 20 | 52 4d 41 2c 20 69 66 20 |ture in |RMA, if |
|000054e0| 6e 6f 74 20 61 6c 72 65 | 61 64 79 20 64 6f 6e 65 |not alre|ady done|
|000054f0| 20 73 6f 2e 20 41 6e 0a | 65 72 72 6f 72 20 6f 63 | so. An.|error oc|
|00005500| 63 75 72 73 20 69 66 20 | 74 68 65 72 65 20 69 73 |curs if |there is|
|00005510| 20 6e 6f 74 20 65 6e 6f | 75 67 68 20 72 6f 6f 6d | not eno|ugh room|
|00005520| 20 69 6e 20 52 4d 41 20 | 74 6f 20 63 72 65 61 74 | in RMA |to creat|
|00005530| 65 20 74 68 65 20 6d 65 | 6e 75 2e 0a 0a 0a 0a 46 |e the me|nu.....F|
|00005540| 6f 6e 74 4d 65 6e 75 5f | 52 65 6c 65 61 73 65 20 |ontMenu_|Release |
|00005550| 26 38 44 30 38 31 0a 2d | 2d 2d 2d 2d 2d 2d 2d 2d |&8D081.-|--------|
|00005560| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 0a 4f |--------|------.O|
|00005570| 6e 20 65 6e 74 72 79 3a | 20 2d 2d 0a 4f 6e 20 65 |n entry:| --.On e|
|00005580| 78 69 74 20 3a 20 2d 2d | 0a 0a 20 54 68 69 73 20 |xit : --|.. This |
|00005590| 77 69 6c 6c 20 72 65 6c | 65 61 73 65 20 74 68 65 |will rel|ease the|
|000055a0| 20 6d 65 6d 6f 72 79 20 | 74 61 6b 65 6e 20 62 79 | memory |taken by|
|000055b0| 20 74 68 65 20 66 6f 6e | 74 20 6d 65 6e 75 20 69 | the fon|t menu i|
|000055c0| 66 20 6e 6f 20 74 61 73 | 6b 73 20 61 72 65 20 75 |f no tas|ks are u|
|000055d0| 73 69 6e 67 0a 69 74 20 | 61 6e 79 6d 6f 72 65 2e |sing.it |anymore.|
|000055e0| 0a 0a 0a 0a 46 6f 6e 74 | 4d 65 6e 75 5f 53 65 6c |....Font|Menu_Sel|
|000055f0| 65 63 74 20 26 38 44 30 | 38 32 0a 2d 2d 2d 2d 2d |ect &8D0|82.-----|
|00005600| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005610| 2d 0a 4f 6e 20 65 6e 74 | 72 79 3a 20 52 30 20 3d |-.On ent|ry: R0 =|
|00005620| 20 70 6f 69 6e 74 65 72 | 20 74 6f 20 70 6f 69 6e | pointer| to poin|
|00005630| 74 20 73 65 70 65 72 61 | 74 65 64 2c 20 63 74 72 |t sepera|ted, ctr|
|00005640| 6c 20 74 65 72 6d 69 6e | 61 74 65 64 20 66 6f 6e |l termin|ated fon|
|00005650| 74 20 73 74 72 69 6e 67 | 20 0a 20 20 20 20 20 20 |t string| . |
|00005660| 20 20 20 20 52 31 20 3d | 20 53 79 73 74 65 6d 46 | R1 =| SystemF|
|00005670| 6f 6e 74 20 66 6c 61 67 | 20 20 20 20 20 20 20 20 |ont flag| |
|00005680| 20 20 20 20 0a 0a 4f 6e | 20 65 78 69 74 20 3a 20 | ..On| exit : |
|00005690| 52 30 20 3d 20 53 74 61 | 74 65 20 66 6c 61 67 0a |R0 = Sta|te flag.|
|000056a0| 20 20 20 20 20 20 20 20 | 20 20 52 31 20 3d 20 70 | | R1 = p|
|000056b0| 6f 69 6e 74 65 72 20 74 | 6f 20 66 6f 6e 74 20 6d |ointer t|o font m|
|000056c0| 65 6e 75 20 73 74 72 75 | 63 74 75 72 65 0a 0a 20 |enu stru|cture.. |
|000056d0| 54 68 69 73 20 77 69 6c | 6c 20 74 69 63 6b 20 74 |This wil|l tick t|
|000056e0| 68 65 20 66 6f 6e 74 20 | 70 61 73 73 65 64 20 69 |he font |passed i|
|000056f0| 6e 20 52 30 20 6f 6e 20 | 65 6e 74 72 79 2e 20 52 |n R0 on |entry. R|
|00005700| 31 20 64 65 74 65 72 6d | 69 6e 65 73 20 69 66 0a |1 determ|ines if.|
|00005710| 27 53 79 73 74 65 6d 46 | 6f 6e 74 27 20 73 68 6f |'SystemF|ont' sho|
|00005720| 75 6c 64 20 6f 63 63 75 | 72 20 69 6e 20 74 68 65 |uld occu|r in the|
|00005730| 20 6d 65 6e 75 20 61 73 | 20 66 6f 6c 6c 6f 77 73 | menu as| follows|
|00005740| 3a 0a 0a 20 20 56 61 6c | 75 65 20 4d 65 61 6e 69 |:.. Val|ue Meani|
|00005750| 6e 67 0a 20 20 20 20 30 | 20 20 20 27 53 79 73 74 |ng. 0| 'Syst|
|00005760| 65 6d 46 6f 6e 74 27 20 | 64 6f 65 73 20 6e 6f 74 |emFont' |does not|
|00005770| 20 6f 63 63 75 72 20 69 | 6e 20 74 68 65 20 6d 65 | occur i|n the me|
|00005780| 6e 75 0a 20 20 20 20 31 | 20 20 20 27 53 79 73 74 |nu. 1| 'Syst|
|00005790| 65 6d 46 6f 6e 74 27 20 | 64 6f 65 73 20 6f 63 63 |emFont' |does occ|
|000057a0| 75 72 20 69 6e 20 74 68 | 65 20 6d 65 6e 75 0a 20 |ur in th|e menu. |
|000057b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000057c0| 20 20 20 20 20 20 20 20 | 0a 20 4f 6e 20 65 78 69 | |. On exi|
|000057d0| 74 20 52 30 20 73 68 6f | 77 73 20 74 68 65 20 73 |t R0 sho|ws the s|
|000057e0| 65 6c 65 63 74 69 6f 6e | 20 73 74 61 74 65 20 61 |election| state a|
|000057f0| 73 20 66 6f 6c 6c 6f 77 | 73 3a 0a 0a 20 20 56 61 |s follow|s:.. Va|
|00005800| 6c 75 65 20 4d 65 61 6e | 69 6e 67 0a 20 20 20 20 |lue Mean|ing. |
|00005810| 30 20 20 20 54 6f 20 62 | 65 20 73 65 6c 65 63 74 |0 To b|e select|
|00005820| 65 64 20 66 6f 6e 74 20 | 6e 6f 74 20 66 6f 75 6e |ed font |not foun|
|00005830| 64 2c 20 6e 6f 20 74 69 | 63 6b 73 0a 20 20 20 20 |d, no ti|cks. |
|00005840| 31 20 20 20 54 6f 20 62 | 65 20 73 65 6c 65 63 74 |1 To b|e select|
|00005850| 65 64 20 66 6f 6e 74 20 | 66 6f 75 6e 64 2c 20 61 |ed font |found, a|
|00005860| 6e 64 20 74 69 63 6b 65 | 64 20 20 0a 20 20 20 20 |nd ticke|d . |
|00005870| 32 20 20 20 4e 6f 20 66 | 6f 6e 74 20 65 6e 74 72 |2 No f|ont entr|
|00005880| 69 65 73 20 66 6f 75 6e | 64 2c 20 6d 65 6e 75 20 |ies foun|d, menu |
|00005890| 63 6f 6e 73 69 73 74 73 | 20 6f 6e 65 20 69 74 65 |consists| one ite|
|000058a0| 6d 3b 20 27 53 79 73 74 | 65 6d 46 6f 6e 74 27 2c |m; 'Syst|emFont',|
|000058b0| 0a 20 20 20 20 20 20 20 | 20 61 6e 64 20 69 73 20 |. | and is |
|000058c0| 74 69 63 6b 65 64 0a 20 | 20 20 20 20 20 20 20 20 |ticked. | |
|000058d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000058e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000058f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005900| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005910| 20 20 20 20 20 20 20 20 | 20 0a 20 52 31 20 77 69 | | . R1 wi|
|00005920| 6c 6c 20 70 6f 69 6e 74 | 20 74 6f 20 74 68 65 20 |ll point| to the |
|00005930| 66 6f 6e 74 20 6d 65 6e | 75 20 6f 6e 20 65 78 69 |font men|u on exi|
|00005940| 74 2e 20 41 6e 20 65 72 | 72 6f 72 20 6f 63 63 75 |t. An er|ror occu|
|00005950| 72 73 20 69 66 20 6e 6f | 20 66 6f 6e 74 20 6d 65 |rs if no| font me|
|00005960| 6e 75 20 65 78 69 73 74 | 73 2e 20 0a 0a 0a 0a 46 |nu exist|s. ....F|
|00005970| 6f 6e 74 4d 65 6e 75 5f | 44 65 73 65 6c 65 63 74 |ontMenu_|Deselect|
|00005980| 20 26 38 44 30 38 33 0a | 2d 2d 2d 2d 2d 2d 2d 2d | &8D083.|--------|
|00005990| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000059a0| 0a 4f 6e 20 65 6e 74 72 | 79 3a 20 2d 2d 2d 0a 4f |.On entr|y: ---.O|
|000059b0| 6e 20 65 78 69 74 20 3a | 20 2d 2d 0a 0a 20 54 68 |n exit :| --.. Th|
|000059c0| 69 73 20 77 69 6c 6c 20 | 63 6c 65 61 72 20 61 6c |is will |clear al|
|000059d0| 6c 20 74 69 63 6b 73 20 | 61 6e 64 20 6d 61 72 6b |l ticks |and mark|
|000059e0| 73 20 6f 66 20 74 68 65 | 20 66 6f 6e 74 20 6d 65 |s of the| font me|
|000059f0| 6e 75 2e 20 49 74 20 69 | 73 20 6e 6f 74 20 6e 65 |nu. It i|s not ne|
|00005a00| 63 65 73 73 61 72 79 0a | 74 6f 20 63 61 6c 6c 20 |cessary.|to call |
|00005a10| 74 68 69 73 20 53 57 49 | 20 62 65 66 6f 72 65 20 |this SWI| before |
|00005a20| 61 20 46 6f 6e 74 4d 65 | 6e 75 5f 53 65 6c 65 63 |a FontMe|nu_Selec|
|00005a30| 74 20 63 61 6c 6c 2c 20 | 61 73 20 46 6f 6e 74 4d |t call, |as FontM|
|00005a40| 65 6e 75 5f 53 65 6c 65 | 63 74 20 77 69 6c 6c 20 |enu_Sele|ct will |
|00005a50| 74 61 6b 65 0a 63 61 72 | 65 20 6f 66 20 63 6c 65 |take.car|e of cle|
|00005a60| 61 6e 69 6e 67 20 75 70 | 20 6f 6c 64 20 73 65 6c |aning up| old sel|
|00005a70| 65 63 74 69 6f 6e 2e 20 | 41 6e 20 65 72 72 6f 72 |ection. |An error|
|00005a80| 20 6f 63 63 75 72 73 20 | 69 66 20 6e 6f 20 66 6f | occurs |if no fo|
|00005a90| 6e 74 20 6d 65 6e 75 20 | 65 78 69 73 74 73 2e 20 |nt menu |exists. |
|00005aa0| 0a 20 20 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |. . | |
|00005ab0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005ac0| 20 20 0a 0a 46 6f 6e 74 | 4d 65 6e 75 5f 44 65 63 | ..Font|Menu_Dec|
|00005ad0| 6f 64 65 46 6f 6e 74 4d | 65 6e 75 20 26 38 44 30 |odeFontM|enu &8D0|
|00005ae0| 38 34 0a 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |84.-----|--------|
|00005af0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005b00| 2d 0a 4f 6e 20 65 6e 74 | 72 79 3a 20 52 30 20 3d |-.On ent|ry: R0 =|
|00005b10| 20 70 6f 69 6e 74 65 72 | 20 74 6f 20 61 20 6c 69 | pointer| to a li|
|00005b20| 73 74 20 6f 66 20 66 6f | 6e 74 20 6d 65 6e 75 20 |st of fo|nt menu |
|00005b30| 73 65 6c 65 63 74 69 6f | 6e 73 0a 20 20 20 20 20 |selectio|ns. |
|00005b40| 20 20 20 20 20 52 31 20 | 3d 20 70 6f 69 6e 74 65 | R1 |= pointe|
|00005b50| 72 20 74 6f 20 61 20 62 | 75 66 66 65 72 20 74 6f |r to a b|uffer to|
|00005b60| 20 63 6f 6e 74 61 69 6e | 20 74 68 65 20 61 6e 73 | contain| the ans|
|00005b70| 77 65 72 20 0a 20 20 20 | 20 20 20 20 20 20 20 20 |wer . | |
|00005b80| 20 20 20 20 28 61 74 20 | 6c 65 61 73 74 20 34 38 | (at |least 48|
|00005b90| 20 62 79 74 65 73 20 6c | 6f 6e 67 29 0a 4f 6e 20 | bytes l|ong).On |
|00005ba0| 65 78 69 74 20 3a 20 52 | 30 20 3d 20 46 6c 61 67 |exit : R|0 = Flag|
|00005bb0| 20 28 30 20 3d 20 6e 6f | 6e 2d 73 65 6e 73 69 62 | (0 = no|n-sensib|
|00005bc0| 6c 65 2f 20 31 3d 20 73 | 65 6e 73 69 62 6c 65 20 |le/ 1= s|ensible |
|00005bd0| 73 65 6c 65 63 74 69 6f | 6e 29 0a 0a 20 54 68 69 |selectio|n).. Thi|
|00005be0| 73 20 77 69 6c 6c 20 64 | 65 63 6f 64 65 20 74 68 |s will d|ecode th|
|00005bf0| 65 20 66 6f 6e 74 20 6d | 65 6e 75 20 73 65 6c 65 |e font m|enu sele|
|00005c00| 63 74 69 6f 6e 20 69 6e | 74 6f 20 61 20 66 6f 6e |ction in|to a fon|
|00005c10| 74 20 73 74 72 69 6e 67 | 20 66 6f 72 20 74 68 65 |t string| for the|
|00005c20| 0a 46 6f 6e 74 4d 61 6e | 61 67 65 72 2e 20 54 68 |.FontMan|ager. Th|
|00005c30| 69 73 20 73 74 72 69 6e | 67 20 63 61 6e 20 62 65 |is strin|g can be|
|00005c40| 20 70 61 73 73 65 64 20 | 62 61 63 6b 20 74 6f 20 | passed |back to |
|00005c50| 46 6f 6e 74 4d 65 6e 75 | 5f 53 65 6c 65 63 74 20 |FontMenu|_Select |
|00005c60| 74 6f 20 74 69 63 6b 20 | 74 68 65 0a 61 70 70 72 |to tick |the.appr|
|00005c70| 6f 70 72 69 61 74 65 20 | 65 6e 74 72 69 65 73 2e |opriate |entries.|
|00005c80| 20 41 6e 20 65 72 72 6f | 72 20 6f 63 63 75 72 73 | An erro|r occurs|
|00005c90| 20 69 66 20 6e 6f 20 66 | 6f 6e 74 20 6d 65 6e 75 | if no f|ont menu|
|00005ca0| 20 65 78 69 73 74 73 2e | 20 54 68 69 73 20 63 61 | exists.| This ca|
|00005cb0| 6c 6c 20 6d 61 6b 65 73 | 0a 75 73 65 20 6f 66 20 |ll makes|.use of |
|00005cc0| 57 69 6d 70 5f 44 65 63 | 6f 64 65 4d 65 6e 75 2c |Wimp_Dec|odeMenu,|
|00005cd0| 20 62 75 74 20 61 73 20 | 69 74 20 69 73 20 70 6f | but as |it is po|
|00005ce0| 73 73 69 62 6c 65 20 74 | 68 61 74 20 74 68 65 20 |ssible t|hat the |
|00005cf0| 72 65 74 75 72 6e 65 64 | 20 73 74 72 69 6e 67 20 |returned| string |
|00005d00| 65 6e 64 73 0a 77 69 74 | 68 20 27 50 6c 61 69 6e |ends.wit|h 'Plain|
|00005d10| 27 20 28 61 20 6d 61 64 | 65 20 75 70 20 6e 61 6d |' (a mad|e up nam|
|00005d20| 65 20 74 6f 20 64 69 73 | 74 69 6e 67 75 69 73 65 |e to dis|tinguise|
|00005d30| 20 61 6e 20 65 6d 70 74 | 79 20 73 75 62 2d 6e 61 | an empt|y sub-na|
|00005d40| 6d 65 20 66 72 6f 6d 20 | 74 68 65 20 72 65 73 74 |me from |the rest|
|00005d50| 0a 6f 66 20 74 68 65 20 | 73 75 62 2d 6e 61 6d 65 |.of the |sub-name|
|00005d60| 73 29 2c 20 69 74 20 68 | 61 73 20 74 6f 20 63 68 |s), it h|as to ch|
|00005d70| 65 63 6b 20 66 6f 72 20 | 74 68 69 73 2c 20 61 6e |eck for |this, an|
|00005d80| 64 20 74 68 72 6f 77 20 | 61 77 61 79 20 74 68 69 |d throw |away thi|
|00005d90| 73 20 6c 61 73 74 0a 73 | 75 62 2d 6e 61 6d 65 20 |s last.s|ub-name |
|00005da0| 73 6f 20 74 68 65 20 46 | 6f 6e 74 4d 61 6e 61 67 |so the F|ontManag|
|00005db0| 65 72 20 63 61 6e 20 72 | 65 63 6f 67 6e 69 73 65 |er can r|ecognise|
|00005dc0| 20 74 68 65 20 72 65 71 | 75 69 72 65 64 20 66 6f | the req|uired fo|
|00005dd0| 6e 74 2e 20 0a 20 20 4f | 6e 20 65 78 69 74 20 52 |nt. . O|n exit R|
|00005de0| 30 20 63 6f 6e 61 74 61 | 69 6e 73 20 61 20 66 6c |0 conata|ins a fl|
|00005df0| 61 67 20 74 65 6c 6c 69 | 6e 67 20 79 6f 75 20 69 |ag telli|ng you i|
|00005e00| 66 20 74 68 65 20 73 65 | 6c 65 63 74 69 6f 6e 20 |f the se|lection |
|00005e10| 74 68 65 20 75 73 65 72 | 20 6d 61 64 65 20 77 61 |the user| made wa|
|00005e20| 73 0a 61 20 73 65 6e 73 | 69 62 6c 65 20 6f 6e 65 |s.a sens|ible one|
|00005e30| 2e 20 49 66 2c 20 66 6f | 72 20 65 78 61 6d 70 6c |. If, fo|r exampl|
|00005e40| 65 2c 20 74 68 65 20 75 | 73 65 72 20 73 65 6c 65 |e, the u|ser sele|
|00005e50| 63 74 65 64 20 6e 6f 6e | 2d 6c 65 61 66 20 6d 65 |cted non|-leaf me|
|00005e60| 6e 75 20 65 6e 74 72 79 | 20 28 65 2e 67 2e 0a 27 |nu entry| (e.g..'|
|00005e70| 54 72 69 6e 69 74 79 2e | 4d 65 64 69 75 6d 27 29 |Trinity.|Medium')|
|00005e80| 20 74 68 65 6e 20 74 68 | 69 73 20 66 6c 61 67 20 | then th|is flag |
|00005e90| 77 69 6c 6c 20 62 65 20 | 30 2e 20 49 66 20 74 68 |will be |0. If th|
|00005ea0| 65 20 66 6c 61 67 20 69 | 73 20 30 2c 20 79 6f 75 |e flag i|s 0, you|
|00005eb0| 20 61 72 65 0a 61 64 76 | 69 73 65 64 20 6e 6f 74 | are.adv|ised not|
|00005ec0| 20 74 6f 20 64 6f 20 61 | 6e 79 74 68 69 6e 67 2e | to do a|nything.|
|00005ed0| 0a 0a 0a 0a 46 6f 6e 74 | 4d 65 6e 75 5f 53 6d 61 |....Font|Menu_Sma|
|00005ee0| 73 68 20 26 38 44 30 38 | 35 0a 2d 2d 2d 2d 2d 2d |sh &8D08|5.------|
|00005ef0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 0a |--------|-------.|
|00005f00| 4f 6e 20 65 6e 74 72 79 | 3a 20 2d 2d 0a 4f 6e 20 |On entry|: --.On |
|00005f10| 65 78 69 74 20 3a 20 2d | 2d 0a 0a 20 54 68 69 73 |exit : -|-.. This|
|00005f20| 20 77 69 6c 6c 20 72 65 | 6c 65 61 73 65 20 74 68 | will re|lease th|
|00005f30| 65 20 66 6f 6e 74 20 6d | 65 6e 75 20 6d 65 6d 6f |e font m|enu memo|
|00005f40| 72 79 20 77 69 74 68 6f | 75 74 20 6c 6f 6f 6b 69 |ry witho|ut looki|
|00005f50| 6e 67 20 61 74 20 74 68 | 65 20 61 6d 6f 75 6e 74 |ng at th|e amount|
|00005f60| 20 6f 66 0a 74 69 6d 65 | 73 20 46 6f 6e 74 4d 65 | of.time|s FontMe|
|00005f70| 6e 75 5f 43 72 65 61 74 | 65 20 77 61 73 20 63 61 |nu_Creat|e was ca|
|00005f80| 6c 6c 65 64 2e 0a 0a 0a | 0a 46 6f 6e 74 4d 65 6e |lled....|.FontMen|
|00005f90| 75 5f 52 65 43 72 65 61 | 74 65 20 26 38 44 30 38 |u_ReCrea|te &8D08|
|00005fa0| 36 0a 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |6.------|--------|
|00005fb0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 0a 4f 6e 20 65 6e |--------|--.On en|
|00005fc0| 74 72 79 3a 20 2d 2d 0a | 4f 6e 20 65 78 69 74 20 |try: --.|On exit |
|00005fd0| 3a 20 52 30 20 3d 20 4e | 75 6d 62 65 72 20 6f 66 |: R0 = N|umber of|
|00005fe0| 20 66 6f 6e 74 73 20 66 | 6f 75 6e 64 0a 0a 20 54 | fonts f|ound.. T|
|00005ff0| 68 69 73 20 77 69 6c 6c | 20 72 65 6c 65 61 73 65 |his will| release|
|00006000| 20 61 20 65 78 69 73 74 | 69 6e 67 20 66 6f 6e 74 | a exist|ing font|
|00006010| 20 6d 65 6e 75 2c 20 61 | 6e 64 20 72 65 63 72 65 | menu, a|nd recre|
|00006020| 61 74 65 20 69 74 2e 0a | 0a 0a 0a 20 20 20 20 20 |ate it..|... |
|00006030| 20 20 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d | ======|========|
|00006040| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00006050| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00006060| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 0a 0a 20 |========|=====.. |
|00006070| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 54 | | T|
|00006080| 6f 20 63 6f 6e 74 61 63 | 74 20 74 68 65 20 61 75 |o contac|t the au|
|00006090| 74 68 6f 72 20 6f 66 20 | 46 6f 6e 74 4d 65 6e 75 |thor of |FontMenu|
|000060a0| 2c 20 70 6c 65 61 73 65 | 20 77 72 69 74 65 20 74 |, please| write t|
|000060b0| 6f 3a 0a 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |o:.. | |
|000060c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000060d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 4a 6f | | Jo|
|000060e0| 72 69 73 20 52 d6 6c 69 | 6e 67 0a 20 20 20 20 20 |ris R.li|ng. |
|000060f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00006100| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00006110| 20 20 20 20 20 4f 75 64 | 65 73 74 72 61 61 74 20 | Oud|estraat |
|00006120| 31 38 36 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |186. | |
|00006130| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00006140| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 38 32 | | 82|
|00006150| 36 31 20 43 57 20 4b 61 | 6d 70 65 6e 0a 20 20 20 |61 CW Ka|mpen. |
|00006160| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00006170| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00006180| 20 20 20 20 20 20 20 54 | 68 65 20 4e 65 74 68 65 | T|he Nethe|
|00006190| 72 6c 61 6e 64 73 0a 0a | 20 20 20 20 20 20 20 20 |rlands..| |
|000061a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000061b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000061c0| 20 20 54 65 6c 3a 30 35 | 32 30 32 2d 32 37 39 38 | Tel:05|202-2798|
|000061d0| 39 0a 46 69 6c 65 44 61 | 74 61 82 46 6f 6e 74 4d |9.FileDa|ta.FontM|
|000061e0| 65 6e 75 00 f3 ff d4 0d | 00 00 42 fa ff ff 3e c9 |enu.....|..B...>.|
|000061f0| a6 d6 03 00 34 3e 00 00 | 00 00 60 00 00 00 e8 00 |....4>..|..`.....|
|00006200| 00 00 00 00 00 00 2c 00 | 00 00 38 00 00 00 00 00 |......,.|..8.....|
|00006210| 00 00 80 d0 08 00 74 01 | 00 00 1b 02 00 00 00 00 |......t.|........|
|00006220| 00 00 46 6f 6e 74 4d 65 | 6e 75 00 52 31 2c 46 6f |..FontMe|nu.R1,Fo|
|00006230| 6e 74 4d 65 6e 75 09 31 | 2e 31 36 20 28 32 30 20 |ntMenu.1|.16 (20 |
|00006240| 44 65 63 20 31 39 39 30 | 29 20 4a 2e 52 d6 6c 69 |Dec 1990|) J.R.li|
|00006250| 6e 67 00 23 30 5d 00 40 | 2d e9 00 70 a0 e3 0a 00 |ng.#0].@|-..p....|
|00006260| a0 e3 0a 10 a0 e1 21 00 | 02 ef 02 75 a0 71 00 00 |......!.|...u.q..|
|00006270| 9c e5 00 00 30 e3 00 80 | fd 18 18 30 a0 e3 06 00 |....0...|...0....|
|00006280| a0 e3 1e 00 02 ef 28 00 | 8f 62 00 40 bd 68 01 f2 |......(.|.b.@.h..|
|00006290| 9e 63 00 20 8c e5 00 00 | a0 e3 00 00 82 e5 04 00 |.c. ....|........|
|000062a0| 82 e5 08 00 82 e5 00 00 | 57 e3 01 79 a0 03 0c 70 |........|W..y...p|
|000062b0| 82 e5 00 80 fd e8 80 d0 | 08 00 46 6f 6e 74 4d 65 |........|..FontMe|
|000062c0| 6e 75 20 75 6e 61 62 6c | 65 20 74 6f 20 63 6c 61 |nu unabl|e to cla|
|000062d0| 69 6d 20 77 6f 72 6b 73 | 70 61 63 65 00 3b 00 40 |im works|pace.;.@|
|000062e0| 2d e9 00 00 9c e5 00 00 | 50 e3 00 80 fd 08 00 00 |-.......|P.......|
|000062f0| 5a e3 00 80 fd 08 07 00 | a0 e3 00 20 9c e5 04 50 |Z.......|... ...P|
|00006300| 92 e5 00 00 55 e3 0c 00 | 00 ca 00 50 92 e5 08 60 |....U...|...P...`|
|00006310| 92 e5 1e 00 02 ef 00 00 | a0 e3 00 00 8c e5 00 00 |........|........|
|00006320| 55 e3 05 20 a0 11 1e 00 | 02 1f 00 00 56 e3 06 20 |U.. ....|....V.. |
|00006330| a0 11 1e 00 02 1f 95 00 | 00 eb 00 80 fd e8 04 00 |........|........|
|00006340| 8f e2 00 40 bd e8 01 f2 | 9e e3 81 d0 08 00 4d 6f |...@....|......Mo|
|00006350| 64 75 6c 65 20 69 73 20 | 63 75 72 72 65 6e 74 6c |dule is |currentl|
|00006360| 79 20 61 63 74 69 76 65 | 00 3d 00 44 2d e9 07 00 |y active|.=.D-...|
|00006370| 5b e3 1b 00 00 2a 00 c0 | 9c e5 0e a0 a0 e1 02 f3 |[....*..|........|
|00006380| 3a e3 00 00 a0 f1 c0 06 | 06 ef 08 e0 8f e2 03 e0 |:.......|........|
|00006390| 8e e3 30 a0 8f e2 0b f1 | 8a e0 05 00 00 7a c1 06 |..0.....|.....z..|
|000063a0| 06 ef 0e a0 a0 e1 02 f3 | 3a e3 00 00 a0 f1 00 44 |........|:......D|
|000063b0| bd e8 01 f2 9e e3 c1 06 | 06 ef 0e a0 a0 e1 02 f3 |........|........|
|000063c0| 3a e3 00 00 a0 f1 00 84 | bd e8 88 00 00 ea 2a 02 |:.......|......*.|
|000063d0| 00 ea 3d 02 00 ea d6 02 | 00 ea 96 02 00 ea ec 02 |..=.....|........|
|000063e0| 00 ea f2 02 00 ea 00 44 | bd e8 00 00 8f e2 01 f2 |.......D|........|
|000063f0| 9e e3 82 d0 08 00 55 6e | 6b 6e 6f 77 6e 20 46 6f |......Un|known Fo|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.