home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 4 / DATAFILE_PDCD4.iso / utilities / utilsd / evntshell / !StrongHlp / HelpData / FontMenu < prev    next >
Unknown  |  1995-06-16  |  26.1 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
100% file data default
100% gt2 Kopftext: 'HELP(' default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 48 45 4c 50 28 00 00 00 | c9 00 00 00 2c 00 00 00 |HELP(...|....,...|
|00000010| 54 0e 00 00 00 fd ff ff | 00 00 00 00 60 01 00 00 |T.......|....`...|
|00000020| 00 01 00 00 00 00 00 00 | 24 00 00 00 46 52 45 45 |........|$...FREE|
|00000030| 54 00 00 00 ff ff ff ff | 80 00 00 00 46 fd ff ff |T.......|....F...|
|00000040| d0 8b d1 22 39 01 00 00 | 13 00 00 00 00 00 00 00 |..."9...|........|
|00000050| 21 52 6f 6f 74 00 00 00 | bc 01 00 00 46 fd ff ff |!Root...|....F...|
|00000060| d2 8b d1 22 97 0c 00 00 | 13 00 00 00 00 00 00 00 |..."....|........|
|00000070| 65 61 73 79 77 61 79 00 | 10 e0 9b e5 02 ec 8e e3 |easyway.|........|
|00000080| 44 41 54 41 39 01 00 00 | 46 6f 6e 74 4d 65 6e 75 |DATA9...|FontMenu|
|00000090| 20 31 2e 31 36 0a 23 49 | 6e 64 65 6e 74 20 35 0a | 1.16.#I|ndent 5.|
|000000a0| 23 53 70 72 69 74 65 20 | 30 2c 30 20 66 69 6c 65 |#Sprite |0,0 file|
|000000b0| 5f 66 66 61 0a 54 68 69 | 73 20 69 73 20 61 20 6d |_ffa.Thi|s is a m|
|000000c0| 6f 64 75 6c 65 20 74 6f | 20 73 75 70 70 6f 72 74 |odule to| support|
|000000d0| 0a 74 68 65 20 75 73 65 | 20 6f 66 20 66 6f 6e 74 |.the use| of font|
|000000e0| 20 6d 65 6e 75 73 0a 23 | 49 6e 64 65 6e 74 20 30 | menus.#|Indent 0|
|000000f0| 0a 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |._______|________|
|00000100| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00000110| 5f 5f 0a 0a 20 20 20 20 | 20 20 20 20 3c 4c 69 63 |__.. | <Lic|
|00000120| 65 6e 63 65 20 20 20 20 | 20 20 20 20 20 20 20 3e |ence | >|
|00000130| 20 0a 20 20 20 20 20 20 | 20 20 3c 49 6e 74 72 6f | . | <Intro|
|00000140| 64 75 63 74 69 6f 6e 20 | 20 20 20 20 20 3e 0a 20 |duction | >. |
|00000150| 20 20 20 20 20 20 20 3c | 57 68 61 74 20 44 6f 65 | <|What Doe|
|00000160| 73 20 49 74 20 44 6f 3f | 20 3d 3e 57 68 61 74 44 |s It Do?| =>WhatD|
|00000170| 6f 3e 0a 20 20 20 20 20 | 20 20 20 3c 48 6f 77 20 |o>. | <How |
|00000180| 44 6f 65 73 20 49 74 20 | 57 6f 72 6b 3f 3d 3e 48 |Does It |Work?=>H|
|00000190| 6f 77 57 6f 72 6b 3e 0a | 20 20 20 20 20 20 20 20 |owWork>.| |
|000001a0| 3c 41 76 61 69 6c 61 62 | 6c 65 20 53 57 49 73 20 |<Availab|le SWIs |
|000001b0| 20 20 3d 3e 53 57 49 73 | 3e 00 00 00 44 41 54 41 | =>SWIs|>...DATA|
|000001c0| 97 0c 00 00 54 68 65 20 | 45 61 73 79 20 57 61 79 |....The |Easy Way|
|000001d0| 0a 57 68 65 6e 65 76 65 | 72 20 74 68 65 20 75 73 |.Wheneve|r the us|
|000001e0| 65 72 20 6f 70 65 6e 73 | 20 74 68 65 20 6d 65 6e |er opens| the men|
|000001f0| 75 20 73 74 72 75 63 74 | 75 72 65 20 6f 66 20 74 |u struct|ure of t|
|00000200| 68 65 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 62 |he appli|cation b|
|00000210| 79 20 70 72 65 73 73 69 | 6e 67 0a 74 68 65 20 4d |y pressi|ng.the M|
|00000220| 45 4e 55 20 62 75 74 74 | 6f 6e 2c 20 61 20 63 61 |ENU butt|on, a ca|
|00000230| 6c 6c 20 68 61 73 20 74 | 6f 20 62 65 20 6d 61 64 |ll has t|o be mad|
|00000240| 65 20 74 6f 20 46 6f 6e | 74 4d 65 6e 75 5f 53 65 |e to Fon|tMenu_Se|
|00000250| 6c 65 63 74 20 77 69 74 | 68 20 52 30 20 70 6f 69 |lect wit|h R0 poi|
|00000260| 6e 74 69 6e 67 0a 74 6f | 20 61 20 70 6f 69 6e 74 |nting.to| a point|
|00000270| 20 73 65 70 65 61 72 74 | 65 64 20 28 7a 65 72 6f | sepeart|ed (zero|
|00000280| 20 74 65 72 6d 69 6e 61 | 74 65 64 29 20 66 6f 6e | termina|ted) fon|
|00000290| 74 20 73 74 72 69 6e 67 | 2c 20 61 6e 64 20 69 6e |t string|, and in|
|000002a0| 20 52 31 20 74 68 65 20 | 76 61 6c 75 65 20 30 20 | R1 the |value 0 |
|000002b0| 6f 72 0a 31 20 74 6f 20 | 74 65 6c 6c 20 46 6f 6e |or.1 to |tell Fon|
|000002c0| 74 4d 65 6e 75 20 69 66 | 20 69 74 20 61 6c 6c 6f |tMenu if| it allo|
|000002d0| 77 73 20 74 68 65 20 75 | 73 65 72 20 74 6f 20 73 |ws the u|ser to s|
|000002e0| 65 6c 65 63 74 20 74 68 | 65 20 53 79 73 74 65 6d |elect th|e System|
|000002f0| 46 6f 6e 74 2e 20 54 68 | 65 20 63 61 6c 6c 0a 77 |Font. Th|e call.w|
|00000300| 69 6c 6c 20 72 65 74 75 | 72 6e 20 77 69 74 68 20 |ill retu|rn with |
|00000310| 61 20 70 6f 69 6e 74 65 | 72 20 74 6f 20 74 68 65 |a pointe|r to the|
|00000320| 20 66 6f 6e 74 20 6d 65 | 6e 75 20 73 74 72 75 63 | font me|nu struc|
|00000330| 74 75 72 65 20 69 6e 20 | 52 31 2e 20 4e 6f 77 20 |ture in |R1. Now |
|00000340| 69 74 20 69 73 20 75 70 | 20 74 6f 0a 74 68 65 20 |it is up| to.the |
|00000350| 70 72 6f 67 72 61 6d 6d | 65 72 20 77 68 61 74 20 |programm|er what |
|00000360| 74 6f 20 64 6f 20 77 69 | 74 68 20 74 68 69 73 20 |to do wi|th this |
|00000370| 70 6f 69 6e 74 65 72 2e | 20 57 68 65 6e 20 70 61 |pointer.| When pa|
|00000380| 73 73 65 64 20 69 6e 20 | 52 31 20 77 68 65 6e 20 |ssed in |R1 when |
|00000390| 63 61 6c 6c 69 6e 67 0a | 57 69 6d 70 5f 43 72 65 |calling.|Wimp_Cre|
|000003a0| 61 74 65 4d 65 6e 75 2c | 20 74 68 65 20 6d 65 6e |ateMenu,| the men|
|000003b0| 75 20 74 72 65 65 20 77 | 69 6c 6c 20 63 6f 6e 73 |u tree w|ill cons|
|000003c0| 69 73 74 20 65 6e 74 69 | 72 65 6c 79 20 6f 66 20 |ist enti|rely of |
|000003d0| 46 6f 6e 74 4d 65 6e 75 | 20 73 74 72 75 63 74 75 |FontMenu| structu|
|000003e0| 72 65 73 2e 0a 49 66 20 | 74 68 65 20 66 6f 6e 74 |res..If |the font|
|000003f0| 20 6d 65 6e 75 20 73 68 | 6f 75 6c 64 20 62 65 20 | menu sh|ould be |
|00000400| 61 20 73 75 62 6d 65 6e | 75 20 6f 66 20 74 68 65 |a submen|u of the|
|00000410| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 73 20 6f 77 | applica|tions ow|
|00000420| 6e 20 6d 65 6e 75 20 73 | 74 72 75 63 74 75 72 65 |n menu s|tructure|
|00000430| 2c 0a 74 68 65 20 70 6f | 69 6e 74 65 72 20 73 68 |,.the po|inter sh|
|00000440| 6f 75 6c 64 20 62 65 20 | 70 75 74 20 69 6e 20 74 |ould be |put in t|
|00000450| 68 65 20 73 75 62 6d 65 | 6e 75 2d 77 6f 72 64 20 |he subme|nu-word |
|00000460| 6f 66 20 74 68 65 20 70 | 61 72 65 6e 74 20 6d 65 |of the p|arent me|
|00000470| 6e 75 20 65 6e 74 72 79 | 2c 20 61 6e 64 0a 57 69 |nu entry|, and.Wi|
|00000480| 6d 70 5f 43 72 65 61 74 | 65 4d 65 6e 75 20 73 68 |mp_Creat|eMenu sh|
|00000490| 6f 75 6c 64 20 62 65 20 | 63 61 6c 6c 65 64 20 77 |ould be |called w|
|000004a0| 69 74 68 20 61 20 70 6f | 69 6e 74 65 72 20 74 6f |ith a po|inter to|
|000004b0| 20 74 68 65 20 61 70 70 | 6c 69 63 61 74 69 6f 6e | the app|lication|
|000004c0| 73 20 6f 77 6e 20 6d 65 | 6e 75 0a 73 74 72 75 63 |s own me|nu.struc|
|000004d0| 74 75 72 65 2e 0a 0a 57 | 68 65 6e 20 61 20 6d 65 |ture...W|hen a me|
|000004e0| 6e 75 20 73 65 6c 65 63 | 74 69 6f 6e 20 77 61 73 |nu selec|tion was|
|000004f0| 20 64 6f 6e 65 2c 20 74 | 68 65 20 61 70 70 6c 69 | done, t|he appli|
|00000500| 63 61 74 69 6f 6e 20 73 | 68 6f 75 6c 64 20 64 65 |cation s|hould de|
|00000510| 74 65 72 6d 69 6e 65 20 | 62 79 20 74 68 65 0a 72 |termine |by the.r|
|00000520| 65 74 75 72 6e 65 64 20 | 27 6d 65 6e 75 20 74 72 |eturned |'menu tr|
|00000530| 65 65 20 73 6f 20 66 61 | 72 27 20 76 61 6c 75 65 |ee so fa|r' value|
|00000540| 73 20 69 66 20 74 68 65 | 20 75 73 65 72 20 73 65 |s if the| user se|
|00000550| 6c 65 63 74 65 64 20 61 | 20 65 6e 74 72 79 20 69 |lected a| entry i|
|00000560| 6e 20 74 68 65 20 66 6f | 6e 74 0a 6d 65 6e 75 2e |n the fo|nt.menu.|
|00000570| 20 49 66 20 73 6f 2c 20 | 69 74 20 73 68 6f 75 6c | If so, |it shoul|
|00000580| 64 20 73 65 74 20 61 6e | 20 69 6e 74 65 72 6e 61 |d set an| interna|
|00000590| 6c 20 66 6c 61 67 20 28 | 73 61 79 20 27 46 6f 6e |l flag (|say 'Fon|
|000005a0| 74 4d 65 6e 75 53 65 6c | 65 63 74 65 64 27 29 20 |tMenuSel|ected') |
|000005b0| 74 6f 0a 54 52 55 45 2c | 20 65 6c 73 65 20 69 74 |to.TRUE,| else it|
|000005c0| 20 73 68 6f 75 6c 64 20 | 73 65 74 20 69 74 20 74 | should |set it t|
|000005d0| 6f 20 46 41 4c 53 45 2c | 20 73 6f 20 6c 61 74 65 |o FALSE,| so late|
|000005e0| 72 20 6f 6e 20 69 74 20 | 69 73 20 73 74 69 6c 6c |r on it |is still|
|000005f0| 20 6b 6e 6f 77 6e 20 69 | 66 20 74 68 65 0a 75 73 | known i|f the.us|
|00000600| 65 72 20 6d 61 79 20 68 | 61 76 65 20 73 65 6c 65 |er may h|ave sele|
|00000610| 63 74 65 64 20 61 20 6e | 65 77 20 66 6f 6e 74 2e |cted a n|ew font.|
|00000620| 20 41 66 74 65 72 20 74 | 68 61 74 20 69 74 20 73 | After t|hat it s|
|00000630| 68 6f 75 6c 64 20 63 61 | 6c 6c 20 53 57 49 0a 22 |hould ca|ll SWI."|
|00000640| 3c 46 6f 6e 74 4d 65 6e | 75 5f 44 65 63 6f 64 65 |<FontMen|u_Decode|
|00000650| 46 6f 6e 74 4d 65 6e 75 | 3e 22 20 77 69 74 68 20 |FontMenu|>" with |
|00000660| 52 30 20 70 6f 69 6e 74 | 69 6e 67 20 74 6f 20 74 |R0 point|ing to t|
|00000670| 68 65 20 66 69 72 73 74 | 20 6d 65 6e 75 20 73 65 |he first| menu se|
|00000680| 6c 65 63 74 69 6f 6e 20 | 69 6e 0a 74 68 65 20 27 |lection |in.the '|
|00000690| 6d 65 6e 75 20 74 72 65 | 65 20 73 6f 20 66 61 72 |menu tre|e so far|
|000006a0| 27 20 62 6c 6f 63 6b 20 | 77 68 69 63 68 20 64 65 |' block |which de|
|000006b0| 74 65 72 6d 69 6e 65 73 | 20 74 68 65 20 73 65 6c |termines| the sel|
|000006c0| 65 63 74 65 64 20 66 6f | 6e 74 2e 20 52 31 20 73 |ected fo|nt. R1 s|
|000006d0| 68 6f 75 6c 64 0a 70 6f | 69 6e 74 20 74 6f 20 61 |hould.po|int to a|
|000006e0| 20 62 75 66 66 65 72 20 | 74 6f 20 63 6f 6e 74 61 | buffer |to conta|
|000006f0| 69 6e 20 74 68 65 20 61 | 6e 73 77 65 72 2e 20 54 |in the a|nswer. T|
|00000700| 68 69 73 20 62 75 66 66 | 65 72 20 6d 75 73 74 20 |his buff|er must |
|00000710| 62 65 20 61 74 20 6c 65 | 61 73 74 20 34 38 0a 62 |be at le|ast 48.b|
|00000720| 79 74 65 73 2e 20 49 66 | 20 6f 6e 20 72 65 74 75 |ytes. If| on retu|
|00000730| 72 6e 20 6f 66 20 74 68 | 69 73 20 63 61 6c 6c 20 |rn of th|is call |
|00000740| 52 30 20 3e 20 30 2c 20 | 74 68 65 20 75 73 65 72 |R0 > 0, |the user|
|00000750| 20 73 65 6c 65 63 74 65 | 64 20 61 20 6e 65 77 20 | selecte|d a new |
|00000760| 66 6f 6e 74 2e 20 54 68 | 65 0a 62 75 66 66 65 72 |font. Th|e.buffer|
|00000770| 20 70 61 73 73 65 64 20 | 69 6e 20 52 31 20 77 69 | passed |in R1 wi|
|00000780| 6c 6c 20 63 6f 6e 74 61 | 69 6e 20 74 68 65 20 66 |ll conta|in the f|
|00000790| 6f 6e 74 20 6e 61 6d 65 | 20 28 61 20 70 6f 69 6e |ont name| (a poin|
|000007a0| 74 20 73 65 70 65 72 61 | 74 65 64 2c 20 7a 65 72 |t sepera|ted, zer|
|000007b0| 6f 0a 74 65 72 6d 69 6e | 61 74 65 64 20 66 6f 6e |o.termin|ated fon|
|000007c0| 74 20 73 74 72 69 6e 67 | 29 2e 0a 0a 41 66 74 65 |t string|)...Afte|
|000007d0| 72 20 61 20 6d 65 6e 75 | 20 73 65 6c 65 63 74 69 |r a menu| selecti|
|000007e0| 6f 6e 2c 20 61 6e 64 20 | 74 61 6b 69 6e 67 20 61 |on, and |taking a|
|000007f0| 70 70 72 6f 70 72 69 61 | 74 65 20 61 63 74 69 6f |ppropria|te actio|
|00000800| 6e 73 2c 20 74 68 65 20 | 61 70 70 6c 69 63 61 74 |ns, the |applicat|
|00000810| 69 6f 6e 0a 73 68 6f 75 | 6c 64 20 63 68 65 63 6b |ion.shou|ld check|
|00000820| 20 74 68 65 20 6d 6f 75 | 73 65 20 62 75 74 74 6f | the mou|se butto|
|00000830| 6e 20 73 74 61 74 65 20 | 74 6f 20 73 65 65 20 69 |n state |to see i|
|00000840| 66 20 69 74 20 68 61 73 | 20 74 6f 20 63 61 6c 6c |f it has| to call|
|00000850| 20 53 57 49 0a 22 3c 57 | 69 6d 70 5f 43 72 65 61 | SWI."<W|imp_Crea|
|00000860| 74 65 4d 65 6e 75 3d 3e | 53 57 49 2e 57 69 6d 70 |teMenu=>|SWI.Wimp|
|00000870| 5f 43 72 65 61 74 65 4d | 65 6e 75 3e 22 20 61 67 |_CreateM|enu>" ag|
|00000880| 61 69 6e 2e 20 49 66 20 | 61 64 6a 75 73 74 20 77 |ain. If |adjust w|
|00000890| 61 73 20 75 73 65 64 20 | 74 6f 20 6d 61 6b 65 20 |as used |to make |
|000008a0| 74 68 65 20 73 65 6c 65 | 63 74 69 6f 6e 2c 20 69 |the sele|ction, i|
|000008b0| 74 20 68 61 73 20 74 6f | 0a 63 68 65 63 6b 20 20 |t has to|.check |
|000008c0| 74 68 65 20 27 46 6f 6e | 74 4d 65 6e 75 53 65 6c |the 'Fon|tMenuSel|
|000008d0| 65 63 74 65 64 27 20 66 | 6c 61 67 20 74 6f 20 64 |ected' f|lag to d|
|000008e0| 65 74 65 72 6d 69 6e 65 | 20 69 66 20 74 68 65 20 |etermine| if the |
|000008f0| 75 73 65 72 20 73 65 6c | 65 63 74 65 64 20 61 20 |user sel|ected a |
|00000900| 66 6f 6e 74 0a 6d 65 6e | 75 20 65 6e 74 72 79 2e |font.men|u entry.|
|00000910| 20 49 66 20 73 6f 2c 20 | 69 74 20 73 68 6f 75 6c | If so, |it shoul|
|00000920| 64 20 63 61 6c 6c 20 46 | 6f 6e 74 4d 65 6e 75 5f |d call F|ontMenu_|
|00000930| 53 65 6c 65 63 74 20 61 | 73 20 64 65 73 63 72 69 |Select a|s descri|
|00000940| 62 65 64 20 61 62 6f 76 | 65 2e 20 54 68 69 73 0a |bed abov|e. This.|
|00000950| 73 68 6f 75 6c 64 20 62 | 65 20 64 6f 6e 65 20 77 |should b|e done w|
|00000960| 69 74 68 20 52 30 20 70 | 6f 69 6e 74 69 6e 67 20 |ith R0 p|ointing |
|00000970| 74 6f 20 74 68 65 20 73 | 74 72 69 6e 67 20 46 6f |to the s|tring Fo|
|00000980| 6e 74 4d 65 6e 75 5f 44 | 65 63 6f 64 65 46 6f 6e |ntMenu_D|ecodeFon|
|00000990| 74 4d 65 6e 75 0a 72 65 | 74 75 72 6e 65 64 2e 20 |tMenu.re|turned. |
|000009a0| 54 68 65 20 6d 65 6e 75 | 20 70 6f 69 6e 74 65 72 |The menu| pointer|
|000009b0| 20 72 65 74 75 72 6e 65 | 64 20 62 79 20 46 6f 6e | returne|d by Fon|
|000009c0| 74 4d 65 6e 75 5f 53 65 | 6c 65 63 74 20 68 61 73 |tMenu_Se|lect has|
|000009d0| 20 74 6f 20 62 65 20 70 | 75 74 20 69 6e 20 74 68 | to be p|ut in th|
|000009e0| 65 0a 27 73 75 62 2d 6d | 65 6e 75 20 70 6f 69 6e |e.'sub-m|enu poin|
|000009f0| 74 65 72 27 20 77 6f 72 | 64 20 6f 66 20 74 68 65 |ter' wor|d of the|
|00000a00| 20 27 46 6f 6e 74 73 27 | 20 65 6e 74 72 79 2e 20 | 'Fonts'| entry. |
|00000a10| 4e 6f 77 20 74 68 65 20 | 63 61 6c 6c 20 74 6f 0a |Now the |call to.|
|00000a20| 57 69 6d 70 5f 43 72 65 | 61 74 65 4d 65 6e 75 20 |Wimp_Cre|ateMenu |
|00000a30| 63 61 6e 20 62 65 20 64 | 6f 6e 65 2e 20 49 6e 20 |can be d|one. In |
|00000a40| 74 68 69 73 20 77 61 79 | 20 69 74 20 69 73 20 70 |this way| it is p|
|00000a50| 6f 73 73 69 62 6c 65 20 | 66 6f 72 20 74 68 65 20 |ossible |for the |
|00000a60| 75 73 65 72 20 74 6f 0a | 63 6c 69 63 6b 20 77 69 |user to.|click wi|
|00000a70| 74 68 20 61 64 6a 75 73 | 74 20 69 6e 20 74 68 65 |th adjus|t in the|
|00000a80| 20 66 6f 6e 74 20 6d 65 | 6e 75 2c 20 61 6e 64 20 | font me|nu, and |
|00000a90| 6b 65 65 70 69 6e 67 20 | 74 68 65 20 6d 65 6e 75 |keeping |the menu|
|00000aa0| 20 6f 6e 20 73 63 72 65 | 65 6e 20 61 66 74 65 72 | on scre|en after|
|00000ab0| 20 74 68 65 0a 73 65 6c | 65 63 74 69 6f 6e 2e 0a | the.sel|ection..|
|00000ac0| 0a 54 68 65 72 65 20 69 | 73 20 6f 6e 65 20 6c 69 |.There i|s one li|
|00000ad0| 74 74 6c 65 20 64 72 61 | 77 62 61 63 6b 20 6f 66 |ttle dra|wback of|
|00000ae0| 20 74 68 69 73 20 6d 65 | 74 68 6f 64 2e 20 49 66 | this me|thod. If|
|00000af0| 20 74 68 65 20 75 73 65 | 72 20 73 65 6c 65 63 74 | the use|r select|
|00000b00| 65 64 20 61 20 6e 65 77 | 0a 21 46 6f 6e 74 73 20 |ed a new|.!Fonts |
|00000b10| 64 69 72 65 63 74 6f 72 | 79 2c 20 69 74 20 77 69 |director|y, it wi|
|00000b20| 6c 6c 20 62 65 20 6e 6f | 74 65 64 20 62 65 20 74 |ll be no|ted be t|
|00000b30| 68 65 20 46 6f 6e 74 4d | 65 6e 75 5f 53 65 6c 65 |he FontM|enu_Sele|
|00000b40| 63 74 20 63 6f 64 65 2c | 20 61 6e 64 20 61 20 6e |ct code,| and a n|
|00000b50| 65 77 0a 66 6f 6e 74 20 | 6d 65 6e 75 20 73 74 72 |ew.font |menu str|
|00000b60| 75 63 74 75 72 65 20 77 | 69 6c 6c 20 62 65 20 67 |ucture w|ill be g|
|00000b70| 65 6e 65 72 61 74 65 64 | 2e 20 54 68 69 73 20 69 |enerated|. This i|
|00000b80| 73 20 61 6c 77 61 79 73 | 20 74 68 65 20 63 61 73 |s always| the cas|
|00000b90| 65 2c 20 61 6c 73 6f 20 | 77 69 74 68 0a 74 68 65 |e, also |with.the|
|00000ba0| 20 6d 65 74 68 6f 64 20 | 64 65 73 63 72 69 62 65 | method |describe|
|00000bb0| 64 20 62 65 6c 6f 77 2e | 20 42 75 74 20 69 74 20 |d below.| But it |
|00000bc0| 63 6f 75 6c 64 20 62 65 | 20 70 6f 73 73 69 62 6c |could be| possibl|
|00000bd0| 65 20 74 68 61 74 20 74 | 68 65 20 75 73 65 72 20 |e that t|he user |
|00000be0| 77 61 73 20 67 6f 69 6e | 67 0a 74 6f 20 64 6f 20 |was goin|g.to do |
|00000bf0| 73 6f 6d 65 74 68 69 6e | 67 20 65 6c 73 65 20 69 |somethin|g else i|
|00000c00| 6e 20 74 68 65 20 6d 65 | 6e 75 2c 20 6e 6f 74 20 |n the me|nu, not |
|00000c10| 73 65 6c 65 63 74 69 6e | 67 20 61 20 66 6f 6e 74 |selectin|g a font|
|00000c20| 20 61 74 20 61 6c 6c 2e | 20 48 65 20 63 6f 75 6c | at all.| He coul|
|00000c30| 64 20 66 6f 72 0a 69 6e | 73 74 61 6e 63 65 20 77 |d for.in|stance w|
|00000c40| 61 6e 74 20 74 6f 20 71 | 75 69 74 2e 20 4e 6f 77 |ant to q|uit. Now|
|00000c50| 20 68 65 20 28 73 68 65 | 29 20 68 61 73 20 74 6f | he (she|) has to|
|00000c60| 20 77 61 69 74 20 66 6f | 72 20 74 68 65 20 46 6f | wait fo|r the Fo|
|00000c70| 6e 74 4d 65 6e 75 20 6d | 6f 64 75 6c 65 20 74 6f |ntMenu m|odule to|
|00000c80| 0a 63 72 65 61 74 65 20 | 74 68 65 20 6e 65 77 20 |.create |the new |
|00000c90| 6d 65 6e 75 20 73 74 72 | 75 63 74 75 72 65 2c 20 |menu str|ucture, |
|00000ca0| 62 65 66 6f 72 65 20 68 | 65 20 28 73 68 65 29 20 |before h|e (she) |
|00000cb0| 69 73 20 61 62 6c 65 20 | 74 6f 20 61 63 63 65 73 |is able |to acces|
|00000cc0| 73 20 74 68 65 20 27 51 | 75 69 74 27 0a 65 6e 74 |s the 'Q|uit'.ent|
|00000cd0| 72 79 2e 20 53 6f 20 74 | 68 65 20 6e 65 78 74 20 |ry. So t|he next |
|00000ce0| 73 6f 6c 75 74 69 6f 6e | 20 69 73 20 74 6f 20 77 |solution| is to w|
|00000cf0| 61 69 74 20 77 69 74 68 | 20 63 61 6c 6c 69 6e 67 |ait with| calling|
|00000d00| 20 46 6f 6e 74 4d 65 6e | 75 5f 53 65 6c 65 63 74 | FontMen|u_Select|
|00000d10| 2c 20 75 6e 74 69 6c 0a | 74 68 65 20 75 73 65 72 |, until.|the user|
|00000d20| 20 77 61 6e 74 73 20 74 | 6f 20 73 65 6c 65 63 74 | wants t|o select|
|00000d30| 20 61 20 6e 65 77 20 66 | 6f 6e 74 2e 20 54 68 69 | a new f|ont. Thi|
|00000d40| 73 20 63 61 6e 20 6f 6e | 6c 79 20 62 65 20 64 6f |s can on|ly be do|
|00000d50| 6e 65 20 62 79 20 6d 61 | 6b 69 6e 67 20 75 73 65 |ne by ma|king use|
|00000d60| 20 6f 66 0a 74 68 65 20 | 57 69 6d 70 20 6d 65 73 | of.the |Wimp mes|
|00000d70| 73 61 67 65 20 73 79 73 | 74 65 6d 2e 20 54 68 65 |sage sys|tem. The|
|00000d80| 20 64 69 66 66 69 63 75 | 6c 74 20 74 68 69 6e 67 | difficu|lt thing|
|00000d90| 20 6f 66 20 74 68 69 73 | 20 6d 65 74 68 6f 64 20 | of this| method |
|00000da0| 28 61 73 20 64 65 73 63 | 72 69 62 65 64 0a 6c 61 |(as desc|ribed.la|
|00000db0| 74 65 72 29 20 69 73 20 | 74 68 61 74 20 74 68 65 |ter) is |that the|
|00000dc0| 20 57 69 6d 70 20 69 73 | 20 75 6e 61 62 6c 65 20 | Wimp is| unable |
|00000dd0| 74 6f 20 72 65 2d 6f 70 | 65 6e 20 74 68 65 20 6d |to re-op|en the m|
|00000de0| 65 6e 75 20 73 74 72 75 | 63 74 75 72 65 20 65 6e |enu stru|cture en|
|00000df0| 74 69 72 65 6c 79 0a 61 | 66 74 65 72 20 61 20 6d |tirely.a|fter a m|
|00000e00| 65 6e 75 20 73 65 6c 65 | 63 74 69 6f 6e 20 75 73 |enu sele|ction us|
|00000e10| 69 6e 67 20 74 68 65 20 | 41 44 4a 55 53 54 20 62 |ing the |ADJUST b|
|00000e20| 75 74 74 6f 6e 2e 20 53 | 6f 20 61 20 6c 69 74 74 |utton. S|o a litt|
|00000e30| 6c 65 20 74 72 69 63 6b | 20 68 61 73 20 74 6f 0a |le trick| has to.|
|00000e40| 73 6f 6c 76 65 20 74 68 | 69 73 20 70 72 6f 62 6c |solve th|is probl|
|00000e50| 65 6d 2e 00 44 49 52 24 | 60 01 00 00 f4 00 00 00 |em..DIR$|`.......|
|00000e60| 80 00 00 00 46 fd ff ff | d0 8b d1 22 39 01 00 00 |....F...|..."9...|
|00000e70| 13 00 00 00 00 00 00 00 | 21 52 6f 6f 74 00 00 00 |........|!Root...|
|00000e80| bc 01 00 00 46 fd ff ff | d2 8b d1 22 97 0c 00 00 |....F...|..."....|
|00000e90| 13 00 00 00 00 00 00 00 | 65 61 73 79 77 61 79 00 |........|easyway.|
|00000ea0| b4 0f 00 00 46 fd ff ff | d4 8b d1 22 92 0e 00 00 |....F...|..."....|
|00000eb0| 13 00 00 00 00 00 00 00 | 68 61 72 64 77 61 79 00 |........|hardway.|
|00000ec0| 48 1e 00 00 46 fd ff ff | d6 8b d1 22 ef 39 00 00 |H...F...|...".9..|
|00000ed0| 13 00 00 00 00 00 00 00 | 68 69 6c 6b 65 00 00 00 |........|hilke...|
|00000ee0| 38 58 00 00 46 fd ff ff | d7 8b d1 22 f2 04 00 00 |8X..F...|..."....|
|00000ef0| 13 00 00 00 00 00 00 00 | 48 6f 77 57 6f 72 6b 00 |........|HowWork.|
|00000f00| 2c 5d 00 00 46 fd ff ff | d9 8b d1 22 d5 05 00 00 |,]..F...|..."....|
|00000f10| 13 00 00 00 00 00 00 00 | 49 6e 74 72 6f 64 75 63 |........|Introduc|
|00000f20| 74 69 6f 6e 00 00 00 00 | 04 63 00 00 46 fd ff ff |tion....|.c..F...|
|00000f30| da 8b d1 22 5f 05 00 00 | 13 00 00 00 00 00 00 00 |..."_...|........|
|00000f40| 57 68 61 74 44 6f 00 00 | ff ff ff ff ff ff ff ff |WhatDo..|........|
|00000f50| ff ff ff ff ff ff ff ff | ff ff ff ff ff ff ff ff |........|........|
|00000f60| ff ff ff ff ff ff ff ff | ff ff ff ff ff ff ff ff |........|........|
|00000f70| ff ff ff ff ff ff ff ff | ff ff ff ff ff ff ff ff |........|........|
|00000f80| ff ff ff ff ff ff ff ff | ff ff ff ff ff ff ff ff |........|........|
|00000f90| ff ff ff ff ff ff ff ff | ff ff ff ff ff ff ff ff |........|........|
|00000fa0| ff ff ff ff ff ff ff ff | ff ff ff ff ff ff ff ff |........|........|
|00000fb0| ff ff ff ff 44 41 54 41 | 92 0e 00 00 54 68 65 20 |....DATA|....The |
|00000fc0| 48 61 72 64 20 57 61 79 | 0a 49 6e 20 74 68 65 20 |Hard Way|.In the |
|00000fd0| 61 70 70 6c 69 63 61 74 | 69 6f 6e 73 20 6f 77 6e |applicat|ions own|
|00000fe0| 20 6d 65 6e 75 20 73 74 | 72 75 63 74 75 72 65 2c | menu st|ructure,|
|00000ff0| 20 74 68 65 72 65 20 73 | 68 6f 75 6c 64 20 62 65 | there s|hould be|
|00001000| 20 61 20 6d 65 6e 75 20 | 65 6e 74 72 79 20 28 65 | a menu |entry (e|
|00001010| 2e 67 2e 0a 27 46 6f 6e | 74 73 27 29 20 77 69 74 |.g..'Fon|ts') wit|
|00001020| 68 20 62 69 74 20 33 20 | 6f 66 20 69 74 73 20 6d |h bit 3 |of its m|
|00001030| 65 6e 75 20 66 6c 61 67 | 73 20 73 65 74 2e 20 54 |enu flag|s set. T|
|00001040| 68 65 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 68 |he appli|cation h|
|00001050| 61 73 20 74 6f 20 61 73 | 73 75 72 65 0a 74 68 61 |as to as|sure.tha|
|00001060| 74 20 74 68 69 73 20 62 | 69 74 20 69 73 20 73 65 |t this b|it is se|
|00001070| 74 20 77 68 65 6e 65 76 | 65 72 20 69 74 20 63 61 |t whenev|er it ca|
|00001080| 6c 6c 73 20 53 57 49 20 | 22 3c 57 69 6d 70 5f 43 |lls SWI |"<Wimp_C|
|00001090| 72 65 61 74 65 4d 65 6e | 75 3d 3e 53 57 49 2e 57 |reateMen|u=>SWI.W|
|000010a0| 69 6d 70 5f 43 72 65 61 | 74 65 4d 65 6e 75 3e 22 |imp_Crea|teMenu>"|
|000010b0| 20 61 73 20 69 74 20 6d | 61 79 20 62 65 0a 63 6f | as it m|ay be.co|
|000010c0| 72 72 75 70 74 65 64 20 | 28 73 65 65 20 62 65 6c |rrupted |(see bel|
|000010d0| 6f 77 29 2e 20 53 6f 20 | 77 68 65 6e 65 76 65 72 |ow). So |whenever|
|000010e0| 20 74 68 65 20 75 73 65 | 72 20 70 75 74 73 20 74 | the use|r puts t|
|000010f0| 68 65 20 70 6f 69 6e 74 | 65 72 20 61 62 6f 76 65 |he point|er above|
|00001100| 20 74 68 65 20 61 72 72 | 6f 77 0a 6f 6e 20 74 68 | the arr|ow.on th|
|00001110| 65 20 72 69 67 68 74 20 | 6f 66 20 74 68 69 73 20 |e right |of this |
|00001120| 65 6e 74 72 79 2c 20 61 | 20 77 61 72 6e 69 6e 67 |entry, a| warning|
|00001130| 20 6d 65 73 73 61 67 65 | 20 28 26 34 30 30 43 30 | message| (&400C0|
|00001140| 29 20 77 69 6c 6c 20 62 | 65 20 73 65 6e 74 20 62 |) will b|e sent b|
|00001150| 79 20 74 68 65 0a 57 69 | 6d 70 2e 20 4f 6e 20 72 |y the.Wi|mp. On r|
|00001160| 65 63 65 69 76 69 6e 67 | 20 6f 66 20 74 68 69 73 |eceiving| of this|
|00001170| 20 6d 65 73 73 61 67 65 | 2c 20 74 68 65 20 61 70 | message|, the ap|
|00001180| 70 6c 69 63 61 74 69 6f | 6e 20 73 68 6f 75 6c 64 |plicatio|n should|
|00001190| 20 72 65 73 70 6f 6e 64 | 20 62 79 20 63 61 6c 6c | respond| by call|
|000011a0| 69 6e 67 0a 53 57 49 20 | 22 3c 46 6f 6e 74 4d 65 |ing.SWI |"<FontMe|
|000011b0| 6e 75 5f 53 65 6c 65 63 | 74 3e 22 20 77 69 74 68 |nu_Selec|t>" with|
|000011c0| 20 52 30 20 70 6f 69 6e | 74 69 6e 67 20 74 6f 20 | R0 poin|ting to |
|000011d0| 61 20 70 6f 69 6e 74 20 | 73 65 70 65 72 61 74 65 |a point |seperate|
|000011e0| 64 20 28 7a 65 72 6f 0a | 74 65 72 6d 69 6e 61 74 |d (zero.|terminat|
|000011f0| 65 64 29 20 66 6f 6e 74 | 20 73 74 72 69 6e 67 2c |ed) font| string,|
|00001200| 20 61 6e 64 20 69 6e 20 | 52 31 20 74 68 65 20 76 | and in |R1 the v|
|00001210| 61 6c 75 65 20 30 20 6f | 72 20 31 20 74 6f 20 74 |alue 0 o|r 1 to t|
|00001220| 65 6c 6c 20 46 6f 6e 74 | 4d 65 6e 75 20 69 66 20 |ell Font|Menu if |
|00001230| 69 74 0a 61 6c 6c 6f 77 | 73 20 74 68 65 20 75 73 |it.allow|s the us|
|00001240| 65 72 20 74 6f 20 73 65 | 6c 65 63 74 20 74 68 65 |er to se|lect the|
|00001250| 20 53 79 73 74 65 6d 46 | 6f 6e 74 2e 20 54 68 65 | SystemF|ont. The|
|00001260| 20 66 6f 6e 74 20 73 74 | 72 69 6e 67 20 6d 61 79 | font st|ring may|
|00001270| 20 62 65 20 61 20 7a 65 | 72 6f 0a 6c 65 6e 67 74 | be a ze|ro.lengt|
|00001280| 68 20 73 74 72 69 6e 67 | 2c 20 77 69 63 68 20 6d |h string|, wich m|
|00001290| 65 61 6e 73 20 74 68 61 | 74 20 6e 6f 20 63 75 72 |eans tha|t no cur|
|000012a0| 72 65 6e 74 20 66 6f 6e | 74 20 69 73 20 73 65 6c |rent fon|t is sel|
|000012b0| 65 63 74 65 64 2e 20 46 | 6f 6e 74 4d 65 6e 75 20 |ected. F|ontMenu |
|000012c0| 77 69 6c 6c 0a 73 65 6c | 65 63 74 20 74 68 65 20 |will.sel|ect the |
|000012d0| 66 6f 6e 74 20 69 6e 20 | 69 74 73 20 6d 65 6e 75 |font in |its menu|
|000012e0| 20 73 74 72 75 63 74 75 | 72 65 2e 20 49 66 20 31 | structu|re. If 1|
|000012f0| 20 77 61 73 20 70 61 73 | 73 65 64 20 69 6e 20 52 | was pas|sed in R|
|00001300| 31 2c 20 74 68 65 20 66 | 69 72 73 74 20 69 74 65 |1, the f|irst ite|
|00001310| 6d 0a 69 6e 20 74 68 65 | 20 6d 65 6e 75 20 73 74 |m.in the| menu st|
|00001320| 72 75 63 74 75 72 65 20 | 77 69 6c 6c 20 62 65 20 |ructure |will be |
|00001330| 27 53 79 73 74 65 6d 46 | 6f 6e 74 73 27 2e 20 49 |'SystemF|onts'. I|
|00001340| 6e 20 63 61 73 65 20 52 | 31 20 3d 20 30 2c 20 74 |n case R|1 = 0, t|
|00001350| 68 69 73 20 65 6e 74 72 | 79 20 77 69 6c 6c 0a 6e |his entr|y will.n|
|00001360| 6f 74 20 62 65 20 74 68 | 65 72 65 2e 20 54 68 69 |ot be th|ere. Thi|
|00001370| 73 20 63 61 6c 6c 20 77 | 69 6c 6c 20 72 65 74 75 |s call w|ill retu|
|00001380| 72 6e 20 77 69 74 68 20 | 61 20 70 6f 69 6e 74 65 |rn with |a pointe|
|00001390| 72 20 74 6f 20 74 68 65 | 20 6d 65 6e 75 20 73 74 |r to the| menu st|
|000013a0| 72 75 63 74 75 72 65 20 | 69 6e 0a 52 31 2e 20 54 |ructure |in.R1. T|
|000013b0| 68 69 73 20 70 6f 69 6e | 74 65 72 20 73 68 6f 75 |his poin|ter shou|
|000013c0| 6c 64 20 62 65 20 70 61 | 73 73 65 64 20 74 6f 20 |ld be pa|ssed to |
|000013d0| 53 57 49 20 22 3c 57 69 | 6d 70 5f 43 72 65 61 74 |SWI "<Wi|mp_Creat|
|000013e0| 65 53 75 62 4d 65 6e 75 | 3d 3e 57 69 6d 70 5f 43 |eSubMenu|=>Wimp_C|
|000013f0| 72 65 61 74 65 53 75 62 | 4d 65 6e 75 3e 22 2e 0a |reateSub|Menu>"..|
|00001400| 0a 20 57 68 65 6e 20 61 | 20 6d 65 6e 75 20 73 65 |. When a| menu se|
|00001410| 6c 65 63 74 69 6f 6e 20 | 77 61 73 20 64 6f 6e 65 |lection |was done|
|00001420| 2c 20 74 68 65 20 61 70 | 70 6c 69 63 61 74 69 6f |, the ap|plicatio|
|00001430| 6e 20 73 68 6f 75 6c 64 | 20 64 65 74 65 72 6d 69 |n should| determi|
|00001440| 6e 65 20 62 79 20 74 68 | 65 0a 72 65 74 75 72 6e |ne by th|e.return|
|00001450| 65 64 20 27 6d 65 6e 75 | 20 74 72 65 65 20 73 6f |ed 'menu| tree so|
|00001460| 20 66 61 72 27 20 76 61 | 6c 75 65 73 20 69 66 20 | far' va|lues if |
|00001470| 74 68 65 20 75 73 65 72 | 20 73 65 6c 65 63 74 65 |the user| selecte|
|00001480| 64 20 61 20 65 6e 74 72 | 79 20 69 6e 20 74 68 65 |d a entr|y in the|
|00001490| 20 66 6f 6e 74 0a 6d 65 | 6e 75 2e 20 49 66 20 73 | font.me|nu. If s|
|000014a0| 6f 2c 20 69 74 20 73 68 | 6f 75 6c 64 20 73 65 74 |o, it sh|ould set|
|000014b0| 20 61 6e 20 69 6e 74 65 | 72 6e 61 6c 20 66 6c 61 | an inte|rnal fla|
|000014c0| 67 20 28 73 61 79 20 27 | 46 6f 6e 74 4d 65 6e 75 |g (say '|FontMenu|
|000014d0| 53 65 6c 65 63 74 65 64 | 27 29 20 74 6f 0a 54 52 |Selected|') to.TR|
|000014e0| 55 45 2c 20 65 6c 73 65 | 20 69 74 20 73 68 6f 75 |UE, else| it shou|
|000014f0| 6c 64 20 73 65 74 20 69 | 74 20 74 6f 20 46 41 4c |ld set i|t to FAL|
|00001500| 53 45 2c 20 73 6f 20 6c | 61 74 65 72 20 6f 6e 20 |SE, so l|ater on |
|00001510| 69 74 20 69 73 20 73 74 | 69 6c 6c 20 6b 6e 6f 77 |it is st|ill know|
|00001520| 6e 20 69 66 20 74 68 65 | 0a 75 73 65 72 20 6d 61 |n if the|.user ma|
|00001530| 79 20 68 61 76 65 20 73 | 65 6c 65 63 74 65 64 20 |y have s|elected |
|00001540| 61 20 6e 65 77 20 66 6f | 6e 74 2e 20 41 66 74 65 |a new fo|nt. Afte|
|00001550| 72 20 74 68 61 74 20 69 | 74 20 73 68 6f 75 6c 64 |r that i|t should|
|00001560| 20 63 61 6c 6c 20 53 57 | 49 0a 22 3c 46 6f 6e 74 | call SW|I."<Font|
|00001570| 4d 65 6e 75 5f 44 65 63 | 6f 64 65 46 6f 6e 74 4d |Menu_Dec|odeFontM|
|00001580| 65 6e 75 3e 22 20 77 69 | 74 68 20 52 30 20 70 6f |enu>" wi|th R0 po|
|00001590| 69 6e 74 69 6e 67 20 74 | 6f 20 74 68 65 20 66 69 |inting t|o the fi|
|000015a0| 72 73 74 20 6d 65 6e 75 | 20 73 65 6c 65 63 74 69 |rst menu| selecti|
|000015b0| 6f 6e 20 69 6e 0a 74 68 | 65 20 27 6d 65 6e 75 20 |on in.th|e 'menu |
|000015c0| 74 72 65 65 20 73 6f 20 | 66 61 72 27 20 62 6c 6f |tree so |far' blo|
|000015d0| 63 6b 20 77 68 69 63 68 | 20 64 65 74 65 72 6d 69 |ck which| determi|
|000015e0| 6e 65 73 20 74 68 65 20 | 73 65 6c 65 63 74 65 64 |nes the |selected|
|000015f0| 20 66 6f 6e 74 2e 20 52 | 31 20 73 68 6f 75 6c 64 | font. R|1 should|
|00001600| 0a 70 6f 69 6e 74 20 74 | 6f 20 61 20 62 75 66 66 |.point t|o a buff|
|00001610| 65 72 20 74 6f 20 63 6f | 6e 74 61 69 6e 20 74 68 |er to co|ntain th|
|00001620| 65 20 61 6e 73 77 65 72 | 2e 20 54 68 69 73 20 62 |e answer|. This b|
|00001630| 75 66 66 65 72 20 6d 75 | 73 74 20 62 65 20 61 74 |uffer mu|st be at|
|00001640| 20 6c 65 61 73 74 20 34 | 38 0a 62 79 74 65 73 2e | least 4|8.bytes.|
|00001650| 20 49 66 20 6f 6e 20 72 | 65 74 75 72 6e 20 6f 66 | If on r|eturn of|
|00001660| 20 74 68 69 73 20 63 61 | 6c 6c 20 52 30 20 3e 20 | this ca|ll R0 > |
|00001670| 30 2c 20 74 68 65 20 75 | 73 65 72 20 73 65 6c 65 |0, the u|ser sele|
|00001680| 63 74 65 64 20 61 20 6e | 65 77 20 66 6f 6e 74 2e |cted a n|ew font.|
|00001690| 20 54 68 65 0a 62 75 66 | 66 65 72 20 70 61 73 73 | The.buf|fer pass|
|000016a0| 65 64 20 69 6e 20 52 31 | 20 77 69 6c 6c 20 63 6f |ed in R1| will co|
|000016b0| 6e 74 61 69 6e 20 74 68 | 65 20 66 6f 6e 74 20 6e |ntain th|e font n|
|000016c0| 61 6d 65 20 28 61 20 70 | 6f 69 6e 74 20 73 65 70 |ame (a p|oint sep|
|000016d0| 65 72 61 74 65 64 2c 20 | 7a 65 72 6f 0a 74 65 72 |erated, |zero.ter|
|000016e0| 6d 69 6e 61 74 65 64 20 | 66 6f 6e 74 20 73 74 72 |minated |font str|
|000016f0| 69 6e 67 29 2e 0a 0a 20 | 41 66 74 65 72 20 61 20 |ing)... |After a |
|00001700| 6d 65 6e 75 20 73 65 6c | 65 63 74 69 6f 6e 2c 20 |menu sel|ection, |
|00001710| 61 6e 64 20 74 61 6b 69 | 6e 67 20 61 70 70 72 6f |and taki|ng appro|
|00001720| 70 72 69 61 74 65 20 61 | 63 74 69 6f 6e 73 2c 20 |priate a|ctions, |
|00001730| 74 68 65 20 61 70 70 6c | 69 63 61 74 69 6f 6e 0a |the appl|ication.|
|00001740| 73 68 6f 75 6c 64 20 63 | 68 65 63 6b 20 74 68 65 |should c|heck the|
|00001750| 20 6d 6f 75 73 65 20 62 | 75 74 74 6f 6e 20 73 74 | mouse b|utton st|
|00001760| 61 74 65 20 74 6f 20 73 | 65 65 20 69 66 20 69 74 |ate to s|ee if it|
|00001770| 20 68 61 73 20 74 6f 20 | 63 61 6c 6c 20 53 57 49 | has to |call SWI|
|00001780| 0a 22 3c 57 69 6d 70 5f | 43 72 65 61 74 65 4d 65 |."<Wimp_|CreateMe|
|00001790| 6e 75 3d 3e 57 69 6d 70 | 5f 43 72 65 61 74 65 4d |nu=>Wimp|_CreateM|
|000017a0| 65 6e 75 3e 22 20 61 67 | 61 69 6e 2e 20 49 66 20 |enu>" ag|ain. If |
|000017b0| 61 64 6a 75 73 74 20 77 | 61 73 20 75 73 65 64 20 |adjust w|as used |
|000017c0| 74 6f 20 6d 61 6b 65 20 | 74 68 65 20 73 65 6c 65 |to make |the sele|
|000017d0| 63 74 69 6f 6e 2c 20 69 | 74 20 68 61 73 20 74 6f |ction, i|t has to|
|000017e0| 0a 63 68 65 63 6b 20 20 | 74 68 65 20 27 46 6f 6e |.check |the 'Fon|
|000017f0| 74 4d 65 6e 75 53 65 6c | 65 63 74 65 64 27 20 66 |tMenuSel|ected' f|
|00001800| 6c 61 67 20 74 6f 20 64 | 65 74 65 72 6d 69 6e 65 |lag to d|etermine|
|00001810| 20 69 66 20 74 68 65 20 | 75 73 65 72 20 73 65 6c | if the |user sel|
|00001820| 65 63 74 65 64 20 61 20 | 66 6f 6e 74 0a 6d 65 6e |ected a |font.men|
|00001830| 75 20 65 6e 74 72 79 2e | 20 49 66 20 73 6f 2c 20 |u entry.| If so, |
|00001840| 69 74 20 73 68 6f 75 6c | 64 20 63 61 6c 6c 20 53 |it shoul|d call S|
|00001850| 57 49 20 22 46 6f 6e 74 | 4d 65 6e 75 5f 53 65 6c |WI "Font|Menu_Sel|
|00001860| 65 63 74 22 20 61 73 20 | 64 65 73 63 72 69 62 65 |ect" as |describe|
|00001870| 64 20 61 62 6f 76 65 2e | 0a 54 68 69 73 20 73 68 |d above.|.This sh|
|00001880| 6f 75 6c 64 20 62 65 20 | 64 6f 6e 65 20 77 69 74 |ould be |done wit|
|00001890| 68 20 52 30 20 70 6f 69 | 6e 74 69 6e 67 20 74 6f |h R0 poi|nting to|
|000018a0| 20 74 68 65 20 73 74 72 | 69 6e 67 20 53 57 49 0a | the str|ing SWI.|
|000018b0| 22 3c 46 6f 6e 74 4d 65 | 6e 75 5f 44 65 63 6f 64 |"<FontMe|nu_Decod|
|000018c0| 65 46 6f 6e 74 4d 65 6e | 75 3e 22 20 72 65 74 75 |eFontMen|u>" retu|
|000018d0| 72 6e 65 64 2e 20 20 41 | 73 20 74 68 65 20 4d 65 |rned. A|s the Me|
|000018e0| 6e 75 57 61 72 6e 69 6e | 67 46 6c 61 67 20 69 6e |nuWarnin|gFlag in|
|000018f0| 20 74 68 65 20 6d 65 6e | 75 0a 66 6c 61 67 73 20 | the men|u.flags |
|00001900| 6f 66 20 74 68 65 20 6d | 65 6e 75 20 65 6e 74 72 |of the m|enu entr|
|00001910| 79 20 28 65 2e 67 2e 20 | 27 46 6f 6e 74 73 27 29 |y (e.g. |'Fonts')|
|00001920| 20 70 72 65 63 65 64 69 | 6e 67 20 74 68 65 20 66 | precedi|ng the f|
|00001930| 6f 6e 74 20 6d 65 6e 75 | 20 77 61 73 20 73 65 74 |ont menu| was set|
|00001940| 0a 28 70 68 68 68 21 29 | 2c 20 74 68 65 20 57 69 |.(phhh!)|, the Wi|
|00001950| 6d 70 20 69 73 20 75 6e | 61 62 6c 65 20 74 6f 20 |mp is un|able to |
|00001960| 72 65 63 72 65 61 74 65 | 20 74 68 65 20 77 68 6f |recreate| the who|
|00001970| 6c 65 20 6d 65 6e 75 20 | 74 72 65 65 20 61 75 74 |le menu |tree aut|
|00001980| 6f 6d 61 74 69 63 61 6c | 6c 79 2e 0a 53 6f 20 61 |omatical|ly..So a|
|00001990| 20 6c 69 74 6c 65 20 74 | 72 69 63 6b 20 68 61 73 | litle t|rick has|
|000019a0| 20 74 6f 20 61 73 73 75 | 72 65 20 74 68 61 74 20 | to assu|re that |
|000019b0| 69 74 20 77 69 6c 6c 20 | 77 6f 72 6b 20 63 6f 72 |it will |work cor|
|000019c0| 72 65 63 74 6c 79 2e 20 | 54 68 65 20 6d 65 6e 75 |rectly. |The menu|
|000019d0| 20 70 6f 69 6e 74 65 72 | 0a 72 65 74 75 72 6e 65 | pointer|.returne|
|000019e0| 64 20 62 79 20 53 57 49 | 20 22 3c 46 6f 6e 74 4d |d by SWI| "<FontM|
|000019f0| 65 6e 75 5f 53 65 6c 65 | 63 74 3e 22 20 68 61 73 |enu_Sele|ct>" has|
|00001a00| 20 74 6f 20 62 65 20 70 | 75 74 20 69 6e 20 74 68 | to be p|ut in th|
|00001a10| 65 20 27 73 75 62 2d 6d | 65 6e 75 20 70 6f 69 6e |e 'sub-m|enu poin|
|00001a20| 74 65 72 27 0a 77 6f 72 | 64 20 6f 66 20 74 68 65 |ter'.wor|d of the|
|00001a30| 20 27 46 6f 6e 74 73 27 | 20 65 6e 74 72 79 2c 20 | 'Fonts'| entry, |
|00001a40| 61 6e 64 20 74 68 65 20 | 4d 65 6e 75 57 61 72 6e |and the |MenuWarn|
|00001a50| 69 6e 67 46 6c 61 67 20 | 28 62 69 74 20 33 29 20 |ingFlag |(bit 3) |
|00001a60| 6f 66 20 74 68 65 20 6d | 65 6e 75 20 66 6c 61 67 |of the m|enu flag|
|00001a70| 73 0a 77 6f 72 64 20 6f | 66 20 74 68 69 73 20 65 |s.word o|f this e|
|00001a80| 6e 74 72 79 20 73 68 6f | 75 6c 64 20 62 65 20 63 |ntry sho|uld be c|
|00001a90| 6c 65 61 72 65 64 2e 20 | 4e 6f 77 20 74 68 65 20 |leared. |Now the |
|00001aa0| 63 61 6c 6c 20 74 6f 20 | 53 57 49 20 22 3c 57 69 |call to |SWI "<Wi|
|00001ab0| 6d 70 5f 43 72 65 61 74 | 65 4d 65 6e 75 3d 3e 53 |mp_Creat|eMenu=>S|
|00001ac0| 57 49 2e 57 69 6d 70 5f | 43 72 65 61 74 65 4d 65 |WI.Wimp_|CreateMe|
|00001ad0| 6e 75 3e 22 0a 63 61 6e | 20 62 65 20 64 6f 6e 65 |nu>".can| be done|
|00001ae0| 2e 20 49 6e 20 74 68 69 | 73 20 77 61 79 20 69 74 |. In thi|s way it|
|00001af0| 20 69 73 20 70 6f 73 73 | 69 62 6c 65 20 66 6f 72 | is poss|ible for|
|00001b00| 20 74 68 65 20 75 73 65 | 72 20 74 6f 20 63 6c 69 | the use|r to cli|
|00001b10| 63 6b 20 77 69 74 68 20 | 61 64 6a 75 73 74 20 69 |ck with |adjust i|
|00001b20| 6e 0a 74 68 65 20 66 6f | 6e 74 20 6d 65 6e 75 2c |n.the fo|nt menu,|
|00001b30| 20 61 6e 64 20 6b 65 65 | 70 69 6e 67 20 74 68 65 | and kee|ping the|
|00001b40| 20 6d 65 6e 75 20 6f 6e | 20 73 63 72 65 65 6e 20 | menu on| screen |
|00001b50| 61 66 74 65 72 20 74 68 | 65 20 73 65 6c 65 63 74 |after th|e select|
|00001b60| 69 6f 6e 2e 20 54 68 65 | 20 6e 65 78 74 0a 74 69 |ion. The| next.ti|
|00001b70| 6d 65 20 74 68 65 20 75 | 73 65 72 20 6f 70 65 6e |me the u|ser open|
|00001b80| 73 20 74 68 65 20 61 70 | 70 6c 69 63 61 74 69 6f |s the ap|plicatio|
|00001b90| 6e 20 6d 65 6e 75 2c 20 | 74 68 65 20 4d 65 6e 75 |n menu, |the Menu|
|00001ba0| 57 61 72 6e 69 6e 67 46 | 6c 61 67 20 28 62 69 74 |WarningF|lag (bit|
|00001bb0| 20 33 29 20 73 68 6f 75 | 6c 64 0a 62 65 20 73 65 | 3) shou|ld.be se|
|00001bc0| 74 20 61 67 61 69 6e 2c | 20 61 73 20 6f 74 68 65 |t again,| as othe|
|00001bd0| 72 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 73 20 6d |r applic|ations m|
|00001be0| 61 79 20 68 61 76 65 20 | 75 73 65 64 20 74 68 65 |ay have |used the|
|00001bf0| 20 66 6f 6e 74 20 6d 65 | 6e 75 20 69 6e 20 74 68 | font me|nu in th|
|00001c00| 65 0a 6d 65 61 6e 77 68 | 69 6c 65 2c 20 61 6e 64 |e.meanwh|ile, and|
|00001c10| 20 69 74 20 69 73 20 6e | 65 63 65 73 73 61 72 79 | it is n|ecessary|
|00001c20| 20 74 68 61 74 20 53 57 | 49 20 22 3c 46 6f 6e 74 | that SW|I "<Font|
|00001c30| 4d 65 6e 75 5f 53 65 6c | 65 63 74 3e 22 20 69 73 |Menu_Sel|ect>" is|
|00001c40| 20 63 61 6c 6c 65 64 20 | 6a 75 73 74 0a 62 65 66 | called |just.bef|
|00001c50| 6f 72 65 20 74 68 65 20 | 66 6f 6e 74 20 6d 65 6e |ore the |font men|
|00001c60| 75 20 6f 70 65 6e 73 2e | 0a 0a 20 42 65 63 61 75 |u opens.|.. Becau|
|00001c70| 73 65 20 73 6f 6d 65 20 | 46 6f 6e 74 4d 65 6e 75 |se some |FontMenu|
|00001c80| 20 53 57 49 27 73 20 6d | 61 79 20 74 61 6b 65 20 | SWI's m|ay take |
|00001c90| 73 6f 6d 65 20 74 69 6d | 65 20 62 65 66 6f 72 65 |some tim|e before|
|00001ca0| 20 74 68 65 79 20 72 65 | 74 75 72 6e 0a 28 74 68 | they re|turn.(th|
|00001cb0| 69 73 20 69 73 20 64 75 | 65 20 74 6f 20 46 6f 6e |is is du|e to Fon|
|00001cc0| 74 5f 4c 69 73 74 46 6f | 6e 74 73 29 2c 20 74 68 |t_ListFo|nts), th|
|00001cd0| 65 20 48 6f 75 72 67 6c | 61 73 73 20 4f 6e 20 26 |e Hourgl|ass On &|
|00001ce0| 20 4f 66 66 20 53 57 49 | 27 73 20 61 72 65 20 75 | Off SWI|'s are u|
|00001cf0| 73 65 64 0a 6f 6e 20 65 | 6e 74 72 79 20 61 6e 64 |sed.on e|ntry and|
|00001d00| 20 65 78 69 74 20 72 65 | 73 70 65 63 74 69 76 65 | exit re|spective|
|00001d10| 6c 79 2e 20 53 6f 20 69 | 6e 20 74 68 65 6f 72 79 |ly. So i|n theory|
|00001d20| 20 69 74 20 69 73 20 70 | 6f 73 73 69 62 6c 65 20 | it is p|ossible |
|00001d30| 74 68 61 74 0a 77 68 65 | 6e 65 76 65 72 20 6f 6e |that.whe|never on|
|00001d40| 65 20 6f 66 20 74 68 65 | 20 46 6f 6e 74 4d 65 6e |e of the| FontMen|
|00001d50| 75 20 53 57 49 27 73 20 | 74 61 6b 65 20 6c 6f 6e |u SWI's |take lon|
|00001d60| 67 65 72 20 74 68 61 6e | 20 31 2f 33 20 6f 66 20 |ger than| 1/3 of |
|00001d70| 61 20 73 65 63 6f 6e 64 | 2c 20 61 0a 68 6f 75 72 |a second|, a.hour|
|00001d80| 67 6c 61 73 73 20 61 70 | 70 65 61 72 73 2e 20 49 |glass ap|pears. I|
|00001d90| 6e 20 70 72 61 63 74 69 | 63 65 20 74 68 69 73 20 |n practi|ce this |
|00001da0| 6f 6e 6c 79 20 6f 63 63 | 75 72 73 20 77 68 65 6e |only occ|urs when|
|00001db0| 20 46 6f 6e 74 4d 65 6e | 75 5f 43 72 65 61 74 65 | FontMen|u_Create|
|00001dc0| 0a 6f 72 20 46 6f 6e 74 | 4d 65 6e 75 5f 53 65 6c |.or Font|Menu_Sel|
|00001dd0| 65 63 74 20 69 73 20 63 | 61 6c 6c 65 64 20 61 6e |ect is c|alled an|
|00001de0| 64 20 74 68 65 79 20 68 | 61 76 65 20 74 6f 20 61 |d they h|ave to a|
|00001df0| 63 74 75 61 6c 6c 79 20 | 63 72 65 61 74 65 20 61 |ctually |create a|
|00001e00| 20 6e 65 77 0a 6d 65 6e | 75 20 73 74 72 75 63 74 | new.men|u struct|
|00001e10| 75 72 65 20 28 42 65 63 | 61 75 73 65 20 6f 66 20 |ure (Bec|ause of |
|00001e20| 61 20 66 69 72 73 74 20 | 63 61 6c 6c 2c 20 6f 72 |a first |call, or|
|00001e30| 20 61 20 63 68 61 6e 67 | 65 64 20 46 6f 6e 74 24 | a chang|ed Font$|
|00001e40| 50 61 74 68 29 2e 00 00 | 44 41 54 41 ef 39 00 00 |Path)...|DATA.9..|
|00001e50| 44 6f 63 75 6d 65 6e 74 | 61 74 69 6f 6e 20 66 6f |Document|ation fo|
|00001e60| 72 20 74 68 65 20 46 6f | 6e 74 4d 65 6e 75 20 6d |r the Fo|ntMenu m|
|00001e70| 6f 64 75 6c 65 20 76 2e | 31 2e 31 36 0a 0a 20 20 |odule v.|1.16.. |
|00001e80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001e90| 20 20 20 20 20 20 20 20 | 20 20 20 a9 20 4a 2e 52 | | . J.R|
|00001ea0| d6 6c 69 6e 67 20 31 39 | 39 30 0a 20 20 20 20 20 |.ling 19|90. |
|00001eb0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001ec0| 20 20 20 0a 0a 20 20 20 | 20 20 20 20 20 20 20 20 | .. | |
|00001ed0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001ee0| 20 20 20 20 20 20 57 41 | 52 4e 49 4e 47 0a 0a 20 | WA|RNING.. |
|00001ef0| 54 68 65 20 53 57 49 20 | 49 20 75 73 65 20 69 73 |The SWI |I use is|
|00001f00| 20 4e 4f 54 20 6f 66 66 | 69 63 69 61 6c 6c 79 20 | NOT off|icially |
|00001f10| 61 6c 6c 6f 63 61 74 65 | 64 20 62 79 20 41 43 4f |allocate|d by ACO|
|00001f20| 52 4e 2e 20 49 20 64 69 | 64 20 74 72 79 20 74 6f |RN. I di|d try to|
|00001f30| 20 67 65 74 20 6f 6e 65 | 2c 20 62 75 74 0a 74 68 | get one|, but.th|
|00001f40| 65 79 20 72 65 66 75 73 | 65 64 2e 20 20 57 68 79 |ey refus|ed. Why|
|00001f50| 2c 20 49 20 64 6f 6e 27 | 74 20 6b 6e 6f 77 2e 20 |, I don'|t know. |
|00001f60| 50 72 6f 62 61 62 6c 79 | 20 62 65 63 61 75 73 65 |Probably| because|
|00001f70| 20 49 20 68 61 76 65 20 | 6e 6f 20 49 53 56 20 73 | I have |no ISV s|
|00001f80| 74 61 74 75 73 2c 20 61 | 6e 64 0a 49 20 64 69 64 |tatus, a|nd.I did|
|00001f90| 20 74 68 65 20 77 6f 72 | 6b 20 6f 6e 20 46 6f 6e | the wor|k on Fon|
|00001fa0| 74 4d 65 6e 75 20 6e 6f | 74 20 6f 6e 20 62 65 68 |tMenu no|t on beh|
|00001fb0| 61 6c 66 20 6f 66 20 6f | 6e 65 20 63 6f 6d 70 61 |alf of o|ne compa|
|00001fc0| 6e 79 20 69 6e 20 70 61 | 72 74 69 63 75 6c 61 72 |ny in pa|rticular|
|00001fd0| 2e 20 49 20 64 69 64 0a | 64 69 73 63 6f 76 65 72 |. I did.|discover|
|00001fe0| 20 74 68 6f 75 67 68 20 | 74 68 61 74 20 74 68 65 | though |that the|
|00001ff0| 72 65 20 61 72 65 20 61 | 20 6c 6f 74 20 6f 66 20 |re are a| lot of |
|00002000| 70 65 6f 70 6c 65 20 69 | 6e 74 65 72 65 73 74 65 |people i|ntereste|
|00002010| 64 2c 20 61 6e 64 20 49 | 20 75 6e 64 65 72 73 74 |d, and I| underst|
|00002020| 61 6e 64 0a 74 68 61 74 | 20 73 6f 6d 65 20 6f 66 |and.that| some of|
|00002030| 20 74 68 65 6d 20 61 72 | 65 20 61 63 74 75 61 6c | them ar|e actual|
|00002040| 6c 79 20 69 6d 70 6c 65 | 6d 65 6e 74 69 6e 67 20 |ly imple|menting |
|00002050| 69 74 20 69 6e 20 74 68 | 65 69 72 20 63 6f 64 65 |it in th|eir code|
|00002060| 2e 20 53 6f 20 69 66 20 | 61 6e 79 6f 6e 65 0a 61 |. So if |anyone.a|
|00002070| 74 20 41 43 4f 52 4e 20 | 69 73 20 72 65 61 64 69 |t ACORN |is readi|
|00002080| 6e 67 20 74 68 69 73 2c | 20 70 6c 65 61 73 65 20 |ng this,| please |
|00002090| 72 65 63 6f 6e 73 69 64 | 65 72 20 6d 79 20 72 65 |reconsid|er my re|
|000020a0| 71 75 65 73 74 2e 0a 0a | 2d 2d 2d 2d 2d 2d 2d 2d |quest...|--------|
|000020b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000020c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000020d0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000020e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000020f0| 2d 2d 2d 2d 0a 0a 0a 0a | 0a 20 20 20 20 20 20 20 |----....|. |
|00002100| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002110| 20 20 20 57 68 61 74 20 | 64 6f 65 73 20 46 6f 6e | What |does Fon|
|00002120| 74 4d 65 6e 75 20 64 6f | 20 3f 0a 0a 20 54 68 65 |tMenu do| ?.. The|
|00002130| 20 46 6f 6e 74 4d 65 6e | 75 20 6d 6f 64 75 6c 65 | FontMen|u module|
|00002140| 20 69 73 20 61 62 6c 65 | 20 74 6f 20 63 72 65 61 | is able| to crea|
|00002150| 74 65 20 61 20 6d 75 6c | 74 69 2d 6c 65 76 65 6c |te a mul|ti-level|
|00002160| 20 66 6f 6e 74 20 6d 65 | 6e 75 2c 20 61 6e 64 20 | font me|nu, and |
|00002170| 6c 65 74 73 0a 65 76 65 | 72 79 20 61 70 70 6c 69 |lets.eve|ry appli|
|00002180| 63 61 74 69 6f 6e 20 73 | 68 61 72 65 20 74 68 65 |cation s|hare the|
|00002190| 20 6a 6f 79 2e 20 49 74 | 20 63 6f 6e 74 61 69 6e | joy. It| contain|
|000021a0| 73 20 73 65 76 65 72 61 | 6c 20 53 57 49 27 73 20 |s severa|l SWI's |
|000021b0| 74 6f 20 63 72 65 61 74 | 65 2c 20 61 6e 64 0a 61 |to creat|e, and.a|
|000021c0| 63 63 65 73 73 20 74 68 | 69 73 20 72 65 73 6f 75 |ccess th|is resou|
|000021d0| 72 63 65 2e 20 49 66 20 | 6e 6f 20 61 70 70 6c 69 |rce. If |no appli|
|000021e0| 63 61 74 69 6f 6e 20 69 | 73 20 75 73 69 6e 67 20 |cation i|s using |
|000021f0| 74 68 65 20 73 74 72 75 | 63 74 75 72 65 20 61 6e |the stru|cture an|
|00002200| 79 6d 6f 72 65 0a 28 62 | 65 63 61 75 73 65 20 74 |ymore.(b|ecause t|
|00002210| 68 65 79 20 77 65 72 65 | 20 61 6c 6c 20 71 75 69 |hey were| all qui|
|00002220| 74 65 64 20 66 6f 72 20 | 65 78 61 6d 70 6c 65 29 |ted for |example)|
|00002230| 20 74 68 65 20 6d 65 6d | 6f 72 79 20 66 6f 72 20 | the mem|ory for |
|00002240| 74 68 65 20 6d 65 6e 75 | 20 73 74 72 75 63 74 75 |the menu| structu|
|00002250| 72 65 0a 77 69 6c 6c 20 | 62 65 20 72 65 6c 65 61 |re.will |be relea|
|00002260| 73 65 64 20 62 79 20 46 | 6f 6e 74 4d 65 6e 75 2c |sed by F|ontMenu,|
|00002270| 20 73 6f 20 6e 6f 20 75 | 6e 6e 65 63 65 73 73 61 | so no u|nnecessa|
|00002280| 72 79 20 6d 65 6d 6f 72 | 79 20 69 73 20 69 6e 20 |ry memor|y is in |
|00002290| 75 73 65 2e 20 49 74 20 | 68 61 73 20 6e 6f 0a 70 |use. It |has no.p|
|000022a0| 72 6f 62 6c 65 6d 73 20 | 69 66 20 6d 6f 72 65 20 |roblems |if more |
|000022b0| 74 68 61 6e 20 6f 6e 65 | 20 66 6f 6e 74 20 64 69 |than one| font di|
|000022c0| 72 65 63 74 6f 72 79 20 | 69 73 20 69 6e 20 75 73 |rectory |is in us|
|000022d0| 65 2e 20 54 68 65 20 6d | 65 6e 75 20 69 73 20 73 |e. The m|enu is s|
|000022e0| 6f 72 74 65 64 0a 61 6c | 70 68 61 62 65 74 69 63 |orted.al|phabetic|
|000022f0| 61 6c 6c 79 20 28 65 76 | 65 6e 20 77 68 65 6e 20 |ally (ev|en when |
|00002300| 6d 6f 72 65 20 74 68 61 | 6e 20 6f 6e 65 20 66 6f |more tha|n one fo|
|00002310| 6e 74 20 64 69 72 65 63 | 74 6f 72 79 20 69 73 20 |nt direc|tory is |
|00002320| 75 73 65 64 29 2c 20 73 | 6f 20 74 68 65 20 75 73 |used), s|o the us|
|00002330| 65 72 0a 69 73 20 61 62 | 6c 65 20 74 6f 20 66 69 |er.is ab|le to fi|
|00002340| 6e 64 20 74 68 65 20 72 | 65 71 75 69 72 65 64 20 |nd the r|equired |
|00002350| 66 6f 6e 74 20 61 74 20 | 61 6e 20 69 6e 73 74 61 |font at |an insta|
|00002360| 6e 63 65 2e 20 49 74 20 | 72 65 71 75 69 72 65 73 |nce. It |requires|
|00002370| 20 61 20 6d 69 6e 69 6d | 75 6d 20 6f 66 0a 64 69 | a minim|um of.di|
|00002380| 73 63 20 61 63 63 65 73 | 73 20 77 68 65 6e 20 61 |sc acces|s when a|
|00002390| 20 6e 65 77 20 6d 65 6e | 75 20 69 73 20 63 72 65 | new men|u is cre|
|000023a0| 61 74 65 64 2e 20 4e 65 | 77 20 6d 65 6e 75 73 20 |ated. Ne|w menus |
|000023b0| 61 72 65 20 6f 6e 6c 79 | 20 63 72 65 61 74 65 64 |are only| created|
|000023c0| 20 69 66 20 6f 6e 65 20 | 69 73 0a 72 65 71 75 69 | if one |is.requi|
|000023d0| 72 65 64 2c 20 61 6e 64 | 20 74 68 65 72 65 20 69 |red, and| there i|
|000023e0| 73 6e 27 74 20 61 6c 72 | 65 61 64 79 20 61 20 76 |sn't alr|eady a v|
|000023f0| 61 6c 69 64 20 6f 6e 65 | 2e 20 57 68 65 6e 20 61 |alid one|. When a|
|00002400| 20 66 6f 6e 74 20 6d 65 | 6e 75 20 65 78 69 73 74 | font me|nu exist|
|00002410| 73 2c 20 61 6e 64 0a 74 | 68 65 20 75 73 65 72 20 |s, and.t|he user |
|00002420| 68 61 73 20 73 65 6c 65 | 63 74 65 64 20 61 20 6e |has sele|cted a n|
|00002430| 65 77 20 66 6f 6e 74 20 | 64 69 72 65 63 74 6f 72 |ew font |director|
|00002440| 79 2c 20 74 68 65 20 66 | 6f 6e 74 20 6d 65 6e 75 |y, the f|ont menu|
|00002450| 20 77 69 6c 6c 20 62 65 | 20 72 65 62 75 69 6c 64 | will be| rebuild|
|00002460| 20 61 73 0a 73 6f 6f 6e | 20 61 73 20 74 68 65 20 | as.soon| as the |
|00002470| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 61 63 63 65 |applicat|ion acce|
|00002480| 73 73 65 73 20 74 68 69 | 73 20 66 6f 6e 74 20 6d |sses thi|s font m|
|00002490| 65 6e 75 2e 20 0a 0a 20 | 46 6f 6e 74 4d 65 6e 75 |enu. .. |FontMenu|
|000024a0| 20 63 72 65 61 74 65 73 | 20 61 6e 20 6d 75 6c 74 | creates| an mult|
|000024b0| 69 2d 6c 65 76 65 6c 65 | 64 20 66 6f 6e 74 20 6d |i-levele|d font m|
|000024c0| 65 6e 75 2e 20 49 6e 20 | 74 68 65 20 65 78 61 6d |enu. In |the exam|
|000024d0| 70 6c 65 20 61 62 6f 76 | 65 20 74 68 69 73 20 69 |ple abov|e this i|
|000024e0| 73 20 61 0a 6d 65 6e 75 | 20 77 68 65 72 65 20 27 |s a.menu| where '|
|000024f0| 54 72 69 6e 69 74 79 27 | 20 6f 63 63 75 72 73 20 |Trinity'| occurs |
|00002500| 6f 6e 6c 79 20 6f 6e 63 | 65 2c 20 62 75 74 20 69 |only onc|e, but i|
|00002510| 74 20 77 69 6c 6c 20 68 | 61 76 65 20 61 20 73 75 |t will h|ave a su|
|00002520| 62 6d 65 6e 75 20 63 6f | 6e 74 61 69 6e 69 6e 67 |bmenu co|ntaining|
|00002530| 0a 74 77 6f 20 69 74 65 | 6d 73 3a 20 27 42 6f 6c |.two ite|ms: 'Bol|
|00002540| 64 27 20 61 6e 64 20 27 | 4d 65 64 69 75 6d 27 2e |d' and '|Medium'.|
|00002550| 20 42 65 63 61 75 73 65 | 20 74 68 65 72 65 20 61 | Because| there a|
|00002560| 72 65 20 74 77 6f 20 74 | 79 70 65 73 20 6f 66 0a |re two t|ypes of.|
|00002570| 27 54 72 69 6e 69 74 79 | 2e 42 6f 6c 64 27 20 28 |'Trinity|.Bold' (|
|00002580| 27 54 72 69 6e 69 74 79 | 2e 42 6f 6c 64 27 20 61 |'Trinity|.Bold' a|
|00002590| 6e 64 20 27 54 72 69 6e | 69 74 79 2e 42 6f 6c 64 |nd 'Trin|ity.Bold|
|000025a0| 2e 49 74 61 6c 69 63 27 | 29 20 27 42 6f 6c 64 27 |.Italic'|) 'Bold'|
|000025b0| 20 77 69 6c 6c 20 68 61 | 76 65 0a 61 6e 6f 74 68 | will ha|ve.anoth|
|000025c0| 65 72 20 73 75 62 6d 65 | 6e 75 2e 20 49 6e 20 74 |er subme|nu. In t|
|000025d0| 68 69 73 20 73 75 62 6d | 65 6e 75 20 74 68 65 20 |his subm|enu the |
|000025e0| 66 69 72 73 74 20 69 74 | 65 6d 20 77 69 6c 6c 20 |first it|em will |
|000025f0| 62 65 20 27 50 6c 61 69 | 6e 27 2e 20 54 68 69 73 |be 'Plai|n'. This|
|00002600| 20 6e 61 6d 65 0a 69 73 | 20 6d 61 64 65 20 75 70 | name.is| made up|
|00002610| 2c 20 62 75 74 20 69 74 | 20 69 73 20 6d 6f 72 65 |, but it| is more|
|00002620| 20 63 6c 65 61 72 20 74 | 68 65 6e 20 61 20 65 6d | clear t|hen a em|
|00002630| 70 74 79 20 6d 65 6e 75 | 20 65 6e 74 72 79 2e 20 |pty menu| entry. |
|00002640| 54 68 65 20 73 65 63 6f | 6e 64 20 65 6e 74 72 79 |The seco|nd entry|
|00002650| 0a 77 69 6c 6c 20 6f 66 | 20 63 6f 75 72 73 65 20 |.will of| course |
|00002660| 62 65 20 27 49 74 61 6c | 69 63 27 2e 0a 0a 0a 0a |be 'Ital|ic'.....|
|00002670| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002680| 20 20 20 20 20 20 20 20 | 20 20 48 6f 77 20 64 6f | | How do|
|00002690| 65 73 20 46 6f 6e 74 4d | 65 6e 75 20 77 6f 72 6b |es FontM|enu work|
|000026a0| 20 3f 0a 0a 20 54 6f 20 | 75 73 65 20 46 6f 6e 74 | ?.. To |use Font|
|000026b0| 4d 65 6e 75 20 69 74 20 | 69 73 20 6e 65 63 65 73 |Menu it |is neces|
|000026c0| 73 61 72 79 20 74 6f 20 | 75 6e 64 65 72 73 74 61 |sary to |understa|
|000026d0| 6e 64 20 68 6f 77 20 74 | 68 65 20 57 69 6d 70 20 |nd how t|he Wimp |
|000026e0| 77 6f 72 6b 73 2c 20 61 | 6e 64 20 68 6f 77 0a 74 |works, a|nd how.t|
|000026f0| 6f 20 63 72 65 61 74 65 | 20 61 20 61 70 70 6c 69 |o create| a appli|
|00002700| 63 61 74 69 6f 6e 20 6f | 6e 20 74 68 65 20 41 72 |cation o|n the Ar|
|00002710| 63 68 69 6d 65 64 65 73 | 20 65 6e 76 69 72 6f 6e |chimedes| environ|
|00002720| 6d 65 6e 74 2e 20 49 74 | 20 69 73 20 61 73 73 75 |ment. It| is assu|
|00002730| 6d 65 64 20 74 68 61 74 | 0a 74 68 65 20 72 65 61 |med that|.the rea|
|00002740| 64 65 72 20 75 6e 64 65 | 72 73 74 61 6e 64 73 20 |der unde|rstands |
|00002750| 74 68 65 20 61 62 6f 76 | 65 20 66 6f 72 20 74 68 |the abov|e for th|
|00002760| 65 20 72 65 73 74 20 6f | 66 20 74 68 69 73 20 64 |e rest o|f this d|
|00002770| 6f 63 75 6d 65 6e 74 2e | 0a 0a 20 57 68 65 6e 20 |ocument.|.. When |
|00002780| 61 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 77 61 |a applic|ation wa|
|00002790| 6e 74 73 20 74 6f 20 61 | 63 63 65 73 73 20 74 68 |nts to a|ccess th|
|000027a0| 65 20 46 6f 6e 74 4d 65 | 6e 75 20 6d 65 6e 75 20 |e FontMe|nu menu |
|000027b0| 73 74 72 75 63 74 75 72 | 65 2c 20 69 74 20 68 61 |structur|e, it ha|
|000027c0| 73 20 74 6f 0a 63 61 6c | 6c 20 53 57 49 20 22 46 |s to.cal|l SWI "F|
|000027d0| 6f 6e 74 4d 65 6e 75 5f | 43 72 65 61 74 65 22 20 |ontMenu_|Create" |
|000027e0| 62 65 66 6f 72 65 20 61 | 6e 79 20 6f 74 68 65 72 |before a|ny other|
|000027f0| 20 46 6f 6e 74 4d 65 6e | 75 20 53 57 49 27 73 20 | FontMen|u SWI's |
|00002800| 61 72 65 20 63 61 6c 6c | 65 64 2e 20 54 68 69 73 |are call|ed. This|
|00002810| 0a 77 69 6c 6c 20 61 73 | 73 75 72 65 20 74 68 61 |.will as|sure tha|
|00002820| 74 20 61 20 70 72 6f 70 | 65 72 20 66 6f 6e 74 20 |t a prop|er font |
|00002830| 6d 65 6e 75 20 73 74 72 | 75 63 74 75 72 65 20 77 |menu str|ucture w|
|00002840| 69 6c 6c 20 62 65 20 61 | 76 61 69 6c 61 62 6c 65 |ill be a|vailable|
|00002850| 2e 20 54 68 69 73 20 63 | 61 6e 20 62 65 0a 64 6f |. This c|an be.do|
|00002860| 6e 65 20 6f 6e 20 69 6e | 69 74 69 61 6c 69 73 61 |ne on in|itialisa|
|00002870| 74 69 6f 6e 20 6f 66 20 | 74 68 65 20 61 70 70 6c |tion of |the appl|
|00002880| 69 63 61 74 69 6f 6e 2c | 20 62 75 74 20 69 73 20 |ication,| but is |
|00002890| 6e 6f 74 20 61 62 73 6f | 6c 75 74 65 6c 79 20 6e |not abso|lutely n|
|000028a0| 65 63 65 73 73 61 72 79 | 2e 0a 57 68 65 6e 20 65 |ecessary|..When e|
|000028b0| 78 69 74 69 6e 67 20 74 | 68 65 20 61 70 70 6c 69 |xiting t|he appli|
|000028c0| 63 61 74 69 6f 6e 2c 20 | 53 57 49 20 22 46 6f 6e |cation, |SWI "Fon|
|000028d0| 74 4d 65 6e 75 5f 52 65 | 6c 65 61 73 65 22 20 68 |tMenu_Re|lease" h|
|000028e0| 61 73 20 74 6f 20 62 65 | 20 63 61 6c 6c 65 64 2c |as to be| called,|
|000028f0| 20 73 6f 20 69 66 0a 74 | 68 69 73 20 77 61 73 20 | so if.t|his was |
|00002900| 74 68 65 20 6f 6e 6c 79 | 20 61 70 70 6c 69 63 61 |the only| applica|
|00002910| 74 69 6f 6e 20 75 73 69 | 6e 67 20 74 68 65 20 66 |tion usi|ng the f|
|00002920| 6f 6e 74 20 6d 65 6e 75 | 2c 20 46 6f 6e 74 4d 65 |ont menu|, FontMe|
|00002930| 6e 75 20 63 61 6e 20 72 | 65 6c 65 61 73 65 20 74 |nu can r|elease t|
|00002940| 68 65 0a 6d 65 6d 6f 72 | 79 20 66 6f 72 20 69 74 |he.memor|y for it|
|00002950| 2e 20 45 76 65 72 79 20 | 74 69 6d 65 20 53 57 49 |. Every |time SWI|
|00002960| 20 22 46 6f 6e 74 4d 65 | 6e 75 5f 43 72 65 61 74 | "FontMe|nu_Creat|
|00002970| 65 22 20 69 73 20 63 61 | 6c 6c 65 64 2c 20 61 20 |e" is ca|lled, a |
|00002980| 63 6f 75 6e 74 65 72 20 | 69 73 0a 69 6e 63 72 65 |counter |is.incre|
|00002990| 6d 65 6e 74 65 64 2c 20 | 61 6e 64 20 69 66 20 69 |mented, |and if i|
|000029a0| 74 20 77 61 73 20 7a 65 | 72 6f 20 28 74 68 69 73 |t was ze|ro (this|
|000029b0| 20 69 73 20 74 68 65 20 | 69 6e 69 74 69 61 6c 20 | is the |initial |
|000029c0| 76 61 6c 75 65 29 2c 20 | 69 74 20 77 69 6c 6c 20 |value), |it will |
|000029d0| 63 72 65 61 74 65 0a 61 | 20 6e 65 77 20 66 6f 6e |create.a| new fon|
|000029e0| 74 20 6d 65 6e 75 2e 20 | 57 68 65 6e 20 63 61 6c |t menu. |When cal|
|000029f0| 6c 69 6e 67 20 53 57 49 | 20 22 46 6f 6e 74 4d 65 |ling SWI| "FontMe|
|00002a00| 6e 75 5f 52 65 6c 65 61 | 73 65 22 2c 20 74 68 65 |nu_Relea|se", the|
|00002a10| 20 63 6f 75 6e 74 65 72 | 20 69 73 0a 64 65 63 72 | counter| is.decr|
|00002a20| 65 6d 65 6e 74 65 64 2c | 20 61 6e 64 20 69 66 20 |emented,| and if |
|00002a30| 69 74 20 72 65 61 63 68 | 65 64 20 7a 65 72 6f 20 |it reach|ed zero |
|00002a40| 46 6f 6e 74 4d 65 6e 75 | 20 77 69 6c 6c 20 72 65 |FontMenu| will re|
|00002a50| 6c 65 61 73 65 20 74 68 | 65 20 6d 65 6e 75 20 6d |lease th|e menu m|
|00002a60| 65 6d 6f 72 79 2c 0a 61 | 73 20 6e 6f 20 61 70 70 |emory,.a|s no app|
|00002a70| 6c 69 63 61 74 69 6f 6e | 20 69 73 20 75 73 69 6e |lication| is usin|
|00002a80| 67 20 74 68 65 20 6d 65 | 6e 75 20 73 74 72 75 63 |g the me|nu struc|
|00002a90| 74 75 72 65 20 61 6e 79 | 6d 6f 72 65 2e 0a 0a 0a |ture any|more....|
|00002aa0| 20 46 72 6f 6d 20 68 65 | 72 65 20 6f 6e 20 74 68 | From he|re on th|
|00002ab0| 65 72 65 20 61 72 65 20 | 74 77 6f 20 77 61 79 73 |ere are |two ways|
|00002ac0| 20 6f 66 20 70 72 6f 67 | 72 61 6d 6d 69 6e 67 20 | of prog|ramming |
|00002ad0| 77 68 65 6e 20 75 73 69 | 6e 67 20 46 6f 6e 74 4d |when usi|ng FontM|
|00002ae0| 65 6e 75 2e 20 54 68 65 | 0a 66 69 72 73 74 20 69 |enu. The|.first i|
|00002af0| 73 20 74 68 65 20 73 69 | 6d 70 6c 65 20 6f 6e 65 |s the si|mple one|
|00002b00| 2c 20 74 68 65 20 73 65 | 63 6f 6e 64 20 61 20 6c |, the se|cond a l|
|00002b10| 69 74 74 6c 65 20 62 69 | 74 20 6d 6f 72 65 20 63 |ittle bi|t more c|
|00002b20| 6f 6d 70 6c 69 63 61 74 | 65 64 2c 20 61 73 20 69 |omplicat|ed, as i|
|00002b30| 74 0a 69 6e 76 6f 6c 76 | 65 73 20 74 68 65 20 75 |t.involv|es the u|
|00002b40| 73 65 20 74 68 65 20 57 | 69 6d 70 20 6d 65 73 73 |se the W|imp mess|
|00002b50| 61 67 65 20 73 79 73 74 | 65 6d 2e 0a 0a 20 54 68 |age syst|em... Th|
|00002b60| 65 20 65 61 73 79 20 77 | 61 79 0a 20 2d 2d 2d 2d |e easy w|ay. ----|
|00002b70| 2d 2d 2d 2d 2d 2d 2d 2d | 0a 20 57 68 65 6e 65 76 |--------|. Whenev|
|00002b80| 65 72 20 74 68 65 20 75 | 73 65 72 20 6f 70 65 6e |er the u|ser open|
|00002b90| 73 20 74 68 65 20 6d 65 | 6e 75 20 73 74 72 75 63 |s the me|nu struc|
|00002ba0| 74 75 72 65 20 6f 66 20 | 74 68 65 20 61 70 70 6c |ture of |the appl|
|00002bb0| 69 63 61 74 69 6f 6e 20 | 62 79 20 70 72 65 73 73 |ication |by press|
|00002bc0| 69 6e 67 0a 74 68 65 20 | 4d 45 4e 55 20 62 75 74 |ing.the |MENU but|
|00002bd0| 74 6f 6e 2c 20 61 20 63 | 61 6c 6c 20 68 61 73 20 |ton, a c|all has |
|00002be0| 74 6f 20 62 65 20 6d 61 | 64 65 20 74 6f 20 46 6f |to be ma|de to Fo|
|00002bf0| 6e 74 4d 65 6e 75 5f 53 | 65 6c 65 63 74 20 77 69 |ntMenu_S|elect wi|
|00002c00| 74 68 20 52 30 20 70 6f | 69 6e 74 69 6e 67 0a 74 |th R0 po|inting.t|
|00002c10| 6f 20 61 20 70 6f 69 6e | 74 20 73 65 70 65 61 72 |o a poin|t sepear|
|00002c20| 74 65 64 20 28 7a 65 72 | 6f 20 74 65 72 6d 69 6e |ted (zer|o termin|
|00002c30| 61 74 65 64 29 20 66 6f | 6e 74 20 73 74 72 69 6e |ated) fo|nt strin|
|00002c40| 67 2c 20 61 6e 64 20 69 | 6e 20 52 31 20 74 68 65 |g, and i|n R1 the|
|00002c50| 20 76 61 6c 75 65 20 30 | 20 6f 72 0a 31 20 74 6f | value 0| or.1 to|
|00002c60| 20 74 65 6c 6c 20 46 6f | 6e 74 4d 65 6e 75 20 69 | tell Fo|ntMenu i|
|00002c70| 66 20 69 74 20 61 6c 6c | 6f 77 73 20 74 68 65 20 |f it all|ows the |
|00002c80| 75 73 65 72 20 74 6f 20 | 73 65 6c 65 63 74 20 74 |user to |select t|
|00002c90| 68 65 20 53 79 73 74 65 | 6d 46 6f 6e 74 2e 20 54 |he Syste|mFont. T|
|00002ca0| 68 65 20 63 61 6c 6c 0a | 77 69 6c 6c 20 72 65 74 |he call.|will ret|
|00002cb0| 75 72 6e 20 77 69 74 68 | 20 61 20 70 6f 69 6e 74 |urn with| a point|
|00002cc0| 65 72 20 74 6f 20 74 68 | 65 20 66 6f 6e 74 20 6d |er to th|e font m|
|00002cd0| 65 6e 75 20 73 74 72 75 | 63 74 75 72 65 20 69 6e |enu stru|cture in|
|00002ce0| 20 52 31 2e 20 4e 6f 77 | 20 69 74 20 69 73 20 75 | R1. Now| it is u|
|00002cf0| 70 20 74 6f 0a 74 68 65 | 20 70 72 6f 67 72 61 6d |p to.the| program|
|00002d00| 6d 65 72 20 77 68 61 74 | 20 74 6f 20 64 6f 20 77 |mer what| to do w|
|00002d10| 69 74 68 20 74 68 69 73 | 20 70 6f 69 6e 74 65 72 |ith this| pointer|
|00002d20| 2e 20 57 68 65 6e 20 70 | 61 73 73 65 64 20 69 6e |. When p|assed in|
|00002d30| 20 52 31 20 77 68 65 6e | 20 63 61 6c 6c 69 6e 67 | R1 when| calling|
|00002d40| 0a 57 69 6d 70 5f 43 72 | 65 61 74 65 4d 65 6e 75 |.Wimp_Cr|eateMenu|
|00002d50| 2c 20 74 68 65 20 6d 65 | 6e 75 20 74 72 65 65 20 |, the me|nu tree |
|00002d60| 77 69 6c 6c 20 63 6f 6e | 73 69 73 74 20 65 6e 74 |will con|sist ent|
|00002d70| 69 72 65 6c 79 20 6f 66 | 20 46 6f 6e 74 4d 65 6e |irely of| FontMen|
|00002d80| 75 20 73 74 72 75 63 74 | 75 72 65 73 2e 0a 49 66 |u struct|ures..If|
|00002d90| 20 74 68 65 20 66 6f 6e | 74 20 6d 65 6e 75 20 73 | the fon|t menu s|
|00002da0| 68 6f 75 6c 64 20 62 65 | 20 61 20 73 75 62 6d 65 |hould be| a subme|
|00002db0| 6e 75 20 6f 66 20 74 68 | 65 20 61 70 70 6c 69 63 |nu of th|e applic|
|00002dc0| 61 74 69 6f 6e 73 20 6f | 77 6e 20 6d 65 6e 75 20 |ations o|wn menu |
|00002dd0| 73 74 72 75 63 74 75 72 | 65 2c 0a 74 68 65 20 70 |structur|e,.the p|
|00002de0| 6f 69 6e 74 65 72 20 73 | 68 6f 75 6c 64 20 62 65 |ointer s|hould be|
|00002df0| 20 70 75 74 20 69 6e 20 | 74 68 65 20 73 75 62 6d | put in |the subm|
|00002e00| 65 6e 75 2d 77 6f 72 64 | 20 6f 66 20 74 68 65 20 |enu-word| of the |
|00002e10| 70 61 72 65 6e 74 20 6d | 65 6e 75 20 65 6e 74 72 |parent m|enu entr|
|00002e20| 79 2c 20 61 6e 64 0a 57 | 69 6d 70 5f 43 72 65 61 |y, and.W|imp_Crea|
|00002e30| 74 65 4d 65 6e 75 20 73 | 68 6f 75 6c 64 20 62 65 |teMenu s|hould be|
|00002e40| 20 63 61 6c 6c 65 64 20 | 77 69 74 68 20 61 20 70 | called |with a p|
|00002e50| 6f 69 6e 74 65 72 20 74 | 6f 20 74 68 65 20 61 70 |ointer t|o the ap|
|00002e60| 70 6c 69 63 61 74 69 6f | 6e 73 20 6f 77 6e 20 6d |plicatio|ns own m|
|00002e70| 65 6e 75 0a 73 74 72 75 | 63 74 75 72 65 2e 0a 0a |enu.stru|cture...|
|00002e80| 20 57 68 65 6e 20 61 20 | 6d 65 6e 75 20 73 65 6c | When a |menu sel|
|00002e90| 65 63 74 69 6f 6e 20 77 | 61 73 20 64 6f 6e 65 2c |ection w|as done,|
|00002ea0| 20 74 68 65 20 61 70 70 | 6c 69 63 61 74 69 6f 6e | the app|lication|
|00002eb0| 20 73 68 6f 75 6c 64 20 | 64 65 74 65 72 6d 69 6e | should |determin|
|00002ec0| 65 20 62 79 20 74 68 65 | 0a 72 65 74 75 72 6e 65 |e by the|.returne|
|00002ed0| 64 20 27 6d 65 6e 75 20 | 74 72 65 65 20 73 6f 20 |d 'menu |tree so |
|00002ee0| 66 61 72 27 20 76 61 6c | 75 65 73 20 69 66 20 74 |far' val|ues if t|
|00002ef0| 68 65 20 75 73 65 72 20 | 73 65 6c 65 63 74 65 64 |he user |selected|
|00002f00| 20 61 20 65 6e 74 72 79 | 20 69 6e 20 74 68 65 20 | a entry| in the |
|00002f10| 66 6f 6e 74 0a 6d 65 6e | 75 2e 20 49 66 20 73 6f |font.men|u. If so|
|00002f20| 2c 20 69 74 20 73 68 6f | 75 6c 64 20 73 65 74 20 |, it sho|uld set |
|00002f30| 61 6e 20 69 6e 74 65 72 | 6e 61 6c 20 66 6c 61 67 |an inter|nal flag|
|00002f40| 20 28 73 61 79 20 27 46 | 6f 6e 74 4d 65 6e 75 53 | (say 'F|ontMenuS|
|00002f50| 65 6c 65 63 74 65 64 27 | 29 20 74 6f 0a 54 52 55 |elected'|) to.TRU|
|00002f60| 45 2c 20 65 6c 73 65 20 | 69 74 20 73 68 6f 75 6c |E, else |it shoul|
|00002f70| 64 20 73 65 74 20 69 74 | 20 74 6f 20 46 41 4c 53 |d set it| to FALS|
|00002f80| 45 2c 20 73 6f 20 6c 61 | 74 65 72 20 6f 6e 20 69 |E, so la|ter on i|
|00002f90| 74 20 69 73 20 73 74 69 | 6c 6c 20 6b 6e 6f 77 6e |t is sti|ll known|
|00002fa0| 20 69 66 20 74 68 65 0a | 75 73 65 72 20 6d 61 79 | if the.|user may|
|00002fb0| 20 68 61 76 65 20 73 65 | 6c 65 63 74 65 64 20 61 | have se|lected a|
|00002fc0| 20 6e 65 77 20 66 6f 6e | 74 2e 20 41 66 74 65 72 | new fon|t. After|
|00002fd0| 20 74 68 61 74 20 69 74 | 20 73 68 6f 75 6c 64 20 | that it| should |
|00002fe0| 63 61 6c 6c 20 53 57 49 | 0a 22 46 6f 6e 74 4d 65 |call SWI|."FontMe|
|00002ff0| 6e 75 5f 44 65 63 6f 64 | 65 46 6f 6e 74 4d 65 6e |nu_Decod|eFontMen|
|00003000| 75 22 20 77 69 74 68 20 | 52 30 20 70 6f 69 6e 74 |u" with |R0 point|
|00003010| 69 6e 67 20 74 6f 20 74 | 68 65 20 66 69 72 73 74 |ing to t|he first|
|00003020| 20 6d 65 6e 75 20 73 65 | 6c 65 63 74 69 6f 6e 20 | menu se|lection |
|00003030| 69 6e 0a 74 68 65 20 27 | 6d 65 6e 75 20 74 72 65 |in.the '|menu tre|
|00003040| 65 20 73 6f 20 66 61 72 | 27 20 62 6c 6f 63 6b 20 |e so far|' block |
|00003050| 77 68 69 63 68 20 64 65 | 74 65 72 6d 69 6e 65 73 |which de|termines|
|00003060| 20 74 68 65 20 73 65 6c | 65 63 74 65 64 20 66 6f | the sel|ected fo|
|00003070| 6e 74 2e 20 52 31 20 73 | 68 6f 75 6c 64 0a 70 6f |nt. R1 s|hould.po|
|00003080| 69 6e 74 20 74 6f 20 61 | 20 62 75 66 66 65 72 20 |int to a| buffer |
|00003090| 74 6f 20 63 6f 6e 74 61 | 69 6e 20 74 68 65 20 61 |to conta|in the a|
|000030a0| 6e 73 77 65 72 2e 20 54 | 68 69 73 20 62 75 66 66 |nswer. T|his buff|
|000030b0| 65 72 20 6d 75 73 74 20 | 62 65 20 61 74 20 6c 65 |er must |be at le|
|000030c0| 61 73 74 20 34 38 0a 62 | 79 74 65 73 2e 20 49 66 |ast 48.b|ytes. If|
|000030d0| 20 6f 6e 20 72 65 74 75 | 72 6e 20 6f 66 20 74 68 | on retu|rn of th|
|000030e0| 69 73 20 63 61 6c 6c 20 | 52 30 20 3e 20 30 2c 20 |is call |R0 > 0, |
|000030f0| 74 68 65 20 75 73 65 72 | 20 73 65 6c 65 63 74 65 |the user| selecte|
|00003100| 64 20 61 20 6e 65 77 20 | 66 6f 6e 74 2e 20 54 68 |d a new |font. Th|
|00003110| 65 0a 62 75 66 66 65 72 | 20 70 61 73 73 65 64 20 |e.buffer| passed |
|00003120| 69 6e 20 52 31 20 77 69 | 6c 6c 20 63 6f 6e 74 61 |in R1 wi|ll conta|
|00003130| 69 6e 20 74 68 65 20 66 | 6f 6e 74 20 6e 61 6d 65 |in the f|ont name|
|00003140| 20 28 61 20 70 6f 69 6e | 74 20 73 65 70 65 72 61 | (a poin|t sepera|
|00003150| 74 65 64 2c 20 7a 65 72 | 6f 0a 74 65 72 6d 69 6e |ted, zer|o.termin|
|00003160| 61 74 65 64 20 66 6f 6e | 74 20 73 74 72 69 6e 67 |ated fon|t string|
|00003170| 29 2e 0a 0a 20 41 66 74 | 65 72 20 61 20 6d 65 6e |)... Aft|er a men|
|00003180| 75 20 73 65 6c 65 63 74 | 69 6f 6e 2c 20 61 6e 64 |u select|ion, and|
|00003190| 20 74 61 6b 69 6e 67 20 | 61 70 70 72 6f 70 72 69 | taking |appropri|
|000031a0| 61 74 65 20 61 63 74 69 | 6f 6e 73 2c 20 74 68 65 |ate acti|ons, the|
|000031b0| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 0a 73 68 6f | applica|tion.sho|
|000031c0| 75 6c 64 20 63 68 65 63 | 6b 20 74 68 65 20 6d 6f |uld chec|k the mo|
|000031d0| 75 73 65 20 62 75 74 74 | 6f 6e 20 73 74 61 74 65 |use butt|on state|
|000031e0| 20 74 6f 20 73 65 65 20 | 69 66 20 69 74 20 68 61 | to see |if it ha|
|000031f0| 73 20 74 6f 20 63 61 6c | 6c 20 53 57 49 0a 22 57 |s to cal|l SWI."W|
|00003200| 69 6d 70 5f 43 72 65 61 | 74 65 4d 65 6e 75 22 20 |imp_Crea|teMenu" |
|00003210| 61 67 61 69 6e 2e 20 49 | 66 20 61 64 6a 75 73 74 |again. I|f adjust|
|00003220| 20 77 61 73 20 75 73 65 | 64 20 74 6f 20 6d 61 6b | was use|d to mak|
|00003230| 65 20 74 68 65 20 73 65 | 6c 65 63 74 69 6f 6e 2c |e the se|lection,|
|00003240| 20 69 74 20 68 61 73 20 | 74 6f 0a 63 68 65 63 6b | it has |to.check|
|00003250| 20 20 74 68 65 20 27 46 | 6f 6e 74 4d 65 6e 75 53 | the 'F|ontMenuS|
|00003260| 65 6c 65 63 74 65 64 27 | 20 66 6c 61 67 20 74 6f |elected'| flag to|
|00003270| 20 64 65 74 65 72 6d 69 | 6e 65 20 69 66 20 74 68 | determi|ne if th|
|00003280| 65 20 75 73 65 72 20 73 | 65 6c 65 63 74 65 64 20 |e user s|elected |
|00003290| 61 20 66 6f 6e 74 0a 6d | 65 6e 75 20 65 6e 74 72 |a font.m|enu entr|
|000032a0| 79 2e 20 49 66 20 73 6f | 2c 20 69 74 20 73 68 6f |y. If so|, it sho|
|000032b0| 75 6c 64 20 63 61 6c 6c | 20 46 6f 6e 74 4d 65 6e |uld call| FontMen|
|000032c0| 75 5f 53 65 6c 65 63 74 | 20 61 73 20 64 65 73 63 |u_Select| as desc|
|000032d0| 72 69 62 65 64 20 61 62 | 6f 76 65 2e 20 54 68 69 |ribed ab|ove. Thi|
|000032e0| 73 0a 73 68 6f 75 6c 64 | 20 62 65 20 64 6f 6e 65 |s.should| be done|
|000032f0| 20 77 69 74 68 20 52 30 | 20 70 6f 69 6e 74 69 6e | with R0| pointin|
|00003300| 67 20 74 6f 20 74 68 65 | 20 73 74 72 69 6e 67 20 |g to the| string |
|00003310| 46 6f 6e 74 4d 65 6e 75 | 5f 44 65 63 6f 64 65 46 |FontMenu|_DecodeF|
|00003320| 6f 6e 74 4d 65 6e 75 0a | 72 65 74 75 72 6e 65 64 |ontMenu.|returned|
|00003330| 2e 20 54 68 65 20 6d 65 | 6e 75 20 70 6f 69 6e 74 |. The me|nu point|
|00003340| 65 72 20 72 65 74 75 72 | 6e 65 64 20 62 79 20 46 |er retur|ned by F|
|00003350| 6f 6e 74 4d 65 6e 75 5f | 53 65 6c 65 63 74 20 68 |ontMenu_|Select h|
|00003360| 61 73 20 74 6f 20 62 65 | 20 70 75 74 20 69 6e 20 |as to be| put in |
|00003370| 74 68 65 0a 27 73 75 62 | 2d 6d 65 6e 75 20 70 6f |the.'sub|-menu po|
|00003380| 69 6e 74 65 72 27 20 77 | 6f 72 64 20 6f 66 20 74 |inter' w|ord of t|
|00003390| 68 65 20 27 46 6f 6e 74 | 73 27 20 65 6e 74 72 79 |he 'Font|s' entry|
|000033a0| 2e 20 4e 6f 77 20 74 68 | 65 20 63 61 6c 6c 20 74 |. Now th|e call t|
|000033b0| 6f 0a 57 69 6d 70 5f 43 | 72 65 61 74 65 4d 65 6e |o.Wimp_C|reateMen|
|000033c0| 75 20 63 61 6e 20 62 65 | 20 64 6f 6e 65 2e 20 49 |u can be| done. I|
|000033d0| 6e 20 74 68 69 73 20 77 | 61 79 20 69 74 20 69 73 |n this w|ay it is|
|000033e0| 20 70 6f 73 73 69 62 6c | 65 20 66 6f 72 20 74 68 | possibl|e for th|
|000033f0| 65 20 75 73 65 72 20 74 | 6f 0a 63 6c 69 63 6b 20 |e user t|o.click |
|00003400| 77 69 74 68 20 61 64 6a | 75 73 74 20 69 6e 20 74 |with adj|ust in t|
|00003410| 68 65 20 66 6f 6e 74 20 | 6d 65 6e 75 2c 20 61 6e |he font |menu, an|
|00003420| 64 20 6b 65 65 70 69 6e | 67 20 74 68 65 20 6d 65 |d keepin|g the me|
|00003430| 6e 75 20 6f 6e 20 73 63 | 72 65 65 6e 20 61 66 74 |nu on sc|reen aft|
|00003440| 65 72 20 74 68 65 0a 73 | 65 6c 65 63 74 69 6f 6e |er the.s|election|
|00003450| 2e 0a 0a 20 54 68 65 72 | 65 20 69 73 20 6f 6e 65 |... Ther|e is one|
|00003460| 20 6c 69 74 74 6c 65 20 | 64 72 61 77 62 61 63 6b | little |drawback|
|00003470| 20 6f 66 20 74 68 69 73 | 20 6d 65 74 68 6f 64 2e | of this| method.|
|00003480| 20 49 66 20 74 68 65 20 | 75 73 65 72 20 73 65 6c | If the |user sel|
|00003490| 65 63 74 65 64 20 61 20 | 6e 65 77 0a 21 46 6f 6e |ected a |new.!Fon|
|000034a0| 74 73 20 64 69 72 65 63 | 74 6f 72 79 2c 20 69 74 |ts direc|tory, it|
|000034b0| 20 77 69 6c 6c 20 62 65 | 20 6e 6f 74 65 64 20 62 | will be| noted b|
|000034c0| 65 20 74 68 65 20 46 6f | 6e 74 4d 65 6e 75 5f 53 |e the Fo|ntMenu_S|
|000034d0| 65 6c 65 63 74 20 63 6f | 64 65 2c 20 61 6e 64 20 |elect co|de, and |
|000034e0| 61 20 6e 65 77 0a 66 6f | 6e 74 20 6d 65 6e 75 20 |a new.fo|nt menu |
|000034f0| 73 74 72 75 63 74 75 72 | 65 20 77 69 6c 6c 20 62 |structur|e will b|
|00003500| 65 20 67 65 6e 65 72 61 | 74 65 64 2e 20 54 68 69 |e genera|ted. Thi|
|00003510| 73 20 69 73 20 61 6c 77 | 61 79 73 20 74 68 65 20 |s is alw|ays the |
|00003520| 63 61 73 65 2c 20 61 6c | 73 6f 20 77 69 74 68 0a |case, al|so with.|
|00003530| 74 68 65 20 6d 65 74 68 | 6f 64 20 64 65 73 63 72 |the meth|od descr|
|00003540| 69 62 65 64 20 62 65 6c | 6f 77 2e 20 42 75 74 20 |ibed bel|ow. But |
|00003550| 69 74 20 63 6f 75 6c 64 | 20 62 65 20 70 6f 73 73 |it could| be poss|
|00003560| 69 62 6c 65 20 74 68 61 | 74 20 74 68 65 20 75 73 |ible tha|t the us|
|00003570| 65 72 20 77 61 73 20 67 | 6f 69 6e 67 0a 74 6f 20 |er was g|oing.to |
|00003580| 64 6f 20 73 6f 6d 65 74 | 68 69 6e 67 20 65 6c 73 |do somet|hing els|
|00003590| 65 20 69 6e 20 74 68 65 | 20 6d 65 6e 75 2c 20 6e |e in the| menu, n|
|000035a0| 6f 74 20 73 65 6c 65 63 | 74 69 6e 67 20 61 20 66 |ot selec|ting a f|
|000035b0| 6f 6e 74 20 61 74 20 61 | 6c 6c 2e 20 48 65 20 63 |ont at a|ll. He c|
|000035c0| 6f 75 6c 64 20 66 6f 72 | 0a 69 6e 73 74 61 6e 63 |ould for|.instanc|
|000035d0| 65 20 77 61 6e 74 20 74 | 6f 20 71 75 69 74 2e 20 |e want t|o quit. |
|000035e0| 4e 6f 77 20 68 65 20 28 | 73 68 65 29 20 68 61 73 |Now he (|she) has|
|000035f0| 20 74 6f 20 77 61 69 74 | 20 66 6f 72 20 74 68 65 | to wait| for the|
|00003600| 20 46 6f 6e 74 4d 65 6e | 75 20 6d 6f 64 75 6c 65 | FontMen|u module|
|00003610| 20 74 6f 0a 63 72 65 61 | 74 65 20 74 68 65 20 6e | to.crea|te the n|
|00003620| 65 77 20 6d 65 6e 75 20 | 73 74 72 75 63 74 75 72 |ew menu |structur|
|00003630| 65 2c 20 62 65 66 6f 72 | 65 20 68 65 20 28 73 68 |e, befor|e he (sh|
|00003640| 65 29 20 69 73 20 61 62 | 6c 65 20 74 6f 20 61 63 |e) is ab|le to ac|
|00003650| 63 65 73 73 20 74 68 65 | 20 27 51 75 69 74 27 0a |cess the| 'Quit'.|
|00003660| 65 6e 74 72 79 2e 20 53 | 6f 20 74 68 65 20 6e 65 |entry. S|o the ne|
|00003670| 78 74 20 73 6f 6c 75 74 | 69 6f 6e 20 69 73 20 74 |xt solut|ion is t|
|00003680| 6f 20 77 61 69 74 20 77 | 69 74 68 20 63 61 6c 6c |o wait w|ith call|
|00003690| 69 6e 67 20 46 6f 6e 74 | 4d 65 6e 75 5f 53 65 6c |ing Font|Menu_Sel|
|000036a0| 65 63 74 2c 20 75 6e 74 | 69 6c 0a 74 68 65 20 75 |ect, unt|il.the u|
|000036b0| 73 65 72 20 77 61 6e 74 | 73 20 74 6f 20 73 65 6c |ser want|s to sel|
|000036c0| 65 63 74 20 61 20 6e 65 | 77 20 66 6f 6e 74 2e 20 |ect a ne|w font. |
|000036d0| 54 68 69 73 20 63 61 6e | 20 6f 6e 6c 79 20 62 65 |This can| only be|
|000036e0| 20 64 6f 6e 65 20 62 79 | 20 6d 61 6b 69 6e 67 20 | done by| making |
|000036f0| 75 73 65 20 6f 66 0a 74 | 68 65 20 57 69 6d 70 20 |use of.t|he Wimp |
|00003700| 6d 65 73 73 61 67 65 20 | 73 79 73 74 65 6d 2e 20 |message |system. |
|00003710| 54 68 65 20 64 69 66 66 | 69 63 75 6c 74 20 74 68 |The diff|icult th|
|00003720| 69 6e 67 20 6f 66 20 74 | 68 69 73 20 6d 65 74 68 |ing of t|his meth|
|00003730| 6f 64 20 28 61 73 20 64 | 65 73 63 72 69 62 65 64 |od (as d|escribed|
|00003740| 0a 6c 61 74 65 72 29 20 | 69 73 20 74 68 61 74 20 |.later) |is that |
|00003750| 74 68 65 20 57 69 6d 70 | 20 69 73 20 75 6e 61 62 |the Wimp| is unab|
|00003760| 6c 65 20 74 6f 20 72 65 | 2d 6f 70 65 6e 20 74 68 |le to re|-open th|
|00003770| 65 20 6d 65 6e 75 20 73 | 74 72 75 63 74 75 72 65 |e menu s|tructure|
|00003780| 20 65 6e 74 69 72 65 6c | 79 0a 61 66 74 65 72 20 | entirel|y.after |
|00003790| 61 20 6d 65 6e 75 20 73 | 65 6c 65 63 74 69 6f 6e |a menu s|election|
|000037a0| 20 75 73 69 6e 67 20 74 | 68 65 20 41 44 4a 55 53 | using t|he ADJUS|
|000037b0| 54 20 62 75 74 74 6f 6e | 2e 20 53 6f 20 61 20 6c |T button|. So a l|
|000037c0| 69 74 74 6c 65 20 74 72 | 69 63 6b 20 68 61 73 20 |ittle tr|ick has |
|000037d0| 74 6f 0a 73 6f 6c 76 65 | 20 74 68 69 73 20 70 72 |to.solve| this pr|
|000037e0| 6f 62 6c 65 6d 2e 0a 0a | 20 54 68 65 20 68 61 72 |oblem...| The har|
|000037f0| 64 20 77 61 79 0a 20 2d | 2d 2d 2d 2d 2d 2d 2d 2d |d way. -|--------|
|00003800| 2d 2d 2d 0a 20 49 6e 20 | 74 68 65 20 61 70 70 6c |---. In |the appl|
|00003810| 69 63 61 74 69 6f 6e 73 | 20 6f 77 6e 20 6d 65 6e |ications| own men|
|00003820| 75 20 73 74 72 75 63 74 | 75 72 65 2c 20 74 68 65 |u struct|ure, the|
|00003830| 72 65 20 73 68 6f 75 6c | 64 20 62 65 20 61 20 6d |re shoul|d be a m|
|00003840| 65 6e 75 20 65 6e 74 72 | 79 20 28 65 2e 67 2e 0a |enu entr|y (e.g..|
|00003850| 27 46 6f 6e 74 73 27 29 | 20 77 69 74 68 20 62 69 |'Fonts')| with bi|
|00003860| 74 20 33 20 6f 66 20 69 | 74 73 20 6d 65 6e 75 20 |t 3 of i|ts menu |
|00003870| 66 6c 61 67 73 20 73 65 | 74 2e 20 54 68 65 20 61 |flags se|t. The a|
|00003880| 70 70 6c 69 63 61 74 69 | 6f 6e 20 68 61 73 20 74 |pplicati|on has t|
|00003890| 6f 20 61 73 73 75 72 65 | 0a 74 68 61 74 20 74 68 |o assure|.that th|
|000038a0| 69 73 20 62 69 74 20 69 | 73 20 73 65 74 20 77 68 |is bit i|s set wh|
|000038b0| 65 6e 65 76 65 72 20 69 | 74 20 63 61 6c 6c 73 20 |enever i|t calls |
|000038c0| 53 57 49 20 22 57 69 6d | 70 5f 43 72 65 61 74 65 |SWI "Wim|p_Create|
|000038d0| 4d 65 6e 75 22 20 61 73 | 20 69 74 20 6d 61 79 20 |Menu" as| it may |
|000038e0| 62 65 0a 63 6f 72 72 75 | 70 74 65 64 20 28 73 65 |be.corru|pted (se|
|000038f0| 65 20 62 65 6c 6f 77 29 | 2e 20 53 6f 20 77 68 65 |e below)|. So whe|
|00003900| 6e 65 76 65 72 20 74 68 | 65 20 75 73 65 72 20 70 |never th|e user p|
|00003910| 75 74 73 20 74 68 65 20 | 70 6f 69 6e 74 65 72 20 |uts the |pointer |
|00003920| 61 62 6f 76 65 20 74 68 | 65 20 61 72 72 6f 77 0a |above th|e arrow.|
|00003930| 6f 6e 20 74 68 65 20 72 | 69 67 68 74 20 6f 66 20 |on the r|ight of |
|00003940| 74 68 69 73 20 65 6e 74 | 72 79 2c 20 61 20 77 61 |this ent|ry, a wa|
|00003950| 72 6e 69 6e 67 20 6d 65 | 73 73 61 67 65 20 28 26 |rning me|ssage (&|
|00003960| 34 30 30 43 30 29 20 77 | 69 6c 6c 20 62 65 20 73 |400C0) w|ill be s|
|00003970| 65 6e 74 20 62 79 20 74 | 68 65 0a 57 69 6d 70 2e |ent by t|he.Wimp.|
|00003980| 20 4f 6e 20 72 65 63 65 | 69 76 69 6e 67 20 6f 66 | On rece|iving of|
|00003990| 20 74 68 69 73 20 6d 65 | 73 73 61 67 65 2c 20 74 | this me|ssage, t|
|000039a0| 68 65 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 73 |he appli|cation s|
|000039b0| 68 6f 75 6c 64 20 72 65 | 73 70 6f 6e 64 20 62 79 |hould re|spond by|
|000039c0| 20 63 61 6c 6c 69 6e 67 | 0a 53 57 49 20 22 46 6f | calling|.SWI "Fo|
|000039d0| 6e 74 4d 65 6e 75 5f 53 | 65 6c 65 63 74 22 20 77 |ntMenu_S|elect" w|
|000039e0| 69 74 68 20 52 30 20 70 | 6f 69 6e 74 69 6e 67 20 |ith R0 p|ointing |
|000039f0| 74 6f 20 61 20 70 6f 69 | 6e 74 20 73 65 70 65 72 |to a poi|nt seper|
|00003a00| 61 74 65 64 20 28 7a 65 | 72 6f 0a 74 65 72 6d 69 |ated (ze|ro.termi|
|00003a10| 6e 61 74 65 64 29 20 66 | 6f 6e 74 20 73 74 72 69 |nated) f|ont stri|
|00003a20| 6e 67 2c 20 61 6e 64 20 | 69 6e 20 52 31 20 74 68 |ng, and |in R1 th|
|00003a30| 65 20 76 61 6c 75 65 20 | 30 20 6f 72 20 31 20 74 |e value |0 or 1 t|
|00003a40| 6f 20 74 65 6c 6c 20 46 | 6f 6e 74 4d 65 6e 75 20 |o tell F|ontMenu |
|00003a50| 69 66 20 69 74 0a 61 6c | 6c 6f 77 73 20 74 68 65 |if it.al|lows the|
|00003a60| 20 75 73 65 72 20 74 6f | 20 73 65 6c 65 63 74 20 | user to| select |
|00003a70| 74 68 65 20 53 79 73 74 | 65 6d 46 6f 6e 74 2e 20 |the Syst|emFont. |
|00003a80| 54 68 65 20 66 6f 6e 74 | 20 73 74 72 69 6e 67 20 |The font| string |
|00003a90| 6d 61 79 20 62 65 20 61 | 20 7a 65 72 6f 0a 6c 65 |may be a| zero.le|
|00003aa0| 6e 67 74 68 20 73 74 72 | 69 6e 67 2c 20 77 69 63 |ngth str|ing, wic|
|00003ab0| 68 20 6d 65 61 6e 73 20 | 74 68 61 74 20 6e 6f 20 |h means |that no |
|00003ac0| 63 75 72 72 65 6e 74 20 | 66 6f 6e 74 20 69 73 20 |current |font is |
|00003ad0| 73 65 6c 65 63 74 65 64 | 2e 20 46 6f 6e 74 4d 65 |selected|. FontMe|
|00003ae0| 6e 75 20 77 69 6c 6c 0a | 73 65 6c 65 63 74 20 74 |nu will.|select t|
|00003af0| 68 65 20 66 6f 6e 74 20 | 69 6e 20 69 74 73 20 6d |he font |in its m|
|00003b00| 65 6e 75 20 73 74 72 75 | 63 74 75 72 65 2e 20 49 |enu stru|cture. I|
|00003b10| 66 20 31 20 77 61 73 20 | 70 61 73 73 65 64 20 69 |f 1 was |passed i|
|00003b20| 6e 20 52 31 2c 20 74 68 | 65 20 66 69 72 73 74 20 |n R1, th|e first |
|00003b30| 69 74 65 6d 0a 69 6e 20 | 74 68 65 20 6d 65 6e 75 |item.in |the menu|
|00003b40| 20 73 74 72 75 63 74 75 | 72 65 20 77 69 6c 6c 20 | structu|re will |
|00003b50| 62 65 20 27 53 79 73 74 | 65 6d 46 6f 6e 74 73 27 |be 'Syst|emFonts'|
|00003b60| 2e 20 49 6e 20 63 61 73 | 65 20 52 31 20 3d 20 30 |. In cas|e R1 = 0|
|00003b70| 2c 20 74 68 69 73 20 65 | 6e 74 72 79 20 77 69 6c |, this e|ntry wil|
|00003b80| 6c 0a 6e 6f 74 20 62 65 | 20 74 68 65 72 65 2e 20 |l.not be| there. |
|00003b90| 54 68 69 73 20 63 61 6c | 6c 20 77 69 6c 6c 20 72 |This cal|l will r|
|00003ba0| 65 74 75 72 6e 20 77 69 | 74 68 20 61 20 70 6f 69 |eturn wi|th a poi|
|00003bb0| 6e 74 65 72 20 74 6f 20 | 74 68 65 20 6d 65 6e 75 |nter to |the menu|
|00003bc0| 20 73 74 72 75 63 74 75 | 72 65 20 69 6e 0a 52 31 | structu|re in.R1|
|00003bd0| 2e 20 54 68 69 73 20 70 | 6f 69 6e 74 65 72 20 73 |. This p|ointer s|
|00003be0| 68 6f 75 6c 64 20 62 65 | 20 70 61 73 73 65 64 20 |hould be| passed |
|00003bf0| 74 6f 20 53 57 49 20 22 | 57 69 6d 70 5f 43 72 65 |to SWI "|Wimp_Cre|
|00003c00| 61 74 65 53 75 62 4d 65 | 6e 75 22 2e 0a 0a 20 57 |ateSubMe|nu"... W|
|00003c10| 68 65 6e 20 61 20 6d 65 | 6e 75 20 73 65 6c 65 63 |hen a me|nu selec|
|00003c20| 74 69 6f 6e 20 77 61 73 | 20 64 6f 6e 65 2c 20 74 |tion was| done, t|
|00003c30| 68 65 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 73 |he appli|cation s|
|00003c40| 68 6f 75 6c 64 20 64 65 | 74 65 72 6d 69 6e 65 20 |hould de|termine |
|00003c50| 62 79 20 74 68 65 0a 72 | 65 74 75 72 6e 65 64 20 |by the.r|eturned |
|00003c60| 27 6d 65 6e 75 20 74 72 | 65 65 20 73 6f 20 66 61 |'menu tr|ee so fa|
|00003c70| 72 27 20 76 61 6c 75 65 | 73 20 69 66 20 74 68 65 |r' value|s if the|
|00003c80| 20 75 73 65 72 20 73 65 | 6c 65 63 74 65 64 20 61 | user se|lected a|
|00003c90| 20 65 6e 74 72 79 20 69 | 6e 20 74 68 65 20 66 6f | entry i|n the fo|
|00003ca0| 6e 74 0a 6d 65 6e 75 2e | 20 49 66 20 73 6f 2c 20 |nt.menu.| If so, |
|00003cb0| 69 74 20 73 68 6f 75 6c | 64 20 73 65 74 20 61 6e |it shoul|d set an|
|00003cc0| 20 69 6e 74 65 72 6e 61 | 6c 20 66 6c 61 67 20 28 | interna|l flag (|
|00003cd0| 73 61 79 20 27 46 6f 6e | 74 4d 65 6e 75 53 65 6c |say 'Fon|tMenuSel|
|00003ce0| 65 63 74 65 64 27 29 20 | 74 6f 0a 54 52 55 45 2c |ected') |to.TRUE,|
|00003cf0| 20 65 6c 73 65 20 69 74 | 20 73 68 6f 75 6c 64 20 | else it| should |
|00003d00| 73 65 74 20 69 74 20 74 | 6f 20 46 41 4c 53 45 2c |set it t|o FALSE,|
|00003d10| 20 73 6f 20 6c 61 74 65 | 72 20 6f 6e 20 69 74 20 | so late|r on it |
|00003d20| 69 73 20 73 74 69 6c 6c | 20 6b 6e 6f 77 6e 20 69 |is still| known i|
|00003d30| 66 20 74 68 65 0a 75 73 | 65 72 20 6d 61 79 20 68 |f the.us|er may h|
|00003d40| 61 76 65 20 73 65 6c 65 | 63 74 65 64 20 61 20 6e |ave sele|cted a n|
|00003d50| 65 77 20 66 6f 6e 74 2e | 20 41 66 74 65 72 20 74 |ew font.| After t|
|00003d60| 68 61 74 20 69 74 20 73 | 68 6f 75 6c 64 20 63 61 |hat it s|hould ca|
|00003d70| 6c 6c 20 53 57 49 0a 22 | 46 6f 6e 74 4d 65 6e 75 |ll SWI."|FontMenu|
|00003d80| 5f 44 65 63 6f 64 65 46 | 6f 6e 74 4d 65 6e 75 22 |_DecodeF|ontMenu"|
|00003d90| 20 77 69 74 68 20 52 30 | 20 70 6f 69 6e 74 69 6e | with R0| pointin|
|00003da0| 67 20 74 6f 20 74 68 65 | 20 66 69 72 73 74 20 6d |g to the| first m|
|00003db0| 65 6e 75 20 73 65 6c 65 | 63 74 69 6f 6e 20 69 6e |enu sele|ction in|
|00003dc0| 0a 74 68 65 20 27 6d 65 | 6e 75 20 74 72 65 65 20 |.the 'me|nu tree |
|00003dd0| 73 6f 20 66 61 72 27 20 | 62 6c 6f 63 6b 20 77 68 |so far' |block wh|
|00003de0| 69 63 68 20 64 65 74 65 | 72 6d 69 6e 65 73 20 74 |ich dete|rmines t|
|00003df0| 68 65 20 73 65 6c 65 63 | 74 65 64 20 66 6f 6e 74 |he selec|ted font|
|00003e00| 2e 20 52 31 20 73 68 6f | 75 6c 64 0a 70 6f 69 6e |. R1 sho|uld.poin|
|00003e10| 74 20 74 6f 20 61 20 62 | 75 66 66 65 72 20 74 6f |t to a b|uffer to|
|00003e20| 20 63 6f 6e 74 61 69 6e | 20 74 68 65 20 61 6e 73 | contain| the ans|
|00003e30| 77 65 72 2e 20 54 68 69 | 73 20 62 75 66 66 65 72 |wer. Thi|s buffer|
|00003e40| 20 6d 75 73 74 20 62 65 | 20 61 74 20 6c 65 61 73 | must be| at leas|
|00003e50| 74 20 34 38 0a 62 79 74 | 65 73 2e 20 49 66 20 6f |t 48.byt|es. If o|
|00003e60| 6e 20 72 65 74 75 72 6e | 20 6f 66 20 74 68 69 73 |n return| of this|
|00003e70| 20 63 61 6c 6c 20 52 30 | 20 3e 20 30 2c 20 74 68 | call R0| > 0, th|
|00003e80| 65 20 75 73 65 72 20 73 | 65 6c 65 63 74 65 64 20 |e user s|elected |
|00003e90| 61 20 6e 65 77 20 66 6f | 6e 74 2e 20 54 68 65 0a |a new fo|nt. The.|
|00003ea0| 62 75 66 66 65 72 20 70 | 61 73 73 65 64 20 69 6e |buffer p|assed in|
|00003eb0| 20 52 31 20 77 69 6c 6c | 20 63 6f 6e 74 61 69 6e | R1 will| contain|
|00003ec0| 20 74 68 65 20 66 6f 6e | 74 20 6e 61 6d 65 20 28 | the fon|t name (|
|00003ed0| 61 20 70 6f 69 6e 74 20 | 73 65 70 65 72 61 74 65 |a point |seperate|
|00003ee0| 64 2c 20 7a 65 72 6f 0a | 74 65 72 6d 69 6e 61 74 |d, zero.|terminat|
|00003ef0| 65 64 20 66 6f 6e 74 20 | 73 74 72 69 6e 67 29 2e |ed font |string).|
|00003f00| 0a 0a 20 41 66 74 65 72 | 20 61 20 6d 65 6e 75 20 |.. After| a menu |
|00003f10| 73 65 6c 65 63 74 69 6f | 6e 2c 20 61 6e 64 20 74 |selectio|n, and t|
|00003f20| 61 6b 69 6e 67 20 61 70 | 70 72 6f 70 72 69 61 74 |aking ap|propriat|
|00003f30| 65 20 61 63 74 69 6f 6e | 73 2c 20 74 68 65 20 61 |e action|s, the a|
|00003f40| 70 70 6c 69 63 61 74 69 | 6f 6e 0a 73 68 6f 75 6c |pplicati|on.shoul|
|00003f50| 64 20 63 68 65 63 6b 20 | 74 68 65 20 6d 6f 75 73 |d check |the mous|
|00003f60| 65 20 62 75 74 74 6f 6e | 20 73 74 61 74 65 20 74 |e button| state t|
|00003f70| 6f 20 73 65 65 20 69 66 | 20 69 74 20 68 61 73 20 |o see if| it has |
|00003f80| 74 6f 20 63 61 6c 6c 20 | 53 57 49 0a 22 57 69 6d |to call |SWI."Wim|
|00003f90| 70 5f 43 72 65 61 74 65 | 4d 65 6e 75 22 20 61 67 |p_Create|Menu" ag|
|00003fa0| 61 69 6e 2e 20 49 66 20 | 61 64 6a 75 73 74 20 77 |ain. If |adjust w|
|00003fb0| 61 73 20 75 73 65 64 20 | 74 6f 20 6d 61 6b 65 20 |as used |to make |
|00003fc0| 74 68 65 20 73 65 6c 65 | 63 74 69 6f 6e 2c 20 69 |the sele|ction, i|
|00003fd0| 74 20 68 61 73 20 74 6f | 0a 63 68 65 63 6b 20 20 |t has to|.check |
|00003fe0| 74 68 65 20 27 46 6f 6e | 74 4d 65 6e 75 53 65 6c |the 'Fon|tMenuSel|
|00003ff0| 65 63 74 65 64 27 20 66 | 6c 61 67 20 74 6f 20 64 |ected' f|lag to d|
|00004000| 65 74 65 72 6d 69 6e 65 | 20 69 66 20 74 68 65 20 |etermine| if the |
|00004010| 75 73 65 72 20 73 65 6c | 65 63 74 65 64 20 61 20 |user sel|ected a |
|00004020| 66 6f 6e 74 0a 6d 65 6e | 75 20 65 6e 74 72 79 2e |font.men|u entry.|
|00004030| 20 49 66 20 73 6f 2c 20 | 69 74 20 73 68 6f 75 6c | If so, |it shoul|
|00004040| 64 20 63 61 6c 6c 20 53 | 57 49 20 22 46 6f 6e 74 |d call S|WI "Font|
|00004050| 4d 65 6e 75 5f 53 65 6c | 65 63 74 22 20 61 73 20 |Menu_Sel|ect" as |
|00004060| 64 65 73 63 72 69 62 65 | 64 20 61 62 6f 76 65 2e |describe|d above.|
|00004070| 0a 54 68 69 73 20 73 68 | 6f 75 6c 64 20 62 65 20 |.This sh|ould be |
|00004080| 64 6f 6e 65 20 77 69 74 | 68 20 52 30 20 70 6f 69 |done wit|h R0 poi|
|00004090| 6e 74 69 6e 67 20 74 6f | 20 74 68 65 20 73 74 72 |nting to| the str|
|000040a0| 69 6e 67 20 53 57 49 0a | 22 46 6f 6e 74 4d 65 6e |ing SWI.|"FontMen|
|000040b0| 75 5f 44 65 63 6f 64 65 | 46 6f 6e 74 4d 65 6e 75 |u_Decode|FontMenu|
|000040c0| 22 20 72 65 74 75 72 6e | 65 64 2e 20 20 41 73 20 |" return|ed. As |
|000040d0| 74 68 65 20 4d 65 6e 75 | 57 61 72 6e 69 6e 67 46 |the Menu|WarningF|
|000040e0| 6c 61 67 20 69 6e 20 74 | 68 65 20 6d 65 6e 75 0a |lag in t|he menu.|
|000040f0| 66 6c 61 67 73 20 6f 66 | 20 74 68 65 20 6d 65 6e |flags of| the men|
|00004100| 75 20 65 6e 74 72 79 20 | 28 65 2e 67 2e 20 27 46 |u entry |(e.g. 'F|
|00004110| 6f 6e 74 73 27 29 20 70 | 72 65 63 65 64 69 6e 67 |onts') p|receding|
|00004120| 20 74 68 65 20 66 6f 6e | 74 20 6d 65 6e 75 20 77 | the fon|t menu w|
|00004130| 61 73 20 73 65 74 0a 28 | 70 68 68 68 21 29 2c 20 |as set.(|phhh!), |
|00004140| 74 68 65 20 57 69 6d 70 | 20 69 73 20 75 6e 61 62 |the Wimp| is unab|
|00004150| 6c 65 20 74 6f 20 72 65 | 63 72 65 61 74 65 20 74 |le to re|create t|
|00004160| 68 65 20 77 68 6f 6c 65 | 20 6d 65 6e 75 20 74 72 |he whole| menu tr|
|00004170| 65 65 20 61 75 74 6f 6d | 61 74 69 63 61 6c 6c 79 |ee autom|atically|
|00004180| 2e 0a 53 6f 20 61 20 6c | 69 74 6c 65 20 74 72 69 |..So a l|itle tri|
|00004190| 63 6b 20 68 61 73 20 74 | 6f 20 61 73 73 75 72 65 |ck has t|o assure|
|000041a0| 20 74 68 61 74 20 69 74 | 20 77 69 6c 6c 20 77 6f | that it| will wo|
|000041b0| 72 6b 20 63 6f 72 72 65 | 63 74 6c 79 2e 20 54 68 |rk corre|ctly. Th|
|000041c0| 65 20 6d 65 6e 75 20 70 | 6f 69 6e 74 65 72 0a 72 |e menu p|ointer.r|
|000041d0| 65 74 75 72 6e 65 64 20 | 62 79 20 53 57 49 20 22 |eturned |by SWI "|
|000041e0| 46 6f 6e 74 4d 65 6e 75 | 5f 53 65 6c 65 63 74 22 |FontMenu|_Select"|
|000041f0| 20 68 61 73 20 74 6f 20 | 62 65 20 70 75 74 20 69 | has to |be put i|
|00004200| 6e 20 74 68 65 20 27 73 | 75 62 2d 6d 65 6e 75 20 |n the 's|ub-menu |
|00004210| 70 6f 69 6e 74 65 72 27 | 0a 77 6f 72 64 20 6f 66 |pointer'|.word of|
|00004220| 20 74 68 65 20 27 46 6f | 6e 74 73 27 20 65 6e 74 | the 'Fo|nts' ent|
|00004230| 72 79 2c 20 61 6e 64 20 | 74 68 65 20 4d 65 6e 75 |ry, and |the Menu|
|00004240| 57 61 72 6e 69 6e 67 46 | 6c 61 67 20 28 62 69 74 |WarningF|lag (bit|
|00004250| 20 33 29 20 6f 66 20 74 | 68 65 20 6d 65 6e 75 20 | 3) of t|he menu |
|00004260| 66 6c 61 67 73 0a 77 6f | 72 64 20 6f 66 20 74 68 |flags.wo|rd of th|
|00004270| 69 73 20 65 6e 74 72 79 | 20 73 68 6f 75 6c 64 20 |is entry| should |
|00004280| 62 65 20 63 6c 65 61 72 | 65 64 2e 20 4e 6f 77 20 |be clear|ed. Now |
|00004290| 74 68 65 20 63 61 6c 6c | 20 74 6f 20 53 57 49 20 |the call| to SWI |
|000042a0| 22 57 69 6d 70 5f 43 72 | 65 61 74 65 4d 65 6e 75 |"Wimp_Cr|eateMenu|
|000042b0| 22 0a 63 61 6e 20 62 65 | 20 64 6f 6e 65 2e 20 49 |".can be| done. I|
|000042c0| 6e 20 74 68 69 73 20 77 | 61 79 20 69 74 20 69 73 |n this w|ay it is|
|000042d0| 20 70 6f 73 73 69 62 6c | 65 20 66 6f 72 20 74 68 | possibl|e for th|
|000042e0| 65 20 75 73 65 72 20 74 | 6f 20 63 6c 69 63 6b 20 |e user t|o click |
|000042f0| 77 69 74 68 20 61 64 6a | 75 73 74 20 69 6e 0a 74 |with adj|ust in.t|
|00004300| 68 65 20 66 6f 6e 74 20 | 6d 65 6e 75 2c 20 61 6e |he font |menu, an|
|00004310| 64 20 6b 65 65 70 69 6e | 67 20 74 68 65 20 6d 65 |d keepin|g the me|
|00004320| 6e 75 20 6f 6e 20 73 63 | 72 65 65 6e 20 61 66 74 |nu on sc|reen aft|
|00004330| 65 72 20 74 68 65 20 73 | 65 6c 65 63 74 69 6f 6e |er the s|election|
|00004340| 2e 20 54 68 65 20 6e 65 | 78 74 0a 74 69 6d 65 20 |. The ne|xt.time |
|00004350| 74 68 65 20 75 73 65 72 | 20 6f 70 65 6e 73 20 74 |the user| opens t|
|00004360| 68 65 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 6d |he appli|cation m|
|00004370| 65 6e 75 2c 20 74 68 65 | 20 4d 65 6e 75 57 61 72 |enu, the| MenuWar|
|00004380| 6e 69 6e 67 46 6c 61 67 | 20 28 62 69 74 20 33 29 |ningFlag| (bit 3)|
|00004390| 20 73 68 6f 75 6c 64 0a | 62 65 20 73 65 74 20 61 | should.|be set a|
|000043a0| 67 61 69 6e 2c 20 61 73 | 20 6f 74 68 65 72 20 61 |gain, as| other a|
|000043b0| 70 70 6c 69 63 61 74 69 | 6f 6e 73 20 6d 61 79 20 |pplicati|ons may |
|000043c0| 68 61 76 65 20 75 73 65 | 64 20 74 68 65 20 66 6f |have use|d the fo|
|000043d0| 6e 74 20 6d 65 6e 75 20 | 69 6e 20 74 68 65 0a 6d |nt menu |in the.m|
|000043e0| 65 61 6e 77 68 69 6c 65 | 2c 20 61 6e 64 20 69 74 |eanwhile|, and it|
|000043f0| 20 69 73 20 6e 65 63 65 | 73 73 61 72 79 20 74 68 | is nece|ssary th|
|00004400| 61 74 20 53 57 49 20 22 | 46 6f 6e 74 4d 65 6e 75 |at SWI "|FontMenu|
|00004410| 5f 53 65 6c 65 63 74 22 | 20 69 73 20 63 61 6c 6c |_Select"| is call|
|00004420| 65 64 20 6a 75 73 74 0a | 62 65 66 6f 72 65 20 74 |ed just.|before t|
|00004430| 68 65 20 66 6f 6e 74 20 | 6d 65 6e 75 20 6f 70 65 |he font |menu ope|
|00004440| 6e 73 2e 0a 0a 20 42 65 | 63 61 75 73 65 20 73 6f |ns... Be|cause so|
|00004450| 6d 65 20 46 6f 6e 74 4d | 65 6e 75 20 53 57 49 27 |me FontM|enu SWI'|
|00004460| 73 20 6d 61 79 20 74 61 | 6b 65 20 73 6f 6d 65 20 |s may ta|ke some |
|00004470| 74 69 6d 65 20 62 65 66 | 6f 72 65 20 74 68 65 79 |time bef|ore they|
|00004480| 20 72 65 74 75 72 6e 0a | 28 74 68 69 73 20 69 73 | return.|(this is|
|00004490| 20 64 75 65 20 74 6f 20 | 46 6f 6e 74 5f 4c 69 73 | due to |Font_Lis|
|000044a0| 74 46 6f 6e 74 73 29 2c | 20 74 68 65 20 48 6f 75 |tFonts),| the Hou|
|000044b0| 72 67 6c 61 73 73 20 4f | 6e 20 26 20 4f 66 66 20 |rglass O|n & Off |
|000044c0| 53 57 49 27 73 20 61 72 | 65 20 75 73 65 64 0a 6f |SWI's ar|e used.o|
|000044d0| 6e 20 65 6e 74 72 79 20 | 61 6e 64 20 65 78 69 74 |n entry |and exit|
|000044e0| 20 72 65 73 70 65 63 74 | 69 76 65 6c 79 2e 20 53 | respect|ively. S|
|000044f0| 6f 20 69 6e 20 74 68 65 | 6f 72 79 20 69 74 20 69 |o in the|ory it i|
|00004500| 73 20 70 6f 73 73 69 62 | 6c 65 20 74 68 61 74 0a |s possib|le that.|
|00004510| 77 68 65 6e 65 76 65 72 | 20 6f 6e 65 20 6f 66 20 |whenever| one of |
|00004520| 74 68 65 20 46 6f 6e 74 | 4d 65 6e 75 20 53 57 49 |the Font|Menu SWI|
|00004530| 27 73 20 74 61 6b 65 20 | 6c 6f 6e 67 65 72 20 74 |'s take |longer t|
|00004540| 68 61 6e 20 31 2f 33 20 | 6f 66 20 61 20 73 65 63 |han 1/3 |of a sec|
|00004550| 6f 6e 64 2c 20 61 0a 68 | 6f 75 72 67 6c 61 73 73 |ond, a.h|ourglass|
|00004560| 20 61 70 70 65 61 72 73 | 2e 20 49 6e 20 70 72 61 | appears|. In pra|
|00004570| 63 74 69 63 65 20 74 68 | 69 73 20 6f 6e 6c 79 20 |ctice th|is only |
|00004580| 6f 63 63 75 72 73 20 77 | 68 65 6e 20 46 6f 6e 74 |occurs w|hen Font|
|00004590| 4d 65 6e 75 5f 43 72 65 | 61 74 65 0a 6f 72 20 46 |Menu_Cre|ate.or F|
|000045a0| 6f 6e 74 4d 65 6e 75 5f | 53 65 6c 65 63 74 20 69 |ontMenu_|Select i|
|000045b0| 73 20 63 61 6c 6c 65 64 | 20 61 6e 64 20 74 68 65 |s called| and the|
|000045c0| 79 20 68 61 76 65 20 74 | 6f 20 61 63 74 75 61 6c |y have t|o actual|
|000045d0| 6c 79 20 63 72 65 61 74 | 65 20 61 20 6e 65 77 0a |ly creat|e a new.|
|000045e0| 6d 65 6e 75 20 73 74 72 | 75 63 74 75 72 65 20 28 |menu str|ucture (|
|000045f0| 42 65 63 61 75 73 65 20 | 6f 66 20 61 20 66 69 72 |Because |of a fir|
|00004600| 73 74 20 63 61 6c 6c 2c | 20 6f 72 20 61 20 63 68 |st call,| or a ch|
|00004610| 61 6e 67 65 64 20 46 6f | 6e 74 24 50 61 74 68 29 |anged Fo|nt$Path)|
|00004620| 2e 0a 0a 0a 0a 0a 20 20 | 20 20 20 20 20 20 20 20 |...... | |
|00004630| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004640| 20 20 4e 6f 74 65 73 20 | 66 72 6f 6d 20 74 68 65 | Notes |from the|
|00004650| 20 61 75 74 68 6f 72 0a | 0a 20 54 68 65 20 72 65 | author.|. The re|
|00004660| 61 73 6f 6e 20 77 68 79 | 20 49 20 77 72 6f 74 65 |ason why| I wrote|
|00004670| 20 74 68 69 73 20 6d 6f | 64 75 6c 65 2c 20 69 73 | this mo|dule, is|
|00004680| 20 62 65 63 61 75 73 65 | 20 49 27 6d 20 6e 6f 74 | because| I'm not|
|00004690| 20 6f 6e 6c 79 20 61 20 | 70 72 6f 67 72 61 6d 6d | only a |programm|
|000046a0| 65 72 2c 0a 62 75 74 20 | 61 6c 73 6f 20 61 20 75 |er,.but |also a u|
|000046b0| 73 65 72 20 77 68 6f 20 | 6c 69 6b 65 73 20 74 6f |ser who |likes to|
|000046c0| 20 77 6f 72 6b 20 77 69 | 74 68 20 74 68 65 20 41 | work wi|th the A|
|000046d0| 72 63 68 69 6d 65 64 65 | 73 2e 20 54 68 69 73 20 |rchimede|s. This |
|000046e0| 69 73 20 62 65 63 61 75 | 73 65 20 69 74 27 73 0a |is becau|se it's.|
|000046f0| 61 20 66 61 73 74 20 6d | 61 63 68 69 6e 65 20 61 |a fast m|achine a|
|00004700| 6e 64 20 62 65 63 61 75 | 73 65 20 6d 6f 73 74 20 |nd becau|se most |
|00004710| 70 61 72 74 73 20 6f 66 | 20 52 69 73 63 2d 4f 53 |parts of| Risc-OS|
|00004720| 20 61 6c 6c 6f 77 20 61 | 70 70 6c 69 63 61 74 69 | allow a|pplicati|
|00004730| 6f 6e 73 20 74 6f 20 62 | 65 0a 76 65 72 79 20 69 |ons to b|e.very i|
|00004740| 6e 74 75 69 74 69 76 65 | 2e 20 49 20 64 69 64 6e |ntuitive|. I didn|
|00004750| 27 74 20 6c 69 6b 65 20 | 74 68 65 20 77 61 79 20 |'t like |the way |
|00004760| 74 68 65 20 61 76 61 69 | 6c 61 62 6c 65 20 66 6f |the avai|lable fo|
|00004770| 6e 74 73 20 77 65 72 65 | 20 70 72 65 73 65 6e 74 |nts were| present|
|00004780| 65 64 20 69 6e 0a 6d 6f | 73 74 20 61 70 70 6c 69 |ed in.mo|st appli|
|00004790| 63 61 74 69 6f 6e 73 2c | 20 73 6f 20 49 20 73 74 |cations,| so I st|
|000047a0| 61 72 74 65 64 20 74 6f | 20 66 69 67 75 72 65 20 |arted to| figure |
|000047b0| 6f 75 74 20 61 20 70 72 | 6f 70 65 72 20 73 6f 6c |out a pr|oper sol|
|000047c0| 75 74 69 6f 6e 3a 20 46 | 6f 6e 74 4d 65 6e 75 2e |ution: F|ontMenu.|
|000047d0| 0a 0a 20 49 20 68 6f 70 | 65 20 74 68 61 74 20 66 |.. I hop|e that f|
|000047e0| 75 74 75 72 65 20 61 70 | 70 6c 69 63 61 74 69 6f |uture ap|plicatio|
|000047f0| 6e 73 20 61 64 6f 70 74 | 20 74 6f 20 74 68 69 73 |ns adopt| to this|
|00004800| 20 6d 65 74 68 6f 64 2c | 20 73 6f 20 70 6c 65 61 | method,| so plea|
|00004810| 73 65 20 70 61 73 73 20 | 69 74 20 6f 6e 2e 0a 45 |se pass |it on..E|
|00004820| 76 65 72 79 62 6f 64 79 | 20 69 73 20 66 72 65 65 |verybody| is free|
|00004830| 20 74 6f 20 75 73 65 20 | 69 74 2c 20 65 76 65 6e | to use |it, even|
|00004840| 20 69 6e 20 63 6f 6d 6d | 65 72 63 69 61 6c 20 63 | in comm|ercial c|
|00004850| 6f 64 65 2e 20 54 68 65 | 20 6f 6e 6c 79 20 72 65 |ode. The| only re|
|00004860| 73 74 72 69 63 74 69 6f | 6e 0a 69 73 20 74 68 61 |strictio|n.is tha|
|00004870| 74 20 74 68 69 73 20 64 | 6f 63 75 6d 65 6e 74 20 |t this d|ocument |
|00004880| 73 68 6f 75 6c 64 20 6e | 6f 74 20 62 65 20 73 65 |should n|ot be se|
|00004890| 70 65 72 61 74 65 64 20 | 66 72 6f 6d 20 74 68 65 |perated |from the|
|000048a0| 20 46 6f 6e 74 4d 65 6e | 75 20 6d 6f 64 75 6c 65 | FontMen|u module|
|000048b0| 2c 20 61 6e 64 0a 74 68 | 61 74 20 62 6f 74 68 20 |, and.th|at both |
|000048c0| 74 68 65 20 6d 6f 64 75 | 6c 65 20 61 6e 64 20 74 |the modu|le and t|
|000048d0| 68 69 73 20 64 6f 63 75 | 6d 65 6e 74 20 72 65 6d |his docu|ment rem|
|000048e0| 61 69 6e 20 75 6e 63 68 | 61 6e 67 65 64 2e 20 49 |ain unch|anged. I|
|000048f0| 6e 20 63 61 73 65 20 6f | 66 0a 63 6f 6d 6d 65 72 |n case o|f.commer|
|00004900| 63 69 61 6c 20 75 73 65 | 20 49 20 77 6f 75 6c 64 |cial use| I would|
|00004910| 20 6c 69 6b 65 20 74 6f | 20 6b 6e 6f 77 20 74 68 | like to| know th|
|00004920| 69 73 20 69 6e 20 61 64 | 76 61 6e 63 65 20 28 49 |is in ad|vance (I|
|00004930| 20 63 6f 75 6c 64 20 74 | 68 61 6e 20 70 72 6f 76 | could t|han prov|
|00004940| 69 64 65 0a 79 6f 75 20 | 77 69 74 68 20 69 74 73 |ide.you |with its|
|00004950| 20 6c 61 74 65 73 74 20 | 72 65 6c 65 61 73 65 29 | latest |release)|
|00004960| 2e 20 4d 79 20 61 64 64 | 72 65 73 73 20 69 73 20 |. My add|ress is |
|00004970| 61 74 20 74 68 65 20 65 | 6e 64 20 6f 66 20 74 68 |at the e|nd of th|
|00004980| 69 73 20 64 6f 63 75 6d | 65 6e 74 2e 20 59 6f 75 |is docum|ent. You|
|00004990| 0a 63 61 6e 20 61 6c 77 | 61 79 73 20 63 6f 6e 74 |.can alw|ays cont|
|000049a0| 61 63 74 20 6d 65 20 69 | 66 20 79 6f 75 20 66 6f |act me i|f you fo|
|000049b0| 75 6e 64 20 73 6f 6d 65 | 20 62 75 67 2c 20 6f 72 |und some| bug, or|
|000049c0| 20 77 68 65 6e 20 68 61 | 76 69 6e 67 20 6f 74 68 | when ha|ving oth|
|000049d0| 65 72 0a 73 75 67 67 65 | 73 74 69 6f 6e 73 2e 0a |er.sugge|stions..|
|000049e0| 0a 0a 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |..------|--------|
|000049f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00004a00| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00004a10| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00004a20| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 0a |--------|-------.|
|00004a30| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00004a40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004a50| 20 46 6f 6e 74 4d 65 6e | 75 20 53 57 49 27 73 0a | FontMen|u SWI's.|
|00004a60| 0a 20 20 20 20 20 20 20 | 20 20 20 20 42 65 6c 6f |. | Belo|
|00004a70| 77 20 61 72 65 20 74 68 | 65 20 73 68 6f 72 74 20 |w are th|e short |
|00004a80| 64 69 73 63 72 69 70 74 | 69 6f 6e 73 20 6f 66 20 |discript|ions of |
|00004a90| 74 68 65 20 46 6f 6e 74 | 4d 65 6e 75 20 53 57 49 |the Font|Menu SWI|
|00004aa0| 27 73 2e 0a 20 20 20 20 | 20 20 20 20 20 20 20 0a |'s.. | .|
|00004ab0| 0a 46 6f 6e 74 4d 65 6e | 75 5f 43 72 65 61 74 65 |.FontMen|u_Create|
|00004ac0| 20 26 38 44 30 38 30 0a | 2d 2d 2d 2d 2d 2d 2d 2d | &8D080.|--------|
|00004ad0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 0a 4f |--------|------.O|
|00004ae0| 6e 20 65 6e 74 72 79 3a | 20 2d 2d 0a 4f 6e 20 65 |n entry:| --.On e|
|00004af0| 78 69 74 20 3a 20 52 30 | 20 3d 20 4e 75 6d 62 65 |xit : R0| = Numbe|
|00004b00| 72 20 6f 66 20 66 6f 6e | 74 73 20 66 6f 75 6e 64 |r of fon|ts found|
|00004b10| 0a 0a 20 54 68 69 73 20 | 77 69 6c 6c 20 63 72 65 |.. This |will cre|
|00004b20| 61 74 65 20 61 20 66 6f | 6e 74 20 6d 65 6e 75 20 |ate a fo|nt menu |
|00004b30| 73 74 72 75 63 74 75 72 | 65 20 69 6e 20 52 4d 41 |structur|e in RMA|
|00004b40| 2c 20 69 66 20 6e 6f 74 | 20 61 6c 72 65 61 64 79 |, if not| already|
|00004b50| 20 64 6f 6e 65 20 73 6f | 2e 20 41 6e 0a 65 72 72 | done so|. An.err|
|00004b60| 6f 72 20 6f 63 63 75 72 | 73 20 69 66 20 74 68 65 |or occur|s if the|
|00004b70| 72 65 20 69 73 20 6e 6f | 74 20 65 6e 6f 75 67 68 |re is no|t enough|
|00004b80| 20 72 6f 6f 6d 20 69 6e | 20 52 4d 41 20 74 6f 20 | room in| RMA to |
|00004b90| 63 72 65 61 74 65 20 74 | 68 65 20 6d 65 6e 75 2e |create t|he menu.|
|00004ba0| 0a 0a 0a 0a 46 6f 6e 74 | 4d 65 6e 75 5f 52 65 6c |....Font|Menu_Rel|
|00004bb0| 65 61 73 65 20 26 38 44 | 30 38 31 0a 2d 2d 2d 2d |ease &8D|081.----|
|00004bc0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00004bd0| 2d 2d 2d 0a 4f 6e 20 65 | 6e 74 72 79 3a 20 2d 2d |---.On e|ntry: --|
|00004be0| 0a 4f 6e 20 65 78 69 74 | 20 3a 20 2d 2d 0a 0a 20 |.On exit| : --.. |
|00004bf0| 54 68 69 73 20 77 69 6c | 6c 20 72 65 6c 65 61 73 |This wil|l releas|
|00004c00| 65 20 74 68 65 20 6d 65 | 6d 6f 72 79 20 74 61 6b |e the me|mory tak|
|00004c10| 65 6e 20 62 79 20 74 68 | 65 20 66 6f 6e 74 20 6d |en by th|e font m|
|00004c20| 65 6e 75 20 69 66 20 6e | 6f 20 74 61 73 6b 73 20 |enu if n|o tasks |
|00004c30| 61 72 65 20 75 73 69 6e | 67 0a 69 74 20 61 6e 79 |are usin|g.it any|
|00004c40| 6d 6f 72 65 2e 0a 0a 0a | 0a 46 6f 6e 74 4d 65 6e |more....|.FontMen|
|00004c50| 75 5f 53 65 6c 65 63 74 | 20 26 38 44 30 38 32 0a |u_Select| &8D082.|
|00004c60| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00004c70| 2d 2d 2d 2d 2d 2d 0a 4f | 6e 20 65 6e 74 72 79 3a |------.O|n entry:|
|00004c80| 20 52 30 20 3d 20 70 6f | 69 6e 74 65 72 20 74 6f | R0 = po|inter to|
|00004c90| 20 70 6f 69 6e 74 20 73 | 65 70 65 72 61 74 65 64 | point s|eperated|
|00004ca0| 2c 20 63 74 72 6c 20 74 | 65 72 6d 69 6e 61 74 65 |, ctrl t|erminate|
|00004cb0| 64 20 66 6f 6e 74 20 73 | 74 72 69 6e 67 20 0a 20 |d font s|tring . |
|00004cc0| 20 20 20 20 20 20 20 20 | 20 52 31 20 3d 20 53 79 | | R1 = Sy|
|00004cd0| 73 74 65 6d 46 6f 6e 74 | 20 66 6c 61 67 20 20 20 |stemFont| flag |
|00004ce0| 20 20 20 20 20 20 20 20 | 20 0a 0a 4f 6e 20 65 78 | | ..On ex|
|00004cf0| 69 74 20 3a 20 52 30 20 | 3d 20 53 74 61 74 65 20 |it : R0 |= State |
|00004d00| 66 6c 61 67 0a 20 20 20 | 20 20 20 20 20 20 20 52 |flag. | R|
|00004d10| 31 20 3d 20 70 6f 69 6e | 74 65 72 20 74 6f 20 66 |1 = poin|ter to f|
|00004d20| 6f 6e 74 20 6d 65 6e 75 | 20 73 74 72 75 63 74 75 |ont menu| structu|
|00004d30| 72 65 0a 0a 20 54 68 69 | 73 20 77 69 6c 6c 20 74 |re.. Thi|s will t|
|00004d40| 69 63 6b 20 74 68 65 20 | 66 6f 6e 74 20 70 61 73 |ick the |font pas|
|00004d50| 73 65 64 20 69 6e 20 52 | 30 20 6f 6e 20 65 6e 74 |sed in R|0 on ent|
|00004d60| 72 79 2e 20 52 31 20 64 | 65 74 65 72 6d 69 6e 65 |ry. R1 d|etermine|
|00004d70| 73 20 69 66 0a 27 53 79 | 73 74 65 6d 46 6f 6e 74 |s if.'Sy|stemFont|
|00004d80| 27 20 73 68 6f 75 6c 64 | 20 6f 63 63 75 72 20 69 |' should| occur i|
|00004d90| 6e 20 74 68 65 20 6d 65 | 6e 75 20 61 73 20 66 6f |n the me|nu as fo|
|00004da0| 6c 6c 6f 77 73 3a 0a 0a | 20 20 56 61 6c 75 65 20 |llows:..| Value |
|00004db0| 4d 65 61 6e 69 6e 67 0a | 20 20 20 20 30 20 20 20 |Meaning.| 0 |
|00004dc0| 27 53 79 73 74 65 6d 46 | 6f 6e 74 27 20 64 6f 65 |'SystemF|ont' doe|
|00004dd0| 73 20 6e 6f 74 20 6f 63 | 63 75 72 20 69 6e 20 74 |s not oc|cur in t|
|00004de0| 68 65 20 6d 65 6e 75 0a | 20 20 20 20 31 20 20 20 |he menu.| 1 |
|00004df0| 27 53 79 73 74 65 6d 46 | 6f 6e 74 27 20 64 6f 65 |'SystemF|ont' doe|
|00004e00| 73 20 6f 63 63 75 72 20 | 69 6e 20 74 68 65 20 6d |s occur |in the m|
|00004e10| 65 6e 75 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |enu. | |
|00004e20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 0a 20 4f | | . O|
|00004e30| 6e 20 65 78 69 74 20 52 | 30 20 73 68 6f 77 73 20 |n exit R|0 shows |
|00004e40| 74 68 65 20 73 65 6c 65 | 63 74 69 6f 6e 20 73 74 |the sele|ction st|
|00004e50| 61 74 65 20 61 73 20 66 | 6f 6c 6c 6f 77 73 3a 0a |ate as f|ollows:.|
|00004e60| 0a 20 20 56 61 6c 75 65 | 20 4d 65 61 6e 69 6e 67 |. Value| Meaning|
|00004e70| 0a 20 20 20 20 30 20 20 | 20 54 6f 20 62 65 20 73 |. 0 | To be s|
|00004e80| 65 6c 65 63 74 65 64 20 | 66 6f 6e 74 20 6e 6f 74 |elected |font not|
|00004e90| 20 66 6f 75 6e 64 2c 20 | 6e 6f 20 74 69 63 6b 73 | found, |no ticks|
|00004ea0| 0a 20 20 20 20 31 20 20 | 20 54 6f 20 62 65 20 73 |. 1 | To be s|
|00004eb0| 65 6c 65 63 74 65 64 20 | 66 6f 6e 74 20 66 6f 75 |elected |font fou|
|00004ec0| 6e 64 2c 20 61 6e 64 20 | 74 69 63 6b 65 64 20 20 |nd, and |ticked |
|00004ed0| 0a 20 20 20 20 32 20 20 | 20 4e 6f 20 66 6f 6e 74 |. 2 | No font|
|00004ee0| 20 65 6e 74 72 69 65 73 | 20 66 6f 75 6e 64 2c 20 | entries| found, |
|00004ef0| 6d 65 6e 75 20 63 6f 6e | 73 69 73 74 73 20 6f 6e |menu con|sists on|
|00004f00| 65 20 69 74 65 6d 3b 20 | 27 53 79 73 74 65 6d 46 |e item; |'SystemF|
|00004f10| 6f 6e 74 27 2c 0a 20 20 | 20 20 20 20 20 20 61 6e |ont',. | an|
|00004f20| 64 20 69 73 20 74 69 63 | 6b 65 64 0a 20 20 20 20 |d is tic|ked. |
|00004f30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004f40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004f50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004f60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004f70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 0a 20 | | . |
|00004f80| 52 31 20 77 69 6c 6c 20 | 70 6f 69 6e 74 20 74 6f |R1 will |point to|
|00004f90| 20 74 68 65 20 66 6f 6e | 74 20 6d 65 6e 75 20 6f | the fon|t menu o|
|00004fa0| 6e 20 65 78 69 74 2e 20 | 41 6e 20 65 72 72 6f 72 |n exit. |An error|
|00004fb0| 20 6f 63 63 75 72 73 20 | 69 66 20 6e 6f 20 66 6f | occurs |if no fo|
|00004fc0| 6e 74 20 6d 65 6e 75 20 | 65 78 69 73 74 73 2e 20 |nt menu |exists. |
|00004fd0| 0a 0a 0a 0a 46 6f 6e 74 | 4d 65 6e 75 5f 44 65 73 |....Font|Menu_Des|
|00004fe0| 65 6c 65 63 74 20 26 38 | 44 30 38 33 0a 2d 2d 2d |elect &8|D083.---|
|00004ff0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005000| 2d 2d 2d 2d 2d 0a 4f 6e | 20 65 6e 74 72 79 3a 20 |-----.On| entry: |
|00005010| 2d 2d 2d 0a 4f 6e 20 65 | 78 69 74 20 3a 20 2d 2d |---.On e|xit : --|
|00005020| 0a 0a 20 54 68 69 73 20 | 77 69 6c 6c 20 63 6c 65 |.. This |will cle|
|00005030| 61 72 20 61 6c 6c 20 74 | 69 63 6b 73 20 61 6e 64 |ar all t|icks and|
|00005040| 20 6d 61 72 6b 73 20 6f | 66 20 74 68 65 20 66 6f | marks o|f the fo|
|00005050| 6e 74 20 6d 65 6e 75 2e | 20 49 74 20 69 73 20 6e |nt menu.| It is n|
|00005060| 6f 74 20 6e 65 63 65 73 | 73 61 72 79 0a 74 6f 20 |ot neces|sary.to |
|00005070| 63 61 6c 6c 20 74 68 69 | 73 20 53 57 49 20 62 65 |call thi|s SWI be|
|00005080| 66 6f 72 65 20 61 20 46 | 6f 6e 74 4d 65 6e 75 5f |fore a F|ontMenu_|
|00005090| 53 65 6c 65 63 74 20 63 | 61 6c 6c 2c 20 61 73 20 |Select c|all, as |
|000050a0| 46 6f 6e 74 4d 65 6e 75 | 5f 53 65 6c 65 63 74 20 |FontMenu|_Select |
|000050b0| 77 69 6c 6c 20 74 61 6b | 65 0a 63 61 72 65 20 6f |will tak|e.care o|
|000050c0| 66 20 63 6c 65 61 6e 69 | 6e 67 20 75 70 20 6f 6c |f cleani|ng up ol|
|000050d0| 64 20 73 65 6c 65 63 74 | 69 6f 6e 2e 20 41 6e 20 |d select|ion. An |
|000050e0| 65 72 72 6f 72 20 6f 63 | 63 75 72 73 20 69 66 20 |error oc|curs if |
|000050f0| 6e 6f 20 66 6f 6e 74 20 | 6d 65 6e 75 20 65 78 69 |no font |menu exi|
|00005100| 73 74 73 2e 20 0a 20 20 | 0a 20 20 20 20 20 20 20 |sts. . |. |
|00005110| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005120| 20 20 20 20 20 20 20 0a | 0a 46 6f 6e 74 4d 65 6e | .|.FontMen|
|00005130| 75 5f 44 65 63 6f 64 65 | 46 6f 6e 74 4d 65 6e 75 |u_Decode|FontMenu|
|00005140| 20 26 38 44 30 38 34 0a | 2d 2d 2d 2d 2d 2d 2d 2d | &8D084.|--------|
|00005150| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005160| 2d 2d 2d 2d 2d 2d 0a 4f | 6e 20 65 6e 74 72 79 3a |------.O|n entry:|
|00005170| 20 52 30 20 3d 20 70 6f | 69 6e 74 65 72 20 74 6f | R0 = po|inter to|
|00005180| 20 61 20 6c 69 73 74 20 | 6f 66 20 66 6f 6e 74 20 | a list |of font |
|00005190| 6d 65 6e 75 20 73 65 6c | 65 63 74 69 6f 6e 73 0a |menu sel|ections.|
|000051a0| 20 20 20 20 20 20 20 20 | 20 20 52 31 20 3d 20 70 | | R1 = p|
|000051b0| 6f 69 6e 74 65 72 20 74 | 6f 20 61 20 62 75 66 66 |ointer t|o a buff|
|000051c0| 65 72 20 74 6f 20 63 6f | 6e 74 61 69 6e 20 74 68 |er to co|ntain th|
|000051d0| 65 20 61 6e 73 77 65 72 | 20 0a 20 20 20 20 20 20 |e answer| . |
|000051e0| 20 20 20 20 20 20 20 20 | 20 28 61 74 20 6c 65 61 | | (at lea|
|000051f0| 73 74 20 34 38 20 62 79 | 74 65 73 20 6c 6f 6e 67 |st 48 by|tes long|
|00005200| 29 0a 4f 6e 20 65 78 69 | 74 20 3a 20 52 30 20 3d |).On exi|t : R0 =|
|00005210| 20 46 6c 61 67 20 28 30 | 20 3d 20 6e 6f 6e 2d 73 | Flag (0| = non-s|
|00005220| 65 6e 73 69 62 6c 65 2f | 20 31 3d 20 73 65 6e 73 |ensible/| 1= sens|
|00005230| 69 62 6c 65 20 73 65 6c | 65 63 74 69 6f 6e 29 0a |ible sel|ection).|
|00005240| 0a 20 54 68 69 73 20 77 | 69 6c 6c 20 64 65 63 6f |. This w|ill deco|
|00005250| 64 65 20 74 68 65 20 66 | 6f 6e 74 20 6d 65 6e 75 |de the f|ont menu|
|00005260| 20 73 65 6c 65 63 74 69 | 6f 6e 20 69 6e 74 6f 20 | selecti|on into |
|00005270| 61 20 66 6f 6e 74 20 73 | 74 72 69 6e 67 20 66 6f |a font s|tring fo|
|00005280| 72 20 74 68 65 0a 46 6f | 6e 74 4d 61 6e 61 67 65 |r the.Fo|ntManage|
|00005290| 72 2e 20 54 68 69 73 20 | 73 74 72 69 6e 67 20 63 |r. This |string c|
|000052a0| 61 6e 20 62 65 20 70 61 | 73 73 65 64 20 62 61 63 |an be pa|ssed bac|
|000052b0| 6b 20 74 6f 20 46 6f 6e | 74 4d 65 6e 75 5f 53 65 |k to Fon|tMenu_Se|
|000052c0| 6c 65 63 74 20 74 6f 20 | 74 69 63 6b 20 74 68 65 |lect to |tick the|
|000052d0| 0a 61 70 70 72 6f 70 72 | 69 61 74 65 20 65 6e 74 |.appropr|iate ent|
|000052e0| 72 69 65 73 2e 20 41 6e | 20 65 72 72 6f 72 20 6f |ries. An| error o|
|000052f0| 63 63 75 72 73 20 69 66 | 20 6e 6f 20 66 6f 6e 74 |ccurs if| no font|
|00005300| 20 6d 65 6e 75 20 65 78 | 69 73 74 73 2e 20 54 68 | menu ex|ists. Th|
|00005310| 69 73 20 63 61 6c 6c 20 | 6d 61 6b 65 73 0a 75 73 |is call |makes.us|
|00005320| 65 20 6f 66 20 57 69 6d | 70 5f 44 65 63 6f 64 65 |e of Wim|p_Decode|
|00005330| 4d 65 6e 75 2c 20 62 75 | 74 20 61 73 20 69 74 20 |Menu, bu|t as it |
|00005340| 69 73 20 70 6f 73 73 69 | 62 6c 65 20 74 68 61 74 |is possi|ble that|
|00005350| 20 74 68 65 20 72 65 74 | 75 72 6e 65 64 20 73 74 | the ret|urned st|
|00005360| 72 69 6e 67 20 65 6e 64 | 73 0a 77 69 74 68 20 27 |ring end|s.with '|
|00005370| 50 6c 61 69 6e 27 20 28 | 61 20 6d 61 64 65 20 75 |Plain' (|a made u|
|00005380| 70 20 6e 61 6d 65 20 74 | 6f 20 64 69 73 74 69 6e |p name t|o distin|
|00005390| 67 75 69 73 65 20 61 6e | 20 65 6d 70 74 79 20 73 |guise an| empty s|
|000053a0| 75 62 2d 6e 61 6d 65 20 | 66 72 6f 6d 20 74 68 65 |ub-name |from the|
|000053b0| 20 72 65 73 74 0a 6f 66 | 20 74 68 65 20 73 75 62 | rest.of| the sub|
|000053c0| 2d 6e 61 6d 65 73 29 2c | 20 69 74 20 68 61 73 20 |-names),| it has |
|000053d0| 74 6f 20 63 68 65 63 6b | 20 66 6f 72 20 74 68 69 |to check| for thi|
|000053e0| 73 2c 20 61 6e 64 20 74 | 68 72 6f 77 20 61 77 61 |s, and t|hrow awa|
|000053f0| 79 20 74 68 69 73 20 6c | 61 73 74 0a 73 75 62 2d |y this l|ast.sub-|
|00005400| 6e 61 6d 65 20 73 6f 20 | 74 68 65 20 46 6f 6e 74 |name so |the Font|
|00005410| 4d 61 6e 61 67 65 72 20 | 63 61 6e 20 72 65 63 6f |Manager |can reco|
|00005420| 67 6e 69 73 65 20 74 68 | 65 20 72 65 71 75 69 72 |gnise th|e requir|
|00005430| 65 64 20 66 6f 6e 74 2e | 20 0a 20 20 4f 6e 20 65 |ed font.| . On e|
|00005440| 78 69 74 20 52 30 20 63 | 6f 6e 61 74 61 69 6e 73 |xit R0 c|onatains|
|00005450| 20 61 20 66 6c 61 67 20 | 74 65 6c 6c 69 6e 67 20 | a flag |telling |
|00005460| 79 6f 75 20 69 66 20 74 | 68 65 20 73 65 6c 65 63 |you if t|he selec|
|00005470| 74 69 6f 6e 20 74 68 65 | 20 75 73 65 72 20 6d 61 |tion the| user ma|
|00005480| 64 65 20 77 61 73 0a 61 | 20 73 65 6e 73 69 62 6c |de was.a| sensibl|
|00005490| 65 20 6f 6e 65 2e 20 49 | 66 2c 20 66 6f 72 20 65 |e one. I|f, for e|
|000054a0| 78 61 6d 70 6c 65 2c 20 | 74 68 65 20 75 73 65 72 |xample, |the user|
|000054b0| 20 73 65 6c 65 63 74 65 | 64 20 6e 6f 6e 2d 6c 65 | selecte|d non-le|
|000054c0| 61 66 20 6d 65 6e 75 20 | 65 6e 74 72 79 20 28 65 |af menu |entry (e|
|000054d0| 2e 67 2e 0a 27 54 72 69 | 6e 69 74 79 2e 4d 65 64 |.g..'Tri|nity.Med|
|000054e0| 69 75 6d 27 29 20 74 68 | 65 6e 20 74 68 69 73 20 |ium') th|en this |
|000054f0| 66 6c 61 67 20 77 69 6c | 6c 20 62 65 20 30 2e 20 |flag wil|l be 0. |
|00005500| 49 66 20 74 68 65 20 66 | 6c 61 67 20 69 73 20 30 |If the f|lag is 0|
|00005510| 2c 20 79 6f 75 20 61 72 | 65 0a 61 64 76 69 73 65 |, you ar|e.advise|
|00005520| 64 20 6e 6f 74 20 74 6f | 20 64 6f 20 61 6e 79 74 |d not to| do anyt|
|00005530| 68 69 6e 67 2e 0a 0a 0a | 0a 46 6f 6e 74 4d 65 6e |hing....|.FontMen|
|00005540| 75 5f 53 6d 61 73 68 20 | 26 38 44 30 38 35 0a 2d |u_Smash |&8D085.-|
|00005550| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005560| 2d 2d 2d 2d 0a 4f 6e 20 | 65 6e 74 72 79 3a 20 2d |----.On |entry: -|
|00005570| 2d 0a 4f 6e 20 65 78 69 | 74 20 3a 20 2d 2d 0a 0a |-.On exi|t : --..|
|00005580| 20 54 68 69 73 20 77 69 | 6c 6c 20 72 65 6c 65 61 | This wi|ll relea|
|00005590| 73 65 20 74 68 65 20 66 | 6f 6e 74 20 6d 65 6e 75 |se the f|ont menu|
|000055a0| 20 6d 65 6d 6f 72 79 20 | 77 69 74 68 6f 75 74 20 | memory |without |
|000055b0| 6c 6f 6f 6b 69 6e 67 20 | 61 74 20 74 68 65 20 61 |looking |at the a|
|000055c0| 6d 6f 75 6e 74 20 6f 66 | 0a 74 69 6d 65 73 20 46 |mount of|.times F|
|000055d0| 6f 6e 74 4d 65 6e 75 5f | 43 72 65 61 74 65 20 77 |ontMenu_|Create w|
|000055e0| 61 73 20 63 61 6c 6c 65 | 64 2e 0a 0a 0a 0a 46 6f |as calle|d.....Fo|
|000055f0| 6e 74 4d 65 6e 75 5f 52 | 65 43 72 65 61 74 65 20 |ntMenu_R|eCreate |
|00005600| 26 38 44 30 38 36 0a 2d | 2d 2d 2d 2d 2d 2d 2d 2d |&8D086.-|--------|
|00005610| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 0a |--------|-------.|
|00005620| 4f 6e 20 65 6e 74 72 79 | 3a 20 2d 2d 0a 4f 6e 20 |On entry|: --.On |
|00005630| 65 78 69 74 20 3a 20 52 | 30 20 3d 20 4e 75 6d 62 |exit : R|0 = Numb|
|00005640| 65 72 20 6f 66 20 66 6f | 6e 74 73 20 66 6f 75 6e |er of fo|nts foun|
|00005650| 64 0a 0a 20 54 68 69 73 | 20 77 69 6c 6c 20 72 65 |d.. This| will re|
|00005660| 6c 65 61 73 65 20 61 20 | 65 78 69 73 74 69 6e 67 |lease a |existing|
|00005670| 20 66 6f 6e 74 20 6d 65 | 6e 75 2c 20 61 6e 64 20 | font me|nu, and |
|00005680| 72 65 63 72 65 61 74 65 | 20 69 74 2e 0a 0a 0a 0a |recreate| it.....|
|00005690| 20 20 20 20 20 20 20 3d | 3d 3d 3d 3d 3d 3d 3d 3d | =|========|
|000056a0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000056b0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000056c0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000056d0| 3d 3d 0a 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |==.. | |
|000056e0| 20 20 20 20 54 6f 20 63 | 6f 6e 74 61 63 74 20 74 | To c|ontact t|
|000056f0| 68 65 20 61 75 74 68 6f | 72 20 6f 66 20 46 6f 6e |he autho|r of Fon|
|00005700| 74 4d 65 6e 75 2c 20 70 | 6c 65 61 73 65 20 77 72 |tMenu, p|lease wr|
|00005710| 69 74 65 20 74 6f 3a 0a | 0a 20 20 20 20 20 20 20 |ite to:.|. |
|00005720| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005730| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005740| 20 20 20 4a 6f 72 69 73 | 20 52 d6 6c 69 6e 67 0a | Joris| R.ling.|
|00005750| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005760| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005770| 20 20 20 20 20 20 20 20 | 20 20 4f 75 64 65 73 74 | | Oudest|
|00005780| 72 61 61 74 20 31 38 36 | 0a 20 20 20 20 20 20 20 |raat 186|. |
|00005790| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000057a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000057b0| 20 20 20 38 32 36 31 20 | 43 57 20 4b 61 6d 70 65 | 8261 |CW Kampe|
|000057c0| 6e 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |n. | |
|000057d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000057e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 54 68 65 20 | | The |
|000057f0| 4e 65 74 68 65 72 6c 61 | 6e 64 73 0a 0a 20 20 20 |Netherla|nds.. |
|00005800| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005810| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005820| 20 20 20 20 20 20 20 54 | 65 6c 3a 30 35 32 30 32 | T|el:05202|
|00005830| 2d 32 37 39 38 39 0a 00 | 44 41 54 41 f2 04 00 00 |-27989..|DATA....|
|00005840| 48 6f 77 20 64 6f 65 73 | 20 46 6f 6e 74 4d 65 6e |How does| FontMen|
|00005850| 75 20 77 6f 72 6b 20 3f | 0a 54 6f 20 75 73 65 20 |u work ?|.To use |
|00005860| 46 6f 6e 74 4d 65 6e 75 | 20 69 74 20 69 73 20 6e |FontMenu| it is n|
|00005870| 65 63 65 73 73 61 72 79 | 20 74 6f 20 75 6e 64 65 |ecessary| to unde|
|00005880| 72 73 74 61 6e 64 20 68 | 6f 77 20 74 68 65 20 57 |rstand h|ow the W|
|00005890| 69 6d 70 20 77 6f 72 6b | 73 2c 20 61 6e 64 20 68 |imp work|s, and h|
|000058a0| 6f 77 0a 74 6f 20 63 72 | 65 61 74 65 20 61 20 61 |ow.to cr|eate a a|
|000058b0| 70 70 6c 69 63 61 74 69 | 6f 6e 20 6f 6e 20 74 68 |pplicati|on on th|
|000058c0| 65 20 41 72 63 68 69 6d | 65 64 65 73 20 65 6e 76 |e Archim|edes env|
|000058d0| 69 72 6f 6e 6d 65 6e 74 | 2e 20 49 74 20 69 73 20 |ironment|. It is |
|000058e0| 61 73 73 75 6d 65 64 20 | 74 68 61 74 0a 74 68 65 |assumed |that.the|
|000058f0| 20 72 65 61 64 65 72 20 | 75 6e 64 65 72 73 74 61 | reader |understa|
|00005900| 6e 64 73 20 74 68 65 20 | 61 62 6f 76 65 20 66 6f |nds the |above fo|
|00005910| 72 20 74 68 65 20 72 65 | 73 74 20 6f 66 20 74 68 |r the re|st of th|
|00005920| 69 73 20 64 6f 63 75 6d | 65 6e 74 2e 0a 0a 57 68 |is docum|ent...Wh|
|00005930| 65 6e 20 61 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |en a app|lication|
|00005940| 20 77 61 6e 74 73 20 74 | 6f 20 61 63 63 65 73 73 | wants t|o access|
|00005950| 20 74 68 65 20 46 6f 6e | 74 4d 65 6e 75 20 6d 65 | the Fon|tMenu me|
|00005960| 6e 75 20 73 74 72 75 63 | 74 75 72 65 2c 20 69 74 |nu struc|ture, it|
|00005970| 20 68 61 73 20 74 6f 0a | 63 61 6c 6c 20 53 57 49 | has to.|call SWI|
|00005980| 20 22 3c 46 6f 6e 74 4d | 65 6e 75 5f 43 72 65 61 | "<FontM|enu_Crea|
|00005990| 74 65 3e 22 20 62 65 66 | 6f 72 65 20 61 6e 79 20 |te>" bef|ore any |
|000059a0| 6f 74 68 65 72 20 46 6f | 6e 74 4d 65 6e 75 20 53 |other Fo|ntMenu S|
|000059b0| 57 49 27 73 20 61 72 65 | 20 63 61 6c 6c 65 64 2e |WI's are| called.|
|000059c0| 20 54 68 69 73 0a 77 69 | 6c 6c 20 61 73 73 75 72 | This.wi|ll assur|
|000059d0| 65 20 74 68 61 74 20 61 | 20 70 72 6f 70 65 72 20 |e that a| proper |
|000059e0| 66 6f 6e 74 20 6d 65 6e | 75 20 73 74 72 75 63 74 |font men|u struct|
|000059f0| 75 72 65 20 77 69 6c 6c | 20 62 65 20 61 76 61 69 |ure will| be avai|
|00005a00| 6c 61 62 6c 65 2e 20 54 | 68 69 73 20 63 61 6e 20 |lable. T|his can |
|00005a10| 62 65 0a 64 6f 6e 65 20 | 6f 6e 20 69 6e 69 74 69 |be.done |on initi|
|00005a20| 61 6c 69 73 61 74 69 6f | 6e 20 6f 66 20 74 68 65 |alisatio|n of the|
|00005a30| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 2c 20 62 75 | applica|tion, bu|
|00005a40| 74 20 69 73 20 6e 6f 74 | 20 61 62 73 6f 6c 75 74 |t is not| absolut|
|00005a50| 65 6c 79 20 6e 65 63 65 | 73 73 61 72 79 2e 0a 57 |ely nece|ssary..W|
|00005a60| 68 65 6e 20 65 78 69 74 | 69 6e 67 20 74 68 65 20 |hen exit|ing the |
|00005a70| 61 70 70 6c 69 63 61 74 | 69 6f 6e 2c 20 53 57 49 |applicat|ion, SWI|
|00005a80| 20 22 3c 46 6f 6e 74 4d | 65 6e 75 5f 52 65 6c 65 | "<FontM|enu_Rele|
|00005a90| 61 73 65 3e 22 20 68 61 | 73 20 74 6f 20 62 65 20 |ase>" ha|s to be |
|00005aa0| 63 61 6c 6c 65 64 2c 20 | 73 6f 20 69 66 0a 74 68 |called, |so if.th|
|00005ab0| 69 73 20 77 61 73 20 74 | 68 65 20 6f 6e 6c 79 20 |is was t|he only |
|00005ac0| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 75 73 69 6e |applicat|ion usin|
|00005ad0| 67 20 74 68 65 20 66 6f | 6e 74 20 6d 65 6e 75 2c |g the fo|nt menu,|
|00005ae0| 20 46 6f 6e 74 4d 65 6e | 75 20 63 61 6e 20 72 65 | FontMen|u can re|
|00005af0| 6c 65 61 73 65 20 74 68 | 65 0a 6d 65 6d 6f 72 79 |lease th|e.memory|
|00005b00| 20 66 6f 72 20 69 74 2e | 20 45 76 65 72 79 20 74 | for it.| Every t|
|00005b10| 69 6d 65 20 53 57 49 20 | 22 3c 46 6f 6e 74 4d 65 |ime SWI |"<FontMe|
|00005b20| 6e 75 5f 43 72 65 61 74 | 65 3e 22 20 69 73 20 63 |nu_Creat|e>" is c|
|00005b30| 61 6c 6c 65 64 2c 20 61 | 20 63 6f 75 6e 74 65 72 |alled, a| counter|
|00005b40| 20 69 73 0a 69 6e 63 72 | 65 6d 65 6e 74 65 64 2c | is.incr|emented,|
|00005b50| 20 61 6e 64 20 69 66 20 | 69 74 20 77 61 73 20 7a | and if |it was z|
|00005b60| 65 72 6f 20 28 74 68 69 | 73 20 69 73 20 74 68 65 |ero (thi|s is the|
|00005b70| 20 69 6e 69 74 69 61 6c | 20 76 61 6c 75 65 29 2c | initial| value),|
|00005b80| 20 69 74 20 77 69 6c 6c | 20 63 72 65 61 74 65 0a | it will| create.|
|00005b90| 61 20 6e 65 77 20 66 6f | 6e 74 20 6d 65 6e 75 2e |a new fo|nt menu.|
|00005ba0| 20 57 68 65 6e 20 63 61 | 6c 6c 69 6e 67 20 53 57 | When ca|lling SW|
|00005bb0| 49 20 22 3c 46 6f 6e 74 | 4d 65 6e 75 5f 52 65 6c |I "<Font|Menu_Rel|
|00005bc0| 65 61 73 65 3e 22 2c 20 | 74 68 65 20 63 6f 75 6e |ease>", |the coun|
|00005bd0| 74 65 72 20 69 73 0a 64 | 65 63 72 65 6d 65 6e 74 |ter is.d|ecrement|
|00005be0| 65 64 2c 20 61 6e 64 20 | 69 66 20 69 74 20 72 65 |ed, and |if it re|
|00005bf0| 61 63 68 65 64 20 7a 65 | 72 6f 20 46 6f 6e 74 4d |ached ze|ro FontM|
|00005c00| 65 6e 75 20 77 69 6c 6c | 20 72 65 6c 65 61 73 65 |enu will| release|
|00005c10| 20 74 68 65 20 6d 65 6e | 75 20 6d 65 6d 6f 72 79 | the men|u memory|
|00005c20| 2c 0a 61 73 20 6e 6f 20 | 61 70 70 6c 69 63 61 74 |,.as no |applicat|
|00005c30| 69 6f 6e 20 69 73 20 75 | 73 69 6e 67 20 74 68 65 |ion is u|sing the|
|00005c40| 20 6d 65 6e 75 20 73 74 | 72 75 63 74 75 72 65 20 | menu st|ructure |
|00005c50| 61 6e 79 6d 6f 72 65 2e | 0a 0a 46 72 6f 6d 20 68 |anymore.|..From h|
|00005c60| 65 72 65 20 6f 6e 20 74 | 68 65 72 65 20 61 72 65 |ere on t|here are|
|00005c70| 20 74 77 6f 20 77 61 79 | 73 20 6f 66 20 70 72 6f | two way|s of pro|
|00005c80| 67 72 61 6d 6d 69 6e 67 | 20 77 68 65 6e 20 75 73 |gramming| when us|
|00005c90| 69 6e 67 20 46 6f 6e 74 | 4d 65 6e 75 2e 20 54 68 |ing Font|Menu. Th|
|00005ca0| 65 0a 66 69 72 73 74 20 | 69 73 20 74 68 65 20 3c |e.first |is the <|
|00005cb0| 73 69 6d 70 6c 65 20 6f | 6e 65 3d 3e 65 61 73 79 |simple o|ne=>easy|
|00005cc0| 77 61 79 3e 2c 20 74 68 | 65 20 3c 73 65 63 6f 6e |way>, th|e <secon|
|00005cd0| 64 3d 3e 68 61 72 64 77 | 61 79 3e 20 61 20 6c 69 |d=>hardw|ay> a li|
|00005ce0| 74 74 6c 65 20 62 69 74 | 20 6d 6f 72 65 20 63 6f |ttle bit| more co|
|00005cf0| 6d 70 6c 69 63 61 74 65 | 64 2c 20 61 73 20 69 74 |mplicate|d, as it|
|00005d00| 0a 69 6e 76 6f 6c 76 65 | 73 20 74 68 65 20 75 73 |.involve|s the us|
|00005d10| 65 20 74 68 65 20 57 69 | 6d 70 20 6d 65 73 73 61 |e the Wi|mp messa|
|00005d20| 67 65 20 73 79 73 74 65 | 6d 2e 00 00 44 41 54 41 |ge syste|m...DATA|
|00005d30| d5 05 00 00 49 6e 74 72 | 6f 64 75 63 74 69 6f 6e |....Intr|oduction|
|00005d40| 0a 20 41 73 20 6d 6f 72 | 65 20 61 6e 64 20 6d 6f |. As mor|e and mo|
|00005d50| 72 65 20 6f 75 74 6c 69 | 6e 65 20 66 6f 6e 74 73 |re outli|ne fonts|
|00005d60| 20 66 6f 72 20 74 68 65 | 20 41 72 63 68 69 6d 65 | for the| Archime|
|00005d70| 64 65 73 20 61 72 65 20 | 62 65 63 6f 6d 69 6e 67 |des are |becoming|
|00005d80| 20 61 76 61 69 6c 61 62 | 6c 65 2c 0a 61 20 70 72 | availab|le,.a pr|
|00005d90| 6f 62 6c 65 6d 20 61 72 | 69 73 65 73 20 66 6f 72 |oblem ar|ises for|
|00005da0| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 73 20 61 63 | applica|tions ac|
|00005db0| 63 65 73 73 69 6e 67 20 | 74 68 65 73 65 20 66 6f |cessing |these fo|
|00005dc0| 6e 74 73 2e 20 54 68 65 | 20 6e 75 6d 62 65 72 20 |nts. The| number |
|00005dd0| 6f 66 0a 66 6f 6e 74 73 | 20 69 73 20 6e 6f 74 20 |of.fonts| is not |
|00005de0| 6b 6e 6f 77 6e 20 69 6e | 20 61 64 76 61 6e 63 65 |known in| advance|
|00005df0| 2c 20 73 6f 20 74 6f 20 | 63 72 65 61 74 65 20 61 |, so to |create a|
|00005e00| 20 66 6f 6e 74 20 6d 65 | 6e 75 20 74 68 65 20 61 | font me|nu the a|
|00005e10| 70 70 6c 69 63 61 74 69 | 6f 6e 20 68 61 73 0a 74 |pplicati|on has.t|
|00005e20| 6f 20 66 69 67 75 72 65 | 20 6f 75 74 20 74 68 65 |o figure| out the|
|00005e30| 20 6e 75 6d 62 65 72 20 | 6f 66 20 66 6f 6e 74 73 | number |of fonts|
|00005e40| 2c 20 63 6c 61 69 6d 20 | 65 6e 6f 75 67 68 20 73 |, claim |enough s|
|00005e50| 70 61 63 65 20 74 6f 20 | 68 6f 6c 64 20 61 20 66 |pace to |hold a f|
|00005e60| 6f 6e 74 20 6d 65 6e 75 | 2c 0a 61 6e 64 20 63 72 |ont menu|,.and cr|
|00005e70| 65 61 74 65 20 69 74 2e | 20 54 68 69 73 20 63 61 |eate it.| This ca|
|00005e80| 6e 20 62 65 20 64 6f 6e | 65 20 69 6e 20 74 68 65 |n be don|e in the|
|00005e90| 20 64 75 6c 6c 20 73 69 | 6e 67 6c 65 20 6c 65 76 | dull si|ngle lev|
|00005ea0| 65 6c 20 28 73 74 72 61 | 69 67 68 74 20 66 6f 72 |el (stra|ight for|
|00005eb0| 77 61 72 64 29 0a 77 61 | 79 2e 20 54 68 69 73 20 |ward).wa|y. This |
|00005ec0| 73 61 76 65 73 20 73 6f | 6d 65 20 73 70 61 63 65 |saves so|me space|
|00005ed0| 2c 20 61 6e 64 20 63 6f | 64 65 20 63 6f 6d 70 6c |, and co|de compl|
|00005ee0| 65 78 69 74 79 2c 20 62 | 75 74 20 69 74 20 69 73 |exity, b|ut it is|
|00005ef0| 20 6e 6f 74 20 70 72 65 | 66 65 72 72 65 64 2c 20 | not pre|ferred, |
|00005f00| 61 73 0a 74 68 65 20 75 | 73 65 72 20 77 69 6c 6c |as.the u|ser will|
|00005f10| 20 62 65 20 70 72 65 73 | 65 6e 74 65 64 20 62 79 | be pres|ented by|
|00005f20| 20 61 20 73 6f 6d 65 74 | 69 6d 65 73 20 76 65 72 | a somet|imes ver|
|00005f30| 79 20 6c 6f 6e 67 20 6d | 65 6e 75 20 63 6f 6e 74 |y long m|enu cont|
|00005f40| 61 69 6e 69 6e 67 20 69 | 74 65 6d 73 0a 77 69 74 |aining i|tems.wit|
|00005f50| 68 20 74 68 65 20 73 61 | 6d 65 20 70 72 65 66 69 |h the sa|me prefi|
|00005f60| 78 2c 20 65 2e 67 2e 20 | 0a 0a 20 20 20 20 20 20 |x, e.g. |.. |
|00005f70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005f80| 20 20 20 20 20 20 20 54 | 72 69 6e 69 74 79 0a 20 | T|rinity. |
|00005f90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005fa0| 20 20 20 20 20 20 20 20 | 20 20 20 20 54 72 69 6e | | Trin|
|00005fb0| 69 74 79 2e 42 6f 6c 64 | 0a 20 20 20 20 20 20 20 |ity.Bold|. |
|00005fc0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005fd0| 20 20 20 20 20 20 54 72 | 69 6e 69 74 79 2e 42 6f | Tr|inity.Bo|
|00005fe0| 6c 64 2e 49 74 61 6c 69 | 63 0a 20 20 20 20 20 20 |ld.Itali|c. |
|00005ff0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00006000| 20 20 20 20 20 20 20 54 | 72 69 6e 69 74 79 2e 4d | T|rinity.M|
|00006010| 65 64 69 75 6d 0a 20 20 | 20 20 20 20 20 20 20 20 |edium. | |
|00006020| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00006030| 20 20 20 54 72 69 6e 69 | 74 79 2e 4d 65 64 69 75 | Trini|ty.Mediu|
|00006040| 6d 2e 49 74 61 6c 69 63 | 0a 20 20 20 20 20 20 20 |m.Italic|. |
|00006050| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00006060| 20 20 20 20 20 20 65 74 | 63 2e 0a 0a 20 54 68 65 | et|c... The|
|00006070| 20 6d 6f 72 65 20 66 6f | 6e 74 73 20 62 65 63 6f | more fo|nts beco|
|00006080| 6d 65 20 61 76 61 69 6c | 61 62 6c 65 2c 20 74 68 |me avail|able, th|
|00006090| 65 20 6c 6f 6e 67 65 72 | 20 74 68 69 73 20 6d 65 |e longer| this me|
|000060a0| 6e 75 20 62 65 63 6f 6d | 65 73 2c 20 74 68 65 20 |nu becom|es, the |
|000060b0| 6d 6f 72 65 0a 69 72 72 | 69 74 61 74 69 6e 67 20 |more.irr|itating |
|000060c0| 69 74 20 69 73 2e 20 0a | 0a 20 4d 61 6e 79 20 61 |it is. .|. Many a|
|000060d0| 70 70 6c 69 63 61 74 69 | 6f 6e 73 20 6e 6f 77 20 |pplicati|ons now |
|000060e0| 61 72 65 20 65 76 65 6e | 20 69 6e 63 61 70 61 62 |are even| incapab|
|000060f0| 6c 65 20 6f 66 20 63 72 | 65 61 74 69 6e 67 20 6d |le of cr|eating m|
|00006100| 65 6e 75 73 20 6c 6f 6e | 67 65 72 20 74 68 65 6e |enus lon|ger then|
|00006110| 20 61 0a 63 65 72 74 61 | 69 6e 20 61 6d 6f 75 6e | a.certa|in amoun|
|00006120| 74 2e 20 45 78 61 6d 70 | 6c 65 73 20 6f 66 20 74 |t. Examp|les of t|
|00006130| 68 65 73 65 20 61 72 65 | 20 21 45 64 69 74 20 28 |hese are| !Edit (|
|00006140| 34 38 20 65 6e 74 72 69 | 65 73 29 2c 20 21 44 72 |48 entri|es), !Dr|
|00006150| 61 77 20 28 36 34 0a 65 | 6e 74 72 69 65 73 29 2c |aw (64.e|ntries),|
|00006160| 20 61 6e 64 20 65 76 65 | 6e 20 21 49 6d 70 72 65 | and eve|n !Impre|
|00006170| 73 73 69 6f 6e 20 72 65 | 61 63 74 73 20 73 69 63 |ssion re|acts sic|
|00006180| 6b 2e 0a 0a 20 57 68 65 | 6e 20 72 75 6e 6e 69 6e |k... Whe|n runnin|
|00006190| 67 20 6d 6f 72 65 20 74 | 68 65 6e 20 6f 6e 65 20 |g more t|hen one |
|000061a0| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 77 69 74 68 |applicat|ion with|
|000061b0| 20 61 20 66 6f 6e 74 20 | 6d 65 6e 75 2c 20 74 68 | a font |menu, th|
|000061c0| 65 72 65 20 69 73 20 61 | 72 69 73 65 73 0a 61 6e |ere is a|rises.an|
|000061d0| 6f 74 68 65 72 20 64 69 | 73 61 64 76 61 6e 74 61 |other di|sadvanta|
|000061e0| 67 65 20 6f 66 20 74 68 | 69 73 20 6d 65 74 68 6f |ge of th|is metho|
|000061f0| 64 2e 20 53 65 76 65 72 | 61 6c 20 61 70 70 6c 69 |d. Sever|al appli|
|00006200| 63 61 74 69 6f 6e 73 20 | 75 73 69 6e 67 20 61 20 |cations |using a |
|00006210| 69 64 65 6e 74 69 63 61 | 6c 0a 6d 65 6e 75 20 73 |identica|l.menu s|
|00006220| 74 72 75 63 74 75 72 65 | 20 62 75 74 20 6e 6f 74 |tructure| but not|
|00006230| 20 73 68 61 72 69 6e 67 | 20 74 68 65 20 72 65 73 | sharing| the res|
|00006240| 6f 75 72 63 65 2c 20 69 | 73 20 6e 6f 74 20 74 68 |ource, i|s not th|
|00006250| 65 20 70 6f 6c 69 63 79 | 20 6f 66 20 41 63 6f 72 |e policy| of Acor|
|00006260| 6e 20 6f 6e 0a 6f 74 68 | 65 72 20 73 75 62 6a 65 |n on.oth|er subje|
|00006270| 63 74 73 2e 20 0a 0a 20 | 53 6f 20 68 65 72 65 20 |cts. .. |So here |
|00006280| 69 73 20 61 20 6e 65 61 | 74 20 73 6f 6c 75 74 69 |is a nea|t soluti|
|00006290| 6f 6e 20 66 6f 72 20 65 | 76 65 72 79 6f 6e 65 20 |on for e|veryone |
|000062a0| 77 68 6f 20 77 61 6e 74 | 73 20 61 20 70 72 6f 70 |who want|s a prop|
|000062b0| 65 72 20 66 6f 6e 74 20 | 6d 65 6e 75 2c 0a 77 69 |er font |menu,.wi|
|000062c0| 74 68 6f 75 74 20 74 68 | 65 20 68 61 73 73 6c 65 |thout th|e hassle|
|000062d0| 20 74 6f 20 63 72 65 61 | 74 65 20 6f 6e 65 2c 20 | to crea|te one, |
|000062e0| 61 6e 64 20 77 69 74 68 | 6f 75 74 20 63 6c 61 69 |and with|out clai|
|000062f0| 6d 69 6e 67 20 65 78 74 | 72 61 20 73 70 61 63 65 |ming ext|ra space|
|00006300| 2e 00 00 00 44 41 54 41 | 5f 05 00 00 57 68 61 74 |....DATA|_...What|
|00006310| 20 64 6f 65 73 20 46 6f | 6e 74 4d 65 6e 75 20 64 | does Fo|ntMenu d|
|00006320| 6f 20 3f 0a 54 68 65 20 | 46 6f 6e 74 4d 65 6e 75 |o ?.The |FontMenu|
|00006330| 20 6d 6f 64 75 6c 65 20 | 69 73 20 61 62 6c 65 20 | module |is able |
|00006340| 74 6f 20 63 72 65 61 74 | 65 20 61 20 6d 75 6c 74 |to creat|e a mult|
|00006350| 69 2d 6c 65 76 65 6c 20 | 66 6f 6e 74 20 6d 65 6e |i-level |font men|
|00006360| 75 2c 20 61 6e 64 20 6c | 65 74 73 0a 65 76 65 72 |u, and l|ets.ever|
|00006370| 79 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 73 68 |y applic|ation sh|
|00006380| 61 72 65 20 74 68 65 20 | 6a 6f 79 2e 20 49 74 20 |are the |joy. It |
|00006390| 63 6f 6e 74 61 69 6e 73 | 20 73 65 76 65 72 61 6c |contains| several|
|000063a0| 20 53 57 49 27 73 20 74 | 6f 20 63 72 65 61 74 65 | SWI's t|o create|
|000063b0| 2c 20 61 6e 64 0a 61 63 | 63 65 73 73 20 74 68 69 |, and.ac|cess thi|
|000063c0| 73 20 72 65 73 6f 75 72 | 63 65 2e 20 49 66 20 6e |s resour|ce. If n|
|000063d0| 6f 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 69 73 |o applic|ation is|
|000063e0| 20 75 73 69 6e 67 20 74 | 68 65 20 73 74 72 75 63 | using t|he struc|
|000063f0| 74 75 72 65 20 61 6e 79 | 6d 6f 72 65 0a 28 62 65 |ture any|more.(be|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.