home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 1 / ARM_CLUB_CD.iso / contents / apps / program / s / shell / !Shell / !RUNIMAGE2 < prev    next >
Unknown  |  1991-06-10  |  38.8 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
10% dexvert Truevision Targa Graphic (image/tga) magic Supported
100% file data default
100% xdgMime image/x-tga default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 0d 00 0a 1d f4 20 3e 20 | 3c 53 68 65 6c 6c 24 44 |..... > |<Shell$D|
|00000010| 69 72 3e 2e 21 52 75 6e | 49 6d 61 67 65 0d 00 14 |ir>.!Run|Image...|
|00000020| 04 0d 00 1e 45 f4 20 54 | 68 69 73 20 70 72 6f 67 |....E. T|his prog|
|00000030| 72 61 6d 20 69 73 20 64 | 65 73 69 67 6e 65 64 20 |ram is d|esigned |
|00000040| 74 6f 20 73 68 6f 77 20 | 73 6f 6d 65 20 61 73 70 |to show |some asp|
|00000050| 65 63 74 73 20 6f 66 20 | 75 73 69 6e 67 20 74 68 |ects of |using th|
|00000060| 65 20 57 49 4d 50 0d 00 | 28 47 f4 20 53 79 73 74 |e WIMP..|(G. Syst|
|00000070| 65 6d 20 6f 6e 20 74 68 | 65 20 41 72 63 68 69 6d |em on th|e Archim|
|00000080| 65 64 65 73 2e 20 55 73 | 69 6e 67 20 69 74 20 61 |edes. Us|ing it a|
|00000090| 73 20 61 20 62 61 73 65 | 20 79 6f 75 20 73 68 6f |s a base| you sho|
|000000a0| 75 6c 64 20 68 6f 70 65 | 66 75 6c 6c 79 0d 00 32 |uld hope|fully..2|
|000000b0| 47 f4 20 62 65 20 61 62 | 6c 65 20 74 6f 20 63 6f |G. be ab|le to co|
|000000c0| 6e 76 65 72 74 20 65 78 | 69 73 74 69 6e 67 20 6e |nvert ex|isting n|
|000000d0| 6f 6e 2d 57 49 4d 50 20 | 70 72 6f 67 72 61 6d 73 |on-WIMP |programs|
|000000e0| 20 6f 72 20 63 72 65 61 | 74 65 20 6e 65 77 20 6f | or crea|te new o|
|000000f0| 6e 65 73 2e 0d 00 3c 47 | f4 20 45 61 63 68 20 70 |nes...<G|. Each p|
|00000100| 61 72 74 20 6f 66 20 74 | 68 65 20 70 72 6f 67 72 |art of t|he progr|
|00000110| 61 6d 20 68 61 73 20 65 | 78 74 65 6e 73 69 76 65 |am has e|xtensive|
|00000120| 20 52 45 4d 20 73 74 61 | 74 65 6d 65 6e 74 73 20 | REM sta|tements |
|00000130| 74 6f 20 64 65 73 63 72 | 69 62 65 0d 00 46 44 f4 |to descr|ibe..FD.|
|00000140| 20 77 68 61 74 20 69 73 | 20 67 6f 69 6e 67 20 6f | what is| going o|
|00000150| 6e 2e 20 59 6f 75 20 77 | 69 6c 6c 20 6e 65 65 64 |n. You w|ill need|
|00000160| 20 76 61 72 69 6f 75 73 | 20 6f 74 68 65 72 20 52 | various| other R|
|00000170| 49 53 43 2d 4f 53 20 70 | 72 6f 67 72 61 6d 73 0d |ISC-OS p|rograms.|
|00000180| 00 50 48 f4 20 74 6f 20 | 63 72 65 61 74 65 20 61 |.PH. to |create a|
|00000190| 6e 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 2c 20 6e |n applic|ation, n|
|000001a0| 6f 74 61 62 6c 79 20 21 | 50 61 69 6e 74 20 28 66 |otably !|Paint (f|
|000001b0| 6f 72 20 73 70 72 69 74 | 65 73 29 20 61 6e 64 20 |or sprit|es) and |
|000001c0| 21 46 6f 72 6d 45 64 0d | 00 5a 4a f4 20 28 41 63 |!FormEd.|.ZJ. (Ac|
|000001d0| 6f 72 6e 27 73 20 76 65 | 72 73 69 6f 6e 29 20 66 |orn's ve|rsion) f|
|000001e0| 6f 72 20 77 69 6e 64 6f | 77 20 74 65 6d 70 6c 61 |or windo|w templa|
|000001f0| 74 65 73 2e 20 49 27 6d | 20 61 66 72 61 69 64 20 |tes. I'm| afraid |
|00000200| 49 20 63 61 6e 27 74 20 | 72 65 63 6f 6d 6d 65 6e |I can't |recommen|
|00000210| 64 0d 00 64 48 f4 20 4e | 6f 72 77 69 63 68 20 43 |d..dH. N|orwich C|
|00000220| 6f 6d 70 75 74 65 72 20 | 53 65 72 76 69 63 65 73 |omputer |Services|
|00000230| 20 54 65 6d 70 6c 61 74 | 65 20 45 64 69 74 6f 72 | Templat|e Editor|
|00000240| 20 28 73 6f 72 72 79 20 | 41 64 72 69 61 6e 29 20 | (sorry |Adrian) |
|00000250| 61 73 20 69 74 20 63 61 | 6e 0d 00 6e 43 f4 20 70 |as it ca|n..nC. p|
|00000260| 72 6f 64 75 63 65 20 6e | 6f 6e 2d 73 74 61 6e 64 |roduce n|on-stand|
|00000270| 61 72 64 20 66 69 6c 65 | 73 20 74 68 61 74 20 63 |ard file|s that c|
|00000280| 61 6e 6e 6f 74 20 62 65 | 20 6c 6f 61 64 65 64 20 |annot be| loaded |
|00000290| 69 6e 74 6f 20 41 63 6f | 72 6e 27 73 0d 00 78 47 |into Aco|rn's..xG|
|000002a0| f4 20 21 46 6f 72 6d 45 | 64 2e 20 54 68 69 73 20 |. !FormE|d. This |
|000002b0| 63 61 75 73 65 73 20 61 | 20 70 72 6f 62 6c 65 6d |causes a| problem|
|000002c0| 20 61 73 20 21 46 6f 72 | 6d 45 64 20 69 73 2c 20 | as !For|mEd is, |
|000002d0| 61 73 20 66 61 72 20 61 | 73 20 49 20 6b 6e 6f 77 |as far a|s I know|
|000002e0| 2c 20 61 0d 00 82 48 f4 | 20 27 50 75 62 6c 69 63 |, a...H.| 'Public|
|000002f0| 20 44 6f 6d 61 69 6e 27 | 20 70 72 6f 67 72 61 6d | Domain'| program|
|00000300| 20 28 77 68 69 63 68 20 | 69 73 20 61 73 20 69 74 | (which |is as it|
|00000310| 20 73 68 6f 75 6c 64 20 | 62 65 20 66 6f 72 20 73 | should |be for s|
|00000320| 75 63 68 20 61 20 76 69 | 74 61 6c 0d 00 8c 43 f4 |uch a vi|tal...C.|
|00000330| 20 74 6f 6f 6c 29 20 62 | 75 74 20 74 68 65 20 4e | tool) b|ut the N|
|00000340| 43 53 20 76 65 72 73 69 | 6f 6e 20 69 73 20 6e 6f |CS versi|on is no|
|00000350| 74 20 73 6f 20 49 20 63 | 61 6e 27 74 20 67 69 76 |t so I c|an't giv|
|00000360| 65 20 63 6f 70 69 65 73 | 20 61 77 61 79 2e 0d 00 |e copies| away...|
|00000370| 8d 04 0d 00 96 4b f4 20 | 49 20 61 6c 73 6f 20 72 |.....K. |I also r|
|00000380| 65 63 6f 6d 6d 65 6e 64 | 20 67 65 74 74 69 6e 67 |ecommend| getting|
|00000390| 20 68 6f 6c 64 20 6f 66 | 20 61 6e 20 41 63 6f 72 | hold of| an Acor|
|000003a0| 6e 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 21 53 |n applic|ation !S|
|000003b0| 70 79 20 28 61 76 61 69 | 6c 61 62 6c 65 0d 00 a0 |py (avai|lable...|
|000003c0| 49 f4 20 6f 6e 20 41 72 | 63 68 69 76 65 20 4d 61 |I. on Ar|chive Ma|
|000003d0| 67 61 7a 69 6e 65 20 43 | 61 72 65 77 61 72 65 20 |gazine C|areware |
|000003e0| 64 69 73 63 20 37 29 20 | 77 68 69 63 68 20 69 73 |disc 7) |which is|
|000003f0| 20 61 20 6d 6f 64 69 66 | 69 65 64 20 76 65 72 73 | a modif|ied vers|
|00000400| 69 6f 6e 20 6f 66 0d 00 | aa 46 f4 20 21 48 65 6c |ion of..|.F. !Hel|
|00000410| 70 2e 20 54 68 69 73 20 | 61 70 70 6c 69 63 61 74 |p. This |applicat|
|00000420| 69 6f 6e 20 73 69 6d 70 | 6c 79 20 64 69 73 70 6c |ion simp|ly displ|
|00000430| 61 79 73 20 74 68 65 20 | 77 69 6e 64 6f 77 20 68 |ays the |window h|
|00000440| 61 6e 64 6c 65 73 2c 20 | 69 63 6f 6e 0d 00 b4 49 |andles, |icon...I|
|00000450| f4 20 69 63 6f 6e 20 68 | 61 6e 64 6c 65 73 20 65 |. icon h|andles e|
|00000460| 74 63 20 61 73 20 79 6f | 75 20 6d 6f 76 65 20 74 |tc as yo|u move t|
|00000470| 68 65 20 70 6f 69 6e 74 | 65 72 20 61 72 6f 75 6e |he point|er aroun|
|00000480| 64 2e 20 54 68 69 73 20 | 64 6f 65 73 6e 27 74 20 |d. This |doesn't |
|00000490| 73 6f 75 6e 64 0d 00 be | 47 f4 20 74 6f 6f 20 77 |sound...|G. too w|
|000004a0| 6f 6e 64 65 72 66 75 6c | 20 62 75 74 20 69 74 20 |onderful| but it |
|000004b0| 64 6f 65 73 20 65 6e 61 | 62 6c 65 20 79 6f 75 20 |does ena|ble you |
|000004c0| 74 6f 20 64 69 73 63 6f | 76 65 72 20 69 63 6f 6e |to disco|ver icon|
|000004d0| 20 68 61 6e 64 6c 65 73 | 20 65 74 63 0d 00 c8 47 | handles| etc...G|
|000004e0| f4 20 77 69 74 68 6f 75 | 74 20 6c 6f 61 64 69 6e |. withou|t loadin|
|000004f0| 67 20 74 68 65 20 74 65 | 6d 70 6c 61 74 65 73 20 |g the te|mplates |
|00000500| 69 6e 74 6f 20 21 46 6f | 72 6d 45 64 20 61 6e 64 |into !Fo|rmEd and|
|00000510| 20 77 72 69 74 69 6e 67 | 20 65 76 65 72 79 74 68 | writing| everyth|
|00000520| 69 6e 67 0d 00 d2 3a f4 | 20 64 6f 77 6e 20 6f 6e |ing...:.| down on|
|00000530| 20 62 69 74 73 20 6f 66 | 20 70 61 70 65 72 21 20 | bits of| paper! |
|00000540| 41 6e 64 20 69 74 20 6f | 6e 6c 79 20 6e 65 65 64 |And it o|nly need|
|00000550| 73 20 33 32 6b 20 74 6f | 20 72 75 6e 2e 0d 00 dc |s 32k to| run....|
|00000560| 04 0d 00 e6 45 f4 20 49 | 20 64 6f 75 62 74 20 77 |....E. I| doubt w|
|00000570| 68 65 74 68 65 72 20 49 | 20 68 61 76 65 20 74 68 |hether I| have th|
|00000580| 6f 75 67 68 74 20 6f 66 | 20 65 76 65 72 79 74 68 |ought of| everyth|
|00000590| 69 6e 67 2c 20 68 6f 77 | 65 76 65 72 2c 20 61 6e |ing, how|ever, an|
|000005a0| 64 20 73 6f 6d 65 0d 00 | f0 45 f4 20 74 68 69 6e |d some..|.E. thin|
|000005b0| 67 73 20 28 73 75 63 68 | 20 61 73 20 70 61 6e 65 |gs (such| as pane|
|000005c0| 73 29 20 77 68 69 63 68 | 20 61 72 65 20 6e 69 63 |s) which| are nic|
|000005d0| 65 20 74 6f 20 68 61 76 | 65 20 73 6f 6d 65 74 69 |e to hav|e someti|
|000005e0| 6d 65 73 20 61 72 65 20 | 6e 6f 74 0d 00 fa 45 f4 |mes are |not...E.|
|000005f0| 20 61 63 74 75 61 6c 6c | 79 20 76 69 74 61 6c 20 | actuall|y vital |
|00000600| 74 6f 20 67 65 74 74 69 | 6e 67 20 74 68 65 20 61 |to getti|ng the a|
|00000610| 70 70 6c 69 63 61 74 69 | 6f 6e 20 72 75 6e 6e 69 |pplicati|on runni|
|00000620| 6e 67 20 2d 20 73 6f 20 | 74 68 65 79 20 61 72 65 |ng - so |they are|
|00000630| 0d 01 04 45 f4 20 6e 6f | 74 20 64 65 6d 6f 6e 73 |...E. no|t demons|
|00000640| 74 72 61 74 65 64 2e 20 | 41 6c 73 6f 20 49 20 68 |trated. |Also I h|
|00000650| 61 76 65 6e 27 74 20 67 | 6f 74 20 74 68 65 6d 20 |aven't g|ot them |
|00000660| 77 6f 72 6b 69 6e 67 20 | 70 72 6f 70 65 72 6c 79 |working |properly|
|00000670| 20 79 65 74 2e 0d 01 0e | 44 f4 20 41 73 20 6d 6f | yet....|D. As mo|
|00000680| 73 74 20 70 72 6f 67 72 | 61 6d 73 20 63 61 6e 20 |st progr|ams can |
|00000690| 62 65 20 63 72 75 64 65 | 6c 79 20 62 72 6f 6b 65 |be crude|ly broke|
|000006a0| 6e 20 64 6f 77 6e 20 74 | 6f 20 27 67 65 74 20 73 |n down t|o 'get s|
|000006b0| 6f 6d 65 20 64 61 74 61 | 2c 0d 01 18 43 f4 20 70 |ome data|,...C. p|
|000006c0| 72 6f 63 65 73 73 20 69 | 74 20 61 6e 64 20 73 61 |rocess i|t and sa|
|000006d0| 76 65 20 69 74 20 62 61 | 63 6b 20 74 6f 20 64 69 |ve it ba|ck to di|
|000006e0| 73 6b 27 20 49 27 6c 6c | 20 75 73 65 20 61 20 72 |sk' I'll| use a r|
|000006f0| 65 61 6c 6c 79 20 73 69 | 6d 70 6c 65 0d 01 22 47 |eally si|mple.."G|
|00000700| f4 20 64 61 74 61 62 61 | 73 65 20 61 73 20 61 6e |. databa|se as an|
|00000710| 20 65 78 61 6d 70 6c 65 | 20 77 68 69 63 68 20 77 | example| which w|
|00000720| 69 6c 6c 20 73 68 6f 77 | 20 68 6f 77 20 74 6f 20 |ill show| how to |
|00000730| 6c 6f 61 64 20 61 6e 64 | 20 73 61 76 65 20 66 69 |load and| save fi|
|00000740| 6c 65 73 0d 01 2c 48 f4 | 20 75 6e 64 65 72 20 52 |les..,H.| under R|
|00000750| 49 53 43 2d 4f 53 2e 20 | 48 6f 77 65 76 65 72 2c |ISC-OS. |However,|
|00000760| 20 49 27 6c 6c 20 74 72 | 79 20 74 6f 20 73 68 6f | I'll tr|y to sho|
|00000770| 77 20 61 73 20 6d 61 6e | 79 20 64 69 66 66 65 72 |w as man|y differ|
|00000780| 65 6e 74 20 61 73 70 65 | 63 74 73 0d 01 36 20 f4 |ent aspe|cts..6 .|
|00000790| 20 6f 66 20 57 49 4d 50 | 20 70 72 6f 67 72 61 6d | of WIMP| program|
|000007a0| 73 20 61 73 20 49 20 63 | 61 6e 2e 0d 01 40 04 0d |s as I c|an...@..|
|000007b0| 01 4a 49 f4 20 52 65 61 | 64 69 6e 67 20 73 6f 6d |.JI. Rea|ding som|
|000007c0| 65 20 6f 66 20 74 68 65 | 20 63 6f 6d 6d 65 6e 74 |e of the| comment|
|000007d0| 73 20 69 6e 20 74 68 65 | 20 6d 61 67 61 7a 69 6e |s in the| magazin|
|000007e0| 65 73 20 69 74 20 73 65 | 65 6d 73 20 74 68 61 74 |es it se|ems that|
|000007f0| 20 77 68 61 74 20 69 73 | 0d 01 54 47 f4 20 72 65 | what is|..TG. re|
|00000800| 71 75 69 72 65 64 20 69 | 73 20 61 20 6d 61 67 69 |quired i|s a magi|
|00000810| 63 20 77 61 6e 64 20 77 | 68 69 63 68 20 77 69 6c |c wand w|hich wil|
|00000820| 6c 20 70 72 6f 64 75 63 | 65 20 77 6f 72 6b 69 6e |l produc|e workin|
|00000830| 67 20 6d 75 6c 74 69 2d | 74 61 73 6b 69 6e 67 0d |g multi-|tasking.|
|00000840| 01 5e 47 f4 20 57 49 4d | 50 20 70 72 6f 67 72 61 |.^G. WIM|P progra|
|00000850| 6d 73 20 77 69 74 68 6f | 75 74 20 74 6f 6f 20 6d |ms witho|ut too m|
|00000860| 75 63 68 20 65 66 66 6f | 72 74 2e 20 55 6e 66 6f |uch effo|rt. Unfo|
|00000870| 72 74 75 6e 61 74 65 6c | 79 20 69 66 20 79 6f 75 |rtunatel|y if you|
|00000880| 20 63 61 6e 27 74 0d 01 | 68 48 f4 20 70 72 6f 67 | can't..|hH. prog|
|00000890| 72 61 6d 20 69 6e 20 42 | 41 53 49 43 20 79 6f 75 |ram in B|ASIC you|
|000008a0| 20 68 61 76 65 20 6e 6f | 20 63 68 61 6e 63 65 21 | have no| chance!|
|000008b0| 20 54 68 69 73 20 21 53 | 68 65 6c 6c 20 70 72 6f | This !S|hell pro|
|000008c0| 67 72 61 6d 20 77 69 6c | 6c 20 68 65 6c 70 0d 01 |gram wil|l help..|
|000008d0| 72 48 f4 20 62 75 74 20 | 69 74 20 63 61 6e 27 74 |rH. but |it can't|
|000008e0| 20 74 65 61 63 68 20 79 | 6f 75 20 74 6f 20 70 72 | teach y|ou to pr|
|000008f0| 6f 67 72 61 6d 20 28 6e | 65 69 74 68 65 72 20 63 |ogram (n|either c|
|00000900| 61 6e 20 41 72 63 68 57 | 61 79 20 61 6e 64 20 74 |an ArchW|ay and t|
|00000910| 68 69 73 20 69 73 0d 01 | 7c 14 f4 20 6d 75 63 68 |his is..||.. much|
|00000920| 20 63 68 65 61 70 65 72 | 29 2e 0d 01 86 04 0d 01 | cheaper|).......|
|00000930| 90 4c f4 20 4f 6e 65 20 | 74 68 69 6e 67 20 49 20 |.L. One |thing I |
|00000940| 73 74 69 6c 6c 20 68 61 | 76 65 20 61 20 70 72 6f |still ha|ve a pro|
|00000950| 62 6c 65 6d 20 77 69 74 | 68 20 69 73 20 74 68 65 |blem wit|h is the|
|00000960| 20 50 72 65 51 75 69 74 | 20 62 72 6f 61 64 63 61 | PreQuit| broadca|
|00000970| 73 74 20 6d 65 73 73 61 | 67 65 0d 01 9a 4a f4 20 |st messa|ge...J. |
|00000980| 73 65 6e 74 20 62 79 20 | 74 68 65 20 74 61 73 6b |sent by |the task|
|00000990| 20 6d 61 6e 61 67 65 72 | 20 77 68 65 6e 20 79 6f | manager| when yo|
|000009a0| 75 20 71 75 69 74 20 74 | 68 65 20 64 65 73 6b 74 |u quit t|he deskt|
|000009b0| 6f 70 2e 20 41 63 63 6f | 72 64 69 6e 67 20 74 6f |op. Acco|rding to|
|000009c0| 20 74 68 65 0d 01 a4 48 | f4 20 52 49 53 43 2d 4f | the...H|. RISC-O|
|000009d0| 53 20 50 52 4d 73 20 74 | 68 65 20 61 70 70 6c 69 |S PRMs t|he appli|
|000009e0| 63 61 74 69 6f 6e 20 73 | 68 6f 75 6c 64 20 63 68 |cation s|hould ch|
|000009f0| 65 63 6b 20 69 66 20 75 | 6e 73 61 76 65 64 20 64 |eck if u|nsaved d|
|00000a00| 61 74 61 20 69 73 20 74 | 6f 20 62 65 0d 01 ae 49 |ata is t|o be...I|
|00000a10| f4 20 74 68 72 6f 77 6e | 20 61 77 61 79 20 61 6e |. thrown| away an|
|00000a20| 64 20 74 68 65 6e 20 72 | 65 73 74 61 72 74 20 74 |d then r|estart t|
|00000a30| 68 65 20 63 6c 6f 73 65 | 64 6f 77 6e 20 70 72 6f |he close|down pro|
|00000a40| 63 65 64 75 72 65 2e 20 | 55 6e 66 6f 72 74 75 6e |cedure. |Unfortun|
|00000a50| 61 74 65 6c 79 0d 01 b8 | 46 f4 20 74 68 65 20 50 |ately...|F. the P|
|00000a60| 52 4d 20 69 73 20 61 20 | 62 69 74 20 6c 69 67 68 |RM is a |bit ligh|
|00000a70| 74 20 6f 6e 20 69 6e 66 | 6f 20 6f 6e 20 68 6f 77 |t on inf|o on how|
|00000a80| 20 74 6f 20 64 6f 20 74 | 68 69 73 20 61 6e 64 20 | to do t|his and |
|00000a90| 6e 6f 6e 65 20 6f 66 20 | 74 68 65 0d 01 c2 48 f4 |none of |the...H.|
|00000aa0| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 73 20 49 20 | applica|tions I |
|00000ab0| 68 61 76 65 20 28 69 6e | 63 6c 75 64 69 6e 67 20 |have (in|cluding |
|00000ac0| 21 4d 61 65 73 74 72 6f | 20 61 6e 64 20 21 48 6f |!Maestro| and !Ho|
|00000ad0| 6d 65 41 63 63 20 66 72 | 6f 6d 20 4d 69 6e 65 72 |meAcc fr|om Miner|
|00000ae0| 76 61 29 0d 01 cc 45 f4 | 20 61 63 74 75 61 6c 6c |va)...E.| actuall|
|00000af0| 79 20 66 6f 6c 6c 6f 77 | 20 74 68 65 20 67 75 69 |y follow| the gui|
|00000b00| 64 65 6c 69 6e 65 73 21 | 20 53 6f 20 61 73 20 69 |delines!| So as i|
|00000b10| 74 20 73 74 61 6e 64 73 | 20 69 66 20 75 6e 73 61 |t stands| if unsa|
|00000b20| 76 65 64 20 64 61 74 61 | 0d 01 d6 43 f4 20 65 78 |ved data|...C. ex|
|00000b30| 69 73 74 73 20 69 6e 20 | 21 53 68 65 6c 6c 20 77 |ists in |!Shell w|
|00000b40| 68 65 6e 20 74 68 65 20 | 64 65 73 6b 74 6f 70 20 |hen the |desktop |
|00000b50| 69 73 20 65 78 69 74 65 | 64 20 79 6f 75 20 77 69 |is exite|d you wi|
|00000b60| 6c 6c 20 6c 6f 73 65 20 | 69 74 2e 0d 01 e0 30 f4 |ll lose |it....0.|
|00000b70| 20 41 6e 79 20 68 65 6c | 70 20 68 65 72 65 20 77 | Any hel|p here w|
|00000b80| 69 6c 6c 20 62 65 20 67 | 72 61 74 65 66 75 6c 6c |ill be g|ratefull|
|00000b90| 79 20 72 65 63 65 69 76 | 65 64 21 0d 01 ea 04 0d |y receiv|ed!.....|
|00000ba0| 01 f4 1f f4 20 43 6f 70 | 79 72 69 67 68 74 20 50 |.... Cop|yright P|
|00000bb0| 61 75 6c 20 48 6f 62 62 | 73 20 31 39 39 30 0d 01 |aul Hobb|s 1990..|
|00000bc0| fe 04 0d 02 08 19 f4 20 | 52 68 65 69 6e 70 66 6c |....... |Rheinpfl|
|00000bd0| 61 7a 73 74 72 61 73 73 | 65 20 32 0d 02 12 19 f4 |azstrass|e 2.....|
|00000be0| 20 20 20 20 20 38 30 37 | 30 20 49 6e 67 6f 6c 73 | 807|0 Ingols|
|00000bf0| 74 61 64 74 0d 02 1c 19 | f4 20 20 20 20 20 20 20 |tadt....|. |
|00000c00| 20 57 65 73 74 20 47 65 | 72 6d 61 6e 79 0d 02 26 | West Ge|rmany..&|
|00000c10| 04 0d 02 30 3e f4 20 54 | 68 69 73 20 70 72 6f 67 |...0>. T|his prog|
|00000c20| 72 61 6d 20 61 6e 64 20 | 70 61 72 74 73 20 74 68 |ram and |parts th|
|00000c30| 65 72 65 6f 66 20 6d 61 | 79 20 62 65 20 66 72 65 |ereof ma|y be fre|
|00000c40| 65 6c 79 20 64 69 73 74 | 72 69 62 75 74 65 64 0d |ely dist|ributed.|
|00000c50| 02 3a 04 0d 02 44 47 76 | 65 72 73 69 6f 6e 24 3d |.:...DGv|ersion$=|
|00000c60| 22 31 2e 30 37 20 28 31 | 2d 4a 75 6c 2d 39 30 29 |"1.07 (1|-Jul-90)|
|00000c70| 22 20 20 3a f4 20 74 68 | 69 73 20 73 74 72 69 6e |" :. th|is strin|
|00000c80| 67 20 77 69 6c 6c 20 62 | 65 20 69 6e 73 65 72 74 |g will b|e insert|
|00000c90| 65 64 20 69 6e 74 6f 20 | 61 6e 0d 02 4e 45 20 20 |ed into |an..NE |
|00000ca0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000cb0| 20 20 20 20 20 20 20 20 | 20 20 3a f4 20 69 63 6f | | :. ico|
|00000cc0| 6e 20 69 6e 20 74 68 65 | 20 73 74 61 6e 64 61 72 |n in the| standar|
|00000cd0| 64 20 27 69 6e 66 6f 27 | 20 77 69 6e 64 6f 77 0d |d 'info'| window.|
|00000ce0| 02 58 4b 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.XK | |
|00000cf0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 3a | | :|
|00000d00| f4 20 77 68 69 63 68 20 | 69 73 20 61 63 63 65 73 |. which |is acces|
|00000d10| 73 65 64 20 76 69 61 20 | 74 68 65 20 69 63 6f 6e |sed via |the icon|
|00000d20| 20 69 6e 73 74 61 6c 6c | 65 64 0d 02 62 31 20 20 | install|ed..b1 |
|00000d30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000d40| 20 20 20 20 20 20 20 20 | 20 20 3a f4 20 6f 6e 20 | | :. on |
|00000d50| 74 68 65 20 69 63 6f 6e | 62 61 72 0d 02 6c 04 0d |the icon|bar..l..|
|00000d60| 02 76 4c f4 20 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |.vL. ---|--------|
|00000d70| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 20 57 49 4d 50 20 54 |--------|- WIMP T|
|00000d80| 61 73 6b 20 49 6e 69 74 | 69 61 6c 69 73 61 74 69 |ask Init|ialisati|
|00000d90| 6f 6e 20 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |on -----|--------|
|00000da0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 0d 02 80 04 0d |--------|---.....|
|00000db0| 02 8a 47 f4 20 44 69 6d | 65 6e 73 69 6f 6e 20 74 |..G. Dim|ension t|
|00000dc0| 68 65 20 67 65 6e 65 72 | 61 6c 20 70 75 72 70 6f |he gener|al purpo|
|00000dd0| 73 65 20 57 49 4d 50 20 | 70 61 72 61 6d 65 74 65 |se WIMP |paramete|
|00000de0| 72 20 62 6c 6f 63 6b 2c | 20 61 6e 64 20 73 74 61 |r block,| and sta|
|00000df0| 72 74 20 74 68 65 0d 02 | 94 46 f4 20 57 49 4d 50 |rt the..|.F. WIMP|
|00000e00| 20 74 61 73 6b 2e 20 4d | 61 6b 65 20 74 68 65 20 | task. M|ake the |
|00000e10| 70 61 72 61 6d 65 74 65 | 72 20 62 6c 6f 63 6b 20 |paramete|r block |
|00000e20| 6c 61 72 67 65 20 74 6f | 20 73 74 61 72 74 20 77 |large to| start w|
|00000e30| 69 74 68 2c 20 63 75 74 | 74 69 6e 67 0d 02 9e 46 |ith, cut|ting...F|
|00000e40| f4 20 69 74 20 64 6f 77 | 6e 20 77 68 65 6e 20 74 |. it dow|n when t|
|00000e50| 68 65 20 70 72 6f 67 72 | 61 6d 20 69 73 20 66 69 |he progr|am is fi|
|00000e60| 6e 69 73 68 65 64 2e 20 | 59 6f 75 27 6c 6c 20 6b |nished. |You'll k|
|00000e70| 6e 6f 77 20 77 68 65 6e | 20 69 74 20 69 73 20 74 |now when| it is t|
|00000e80| 6f 6f 0d 02 a8 47 f4 20 | 73 6d 61 6c 6c 20 61 73 |oo...G. |small as|
|00000e90| 20 74 68 65 20 70 72 6f | 67 72 61 6d 20 77 6f 6e | the pro|gram won|
|00000ea0| 27 74 20 72 75 6e 21 20 | 54 68 65 20 22 53 68 65 |'t run! |The "She|
|00000eb0| 6c 6c 22 20 73 74 72 69 | 6e 67 20 69 73 20 75 73 |ll" stri|ng is us|
|00000ec0| 65 64 20 62 79 20 74 68 | 65 0d 02 b2 48 f4 20 54 |ed by th|e...H. T|
|00000ed0| 61 73 6b 20 4d 61 6e 61 | 67 65 72 20 69 6e 20 74 |ask Mana|ger in t|
|00000ee0| 68 65 20 64 65 73 6b 74 | 6f 70 20 2d 20 73 6f 20 |he deskt|op - so |
|00000ef0| 63 68 61 6e 67 65 20 69 | 74 20 74 6f 20 73 75 69 |change i|t to sui|
|00000f00| 74 20 74 68 65 20 61 70 | 70 6c 69 63 61 74 69 6f |t the ap|plicatio|
|00000f10| 6e 0d 02 bc 15 f4 20 79 | 6f 75 20 61 72 65 20 77 |n..... y|ou are w|
|00000f20| 72 69 74 69 6e 67 0d 02 | c6 04 0d 02 d0 0d de 20 |riting..|....... |
|00000f30| 71 25 20 32 35 30 30 0d | 02 da 0e 24 71 25 3d 22 |q% 2500.|...$q%="|
|00000f40| 54 41 53 4b 22 0d 02 e4 | 31 c8 99 20 22 57 69 6d |TASK"...|1.. "Wim|
|00000f50| 70 5f 49 6e 69 74 69 61 | 6c 69 73 65 22 2c 32 30 |p_Initia|lise",20|
|00000f60| 30 2c 21 71 25 2c 22 53 | 68 65 6c 6c 22 20 b8 20 |0,!q%,"S|hell" . |
|00000f70| 2c 74 61 73 6b 25 0d 02 | ee 48 c8 99 20 22 48 6f |,task%..|.H.. "Ho|
|00000f80| 75 72 67 6c 61 73 73 5f | 4f 6e 22 20 3a f4 20 77 |urglass_|On" :. w|
|00000f90| 65 27 6c 6c 20 74 75 72 | 6e 20 74 68 65 20 48 6f |e'll tur|n the Ho|
|00000fa0| 75 72 47 6c 61 73 73 20 | 6f 6e 20 75 6e 74 69 6c |urGlass |on until|
|00000fb0| 20 65 76 65 72 79 74 68 | 69 6e 67 20 69 73 0d 02 | everyth|ing is..|
|00000fc0| f8 46 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.F | |
|00000fd0| 20 20 20 20 20 3a f4 20 | 73 65 74 20 75 70 20 61 | :. |set up a|
|00000fe0| 6e 64 20 72 65 61 64 79 | 20 74 6f 20 67 6f 20 28 |nd ready| to go (|
|00000ff0| 74 6f 20 73 68 6f 77 20 | 73 6f 6d 65 74 68 69 6e |to show |somethin|
|00001000| 67 20 69 73 0d 03 02 4a | 20 20 20 20 20 20 20 20 |g is...J| |
|00001010| 20 20 20 20 20 20 20 20 | 20 20 20 3a f4 20 68 61 | | :. ha|
|00001020| 70 70 65 6e 69 6e 67 20 | 77 68 69 6c 65 20 74 68 |ppening |while th|
|00001030| 65 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 69 73 |e applic|ation is|
|00001040| 20 69 6e 69 74 69 61 6c | 69 73 69 6e 67 29 0d 03 | initial|ising)..|
|00001050| 0c 04 0d 03 16 4c f4 20 | 2d 2d 2d 2d 2d 2d 2d 2d |.....L. |--------|
|00001060| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 20 4c 6f 61 |--------|---- Loa|
|00001070| 64 20 53 70 72 69 74 65 | 20 46 69 6c 65 20 2d 2d |d Sprite| File --|
|00001080| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001090| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 0d 03 |--------|------..|
|000010a0| 20 04 0d 03 2a 4b f4 20 | 53 65 74 20 75 70 20 61 | ...*K. |Set up a|
|000010b0| 6e 64 20 63 6c 65 61 72 | 20 61 20 75 73 65 72 20 |nd clear| a user |
|000010c0| 73 70 72 69 74 65 20 61 | 72 65 61 20 66 6f 72 20 |sprite a|rea for |
|000010d0| 74 68 65 20 22 53 70 72 | 69 74 65 73 22 20 66 69 |the "Spr|ites" fi|
|000010e0| 6c 65 20 77 68 69 63 68 | 20 6d 75 73 74 0d 03 34 |le which| must..4|
|000010f0| 4a f4 20 62 65 20 69 6e | 20 74 68 65 20 61 70 70 |J. be in| the app|
|00001100| 6c 69 63 61 74 69 6f 6e | 20 64 69 72 65 63 74 6f |lication| directo|
|00001110| 72 79 2e 20 54 68 69 73 | 20 77 69 6c 6c 20 63 6f |ry. This| will co|
|00001120| 6e 74 61 69 6e 20 61 6c | 6c 20 6f 66 20 74 68 65 |ntain al|l of the|
|00001130| 20 75 6e 69 71 75 65 0d | 03 3e 4b f4 20 73 70 72 | unique.|.>K. spr|
|00001140| 69 74 65 73 20 72 65 71 | 75 69 72 65 64 20 62 79 |ites req|uired by|
|00001150| 20 74 68 65 20 61 70 70 | 6c 69 63 61 74 69 6f 6e | the app|lication|
|00001160| 2e 20 54 68 65 20 73 69 | 7a 65 20 6f 66 20 74 68 |. The si|ze of th|
|00001170| 65 20 75 73 65 72 20 73 | 70 72 69 74 65 20 61 72 |e user s|prite ar|
|00001180| 65 61 0d 03 48 4b f4 20 | 69 73 20 73 65 74 20 62 |ea..HK. |is set b|
|00001190| 79 20 74 68 65 20 73 69 | 7a 65 20 6f 66 20 74 68 |y the si|ze of th|
|000011a0| 65 20 73 70 72 69 74 65 | 20 66 69 6c 65 2e 20 54 |e sprite| file. T|
|000011b0| 68 65 20 6f 6e 6c 79 20 | 70 61 72 74 20 79 6f 75 |he only |part you|
|000011c0| 20 77 69 6c 6c 20 6e 65 | 65 64 20 74 6f 0d 03 52 | will ne|ed to..R|
|000011d0| 4c f4 20 63 68 61 6e 67 | 65 20 68 65 72 65 20 69 |L. chang|e here i|
|000011e0| 73 20 74 68 65 20 3c 53 | 68 65 6c 6c 24 44 69 72 |s the <S|hell$Dir|
|000011f0| 3e 20 73 74 72 69 6e 67 | 20 77 68 69 63 68 20 73 |> string| which s|
|00001200| 68 6f 75 6c 64 20 62 65 | 20 74 68 65 20 73 61 6d |hould be| the sam|
|00001210| 65 20 61 73 20 74 68 61 | 74 0d 03 5c 3c f4 20 67 |e as tha|t..\<. g|
|00001220| 69 76 65 6e 20 69 6e 20 | 74 68 65 20 21 52 75 6e |iven in |the !Run|
|00001230| 20 66 69 6c 65 20 28 69 | 6e 20 74 68 69 73 20 65 | file (i|n this e|
|00001240| 78 61 6d 70 6c 65 20 74 | 68 65 20 6c 69 6e 65 20 |xample t|he line |
|00001250| 72 65 61 64 73 0d 03 66 | 21 f4 20 27 53 65 74 20 |reads..f|!. 'Set |
|00001260| 53 68 65 6c 6c 24 44 69 | 72 20 3c 4f 62 65 79 24 |Shell$Di|r <Obey$|
|00001270| 44 69 72 3e 27 29 0d 03 | 70 48 f4 20 48 61 76 69 |Dir>')..|pH. Havi|
|00001280| 6e 67 20 75 73 65 72 20 | 73 70 72 69 74 65 73 20 |ng user |sprites |
|00001290| 69 73 20 6e 6f 74 20 61 | 6c 77 61 79 73 20 6e 65 |is not a|lways ne|
|000012a0| 63 65 73 73 61 72 79 20 | 6f 66 20 63 6f 75 72 73 |cessary |of cours|
|000012b0| 65 20 61 73 20 79 6f 75 | 20 63 6f 75 6c 64 0d 03 |e as you| could..|
|000012c0| 7a 4b f4 20 75 73 65 20 | 74 65 78 74 20 69 63 6f |zK. use |text ico|
|000012d0| 6e 73 20 6f 72 20 75 73 | 65 72 20 67 65 6e 65 72 |ns or us|er gener|
|000012e0| 61 74 65 64 20 67 72 61 | 70 68 69 63 73 20 69 6e |ated gra|phics in|
|000012f0| 20 74 68 65 20 77 69 6e | 64 6f 77 73 20 2d 20 69 | the win|dows - i|
|00001300| 66 20 74 68 69 73 20 69 | 73 0d 03 84 2d f4 20 74 |f this i|s...-. t|
|00001310| 68 65 20 63 61 73 65 20 | 74 68 65 6e 20 79 6f 75 |he case |then you|
|00001320| 20 63 61 6e 20 6f 6d 69 | 74 20 74 68 69 73 20 73 | can omi|t this s|
|00001330| 65 63 74 69 6f 6e 0d 03 | 8e 04 0d 03 98 2f 53 25 |ection..|...../S%|
|00001340| 3d 8e 20 22 3c 53 68 65 | 6c 6c 24 44 69 72 3e 2e |=. "<She|ll$Dir>.|
|00001350| 53 70 72 69 74 65 73 22 | 3a 54 25 3d a2 23 53 25 |Sprites"|:T%=.#S%|
|00001360| 2b 31 36 3a d9 20 23 53 | 25 0d 03 a2 19 de 20 73 |+16:. #S|%..... s|
|00001370| 70 20 54 25 3a 21 73 70 | 3d 54 25 3a 73 70 21 34 |p T%:!sp|=T%:sp!4|
|00001380| 3d 30 0d 03 ac 14 73 70 | 21 38 3d 31 36 3a 73 70 |=0....sp|!8=16:sp|
|00001390| 21 31 32 3d 31 36 0d 03 | b6 45 c8 99 20 22 4f 53 |!12=16..|.E.. "OS|
|000013a0| 5f 53 70 72 69 74 65 4f | 70 22 2c 26 32 30 39 2c |_SpriteO|p",&209,|
|000013b0| 73 70 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |sp | |
|000013c0| 20 20 20 20 20 20 20 20 | 20 3a f4 20 63 6c 65 61 | | :. clea|
|000013d0| 72 20 75 73 65 72 20 61 | 72 65 61 0d 03 c0 42 c8 |r user a|rea...B.|
|000013e0| 99 20 22 4f 53 5f 53 70 | 72 69 74 65 4f 70 22 2c |. "OS_Sp|riteOp",|
|000013f0| 26 32 30 41 2c 73 70 2c | 22 3c 53 68 65 6c 6c 24 |&20A,sp,|"<Shell$|
|00001400| 44 69 72 3e 2e 53 70 72 | 69 74 65 73 22 20 3a f4 |Dir>.Spr|ites" :.|
|00001410| 20 6c 6f 61 64 20 73 70 | 72 69 74 65 73 0d 03 ca | load sp|rites...|
|00001420| 04 0d 03 d4 4c f4 20 2d | 2d 2d 2d 2d 2d 2d 2d 2d |....L. -|--------|
|00001430| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 20 50 6c 61 63 |--------|--- Plac|
|00001440| 65 20 53 70 72 69 74 65 | 20 4f 6e 20 49 63 6f 6e |e Sprite| On Icon|
|00001450| 20 42 61 72 20 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d | Bar ---|--------|
|00001460| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 0d 03 de |--------|-----...|
|00001470| 04 0d 03 e8 48 f4 20 41 | 67 61 69 6e 20 74 68 69 |....H. A|gain thi|
|00001480| 73 20 73 74 65 70 20 63 | 6f 75 6c 64 20 62 65 20 |s step c|ould be |
|00001490| 6c 65 66 74 20 6f 75 74 | 20 69 66 20 79 6f 75 20 |left out| if you |
|000014a0| 64 6f 6e 27 74 20 77 61 | 6e 74 20 61 6e 20 69 63 |don't wa|nt an ic|
|000014b0| 6f 6e 20 6f 6e 20 74 68 | 65 0d 03 f2 4b f4 20 69 |on on th|e...K. i|
|000014c0| 63 6f 6e 62 61 72 2e 20 | 54 68 65 20 73 74 72 69 |conbar. |The stri|
|000014d0| 6e 67 20 22 21 53 68 65 | 6c 6c 22 20 72 65 66 65 |ng "!She|ll" refe|
|000014e0| 72 73 20 74 6f 20 74 68 | 65 20 6e 61 6d 65 20 6f |rs to th|e name o|
|000014f0| 66 20 61 20 73 70 72 69 | 74 65 20 65 69 74 68 65 |f a spri|te eithe|
|00001500| 72 20 69 6e 0d 03 fc 4b | f4 20 74 68 65 20 27 21 |r in...K|. the '!|
|00001510| 53 70 72 69 74 65 27 20 | 6f 72 20 27 53 70 72 69 |Sprite' |or 'Spri|
|00001520| 74 65 73 27 20 66 69 6c | 65 20 69 6e 20 74 68 65 |tes' fil|e in the|
|00001530| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 20 64 69 72 | applica|tion dir|
|00001540| 65 63 74 6f 72 79 2e 20 | 49 74 20 6d 75 73 74 0d |ectory. |It must.|
|00001550| 04 06 4c f4 20 68 61 76 | 65 20 74 68 65 20 73 61 |..L. hav|e the sa|
|00001560| 6d 65 20 6e 61 6d 65 20 | 61 73 20 74 68 65 20 61 |me name |as the a|
|00001570| 70 70 6c 69 63 61 74 69 | 6f 6e 20 64 69 72 65 63 |pplicati|on direc|
|00001580| 74 6f 72 79 20 74 6f 20 | 62 65 20 64 69 73 70 6c |tory to |be displ|
|00001590| 61 79 65 64 20 62 79 20 | 74 68 65 0d 04 10 4b f4 |ayed by |the...K.|
|000015a0| 20 74 68 65 20 46 69 6c | 65 72 2e 20 54 68 65 20 | the Fil|er. The |
|000015b0| 66 69 72 73 74 20 70 61 | 72 61 6d 65 74 65 72 20 |first pa|rameter |
|000015c0| 28 2d 31 29 20 6d 65 61 | 6e 73 20 27 72 69 67 68 |(-1) mea|ns 'righ|
|000015d0| 74 20 73 69 64 65 20 6f | 66 20 74 68 65 20 69 63 |t side o|f the ic|
|000015e0| 6f 6e 62 61 72 27 0d 04 | 1a 47 f4 20 75 73 65 20 |onbar'..|.G. use |
|000015f0| 2d 32 20 74 6f 20 70 6c | 61 63 65 20 74 68 65 20 |-2 to pl|ace the |
|00001600| 69 63 6f 6e 20 6f 6e 20 | 74 68 65 20 6c 65 66 74 |icon on |the left|
|00001610| 20 73 69 64 65 2e 20 54 | 68 69 73 20 72 6f 75 74 | side. T|his rout|
|00001620| 69 6e 65 20 77 69 6c 6c | 20 6f 6e 6c 79 0d 04 24 |ine will| only..$|
|00001630| 3b f4 20 70 6c 61 63 65 | 20 61 20 73 70 72 69 74 |;. place| a sprit|
|00001640| 65 20 6f 6e 20 74 68 65 | 20 69 63 6f 6e 62 61 72 |e on the| iconbar|
|00001650| 20 28 6e 6f 20 74 65 78 | 74 20 75 6e 64 65 72 6e | (no tex|t undern|
|00001660| 65 61 74 68 20 69 74 29 | 0d 04 2e 04 0d 04 38 37 |eath it)|......87|
|00001670| 73 69 63 6f 6e 3d a4 69 | 63 6f 6e 5f 63 72 65 61 |sicon=.i|con_crea|
|00001680| 74 65 28 2d 31 2c 30 2c | 30 2c 36 38 2c 36 38 2c |te(-1,0,|0,68,68,|
|00001690| 30 2c 30 2c 26 33 30 30 | 32 2c 22 21 53 68 65 6c |0,0,&300|2,"!Shel|
|000016a0| 6c 22 29 0d 04 42 04 0d | 04 4c 4c f4 20 2d 2d 2d |l")..B..|.LL. ---|
|000016b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000016c0| 2d 20 49 6e 69 74 69 61 | 6c 69 73 65 20 43 6f 6e |- Initia|lise Con|
|000016d0| 73 74 61 6e 74 73 20 2d | 2d 2d 2d 2d 2d 2d 2d 2d |stants -|--------|
|000016e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000016f0| 2d 2d 2d 0d 04 56 04 0d | 04 60 4c f4 20 2d 2d 2d |---..V..|.`L. ---|
|00001700| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001710| 2d 20 49 6e 69 74 69 61 | 6c 69 73 65 20 56 61 72 |- Initia|lise Var|
|00001720| 69 61 62 6c 65 73 20 2d | 2d 2d 2d 2d 2d 2d 2d 2d |iables -|--------|
|00001730| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001740| 2d 2d 2d 0d 04 6a 04 0d | 04 74 46 63 6c 61 69 6d |---..j..|.tFclaim|
|00001750| 71 75 65 72 79 24 3d 22 | 22 20 20 20 20 20 20 20 |query$="|" |
|00001760| 20 20 3a f4 20 4b 65 65 | 70 73 20 74 72 61 63 6b | :. Kee|ps track|
|00001770| 20 6f 66 20 77 68 6f 20 | 69 73 20 74 68 65 20 27 | of who |is the '|
|00001780| 6f 77 6e 65 72 27 20 6f | 66 20 74 68 65 0d 04 7e |owner' o|f the..~|
|00001790| 4b 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |K | |
|000017a0| 20 20 20 20 20 20 20 20 | 3a f4 20 27 71 75 65 72 | |:. 'quer|
|000017b0| 79 27 20 77 69 6e 64 6f | 77 2e 20 54 68 69 73 20 |y' windo|w. This |
|000017c0| 69 73 20 6e 65 63 65 73 | 73 61 72 79 20 62 65 63 |is neces|sary bec|
|000017d0| 61 75 73 65 20 74 68 65 | 0d 04 88 49 20 20 20 20 |ause the|...I |
|000017e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000017f0| 20 20 20 3a f4 20 73 61 | 6d 65 20 77 69 6e 64 6f | :. sa|me windo|
|00001800| 77 20 63 61 6e 20 75 73 | 65 64 20 66 6f 72 20 64 |w can us|ed for d|
|00001810| 69 66 66 65 72 65 6e 74 | 20 70 75 72 70 6f 73 65 |ifferent| purpose|
|00001820| 73 0d 04 92 49 20 20 20 | 20 20 20 20 20 20 20 20 |s...I | |
|00001830| 20 20 20 20 20 20 20 20 | 20 20 20 20 3a f4 20 61 | | :. a|
|00001840| 6e 64 20 74 68 65 72 65 | 66 6f 72 65 20 74 68 65 |nd there|fore the|
|00001850| 20 72 65 73 70 6f 6e 73 | 65 73 20 74 6f 20 6d 6f | respons|es to mo|
|00001860| 75 73 65 20 63 6c 69 63 | 6b 73 0d 04 9c 49 20 20 |use clic|ks...I |
|00001870| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001880| 20 20 20 20 20 3a f4 20 | 6d 61 79 20 62 65 20 64 | :. |may be d|
|00001890| 69 66 66 65 72 65 6e 74 | 2e 20 53 65 65 20 50 52 |ifferent|. See PR|
|000018a0| 4f 43 63 6c 69 63 6b 71 | 75 65 72 79 20 66 6f 72 |OCclickq|uery for|
|000018b0| 20 61 6e 0d 04 a6 25 20 | 20 20 20 20 20 20 20 20 | an...% | |
|000018c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 3a f4 | | :.|
|000018d0| 20 65 78 61 6d 70 6c 65 | 0d 04 b0 3b 63 6c 61 69 | example|...;clai|
|000018e0| 6d 6d 65 6e 75 24 20 3d | 22 22 20 20 20 20 20 20 |mmenu$ =|"" |
|000018f0| 20 20 20 3a f4 20 53 65 | 74 20 62 79 20 74 68 65 | :. Se|t by the|
|00001900| 20 6d 65 6e 75 5f 78 78 | 78 78 20 72 6f 75 74 69 | menu_xx|xx routi|
|00001910| 6e 65 73 0d 04 ba 3f 63 | 6c 61 69 6d 64 72 61 67 |nes...?c|laimdrag|
|00001920| 24 20 3d 22 22 20 20 20 | 20 20 20 20 20 20 3a f4 |$ ="" | :.|
|00001930| 20 53 65 74 20 62 79 20 | 74 68 65 20 75 73 65 72 | Set by |the user|
|00001940| 64 72 61 67 5f 78 78 78 | 78 20 72 6f 75 74 69 6e |drag_xxx|x routin|
|00001950| 65 73 0d 04 c4 47 63 6c | 6f 73 65 64 6f 77 6e 20 |es...Gcl|osedown |
|00001960| 20 20 20 20 20 20 3d a3 | 20 3a f4 20 53 65 74 20 | =.| :. Set |
|00001970| 74 68 69 73 20 74 6f 20 | 54 52 55 45 20 77 68 65 |this to |TRUE whe|
|00001980| 6e 20 79 6f 75 20 77 61 | 6e 74 20 74 68 65 20 70 |n you wa|nt the p|
|00001990| 72 6f 67 72 61 6d 20 74 | 6f 0d 04 ce 21 20 20 20 |rogram t|o...! |
|000019a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000019b0| 20 20 20 20 3a f4 20 65 | 6e 64 0d 04 d8 43 6f 70 | :. e|nd...Cop|
|000019c0| 65 6e 25 20 20 20 20 20 | 20 20 20 20 20 20 3d a3 |en% | =.|
|000019d0| 20 3a f4 20 55 73 65 64 | 20 74 6f 20 64 65 63 69 | :. Used| to deci|
|000019e0| 64 65 20 77 68 65 74 68 | 65 72 20 74 68 65 20 6d |de wheth|er the m|
|000019f0| 61 69 6e 20 77 69 6e 64 | 6f 77 20 6f 66 0d 04 e2 |ain wind|ow of...|
|00001a00| 4a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |J | |
|00001a10| 20 20 20 20 20 20 20 20 | 3a f4 20 74 68 65 20 61 | |:. the a|
|00001a20| 70 70 6c 69 63 61 74 69 | 6f 6e 20 69 73 20 6f 70 |pplicati|on is op|
|00001a30| 65 6e 2e 20 4e 61 74 75 | 72 61 6c 6c 79 20 74 68 |en. Natu|rally th|
|00001a40| 69 73 20 6d 75 73 74 0d | 04 ec 4b 20 20 20 20 20 |is must.|..K |
|00001a50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001a60| 20 20 3a f4 20 62 65 20 | 73 65 74 20 74 6f 20 74 | :. be |set to t|
|00001a70| 72 75 65 20 77 68 65 6e | 20 74 68 65 20 77 69 6e |rue when| the win|
|00001a80| 64 6f 77 20 69 73 20 6f | 70 65 6e 65 64 2c 20 61 |dow is o|pened, a|
|00001a90| 6e 64 0d 04 f6 36 20 20 | 20 20 20 20 20 20 20 20 |nd...6 | |
|00001aa0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 3a f4 20 | | :. |
|00001ab0| 46 41 4c 53 45 20 77 68 | 65 6e 20 69 74 20 69 73 |FALSE wh|en it is|
|00001ac0| 20 63 6c 6f 73 65 64 21 | 0d 05 00 44 63 68 61 6e | closed!|...Dchan|
|00001ad0| 67 65 64 25 20 20 20 20 | 20 20 20 20 3d a3 20 3a |ged% | =. :|
|00001ae0| f4 20 55 73 65 64 20 74 | 6f 20 6b 65 65 70 20 74 |. Used t|o keep t|
|00001af0| 72 61 63 6b 20 6f 66 20 | 77 68 65 74 68 65 72 20 |rack of |whether |
|00001b00| 74 68 65 20 64 61 74 61 | 20 68 61 73 0d 05 0a 4b |the data| has...K|
|00001b10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001b20| 20 20 20 20 20 20 20 3a | f4 20 62 65 65 6e 20 63 | :|. been c|
|00001b30| 68 61 6e 67 65 64 2e 20 | 43 61 6c 6c 20 50 52 4f |hanged. |Call PRO|
|00001b40| 43 66 69 6c 65 5f 63 68 | 61 6e 67 65 64 28 29 20 |Cfile_ch|anged() |
|00001b50| 77 68 65 6e 20 69 74 0d | 05 14 47 20 20 20 20 20 |when it.|..G |
|00001b60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001b70| 20 20 3a f4 20 68 61 73 | 2e 20 42 75 74 20 69 66 | :. has|. But if|
|00001b80| 20 74 68 65 20 70 72 6f | 67 72 61 6d 20 64 6f 65 | the pro|gram doe|
|00001b90| 73 20 6e 6f 74 20 75 73 | 65 20 64 61 74 61 0d 05 |s not us|e data..|
|00001ba0| 1e 48 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.H | |
|00001bb0| 20 20 20 20 20 20 20 20 | 20 3a f4 20 66 69 6c 65 | | :. file|
|00001bc0| 73 20 6a 75 73 74 20 69 | 67 6e 6f 72 65 20 74 68 |s just i|gnore th|
|00001bd0| 69 73 20 76 61 72 69 61 | 62 6c 65 20 62 75 74 20 |is varia|ble but |
|00001be0| 64 6f 20 6e 6f 74 0d 05 | 28 47 20 20 20 20 20 20 |do not..|(G |
|00001bf0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001c00| 20 3a f4 20 64 65 6c 65 | 74 65 20 69 74 20 61 73 | :. dele|te it as|
|00001c10| 20 74 68 65 20 70 72 6f | 67 72 61 6d 20 63 68 65 | the pro|gram che|
|00001c20| 63 6b 73 20 69 74 20 62 | 65 66 6f 72 65 0d 05 32 |cks it b|efore..2|
|00001c30| 26 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |& | |
|00001c40| 20 20 20 20 20 20 20 20 | 3a f4 20 65 78 69 74 69 | |:. exiti|
|00001c50| 6e 67 21 0d 05 3c 04 0d | 05 46 4c f4 20 2d 2d 2d |ng!..<..|.FL. ---|
|00001c60| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001c70| 2d 20 49 6e 69 74 69 61 | 6c 69 73 65 20 41 72 72 |- Initia|lise Arr|
|00001c80| 61 79 73 20 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |ays ----|--------|
|00001c90| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001ca0| 2d 2d 2d 0d 05 50 04 0d | 05 5a 42 de 20 74 65 78 |---..P..|.ZB. tex|
|00001cb0| 74 24 28 35 30 29 2c 73 | 65 74 74 69 6e 67 28 35 |t$(50),s|etting(5|
|00001cc0| 30 29 2c 66 6c 61 67 73 | 28 35 30 29 20 3a f4 20 |0),flags|(50) :. |
|00001cd0| 75 73 65 64 20 62 79 20 | 74 68 65 20 6d 65 6e 75 |used by |the menu|
|00001ce0| 20 72 6f 75 74 69 6e 65 | 73 0d 05 64 42 de 20 73 | routine|s..dB. s|
|00001cf0| 75 62 6d 65 6e 75 28 35 | 30 29 2c 72 65 66 28 35 |ubmenu(5|0),ref(5|
|00001d00| 30 29 2c 6d 65 6e 75 70 | 6f 73 28 32 30 29 20 3a |0),menup|os(20) :|
|00001d10| f4 20 75 73 65 64 20 62 | 79 20 74 68 65 20 6d 65 |. used b|y the me|
|00001d20| 6e 75 20 72 6f 75 74 69 | 6e 65 73 0d 05 6e 04 0d |nu routi|nes..n..|
|00001d30| 05 78 4c f4 20 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |.xL. ---|--------|
|00001d40| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 20 49 6e 69 74 69 61 |--------|- Initia|
|00001d50| 6c 69 73 65 20 53 74 6f | 72 61 67 65 20 2d 2d 2d |lise Sto|rage ---|
|00001d60| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001d70| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 0d 05 82 04 0d |--------|---.....|
|00001d80| 05 8c 0f de 20 6d 65 6e | 75 25 20 35 31 32 0d 05 |.... men|u% 512..|
|00001d90| 96 46 de 20 69 6e 64 69 | 72 65 63 74 25 20 26 32 |.F. indi|rect% &2|
|00001da0| 30 30 30 20 3a f4 20 55 | 73 65 64 20 66 6f 72 20 |000 :. U|sed for |
|00001db0| 69 6e 64 69 72 65 63 74 | 65 64 20 69 63 6f 6e 73 |indirect|ed icons|
|00001dc0| 2e 20 4d 61 6b 65 20 74 | 68 69 73 20 61 72 65 61 |. Make t|his area|
|00001dd0| 20 42 49 47 0d 05 a0 48 | 20 20 20 20 20 20 20 20 | BIG...H| |
|00001de0| 20 20 20 20 20 20 20 20 | 20 20 20 20 3a f4 20 77 | | :. w|
|00001df0| 68 69 6c 65 20 64 65 76 | 65 6c 6f 70 69 6e 67 20 |hile dev|eloping |
|00001e00| 74 68 65 20 70 72 6f 67 | 72 61 6d 2c 20 63 75 74 |the prog|ram, cut|
|00001e10| 74 69 6e 67 20 69 74 20 | 64 6f 77 6e 0d 05 aa 4b |ting it |down...K|
|00001e20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001e30| 20 20 20 20 3a f4 20 77 | 68 65 6e 20 69 74 20 69 | :. w|hen it i|
|00001e40| 73 20 66 69 6e 69 73 68 | 65 64 2e 20 41 67 61 69 |s finish|ed. Agai|
|00001e50| 6e 20 79 6f 75 27 6c 6c | 20 6b 6e 6f 77 20 77 68 |n you'll| know wh|
|00001e60| 65 6e 20 69 74 27 73 0d | 05 b4 40 20 20 20 20 20 |en it's.|..@ |
|00001e70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 3a | | :|
|00001e80| f4 20 74 6f 6f 20 73 6d | 61 6c 6c 20 27 63 6f 73 |. too sm|all 'cos|
|00001e90| 20 74 68 65 20 70 72 6f | 67 72 61 6d 20 77 6f 6e | the pro|gram won|
|00001ea0| 27 74 20 72 75 6e 21 0d | 05 be 3b de 20 6d 73 67 |'t run!.|..;. msg|
|00001eb0| 62 6c 6b 25 20 32 35 36 | 20 20 20 20 20 3a f4 20 |blk% 256| :. |
|00001ec0| 55 73 65 64 20 66 6f 72 | 20 69 6e 74 65 72 20 74 |Used for| inter t|
|00001ed0| 61 73 6b 20 63 6f 6d 6d | 75 6e 69 63 61 74 69 6f |ask comm|unicatio|
|00001ee0| 6e 73 0d 05 c8 04 0d 05 | d2 4c f4 20 2d 2d 2d 2d |ns......|.L. ----|
|00001ef0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001f00| 20 4d 69 73 63 65 6c 6c | 65 61 6e 6f 75 73 20 49 | Miscell|eanous I|
|00001f10| 6e 69 74 69 61 6c 69 73 | 61 74 69 6f 6e 20 2d 2d |nitialis|ation --|
|00001f20| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001f30| 2d 2d 0d 05 dc 04 0d 05 | e6 25 69 70 74 72 25 3d |--......|.%iptr%=|
|00001f40| 69 6e 64 69 72 65 63 74 | 25 3a 69 65 6e 64 25 3d |indirect|%:iend%=|
|00001f50| 69 70 74 72 25 2b 26 32 | 30 30 30 0d 05 f0 04 0d |iptr%+&2|000.....|
|00001f60| 05 fa 4c f4 20 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |..L. ---|--------|
|00001f70| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 20 41 70 70 6c 69 63 |--------|- Applic|
|00001f80| 61 74 69 6f 6e 20 49 6e | 69 74 69 61 6c 69 73 61 |ation In|itialisa|
|00001f90| 74 69 6f 6e 20 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |tion ---|--------|
|00001fa0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 0d 06 04 04 0d |--------|---.....|
|00001fb0| 06 0e 4c f4 20 49 6e 69 | 74 69 61 6c 69 73 61 74 |..L. Ini|tialisat|
|00001fc0| 69 6f 6e 20 73 74 75 66 | 66 20 77 68 69 63 68 20 |ion stuf|f which |
|00001fd0| 69 73 20 75 6e 69 71 75 | 65 20 74 6f 20 79 6f 75 |is uniqu|e to you|
|00001fe0| 72 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 2e 20 49 |r applic|ation. I|
|00001ff0| 6e 20 74 68 69 73 20 63 | 61 73 65 0d 06 18 21 f4 |n this c|ase...!.|
|00002000| 20 69 74 20 64 6f 65 73 | 20 6e 6f 74 20 61 6d 6f | it does| not amo|
|00002010| 75 6e 74 20 74 6f 20 6d | 75 63 68 21 0d 06 22 04 |unt to m|uch!..".|
|00002020| 0d 06 2c 14 6d 61 78 5f | 66 69 65 6c 64 73 25 20 |..,.max_|fields% |
|00002030| 20 3d 20 35 0d 06 36 14 | 6d 61 78 5f 72 65 63 73 | = 5..6.|max_recs|
|00002040| 25 20 20 20 20 3d 31 30 | 0d 06 40 34 6d 61 74 63 |% =10|..@4matc|
|00002050| 68 25 20 20 20 20 20 20 | 20 3d a3 20 20 20 20 3a |h% | =. :|
|00002060| f4 20 55 73 65 64 20 69 | 6e 20 74 68 65 20 73 65 |. Used i|n the se|
|00002070| 61 72 63 68 20 72 6f 75 | 74 69 6e 65 0d 06 4a 23 |arch rou|tine..J#|
|00002080| de 20 66 69 65 6c 64 24 | 28 6d 61 78 5f 66 69 65 |. field$|(max_fie|
|00002090| 6c 64 73 25 2c 6d 61 78 | 5f 72 65 63 73 25 29 0d |lds%,max|_recs%).|
|000020a0| 06 54 47 6d 61 69 6e 77 | 5f 74 69 74 6c 65 24 20 |.TGmainw|_title$ |
|000020b0| 3d 20 22 53 68 65 6c 6c | 22 20 3a f4 20 57 65 20 |= "Shell|" :. We |
|000020c0| 6e 65 65 64 20 61 20 73 | 74 72 69 6e 67 20 68 65 |need a s|tring he|
|000020d0| 72 65 20 66 6f 72 20 74 | 68 65 20 6d 61 69 6e 20 |re for t|he main |
|000020e0| 77 69 6e 64 6f 77 0d 06 | 5e 4b 20 20 20 20 20 20 |window..|^K |
|000020f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002100| 20 3a f4 20 74 69 74 6c | 65 20 61 73 20 77 65 20 | :. titl|e as we |
|00002110| 77 69 6c 6c 20 62 65 20 | 61 64 64 69 6e 67 20 22 |will be |adding "|
|00002120| 20 2a 22 20 74 6f 20 69 | 74 20 74 6f 20 73 68 6f | *" to i|t to sho|
|00002130| 77 0d 06 68 4c 20 20 20 | 20 20 20 20 20 20 20 20 |w..hL | |
|00002140| 20 20 20 20 20 20 20 20 | 20 20 20 20 3a f4 20 74 | | :. t|
|00002150| 68 65 20 64 61 74 61 20 | 66 69 6c 65 20 68 61 73 |he data |file has|
|00002160| 20 62 65 65 6e 20 65 64 | 69 74 65 64 2e 20 44 6f | been ed|ited. Do|
|00002170| 6e 27 74 20 66 6f 72 67 | 65 74 20 74 6f 0d 06 72 |n't forg|et to..r|
|00002180| 4b 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |K | |
|00002190| 20 20 20 20 20 20 20 20 | 3a f4 20 63 68 61 6e 67 | |:. chang|
|000021a0| 65 20 69 74 20 69 6e 20 | 74 68 65 20 74 65 6d 70 |e it in |the temp|
|000021b0| 6c 61 74 65 20 66 69 6c | 65 20 61 73 20 77 65 6c |late fil|e as wel|
|000021c0| 6c 20 69 66 20 79 6f 75 | 0d 06 7c 34 20 20 20 20 |l if you|..|4 |
|000021d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000021e0| 20 20 20 3a f4 20 77 61 | 6e 74 20 61 20 64 69 66 | :. wa|nt a dif|
|000021f0| 66 65 72 65 6e 74 20 74 | 69 74 6c 65 0d 06 86 4a |ferent t|itle...J|
|00002200| 63 75 72 72 65 6e 74 5f | 72 65 63 25 20 3d 20 31 |current_|rec% = 1|
|00002210| 20 20 20 20 20 20 20 3a | f4 20 54 68 65 20 6e 75 | :|. The nu|
|00002220| 6d 62 65 72 20 6f 66 20 | 74 68 65 20 63 75 72 72 |mber of |the curr|
|00002230| 65 6e 74 6c 79 20 64 69 | 73 70 6c 61 79 65 64 20 |ently di|splayed |
|00002240| 72 65 63 6f 72 64 0d 06 | 90 45 6d 79 5f 66 69 6c |record..|.Emy_fil|
|00002250| 65 74 79 70 65 25 20 3d | 20 26 32 30 30 20 20 20 |etype% =| &200 |
|00002260| 20 3a f4 20 54 68 65 20 | 66 69 6c 65 74 79 70 65 | :. The |filetype|
|00002270| 20 74 68 65 20 61 70 70 | 6c 69 63 61 74 69 6f 6e | the app|lication|
|00002280| 20 27 6f 77 6e 73 27 20 | 61 6e 64 0d 06 9a 43 20 | 'owns' |and...C |
|00002290| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000022a0| 20 20 20 20 20 20 3a f4 | 20 72 65 73 70 6f 6e 64 | :.| respond|
|000022b0| 73 20 74 6f 20 77 68 65 | 6e 20 74 68 65 20 64 61 |s to whe|n the da|
|000022c0| 74 61 66 69 6c 65 20 69 | 63 6f 6e 20 69 73 0d 06 |tafile i|con is..|
|000022d0| a4 49 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.I | |
|000022e0| 20 20 20 20 20 20 20 20 | 20 3a f4 20 64 6f 75 62 | | :. doub|
|000022f0| 6c 65 20 63 6c 69 63 6b | 65 64 2e 20 49 66 20 79 |le click|ed. If y|
|00002300| 6f 75 20 63 68 61 6e 67 | 65 20 74 68 69 73 20 79 |ou chang|e this y|
|00002310| 6f 75 20 6d 75 73 74 0d | 06 ae 4b 20 20 20 20 20 |ou must.|..K |
|00002320| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002330| 20 20 3a f4 20 63 68 61 | 6e 67 65 20 74 68 65 20 | :. cha|nge the |
|00002340| 2a 53 65 74 20 52 75 6e | 40 54 79 70 65 20 76 61 |*Set Run|@Type va|
|00002350| 72 69 61 62 6c 65 20 69 | 6e 20 74 68 65 20 21 52 |riable i|n the !R|
|00002360| 55 4e 0d 06 b8 4a 20 20 | 20 20 20 20 20 20 20 20 |UN...J | |
|00002370| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 3a f4 20 | | :. |
|00002380| 66 69 6c 65 20 61 6e 64 | 20 74 68 65 20 2a 53 65 |file and| the *Se|
|00002390| 74 20 46 69 6c 65 24 40 | 54 79 70 65 5f 78 78 78 |t File$@|Type_xxx|
|000023a0| 20 6c 69 6e 65 20 69 6e | 20 74 68 65 0d 06 c2 28 | line in| the...(|
|000023b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000023c0| 20 20 20 20 20 20 20 3a | f4 20 21 42 6f 6f 74 20 | :|. !Boot |
|000023d0| 66 69 6c 65 0d 06 cc 39 | 63 75 72 72 65 6e 74 5f |file...9|current_|
|000023e0| 66 69 6c 65 24 20 3d 20 | 22 22 20 20 20 20 20 3a |file$ = |"" :|
|000023f0| f4 20 4e 61 6d 65 20 6f | 66 20 74 68 65 20 6c 6f |. Name o|f the lo|
|00002400| 61 64 65 64 20 64 61 74 | 61 66 69 6c 65 0d 06 d6 |aded dat|afile...|
|00002410| 33 74 69 63 6b 25 20 20 | 20 20 20 20 20 20 20 3d |3tick% | =|
|00002420| 20 a3 20 20 3a f4 20 55 | 73 65 64 20 69 6e 20 74 | . :. U|sed in t|
|00002430| 68 65 20 73 75 62 2d 6d | 65 6e 75 20 64 65 6d 6f |he sub-m|enu demo|
|00002440| 0d 06 e0 33 73 68 61 64 | 65 64 25 20 20 20 20 20 |...3shad|ed% |
|00002450| 20 20 3d 20 a3 20 20 3a | f4 20 55 73 65 64 20 69 | = . :|. Used i|
|00002460| 6e 20 74 68 65 20 73 75 | 62 2d 6d 65 6e 75 20 64 |n the su|b-menu d|
|00002470| 65 6d 6f 0d 06 ea 44 de | 20 62 75 66 66 65 72 31 |emo...D.| buffer1|
|00002480| 25 20 31 36 2c 62 75 66 | 66 65 72 32 25 20 31 36 |% 16,buf|fer2% 16|
|00002490| 2c 62 75 66 66 65 72 33 | 25 20 31 36 20 3a f4 20 |,buffer3|% 16 :. |
|000024a0| 69 6e 64 69 72 65 63 74 | 65 64 20 6d 65 6e 75 20 |indirect|ed menu |
|000024b0| 62 75 66 66 65 72 73 0d | 06 f4 45 24 62 75 66 66 |buffers.|..E$buff|
|000024c0| 65 72 31 25 3d 22 53 75 | 62 2d 4d 65 6e 75 20 44 |er1%="Su|b-Menu D|
|000024d0| 65 6d 6f 22 3a 24 62 75 | 66 66 65 72 32 25 3d 22 |emo":$bu|ffer2%="|
|000024e0| 57 72 69 74 65 61 62 6c | 65 20 44 65 6d 6f 22 3a |Writeabl|e Demo":|
|000024f0| 24 62 75 66 66 65 72 33 | 25 3d 22 22 0d 06 fe 3e |$buffer3|%=""...>|
|00002500| de 20 66 64 61 74 65 25 | 20 35 2c 66 62 75 66 66 |. fdate%| 5,fbuff|
|00002510| 65 72 25 20 32 38 20 20 | 3a f4 20 55 73 65 64 20 |er% 28 |:. Used |
|00002520| 62 79 20 74 68 65 20 27 | 66 69 6c 65 5f 64 61 74 |by the '|file_dat|
|00002530| 65 27 20 72 6f 75 74 69 | 6e 65 0d 07 08 04 0d 07 |e' routi|ne......|
|00002540| 12 4c f4 20 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |.L. ----|--------|
|00002550| 2d 2d 2d 2d 2d 2d 2d 2d | 20 50 69 63 6b 20 55 70 |--------| Pick Up|
|00002560| 20 46 69 6c 65 20 4e 61 | 6d 65 20 46 72 6f 6d 20 | File Na|me From |
|00002570| 43 6f 6d 6d 61 6e 64 20 | 4c 69 6e 65 20 2d 2d 2d |Command |Line ---|
|00002580| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 0d 07 1c 04 0d 07 |--------|--......|
|00002590| 26 44 f4 20 54 68 69 73 | 20 73 65 63 74 69 6f 6e |&D. This| section|
|000025a0| 20 69 73 20 75 73 65 64 | 20 77 68 65 6e 20 74 68 | is used| when th|
|000025b0| 65 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 69 73 |e applic|ation is|
|000025c0| 20 73 74 61 72 74 65 64 | 20 62 79 20 64 6f 75 62 | started| by doub|
|000025d0| 6c 65 0d 07 30 47 f4 20 | 63 6c 69 63 6b 69 6e 67 |le..0G. |clicking|
|000025e0| 20 6f 6e 20 61 20 64 61 | 74 61 66 69 6c 65 20 6f | on a da|tafile o|
|000025f0| 66 20 74 68 65 20 74 79 | 70 65 20 72 65 63 6f 67 |f the ty|pe recog|
|00002600| 6e 69 73 65 64 20 62 79 | 20 74 68 65 20 61 70 70 |nised by| the app|
|00002610| 6c 69 63 61 74 69 6f 6e | 2e 0d 07 3a 49 f4 20 41 |lication|...:I. A|
|00002620| 6c 6c 20 79 6f 75 20 6e | 65 65 64 20 74 6f 20 6b |ll you n|eed to k|
|00002630| 6e 6f 77 20 61 62 6f 75 | 74 20 74 68 69 73 20 70 |now abou|t this p|
|00002640| 61 72 74 20 69 73 20 74 | 68 61 74 20 69 66 20 74 |art is t|hat if t|
|00002650| 68 65 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 77 |he appli|cation w|
|00002660| 61 73 0d 07 44 47 f4 20 | 73 74 61 72 74 65 64 20 |as..DG. |started |
|00002670| 62 79 20 64 6f 75 62 6c | 65 20 63 6c 69 63 6b 69 |by doubl|e clicki|
|00002680| 6e 67 20 6f 6e 20 61 20 | 66 69 6c 65 20 74 68 65 |ng on a |file the|
|00002690| 6e 20 63 75 72 72 65 6e | 74 5f 66 69 6c 65 24 20 |n curren|t_file$ |
|000026a0| 69 73 20 73 65 74 20 74 | 6f 0d 07 4e 3e f4 20 74 |is set t|o..N>. t|
|000026b0| 68 65 20 6e 61 6d 65 20 | 6f 66 20 74 68 65 20 66 |he name |of the f|
|000026c0| 69 6c 65 2c 20 6f 74 68 | 65 72 77 69 73 65 20 63 |ile, oth|erwise c|
|000026d0| 75 72 72 65 6e 74 5f 66 | 69 6c 65 24 20 65 71 75 |urrent_f|ile$ equ|
|000026e0| 61 6c 73 20 22 22 2e 0d | 07 58 04 0d 07 62 22 c8 |als ""..|.X...b".|
|000026f0| 99 20 22 4f 53 5f 47 65 | 74 45 6e 76 22 20 b8 20 |. "OS_Ge|tEnv" . |
|00002700| 63 75 72 72 65 6e 74 5f | 66 69 6c 65 24 0d 07 6c |current_|file$..l|
|00002710| 14 61 24 3d 63 75 72 72 | 65 6e 74 5f 66 69 6c 65 |.a$=curr|ent_file|
|00002720| 24 0d 07 76 31 70 3d a7 | 63 75 72 72 65 6e 74 5f |$..v1p=.|current_|
|00002730| 66 69 6c 65 24 2c 22 22 | 22 22 2c a7 63 75 72 72 |file$,""|"",.curr|
|00002740| 65 6e 74 5f 66 69 6c 65 | 24 2c 22 22 22 22 29 2b |ent_file|$,"""")+|
|00002750| 31 29 0d 07 80 25 63 75 | 72 72 65 6e 74 5f 66 69 |1)...%cu|rrent_fi|
|00002760| 6c 65 24 3d c1 63 75 72 | 72 65 6e 74 5f 66 69 6c |le$=.cur|rent_fil|
|00002770| 65 24 2c 70 2b 31 29 0d | 07 8a 1c c8 95 20 c0 63 |e$,p+1).|..... .c|
|00002780| 75 72 72 65 6e 74 5f 66 | 69 6c 65 24 2c 31 29 3d |urrent_f|ile$,1)=|
|00002790| 22 20 22 0d 07 94 25 20 | 20 63 75 72 72 65 6e 74 |" "...% | current|
|000027a0| 5f 66 69 6c 65 24 3d c1 | 63 75 72 72 65 6e 74 5f |_file$=.|current_|
|000027b0| 66 69 6c 65 24 2c 32 29 | 0d 07 9e 05 ce 0d 07 a8 |file$,2)|........|
|000027c0| 04 0d 07 b2 4c f4 20 2d | 2d 2d 2d 2d 2d 2d 2d 2d |....L. -|--------|
|000027d0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 20 4c 6f 61 64 |--------|--- Load|
|000027e0| 20 54 65 6d 70 6c 61 74 | 65 20 46 69 6c 65 73 20 | Templat|e Files |
|000027f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002800| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 0d 07 bc |--------|-----...|
|00002810| 04 0d 07 c6 47 f4 20 54 | 68 69 73 20 21 53 68 65 |....G. T|his !She|
|00002820| 6c 6c 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 68 |ll appli|cation h|
|00002830| 61 73 20 61 20 27 54 65 | 6d 70 6c 61 74 65 73 27 |as a 'Te|mplates'|
|00002840| 20 66 69 6c 65 20 77 68 | 69 63 68 20 69 6e 63 6c | file wh|ich incl|
|00002850| 75 64 65 73 20 74 68 65 | 0d 07 d0 4a f4 20 73 74 |udes the|...J. st|
|00002860| 61 6e 64 61 72 64 20 52 | 49 53 43 2d 4f 53 20 74 |andard R|ISC-OS t|
|00002870| 65 6d 70 6c 61 74 65 73 | 20 77 68 69 63 68 20 73 |emplates| which s|
|00002880| 68 6f 75 6c 64 20 62 65 | 20 75 73 65 64 20 62 79 |hould be| used by|
|00002890| 20 61 6c 6c 20 61 70 70 | 6c 69 63 61 74 69 6f 6e | all app|lication|
|000028a0| 73 2e 0d 07 da 49 f4 20 | 49 66 20 79 6f 75 20 6c |s....I. |If you l|
|000028b0| 6f 61 64 20 69 74 20 69 | 6e 74 6f 20 21 46 6f 72 |oad it i|nto !For|
|000028c0| 6d 45 64 20 79 6f 75 20 | 77 69 6c 6c 20 66 69 6e |mEd you |will fin|
|000028d0| 64 20 74 68 65 6d 20 77 | 69 74 68 20 74 68 65 20 |d them w|ith the |
|000028e0| 69 64 65 6e 74 69 66 69 | 65 72 73 0d 07 e4 36 f4 |identifi|ers...6.|
|000028f0| 20 27 70 72 6f 67 49 6e | 66 6f 27 2c 20 27 71 75 | 'progIn|fo', 'qu|
|00002900| 65 72 79 27 2c 20 27 66 | 69 6c 65 69 6e 66 6f 27 |ery', 'f|ileinfo'|
|00002910| 20 61 6e 64 20 27 78 66 | 65 72 5f 73 65 6e 64 27 | and 'xf|er_send'|
|00002920| 2e 0d 07 ee 04 0d 07 f8 | 2f f4 20 54 68 65 20 73 |........|/. The s|
|00002930| 74 61 6e 64 61 72 64 20 | 77 69 6e 64 6f 77 73 20 |tandard |windows |
|00002940| 61 72 65 20 75 73 65 64 | 20 61 73 20 66 6f 6c 6c |are used| as foll|
|00002950| 6f 77 73 3a 0d 08 02 04 | 0d 08 0c 47 f4 20 20 20 |ows:....|...G. |
|00002960| 70 72 6f 67 49 6e 66 6f | 20 20 2d 20 67 69 76 65 |progInfo| - give|
|00002970| 73 20 74 68 65 20 6e 61 | 6d 65 20 6f 66 20 74 68 |s the na|me of th|
|00002980| 65 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 2c 20 74 |e applic|ation, t|
|00002990| 68 65 20 70 75 72 70 6f | 73 65 2c 20 74 68 65 0d |he purpo|se, the.|
|000029a0| 08 16 4b f4 20 20 20 20 | 20 20 20 20 20 20 20 20 |..K. | |
|000029b0| 20 20 20 61 75 74 68 6f | 72 20 61 6e 64 20 74 68 | autho|r and th|
|000029c0| 65 20 76 65 72 73 69 6f | 6e 20 6e 75 6d 62 65 72 |e versio|n number|
|000029d0| 2e 20 41 70 70 65 61 72 | 73 20 77 68 65 6e 20 74 |. Appear|s when t|
|000029e0| 68 65 20 70 6f 69 6e 74 | 65 72 0d 08 20 45 f4 20 |he point|er.. E. |
|000029f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 69 73 | | is|
|00002a00| 20 6d 6f 76 65 64 20 74 | 6f 20 74 68 65 20 72 69 | moved t|o the ri|
|00002a10| 67 68 74 20 6f 66 20 74 | 68 65 20 27 49 6e 66 6f |ght of t|he 'Info|
|00002a20| 27 20 6f 70 74 69 6f 6e | 20 6f 6e 20 74 68 65 0d |' option| on the.|
|00002a30| 08 2a 47 f4 20 20 20 20 | 20 20 20 20 20 20 20 20 |.*G. | |
|00002a40| 20 20 20 69 63 6f 6e 62 | 61 72 20 6d 65 6e 75 2e | iconb|ar menu.|
|00002a50| 20 54 68 65 72 65 20 73 | 68 6f 75 6c 64 20 61 6c | There s|hould al|
|00002a60| 73 6f 20 62 65 20 61 6e | 20 27 49 6e 66 6f 27 20 |so be an| 'Info' |
|00002a70| 6f 70 74 69 6f 6e 0d 08 | 34 43 f4 20 20 20 20 20 |option..|4C. |
|00002a80| 20 20 20 20 20 20 20 20 | 20 20 61 74 20 74 6f 70 | | at top|
|00002a90| 20 6f 66 20 74 68 65 20 | 6d 61 69 6e 20 77 69 6e | of the |main win|
|00002aa0| 64 6f 77 20 6d 65 6e 75 | 20 61 63 63 6f 72 64 69 |dow menu| accordi|
|00002ab0| 6e 67 20 74 6f 20 74 68 | 65 0d 08 3e 32 f4 20 20 |ng to th|e..>2. |
|00002ac0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 52 49 53 | | RIS|
|00002ad0| 43 2d 4f 53 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |C-OS app|lication|
|00002ae0| 20 67 75 69 64 65 6c 69 | 6e 65 73 0d 08 48 49 f4 | guideli|nes..HI.|
|00002af0| 20 20 20 71 75 65 72 79 | 20 20 20 20 20 2d 20 61 | query| - a|
|00002b00| 20 71 75 65 73 74 69 6f | 6e 20 77 69 6e 64 6f 77 | questio|n window|
|00002b10| 20 63 6f 6e 73 69 73 74 | 69 6e 67 20 6f 66 20 73 | consist|ing of s|
|00002b20| 65 76 65 72 61 6c 20 6c | 69 6e 65 73 20 6f 66 20 |everal l|ines of |
|00002b30| 74 65 78 74 0d 08 52 2f | f4 20 20 20 20 20 20 20 |text..R/|. |
|00002b40| 20 20 20 20 20 20 20 20 | 61 6e 64 20 27 43 61 6e | |and 'Can|
|00002b50| 63 65 6c 27 20 61 6e 64 | 20 27 4f 6b 27 20 69 63 |cel' and| 'Ok' ic|
|00002b60| 6f 6e 73 0d 08 5c 46 f4 | 20 20 20 66 69 6c 65 49 |ons..\F.| fileI|
|00002b70| 6e 66 6f 20 20 2d 20 67 | 69 76 65 73 20 64 65 74 |nfo - g|ives det|
|00002b80| 61 69 6c 73 20 6f 6e 20 | 74 68 65 20 66 69 6c 65 |ails on |the file|
|00002b90| 20 6c 6f 61 64 65 64 20 | 6f 72 20 63 72 65 61 74 | loaded |or creat|
|00002ba0| 65 64 20 62 79 20 74 68 | 65 0d 08 66 1b f4 20 20 |ed by th|e..f.. |
|00002bb0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 70 72 6f | | pro|
|00002bc0| 67 72 61 6d 0d 08 70 2b | f4 20 20 20 78 66 65 72 |gram..p+|. xfer|
|00002bd0| 5f 73 65 6e 64 20 2d 20 | 74 68 65 20 52 49 53 43 |_send - |the RISC|
|00002be0| 2d 4f 53 20 73 61 76 65 | 20 77 69 6e 64 6f 77 0d |-OS save| window.|
|00002bf0| 08 7a 04 0d 08 84 4c f4 | 20 4e 6f 74 65 20 74 68 |.z....L.| Note th|
|00002c00| 61 74 20 74 68 65 20 70 | 6f 73 69 74 69 6f 6e 20 |at the p|osition |
|00002c10| 6f 66 20 74 68 65 20 27 | 71 75 65 72 79 27 20 77 |of the '|query' w|
|00002c20| 69 6e 64 6f 77 20 69 73 | 20 73 65 74 20 69 6e 20 |indow is| set in |
|00002c30| 74 68 65 20 27 54 65 6d | 70 6c 61 74 65 73 27 0d |the 'Tem|plates'.|
|00002c40| 08 8e 46 f4 20 66 69 6c | 65 2e 20 54 6f 20 63 68 |..F. fil|e. To ch|
|00002c50| 61 6e 67 65 20 69 74 20 | 6c 6f 61 64 20 74 68 65 |ange it |load the|
|00002c60| 20 74 65 6d 70 6c 61 74 | 65 20 66 69 6c 65 20 69 | templat|e file i|
|00002c70| 6e 74 6f 20 21 46 6f 72 | 6d 45 64 2c 20 64 72 61 |nto !For|mEd, dra|
|00002c80| 67 20 74 68 65 0d 08 98 | 48 f4 20 77 69 6e 64 6f |g the...|H. windo|
|00002c90| 77 20 74 6f 20 74 68 65 | 20 6e 65 77 20 70 6f 73 |w to the| new pos|
|00002ca0| 69 74 69 6f 6e 20 61 6e | 64 20 74 68 65 20 72 65 |ition an|d the re|
|00002cb0| 73 61 76 65 20 69 74 2e | 20 54 68 69 73 20 61 6c |save it.| This al|
|00002cc0| 73 6f 20 61 70 70 6c 69 | 65 73 20 74 6f 0d 08 a2 |so appli|es to...|
|00002cd0| 19 f4 20 74 68 65 20 27 | 6d 61 69 6e 77 27 20 77 |.. the '|mainw' w|
|00002ce0| 69 6e 64 6f 77 2e 0d 08 | ac 04 0d 08 b6 49 f4 20 |indow...|.....I. |
|00002cf0| 57 68 65 6e 20 63 72 65 | 61 74 69 6e 67 20 65 78 |When cre|ating ex|
|00002d00| 74 72 61 20 77 69 6e 64 | 6f 77 73 20 66 6f 72 20 |tra wind|ows for |
|00002d10| 79 6f 75 72 20 6f 77 6e | 20 61 70 70 6c 69 63 61 |your own| applica|
|00002d20| 74 69 6f 6e 73 20 6d 61 | 6b 65 20 61 20 73 6b 65 |tions ma|ke a ske|
|00002d30| 74 63 68 0d 08 c0 44 f4 | 20 6f 66 20 74 68 65 20 |tch...D.| of the |
|00002d40| 69 63 6f 6e 73 20 61 6e | 64 20 6e 6f 74 65 20 74 |icons an|d note t|
|00002d50| 68 65 69 72 20 6e 75 6d | 62 65 72 73 20 2d 20 61 |heir num|bers - a|
|00002d60| 63 63 6f 72 64 69 6e 67 | 20 74 6f 20 74 68 65 20 |ccording| to the |
|00002d70| 52 49 53 43 2d 4f 53 0d | 08 ca 49 f4 20 61 70 70 |RISC-OS.|..I. app|
|00002d80| 6c 69 63 61 74 69 6f 6e | 20 67 75 69 64 65 6c 69 |lication| guideli|
|00002d90| 6e 65 73 20 61 70 70 6c | 69 63 61 74 69 6f 6e 73 |nes appl|ications|
|00002da0| 20 61 72 65 20 61 6c 6c | 6f 77 65 64 20 74 6f 20 | are all|owed to |
|00002db0| 6d 61 6b 65 20 61 73 73 | 75 6d 70 74 69 6f 6e 73 |make ass|umptions|
|00002dc0| 0d 08 d4 47 f4 20 61 62 | 6f 75 74 20 74 68 65 20 |...G. ab|out the |
|00002dd0| 6e 75 6d 62 65 72 73 20 | 61 6e 64 20 63 68 61 72 |numbers |and char|
|00002de0| 61 63 74 65 72 69 73 74 | 69 63 73 20 6f 66 20 74 |acterist|ics of t|
|00002df0| 68 65 20 69 63 6f 6e 73 | 20 61 6e 64 20 77 69 6e |he icons| and win|
|00002e00| 64 6f 77 73 20 69 6e 0d | 08 de 49 f4 20 74 68 65 |dows in.|..I. the|
|00002e10| 69 72 20 74 65 6d 70 6c | 61 74 65 20 66 69 6c 65 |ir templ|ate file|
|00002e20| 73 2e 20 54 68 69 73 20 | 69 73 20 70 61 72 74 69 |s. This |is parti|
|00002e30| 63 75 6c 61 72 6c 79 20 | 69 6d 70 6f 72 74 61 6e |cularly |importan|
|00002e40| 74 20 66 6f 72 20 69 63 | 6f 6e 73 20 74 68 61 74 |t for ic|ons that|
|00002e50| 0d 08 e8 4b f4 20 74 68 | 65 20 61 70 70 6c 69 63 |...K. th|e applic|
|00002e60| 61 74 69 6f 6e 20 70 6c | 61 63 65 73 20 69 6e 66 |ation pl|aces inf|
|00002e70| 6f 72 6d 61 74 69 6f 6e | 20 69 6e 20 61 74 20 72 |ormation| in at r|
|00002e80| 75 6e 20 74 69 6d 65 20 | 73 75 63 68 20 61 73 20 |un time |such as |
|00002e90| 74 68 65 20 76 65 72 73 | 69 6f 6e 0d 08 f2 46 f4 |the vers|ion...F.|
|00002ea0| 20 69 63 6f 6e 20 69 6e | 20 74 68 65 20 70 72 6f | icon in| the pro|
|00002eb0| 67 49 6e 66 6f 20 77 69 | 6e 64 6f 77 2e 20 59 6f |gInfo wi|ndow. Yo|
|00002ec0| 75 20 6d 75 73 74 20 65 | 6e 73 75 72 65 20 74 68 |u must e|nsure th|
|00002ed0| 61 74 20 73 75 63 68 20 | 69 63 6f 6e 73 20 61 72 |at such |icons ar|
|00002ee0| 65 0d 08 fc 47 f4 20 73 | 65 74 20 74 6f 20 27 69 |e...G. s|et to 'i|
|00002ef0| 6e 64 69 72 65 63 74 65 | 64 27 20 69 6e 20 74 68 |ndirecte|d' in th|
|00002f00| 65 20 74 65 6d 70 6c 61 | 74 65 20 66 69 6c 65 20 |e templa|te file |
|00002f10| 28 75 73 69 6e 67 20 21 | 46 6f 72 6d 45 64 29 20 |(using !|FormEd) |
|00002f20| 61 6e 64 20 74 68 61 74 | 0d 09 06 48 f4 20 74 68 |and that|...H. th|
|00002f30| 65 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 64 6f |e applic|ation do|
|00002f40| 65 73 20 6e 6f 74 20 61 | 74 74 65 6d 70 74 20 74 |es not a|ttempt t|
|00002f50| 6f 20 77 72 69 74 65 20 | 64 61 74 61 20 74 6f 20 |o write |data to |
|00002f60| 61 20 6e 6f 6e 2d 69 6e | 64 69 72 65 63 74 65 64 |a non-in|directed|
|00002f70| 0d 09 10 4b f4 20 69 63 | 6f 6e 20 61 73 20 74 68 |...K. ic|on as th|
|00002f80| 69 73 20 75 73 75 61 6c | 6c 79 20 72 65 73 75 6c |is usual|ly resul|
|00002f90| 74 73 20 69 6e 20 61 6e | 20 61 64 64 72 65 73 73 |ts in an| address|
|00002fa0| 20 65 78 63 65 70 74 69 | 6f 6e 20 65 72 72 6f 72 | excepti|on error|
|00002fb0| 21 20 53 69 6d 69 6c 61 | 72 6c 79 0d 09 1a 46 f4 |! Simila|rly...F.|
|00002fc0| 20 77 69 6e 64 6f 77 73 | 20 77 69 74 68 20 74 69 | windows| with ti|
|00002fd0| 74 6c 65 73 20 63 68 61 | 6e 67 65 64 20 61 74 20 |tles cha|nged at |
|00002fe0| 72 75 6e 20 74 69 6d 65 | 20 28 73 75 63 68 20 61 |run time| (such a|
|00002ff0| 73 20 27 6d 61 69 6e 77 | 27 20 69 6e 20 74 68 69 |s 'mainw|' in thi|
|00003000| 73 0d 09 24 45 f4 20 70 | 72 6f 67 72 61 6d 29 20 |s..$E. p|rogram) |
|00003010| 6d 75 73 74 20 62 65 20 | 27 69 6e 64 69 72 65 63 |must be |'indirec|
|00003020| 74 65 64 27 2e 20 54 68 | 69 73 20 69 73 20 64 75 |ted'. Th|is is du|
|00003030| 65 20 74 6f 20 77 65 61 | 6b 6e 65 73 73 65 73 20 |e to wea|knesses |
|00003040| 69 6e 20 74 68 65 0d 09 | 2e 45 f4 20 6c 69 62 72 |in the..|.E. libr|
|00003050| 61 72 79 20 72 6f 75 74 | 69 6e 65 73 20 69 2e 65 |ary rout|ines i.e|
|00003060| 2e 20 74 68 65 79 20 64 | 6f 6e 27 74 20 62 6f 74 |. they d|on't bot|
|00003070| 68 65 72 20 74 6f 20 63 | 68 65 63 6b 20 69 66 20 |her to c|heck if |
|00003080| 74 68 65 20 69 63 6f 6e | 20 6f 72 0d 09 38 23 f4 |the icon| or..8#.|
|00003090| 20 74 69 74 6c 65 20 64 | 61 74 61 20 69 73 20 6e | title d|ata is n|
|000030a0| 6f 74 20 69 6e 64 69 72 | 65 63 74 65 64 2e 0d 09 |ot indir|ected...|
|000030b0| 42 04 0d 09 4c 48 f4 20 | 4e 6f 74 65 20 74 68 65 |B...LH. |Note the|
|000030c0| 20 76 61 72 69 61 62 6c | 65 73 20 72 65 74 75 72 | variabl|es retur|
|000030d0| 6e 65 64 20 66 72 6f 6d | 20 74 68 65 20 22 57 69 |ned from| the "Wi|
|000030e0| 6d 70 5f 43 72 65 61 74 | 65 57 69 6e 64 6f 77 22 |mp_Creat|eWindow"|
|000030f0| 20 63 61 6c 6c 20 28 69 | 2e 65 0d 09 56 48 f4 20 | call (i|.e..VH. |
|00003100| 71 75 65 72 79 25 2c 20 | 69 6e 66 6f 25 2c 20 78 |query%, |info%, x|
|00003110| 66 65 72 25 20 65 74 63 | 29 2e 20 54 68 65 73 65 |fer% etc|). These|
|00003120| 20 61 72 65 20 74 68 65 | 20 77 69 6e 64 6f 77 20 | are the| window |
|00003130| 68 61 6e 64 6c 65 73 20 | 77 68 69 63 68 20 57 49 |handles |which WI|
|00003140| 4d 50 0d 09 60 46 f4 20 | 70 72 6f 67 72 61 6d 73 |MP..`F. |programs|
|00003150| 20 75 73 65 20 74 6f 20 | 72 65 66 65 72 20 74 6f | use to |refer to|
|00003160| 20 74 68 65 20 77 69 6e | 64 6f 77 73 2e 20 41 73 | the win|dows. As|
|00003170| 20 79 6f 75 20 63 61 6e | 20 73 65 65 20 74 68 65 | you can| see the|
|00003180| 20 68 61 6e 64 6c 65 73 | 0d 09 6a 47 f4 20 6e 65 | handles|..jG. ne|
|00003190| 65 64 20 6e 6f 74 20 62 | 65 20 74 68 65 20 73 61 |ed not b|e the sa|
|000031a0| 6d 65 20 61 73 20 74 68 | 65 20 77 69 6e 64 6f 77 |me as th|e window|
|000031b0| 20 27 69 64 65 6e 74 69 | 66 69 65 72 73 27 20 77 | 'identi|fiers' w|
|000031c0| 68 69 63 68 20 79 6f 75 | 20 73 65 74 20 75 70 0d |hich you| set up.|
|000031d0| 09 74 2a f4 20 77 68 65 | 6e 20 64 65 66 69 6e 69 |.t*. whe|n defini|
|000031e0| 6e 67 20 74 68 65 20 77 | 69 6e 64 6f 77 20 69 6e |ng the w|indow in|
|000031f0| 20 21 46 6f 72 6d 45 64 | 2e 0d 09 7e 04 0d 09 88 | !FormEd|...~....|
|00003200| 4a f4 20 4f 62 76 69 6f | 75 73 6c 79 20 74 68 65 |J. Obvio|usly the|
|00003210| 20 3c 53 68 65 6c 6c 24 | 44 69 72 3e 20 62 69 74 | <Shell$|Dir> bit|
|00003220| 20 77 69 6c 6c 20 6e 65 | 65 64 20 63 68 61 6e 67 | will ne|ed chang|
|00003230| 69 6e 67 20 74 6f 20 74 | 68 65 20 6e 61 6d 65 20 |ing to t|he name |
|00003240| 6f 66 20 79 6f 75 72 0d | 09 92 15 f4 20 6f 77 6e |of your.|.... own|
|00003250| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 0d 09 9c 04 | applica|tion....|
|00003260| 0d 09 a6 2e f2 6f 70 65 | 6e 74 65 6d 70 6c 61 74 |.....ope|ntemplat|
|00003270| 65 66 69 6c 65 28 22 3c | 53 68 65 6c 6c 24 44 69 |efile("<|Shell$Di|
|00003280| 72 3e 2e 54 65 6d 70 6c | 61 74 65 73 22 29 0d 09 |r>.Templ|ates")..|
|00003290| b0 1a f2 6c 6f 61 64 74 | 65 6d 70 6c 61 74 65 28 |...loadt|emplate(|
|000032a0| 22 71 75 65 72 79 22 29 | 0d 09 ba 27 c8 99 20 22 |"query")|...'.. "|
|000032b0| 57 69 6d 70 5f 43 72 65 | 61 74 65 57 69 6e 64 6f |Wimp_Cre|ateWindo|
|000032c0| 77 22 2c 2c 71 25 20 b8 | 20 71 75 65 72 79 25 0d |w",,q% .| query%.|
|000032d0| 09 c4 1d f2 6c 6f 61 64 | 74 65 6d 70 6c 61 74 65 |....load|template|
|000032e0| 28 22 70 72 6f 67 49 6e | 66 6f 22 29 0d 09 ce 26 |("progIn|fo")...&|
|000032f0| c8 99 20 22 57 69 6d 70 | 5f 43 72 65 61 74 65 57 |.. "Wimp|_CreateW|
|00003300| 69 6e 64 6f 77 22 2c 2c | 71 25 20 b8 20 69 6e 66 |indow",,|q% . inf|
|00003310| 6f 25 0d 09 d8 1e f2 6c | 6f 61 64 74 65 6d 70 6c |o%.....l|oadtempl|
|00003320| 61 74 65 28 22 78 66 65 | 72 5f 73 65 6e 64 22 29 |ate("xfe|r_send")|
|00003330| 0d 09 e2 26 c8 99 20 22 | 57 69 6d 70 5f 43 72 65 |...&.. "|Wimp_Cre|
|00003340| 61 74 65 57 69 6e 64 6f | 77 22 2c 2c 71 25 20 b8 |ateWindo|w",,q% .|
|00003350| 20 78 66 65 72 25 0d 09 | ec 1d f2 6c 6f 61 64 74 | xfer%..|...loadt|
|00003360| 65 6d 70 6c 61 74 65 28 | 22 66 69 6c 65 49 6e 66 |emplate(|"fileInf|
|00003370| 6f 22 29 0d 09 f6 27 c8 | 99 20 22 57 69 6d 70 5f |o")...'.|. "Wimp_|
|00003380| 43 72 65 61 74 65 57 69 | 6e 64 6f 77 22 2c 2c 71 |CreateWi|ndow",,q|
|00003390| 25 20 b8 20 66 69 6e 66 | 6f 25 0d 0a 00 1a f2 6c |% . finf|o%.....l|
|000033a0| 6f 61 64 74 65 6d 70 6c | 61 74 65 28 22 6d 61 69 |oadtempl|ate("mai|
|000033b0| 6e 77 22 29 0d 0a 0a 4a | 71 25 21 36 34 3d 73 70 |nw")...J|q%!64=sp|
|000033c0| 20 3a f4 20 61 6e 79 20 | 77 69 6e 64 6f 77 20 75 | :. any |window u|
|000033d0| 73 69 6e 67 20 73 70 72 | 69 74 65 73 20 66 72 6f |sing spr|ites fro|
|000033e0| 6d 20 74 68 65 20 75 73 | 65 72 20 61 72 65 61 20 |m the us|er area |
|000033f0| 73 68 6f 75 6c 64 20 64 | 6f 20 74 68 69 73 0d 0a |should d|o this..|
|00003400| 14 4a 20 20 20 20 20 20 | 20 20 20 3a f4 20 62 65 |.J | :. be|
|00003410| 66 6f 72 65 20 63 72 65 | 61 74 69 6e 67 20 74 68 |fore cre|ating th|
|00003420| 65 20 77 69 6e 64 6f 77 | 20 2d 20 74 68 69 73 20 |e window| - this |
|00003430| 74 65 6c 6c 73 20 74 68 | 65 20 77 69 6e 64 6f 77 |tells th|e window|
|00003440| 20 6d 61 6e 61 67 65 72 | 0d 0a 1e 34 20 20 20 20 | manager|...4 |
|00003450| 20 20 20 20 20 3a f4 20 | 74 6f 20 66 69 6e 64 20 | :. |to find |
|00003460| 74 68 65 20 73 70 72 69 | 74 65 73 20 69 6e 20 74 |the spri|tes in t|
|00003470| 68 65 20 75 73 65 72 20 | 61 72 65 61 0d 0a 28 27 |he user |area..('|
|00003480| c8 99 20 22 57 69 6d 70 | 5f 43 72 65 61 74 65 57 |.. "Wimp|_CreateW|
|00003490| 69 6e 64 6f 77 22 2c 2c | 71 25 20 b8 20 6d 61 69 |indow",,|q% . mai|
|000034a0| 6e 77 25 0d 0a 32 1b f2 | 6c 6f 61 64 74 65 6d 70 |nw%..2..|loadtemp|
|000034b0| 6c 61 74 65 28 22 73 65 | 61 72 63 68 22 29 0d 0a |late("se|arch")..|
|000034c0| 3c 28 c8 99 20 22 57 69 | 6d 70 5f 43 72 65 61 74 |<(.. "Wi|mp_Creat|
|000034d0| 65 57 69 6e 64 6f 77 22 | 2c 2c 71 25 20 b8 20 73 |eWindow"|,,q% . s|
|000034e0| 65 61 72 63 68 25 0d 0a | 46 16 f2 63 6c 6f 73 65 |earch%..|F..close|
|000034f0| 74 65 6d 70 6c 61 74 65 | 66 69 6c 65 0d 0a 50 04 |template|file..P.|
|00003500| 0d 0a 5a 4c f4 20 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |..ZL. --|--------|
|00003510| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 20 4c 6f 61 64 20 |--------|-- Load |
|00003520| 44 61 74 61 20 46 69 6c | 65 20 2d 2d 2d 2d 2d 2d |Data Fil|e ------|
|00003530| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003540| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 0d 0a 64 04 |--------|----..d.|
|00003550| 0d 0a 6e 49 f4 20 49 66 | 20 74 68 65 20 61 70 70 |..nI. If| the app|
|00003560| 6c 69 63 61 74 69 6f 6e | 20 68 61 73 20 62 65 65 |lication| has bee|
|00003570| 6e 20 73 74 61 72 74 65 | 64 20 62 79 20 64 6f 75 |n starte|d by dou|
|00003580| 62 6c 65 20 63 6c 69 63 | 6b 69 6e 67 20 6f 6e 20 |ble clic|king on |
|00003590| 61 20 66 69 6c 65 20 6f | 66 0d 0a 78 40 f4 20 74 |a file o|f..x@. t|
|000035a0| 68 65 20 74 79 70 65 20 | 72 65 63 6f 67 6e 69 73 |he type |recognis|
|000035b0| 65 64 20 62 79 20 74 68 | 65 20 61 70 70 6c 69 63 |ed by th|e applic|
|000035c0| 61 74 69 6f 6e 20 77 65 | 27 6c 6c 20 6c 6f 61 64 |ation we|'ll load|
|000035d0| 20 69 74 20 68 65 72 65 | 2e 0d 0a 82 04 0d 0a 8c | it here|........|
|000035e0| 19 e7 20 63 75 72 72 65 | 6e 74 5f 66 69 6c 65 24 |.. curre|nt_file$|
|000035f0| 3c 3e 22 22 20 8c 0d 0a | 96 1e 20 20 f2 6c 6f 61 |<>"" ...|.. .loa|
|00003600| 64 66 69 6c 65 28 63 75 | 72 72 65 6e 74 5f 66 69 |dfile(cu|rrent_fi|
|00003610| 6c 65 24 29 0d 0a a0 05 | cd 0d 0a aa 04 0d 0a b4 |le$)....|........|
|00003620| 4c f4 20 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |L. -----|--------|
|00003630| 2d 2d 2d 2d 2d 2d 2d 20 | 44 65 66 69 6e 65 20 49 |------- |Define I|
|00003640| 63 6f 6e 73 20 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |cons ---|--------|
|00003650| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003660| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 0d 0a be 04 0d 0a c8 |--------|-.......|
|00003670| 4b f4 20 41 6e 79 20 64 | 61 74 61 20 77 68 69 63 |K. Any d|ata whic|
|00003680| 68 20 6e 65 65 64 73 20 | 74 6f 20 62 65 20 70 6c |h needs |to be pl|
|00003690| 61 63 65 64 20 69 6e 20 | 69 63 6f 6e 73 20 69 73 |aced in |icons is|
|000036a0| 20 74 72 61 6e 73 66 65 | 72 72 65 64 20 68 65 72 | transfe|rred her|
|000036b0| 65 2e 20 45 76 65 72 79 | 0d 0a d2 49 f4 20 57 49 |e. Every|...I. WI|
|000036c0| 4d 50 20 70 72 6f 67 72 | 61 6d 20 77 69 6c 6c 20 |MP progr|am will |
|000036d0| 6e 65 65 64 20 74 6f 20 | 64 6f 20 74 68 69 73 20 |need to |do this |
|000036e0| 61 73 20 74 68 65 20 76 | 65 72 73 69 6f 6e 20 73 |as the v|ersion s|
|000036f0| 74 72 69 6e 67 20 6d 75 | 73 74 20 61 70 70 65 61 |tring mu|st appea|
|00003700| 72 0d 0a dc 4a f4 20 69 | 6e 20 74 68 65 20 61 70 |r...J. i|n the ap|
|00003710| 70 72 6f 70 72 69 61 74 | 65 20 69 63 6f 6e 20 69 |propriat|e icon i|
|00003720| 6e 20 74 68 65 20 69 6e | 66 6f 20 77 69 6e 64 6f |n the in|fo windo|
|00003730| 77 20 28 6f 74 68 65 72 | 77 69 73 65 20 79 6f 75 |w (other|wise you|
|00003740| 27 6c 6c 20 68 61 76 65 | 20 74 6f 0d 0a e6 42 f4 |'ll have| to...B.|
|00003750| 20 63 68 61 6e 67 65 20 | 74 68 65 20 74 65 6d 70 | change |the temp|
|00003760| 6c 61 74 65 20 66 69 6c | 65 20 65 76 65 72 79 20 |late fil|e every |
|00003770| 74 69 6d 65 20 79 6f 75 | 20 63 68 61 6e 67 65 20 |time you| change |
|00003780| 74 68 65 20 21 52 75 6e | 49 6d 61 67 65 0d 0a f0 |the !Run|Image...|
|00003790| 10 f4 20 70 72 6f 67 72 | 61 6d 21 29 2e 0d 0a fa |.. progr|am!)....|
|000037a0| 04 0d 0b 04 28 f2 69 63 | 6f 6e 5f 70 75 74 64 61 |....(.ic|on_putda|
|000037b0| 74 61 28 71 25 2c 69 6e | 66 6f 25 2c 34 2c 76 65 |ta(q%,in|fo%,4,ve|
|000037c0| 72 73 69 6f 6e 24 2c 30 | 29 0d 0b 0e 04 0d 0b 18 |rsion$,0|).......|
|000037d0| 48 f4 20 49 66 20 79 6f | 75 20 61 72 65 20 75 73 |H. If yo|u are us|
|000037e0| 69 6e 67 20 74 68 65 20 | 27 66 69 6c 65 49 6e 66 |ing the |'fileInf|
|000037f0| 6f 27 20 77 69 6e 64 6f | 77 20 74 6f 20 67 69 76 |o' windo|w to giv|
|00003800| 65 20 64 65 74 61 69 6c | 73 20 6f 66 20 74 68 65 |e detail|s of the|
|00003810| 20 66 69 6c 65 0d 0b 22 | 4c f4 20 6c 6f 61 64 65 | file.."|L. loade|
|00003820| 64 20 62 79 20 74 68 65 | 20 61 70 70 6c 69 63 61 |d by the| applica|
|00003830| 74 69 6f 6e 20 79 6f 75 | 20 63 61 6e 20 70 6c 61 |tion you| can pla|
|00003840| 63 65 20 74 65 78 74 20 | 69 6e 20 74 68 65 20 69 |ce text |in the i|
|00003850| 63 6f 6e 73 20 68 65 72 | 65 20 61 73 20 77 65 6c |cons her|e as wel|
|00003860| 6c 0d 0b 2c 04 0d 0b 36 | 41 f2 69 63 6f 6e 5f 70 |l..,...6|A.icon_p|
|00003870| 75 74 64 61 74 61 28 71 | 25 2c 66 69 6e 66 6f 25 |utdata(q|%,finfo%|
|00003880| 2c 32 2c 22 4e 6f 22 2c | 30 29 20 20 20 20 20 20 |,2,"No",|0) |
|00003890| 20 20 20 20 3a f4 20 27 | 4d 6f 64 69 66 69 65 64 | :. '|Modified|
|000038a0| 27 20 69 63 6f 6e 0d 0b | 40 3d f2 69 63 6f 6e 5f |' icon..|@=.icon_|
|000038b0| 70 75 74 64 61 74 61 28 | 71 25 2c 66 69 6e 66 6f |putdata(|q%,finfo|
|000038c0| 25 2c 33 2c 22 53 68 65 | 6c 6c 44 61 74 61 22 2c |%,3,"She|llData",|
|000038d0| 30 29 20 20 20 3a f4 20 | 27 54 79 70 65 27 20 69 |0) :. |'Type' i|
|000038e0| 63 6f 6e 0d 0b 4a 18 e7 | 20 63 75 72 72 65 6e 74 |con..J..| current|
|000038f0| 5f 66 69 6c 65 24 3d 22 | 22 20 8c 0d 0b 54 3d 20 |_file$="|" ...T= |
|00003900| 20 f2 69 63 6f 6e 5f 70 | 75 74 64 61 74 61 28 71 | .icon_p|utdata(q|
|00003910| 25 2c 66 69 6e 66 6f 25 | 2c 31 2c 22 53 68 65 6c |%,finfo%|,1,"Shel|
|00003920| 6c 46 69 6c 65 22 2c 30 | 29 20 3a f4 20 27 4e 61 |lFile",0|) :. 'Na|
|00003930| 6d 65 27 20 69 63 6f 6e | 0d 0b 5e 3d 20 20 f2 69 |me' icon|..^= .i|
|00003940| 63 6f 6e 5f 70 75 74 64 | 61 74 61 28 71 25 2c 66 |con_putd|ata(q%,f|
|00003950| 69 6e 66 6f 25 2c 34 2c | 22 30 20 62 79 74 65 73 |info%,4,|"0 bytes|
|00003960| 22 2c 30 29 20 20 20 3a | f4 20 27 53 69 7a 65 27 |",0) :|. 'Size'|
|00003970| 20 69 63 6f 6e 0d 0b 68 | 3d 20 20 f2 69 63 6f 6e | icon..h|= .icon|
|00003980| 5f 70 75 74 64 61 74 61 | 28 71 25 2c 66 69 6e 66 |_putdata|(q%,finf|
|00003990| 6f 25 2c 35 2c 22 22 2c | 30 29 20 20 20 20 20 20 |o%,5,"",|0) |
|000039a0| 20 20 20 20 3a f4 20 27 | 44 61 74 65 27 20 69 63 | :. '|Date' ic|
|000039b0| 6f 6e 0d 0b 72 05 cd 0d | 0b 7c 04 0d 0b 86 4a f4 |on..r...|.|....J.|
|000039c0| 20 57 65 27 6c 6c 20 61 | 6c 73 6f 20 70 6c 61 63 | We'll a|lso plac|
|000039d0| 65 20 61 20 64 65 66 61 | 75 6c 74 20 66 69 6c 65 |e a defa|ult file|
|000039e0| 20 6e 61 6d 65 20 69 6e | 20 74 68 65 20 27 78 66 | name in| the 'xf|
|000039f0| 65 72 5f 73 65 6e 64 27 | 20 77 69 6e 64 6f 77 20 |er_send'| window |
|00003a00| 69 66 20 6e 6f 0d 0b 90 | 14 f4 20 66 69 6c 65 20 |if no...|.. file |
|00003a10| 69 73 20 6c 6f 61 64 65 | 64 0d 0b 9a 04 0d 0b a4 |is loade|d.......|
|00003a20| 18 e7 20 63 75 72 72 65 | 6e 74 5f 66 69 6c 65 24 |.. curre|nt_file$|
|00003a30| 3d 22 22 20 8c 0d 0b ae | 2d 20 20 f2 69 63 6f 6e |="" ....|- .icon|
|00003a40| 5f 70 75 74 64 61 74 61 | 28 71 25 2c 78 66 65 72 |_putdata|(q%,xfer|
|00003a50| 25 2c 32 2c 22 53 68 65 | 6c 6c 44 61 74 61 22 2c |%,2,"She|llData",|
|00003a60| 30 29 0d 0b b8 05 cd 0d | 0b c2 04 0d 0b cc 4c f4 |0)......|......L.|
|00003a70| 20 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d | -------|--------|
|00003a80| 2d 2d 2d 2d 2d 20 4c 61 | 75 6e 63 68 20 49 6e 69 |----- La|unch Ini|
|00003a90| 74 69 61 6c 20 57 69 6e | 64 6f 77 73 20 2d 2d 2d |tial Win|dows ---|
|00003aa0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003ab0| 2d 2d 2d 2d 2d 2d 2d 0d | 0b d6 04 0d 0b e0 47 f4 |-------.|......G.|
|00003ac0| 20 4f 70 65 6e 20 61 6e | 79 20 69 6e 69 74 69 61 | Open an|y initia|
|00003ad0| 6c 20 77 69 6e 64 6f 77 | 73 20 68 65 72 65 2e 20 |l window|s here. |
|00003ae0| 49 6e 20 74 68 69 73 20 | 63 61 73 65 20 69 66 20 |In this |case if |
|00003af0| 74 68 65 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 |the appl|ication |
|00003b00| 69 73 0d 0b ea 48 f4 20 | 73 74 61 72 74 69 6e 67 |is...H. |starting|
|00003b10| 20 75 70 20 77 69 74 68 | 20 61 20 66 69 6c 65 20 | up with| a file |
|00003b20| 6c 6f 61 64 65 64 20 77 | 65 27 6c 6c 20 6f 70 65 |loaded w|e'll ope|
|00003b30| 6e 20 74 68 65 20 6d 61 | 69 6e 20 77 69 6e 64 6f |n the ma|in windo|
|00003b40| 77 2c 20 62 75 74 20 79 | 6f 75 0d 0b f4 48 f4 20 |w, but y|ou...H. |
|00003b50| 63 6f 75 6c 64 20 77 61 | 69 74 20 66 6f 72 20 74 |could wa|it for t|
|00003b60| 68 65 20 69 63 6f 6e 62 | 61 72 20 69 63 6f 6e 20 |he iconb|ar icon |
|00003b70| 74 6f 20 62 65 20 63 6c | 69 63 6b 65 64 20 6f 6e |to be cl|icked on|
|00003b80| 20 2d 20 69 74 27 73 20 | 75 70 20 74 6f 20 79 6f | - it's |up to yo|
|00003b90| 75 21 0d 0b fe 04 0d 0c | 08 19 e7 20 63 75 72 72 |u!......|... curr|
|00003ba0| 65 6e 74 5f 66 69 6c 65 | 24 3c 3e 22 22 20 8c 0d |ent_file|$<>"" ..|
|00003bb0| 0c 12 1e 20 20 f2 6f 70 | 65 6e 77 69 6e 64 6f 77 |... .op|enwindow|
|00003bc0| 28 6d 61 69 6e 77 25 2c | a3 2c 2d 31 29 0d 0c 1c |(mainw%,|.,-1)...|
|00003bd0| 0d 20 20 6f 70 65 6e 25 | 3d b9 0d 0c 26 05 cd 0d |. open%|=...&...|
|00003be0| 0c 30 04 0d 0c 3a 4c f4 | 20 2d 2d 2d 2d 2d 2d 2d |.0...:L.| -------|
|00003bf0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 20 53 65 |--------|----- Se|
|00003c00| 74 20 55 70 20 45 72 72 | 6f 72 20 54 72 61 70 20 |t Up Err|or Trap |
|00003c10| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003c20| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 0d |--------|-------.|
|00003c30| 0c 44 04 0d 0c 4e 16 65 | 72 72 6f 72 5f 66 6c 61 |.D...N.e|rror_fla|
|00003c40| 67 25 20 20 20 20 20 3d | 33 0d 0c 58 0e ee 20 85 |g% =|3..X.. .|
|00003c50| 20 f2 65 72 72 6f 72 0d | 0c 62 04 0d 0c 6c 4c f4 | .error.|.b...lL.|
|00003c60| 20 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d | -------|--------|
|00003c70| 2d 2d 2d 2d 2d 20 4d 61 | 69 6e 20 50 72 6f 67 72 |----- Ma|in Progr|
|00003c80| 61 6d 20 4c 6f 6f 70 20 | 2d 2d 2d 2d 2d 2d 2d 2d |am Loop |--------|
|00003c90| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003ca0| 2d 2d 2d 2d 2d 2d 2d 0d | 0c 76 04 0d 0c 80 4a f4 |-------.|.v....J.|
|00003cb0| 20 41 73 20 74 68 65 20 | 70 72 6f 67 72 61 6d 20 | As the |program |
|00003cc0| 69 73 20 6e 6f 77 20 66 | 75 6c 6c 79 20 69 6e 69 |is now f|ully ini|
|00003cd0| 74 69 61 6c 69 73 65 64 | 20 77 65 27 6c 6c 20 74 |tialised| we'll t|
|00003ce0| 75 72 6e 20 6f 66 66 20 | 74 68 65 20 48 6f 75 72 |urn off |the Hour|
|00003cf0| 47 6c 61 73 73 0d 0c 8a | 4a f4 20 61 6e 64 20 62 |Glass...|J. and b|
|00003d00| 65 67 69 6e 20 74 68 65 | 20 6d 61 69 6e 20 77 69 |egin the| main wi|
|00003d10| 6d 70 20 70 6f 6c 6c 20 | 6c 6f 6f 70 2e 20 4e 6f |mp poll |loop. No|
|00003d20| 74 65 20 74 68 61 74 20 | 74 68 65 20 70 61 72 61 |te that |the para|
|00003d30| 6d 65 74 65 72 20 74 6f | 20 46 4e 70 6f 6c 6c 0d |meter to| FNpoll.|
|00003d40| 0c 94 47 f4 20 69 73 20 | 30 20 74 6f 20 61 6c 6c |..G. is |0 to all|
|00003d50| 6f 77 20 61 6c 6c 20 77 | 69 6d 70 20 65 76 65 6e |ow all w|imp even|
|00003d60| 74 73 20 74 6f 20 62 65 | 20 70 72 6f 63 65 73 73 |ts to be| process|
|00003d70| 65 64 20 2d 20 6d 6f 72 | 65 20 73 70 65 65 64 20 |ed - mor|e speed |
|00003d80| 63 61 6e 20 62 65 0d 0c | 9e 47 f4 20 6f 62 74 61 |can be..|.G. obta|
|00003d90| 69 6e 65 64 20 62 79 20 | 75 73 69 6e 67 20 64 69 |ined by |using di|
|00003da0| 66 66 65 72 65 6e 74 20 | 70 61 72 61 6d 65 74 65 |fferent |paramete|
|00003db0| 72 73 2c 20 62 75 74 20 | 6c 65 61 76 65 20 69 74 |rs, but |leave it|
|00003dc0| 20 61 6c 6f 6e 65 20 75 | 6e 6c 65 73 73 0d 0c a8 | alone u|nless...|
|00003dd0| 2a f4 20 79 6f 75 20 6b | 6e 6f 77 20 65 78 61 63 |*. you k|now exac|
|00003de0| 74 6c 79 20 77 68 61 74 | 20 79 6f 75 20 61 72 65 |tly what| you are|
|00003df0| 20 64 6f 69 6e 67 21 0d | 0c b2 04 0d 0c bc 16 c8 | doing!.|........|
|00003e00| 99 20 22 48 6f 75 72 67 | 6c 61 73 73 5f 4f 66 66 |. "Hourg|lass_Off|
|00003e10| 22 0d 0c c6 05 f5 0d 0c | d0 17 20 20 f2 61 63 74 |".......|.. .act|
|00003e20| 69 6f 6e 28 a4 70 6f 6c | 6c 28 30 29 29 0d 0c da |ion(.pol|l(0))...|
|00003e30| 0f fd 20 63 6c 6f 73 65 | 64 6f 77 6e 0d 0c e4 04 |.. close|down....|
|00003e40| 0d 0c ee 4c f4 20 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |...L. --|--------|
|00003e50| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 20 41 70 70 6c 69 |--------|-- Appli|
|00003e60| 63 61 74 69 6f 6e 20 43 | 6c 6f 73 65 64 6f 77 6e |cation C|losedown|
|00003e70| 20 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d | -------|--------|
|00003e80| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 0d 0c f8 04 |--------|----....|
|00003e90| 0d 0d 02 0e 24 71 25 3d | 22 54 41 53 4b 22 0d 0d |....$q%=|"TASK"..|
|00003ea0| 0c 22 c8 99 20 22 57 69 | 6d 70 5f 43 6c 6f 73 65 |.".. "Wi|mp_Close|
|00003eb0| 44 6f 77 6e 22 2c 74 61 | 73 6b 25 2c 71 25 21 30 |Down",ta|sk%,q%!0|
|00003ec0| 0d 0d 16 05 e0 0d 0d 20 | 04 0d 0d 2a 4c f4 20 3d |....... |...*L. =|
|00003ed0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003ee0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003ef0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003f00| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003f10| 3d 3d 3d 3d 3d 0d 0d 34 | 04 0d 0d 3e 0b dd f2 65 |=====..4|...>...e|
|00003f20| 72 72 6f 72 0d 0d 48 15 | e7 20 65 72 72 6f 72 5f |rror..H.|. error_|
|00003f30| 66 6c 61 67 25 3d 33 20 | 8c 0d 0d 52 44 20 20 f2 |flag%=3 |...RD .|
|00003f40| 65 72 72 6f 72 62 6f 78 | 28 22 55 6e 65 78 70 65 |errorbox|("Unexpe|
|00003f50| 63 74 65 64 20 65 72 72 | 6f 72 3a 2d 20 22 2b f6 |cted err|or:- "+.|
|00003f60| 24 2b 22 20 49 6e 74 65 | 72 6e 61 6c 20 65 72 72 |$+" Inte|rnal err|
|00003f70| 6f 72 20 63 6f 64 65 20 | 22 2b c3 9e 29 0d 0d 5c |or code |"+..)..\|
|00003f80| 05 cc 0d 0d 66 13 20 20 | f2 65 72 72 6f 72 62 6f |....f. |.errorbo|
|00003f90| 78 28 f6 24 29 0d 0d 70 | 05 cd 0d 0d 7a 11 65 72 |x(.$)..p|....z.er|
|00003fa0| 72 6f 72 5f 66 6c 61 67 | 25 3d 33 0d 0d 84 18 c8 |ror_flag|%=3.....|
|00003fb0| 99 20 22 48 6f 75 72 67 | 6c 61 73 73 5f 53 6d 61 |. "Hourg|lass_Sma|
|00003fc0| 73 68 22 0d 0d 8e 05 e1 | 0d 0d 98 04 0d 0d a2 0c |sh".....|........|
|00003fd0| dd f2 6f 6b 28 65 24 29 | 0d 0d ac 11 65 72 72 6f |..ok(e$)|....erro|
|00003fe0| 72 5f 66 6c 61 67 25 3d | 31 0d 0d b6 0a 85 20 31 |r_flag%=|1..... 1|
|00003ff0| 2c 65 24 0d 0d c0 05 e1 | 0d 0d ca 04 0d 0d d4 12 |,e$.....|........|
|00004000| dd f2 65 72 72 6f 72 62 | 6f 78 28 72 24 29 0d 0d |..errorb|ox(r$)..|
|00004010| de 08 ea 20 72 25 0d 0d | e8 19 21 71 25 3d 9f 3a |... r%..|..!q%=.:|
|00004020| 24 28 71 25 2b 34 29 3d | 72 24 2b bd 28 30 29 0d |$(q%+4)=|r$+.(0).|
|00004030| 0d f2 35 c8 99 20 22 57 | 69 6d 70 5f 52 65 70 6f |..5.. "W|imp_Repo|
|00004040| 72 74 45 72 72 6f 72 22 | 2c 71 25 2c 65 72 72 6f |rtError"|,q%,erro|
|00004050| 72 5f 66 6c 61 67 25 2c | 22 53 68 65 6c 6c 22 20 |r_flag%,|"Shell" |
|00004060| b8 20 72 25 0d 0d fc 18 | e7 20 72 25 3d 32 20 8c |. r%....|. r%=2 .|
|00004070| 20 63 6c 6f 73 65 64 6f | 77 6e 3d b9 0d 0e 06 05 | closedo|wn=.....|
|00004080| e1 0d 0e 10 04 0d 0e 1a | 4a f4 20 45 76 65 72 79 |........|J. Every|
|00004090| 20 6e 65 77 20 77 69 6e | 64 6f 77 20 28 69 66 20 | new win|dow (if |
|000040a0| 6d 6f 75 73 65 20 63 6c | 69 63 6b 73 20 6e 65 65 |mouse cl|icks nee|
|000040b0| 64 20 74 6f 20 62 65 20 | 72 65 73 70 6f 6e 64 65 |d to be |responde|
|000040c0| 64 20 74 6f 29 20 77 69 | 6c 6c 20 6e 65 65 64 0d |d to) wi|ll need.|
|000040d0| 0e 24 2d f4 20 61 20 6c | 69 6e 65 20 69 6e 20 74 |.$-. a l|ine in t|
|000040e0| 68 65 20 43 41 53 45 20 | 73 74 61 74 65 6d 65 6e |he CASE |statemen|
|000040f0| 74 20 62 65 6c 6f 77 20 | 69 2e 65 2e 0d 0e 2e 2e |t below |i.e.....|
|00004100| f4 20 57 48 45 4e 20 66 | 72 65 64 25 3a 50 52 4f |. WHEN f|red%:PRO|
|00004110| 43 63 6c 69 63 6b 66 72 | 65 64 28 62 75 74 74 6f |Cclickfr|ed(butto|
|00004120| 6e 25 2c 69 63 6f 6e 25 | 29 2e 0d 0e 38 47 f4 20 |n%,icon%|)...8G. |
|00004130| 4e 6f 74 65 20 74 68 65 | 20 27 66 69 6c 65 49 6e |Note the| 'fileIn|
|00004140| 66 6f 27 20 61 6e 64 20 | 27 70 72 6f 67 49 6e 66 |fo' and |'progInf|
|00004150| 6f 27 20 77 69 6e 64 6f | 77 73 20 64 6f 20 6e 6f |o' windo|ws do no|
|00004160| 74 20 66 65 61 74 75 72 | 65 20 69 6e 20 74 68 69 |t featur|e in thi|
|00004170| 73 0d 0e 42 49 f4 20 72 | 6f 75 74 69 6e 65 20 2d |s..BI. r|outine -|
|00004180| 20 74 68 65 79 20 63 6f | 6e 74 61 69 6e 20 6e 6f | they co|ntain no|
|00004190| 20 69 63 6f 6e 73 20 74 | 68 61 74 20 74 72 69 67 | icons t|hat trig|
|000041a0| 67 65 72 20 61 63 74 69 | 6f 6e 73 20 62 79 20 74 |ger acti|ons by t|
|000041b0| 68 65 20 70 72 6f 67 72 | 61 6d 0d 0e 4c 04 0d 0e |he progr|am..L...|
|000041c0| 56 3c dd f2 63 6c 69 63 | 6b 77 69 6e 64 6f 77 28 |V<..clic|kwindow(|
|000041d0| 6d 6f 75 73 65 78 25 2c | 6d 6f 75 73 65 79 25 2c |mousex%,|mousey%,|
|000041e0| 62 75 74 74 6f 6e 25 2c | 68 61 6e 64 6c 65 25 2c |button%,|handle%,|
|000041f0| 69 63 6f 6e 25 2c 6f 62 | 25 29 0d 0e 60 10 c8 8e |icon%,ob|%)..`...|
|00004200| 20 68 61 6e 64 6c 65 25 | 20 ca 0d 0e 6a 2c 20 20 | handle%| ...j, |
|00004210| c9 20 6d 61 69 6e 77 25 | 20 20 20 3a f2 63 6c 69 |. mainw%| :.cli|
|00004220| 63 6b 6d 61 69 6e 77 28 | 62 75 74 74 6f 6e 25 2c |ckmainw(|button%,|
|00004230| 69 63 6f 6e 25 29 0d 0e | 74 2c 20 20 c9 20 71 75 |icon%)..|t, . qu|
|00004240| 65 72 79 25 20 20 20 3a | f2 63 6c 69 63 6b 71 75 |ery% :|.clickqu|
|00004250| 65 72 79 28 62 75 74 74 | 6f 6e 25 2c 69 63 6f 6e |ery(butt|on%,icon|
|00004260| 25 29 0d 0e 7e 2b 20 20 | c9 20 78 66 65 72 25 20 |%)..~+ |. xfer% |
|00004270| 20 20 20 3a f2 63 6c 69 | 63 6b 78 66 65 72 28 62 | :.cli|ckxfer(b|
|00004280| 75 74 74 6f 6e 25 2c 69 | 63 6f 6e 25 29 0d 0e 88 |utton%,i|con%)...|
|00004290| 2d 20 20 c9 20 73 65 61 | 72 63 68 25 20 20 3a f2 |- . sea|rch% :.|
|000042a0| 63 6c 69 63 6b 73 65 61 | 72 63 68 28 62 75 74 74 |clicksea|rch(butt|
|000042b0| 6f 6e 25 2c 69 63 6f 6e | 25 29 0d 0e 92 2e 20 20 |on%,icon|%).... |
|000042c0| c9 20 2d 32 20 20 20 20 | 20 20 20 3a f2 63 6c 69 |. -2 | :.cli|
|000042d0| 63 6b 69 63 6f 6e 62 61 | 72 28 62 75 74 74 6f 6e |ckiconba|r(button|
|000042e0| 25 2c 69 63 6f 6e 25 29 | 0d 0e 9c 05 cb 0d 0e a6 |%,icon%)|........|
|000042f0| 05 e1 0d 0e b0 04 0d 0e | ba 4c f4 20 2d 2d 2d 2d |........|.L. ----|
|00004300| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 20 4d 6f 75 |--------|---- Mou|
|00004310| 73 65 20 43 6c 69 63 6b | 20 52 6f 75 74 69 6e 65 |se Click| Routine|
|00004320| 73 20 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |s ------|--------|
|00004330| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00004340| 2d 2d 0d 0e c4 04 0d 0e | ce 4b f4 20 41 20 72 6f |--......|.K. A ro|
|00004350| 75 74 69 6e 65 20 69 73 | 20 6e 65 65 64 65 64 20 |utine is| needed |
|00004360| 68 65 72 65 20 66 6f 72 | 20 65 76 65 72 79 20 77 |here for| every w|
|00004370| 69 6e 64 6f 77 20 28 69 | 66 20 6d 6f 75 73 65 20 |indow (i|f mouse |
|00004380| 63 6c 69 63 6b 73 20 6e | 65 65 64 20 74 6f 20 62 |clicks n|eed to b|
|00004390| 65 0d 0e d8 28 f4 20 72 | 65 73 70 6f 6e 64 65 64 |e...(. r|esponded|
|000043a0| 20 74 6f 29 20 63 61 6c | 6c 65 64 20 50 52 4f 43 | to) cal|led PROC|
|000043b0| 63 6c 69 63 6b 78 78 78 | 78 0d 0e e2 04 0d 0e ec |clickxxx|x.......|
|000043c0| 21 dd f2 63 6c 69 63 6b | 69 63 6f 6e 62 61 72 28 |!..click|iconbar(|
|000043d0| 62 75 74 74 6f 6e 25 2c | 69 63 6f 6e 25 29 0d 0e |button%,|icon%)..|
|000043e0| f6 11 e7 20 69 63 6f 6e | 25 3c 30 20 8c 20 e1 0d |... icon|%<0 . ..|
|000043f0| 0f 00 0a c8 8e 20 b9 20 | ca 0d 0f 0a 11 20 20 c9 |..... . |..... .|
|00004400| 20 62 75 74 74 6f 6e 25 | 3d 32 0d 0f 14 20 20 20 | button%|=2... |
|00004410| 20 20 f4 20 6f 70 65 6e | 73 20 74 68 65 20 69 63 | . open|s the ic|
|00004420| 6f 6e 62 61 72 20 6d 65 | 6e 75 0d 0f 1e 17 20 20 |onbar me|nu.... |
|00004430| 20 20 e7 20 69 63 6f 6e | 25 3d 73 69 63 6f 6e 20 | . icon|%=sicon |
|00004440| 8c 0d 0f 28 15 20 20 20 | 20 20 20 f2 6d 65 6e 75 |...(. | .menu|
|00004450| 5f 73 69 63 6f 6e 0d 0f | 32 09 20 20 20 20 cd 0d |_sicon..|2. ..|
|00004460| 0f 3c 11 20 20 c9 20 62 | 75 74 74 6f 6e 25 3d 34 |.<. . b|utton%=4|
|00004470| 0d 0f 46 4b 20 20 20 20 | f4 20 6f 70 65 6e 73 20 |..FK |. opens |
|00004480| 74 68 65 20 6d 61 69 6e | 20 77 69 6e 64 6f 77 20 |the main| window |
|00004490| 69 66 20 69 74 20 69 73 | 20 63 6c 6f 73 65 64 20 |if it is| closed |
|000044a0| 69 6e 20 74 68 69 73 20 | 65 78 61 6d 70 6c 65 20 |in this |example |
|000044b0| 77 68 65 6e 20 73 65 6c | 65 63 74 0d 0f 50 4a 20 |when sel|ect..PJ |
|000044c0| 20 20 20 f4 20 69 73 20 | 63 6c 69 63 6b 65 64 20 | . is |clicked |
|000044d0| 6f 6e 20 74 68 65 20 69 | 63 6f 6e 62 61 72 20 69 |on the i|conbar i|
|000044e0| 63 6f 6e 2e 20 49 74 20 | 63 6f 75 6c 64 20 6f 66 |con. It |could of|
|000044f0| 20 63 6f 75 72 73 65 20 | 6f 70 65 6e 20 6d 75 6c | course |open mul|
|00004500| 74 69 70 6c 65 0d 0f 5a | 1d 20 20 20 20 f4 20 77 |tiple..Z|. . w|
|00004510| 69 6e 64 6f 77 73 20 69 | 66 20 72 65 71 75 69 72 |indows i|f requir|
|00004520| 65 64 0d 0f 64 13 20 20 | 20 20 e7 20 ac 20 6f 70 |ed..d. | . . op|
|00004530| 65 6e 25 20 8c 0d 0f 6e | 22 20 20 20 20 20 20 f2 |en% ...n|" .|
|00004540| 6f 70 65 6e 77 69 6e 64 | 6f 77 28 6d 61 69 6e 77 |openwind|ow(mainw|
|00004550| 25 2c a3 2c 2d 31 29 0d | 0f 78 11 20 20 20 20 20 |%,.,-1).|.x. |
|00004560| 20 6f 70 65 6e 25 3d b9 | 0d 0f 82 09 20 20 20 20 | open%=.|.... |
|00004570| cd 0d 0f 8c 05 cb 0d 0f | 96 05 e1 0d 0f a0 04 0d |........|........|
|00004580| 0f aa 1f dd f2 63 6c 69 | 63 6b 6d 61 69 6e 77 28 |.....cli|ckmainw(|
|00004590| 62 75 74 74 6f 6e 25 2c | 69 63 6f 6e 25 29 0d 0f |button%,|icon%)..|
|000045a0| b4 11 e7 20 62 75 74 74 | 6f 6e 25 3d 32 20 8c 0d |... butt|on%=2 ..|
|000045b0| 0f be 10 20 20 f2 6d 65 | 6e 75 5f 6d 61 69 6e 0d |... .me|nu_main.|
|000045c0| 0f c8 05 cd 0d 0f d2 0a | c8 8e 20 b9 20 ca 0d 0f |........|.. . ...|
|000045d0| dc 21 c9 20 28 62 75 74 | 74 6f 6e 25 20 80 20 34 |.!. (but|ton% . 4|
|000045e0| 29 3d 34 20 80 20 69 63 | 6f 6e 25 3c 3e 2d 31 0d |)=4 . ic|on%<>-1.|
|000045f0| 0f e6 10 20 20 c8 8e 20 | 69 63 6f 6e 25 20 ca 0d |... .. |icon% ..|
|00004600| 0f f0 28 20 20 c9 20 20 | 32 20 3a f4 20 27 3c 27 |..( . |2 :. '<'|
|00004610| 20 28 62 61 63 6b 20 6f | 6e 65 20 72 65 63 6f 72 | (back o|ne recor|
|00004620| 64 20 69 63 6f 6e 29 0d | 0f fa 41 20 20 20 20 63 |d icon).|..A c|
|00004630| 75 72 72 65 6e 74 5f 72 | 65 63 25 2d 3d 31 3a e7 |urrent_r|ec%-=1:.|
|00004640| 20 63 75 72 72 65 6e 74 | 5f 72 65 63 25 3c 31 20 | current|_rec%<1 |
|00004650| 8c 20 63 75 72 72 65 6e | 74 5f 72 65 63 25 3d 6d |. curren|t_rec%=m|
|00004660| 61 78 5f 72 65 63 73 25 | 0d 10 04 25 20 20 20 20 |ax_recs%|...% |
|00004670| f2 64 69 73 70 6c 61 79 | 5f 72 65 63 6f 72 64 28 |.display|_record(|
|00004680| 63 75 72 72 65 6e 74 5f | 72 65 63 25 29 0d 10 0e |current_|rec%)...|
|00004690| 2b 20 20 c9 20 20 33 20 | 3a f4 20 27 3e 27 20 28 |+ . 3 |:. '>' (|
|000046a0| 66 6f 72 77 61 72 64 20 | 6f 6e 65 20 72 65 63 6f |forward |one reco|
|000046b0| 72 64 20 69 63 6f 6e 29 | 0d 10 18 41 20 20 20 20 |rd icon)|...A |
|000046c0| 63 75 72 72 65 6e 74 5f | 72 65 63 25 2b 3d 31 3a |current_|rec%+=1:|
|000046d0| e7 20 63 75 72 72 65 6e | 74 5f 72 65 63 25 3e 6d |. curren|t_rec%>m|
|000046e0| 61 78 5f 72 65 63 73 25 | 20 8c 20 63 75 72 72 65 |ax_recs%| . curre|
|000046f0| 6e 74 5f 72 65 63 25 3d | 31 0d 10 22 25 20 20 20 |nt_rec%=|1.."% |
|00004700| 20 f2 64 69 73 70 6c 61 | 79 5f 72 65 63 6f 72 64 | .displa|y_record|
|00004710| 28 63 75 72 72 65 6e 74 | 5f 72 65 63 25 29 0d 10 |(current|_rec%)..|
|00004720| 2c 1b 20 20 c9 20 31 37 | 20 3a f4 20 27 55 70 64 |,. . 17| :. 'Upd|
|00004730| 61 74 65 27 20 49 63 6f | 6e 0d 10 36 3a 20 20 20 |ate' Ico|n..6: |
|00004740| 20 66 69 65 6c 64 24 28 | 31 2c 63 75 72 72 65 6e | field$(|1,curren|
|00004750| 74 5f 72 65 63 25 29 3d | a4 69 63 6f 6e 5f 67 65 |t_rec%)=|.icon_ge|
|00004760| 74 64 61 74 61 28 71 25 | 2c 6d 61 69 6e 77 25 2c |tdata(q%|,mainw%,|
|00004770| 31 31 29 0d 10 40 3a 20 | 20 20 20 66 69 65 6c 64 |11)..@: | field|
|00004780| 24 28 32 2c 63 75 72 72 | 65 6e 74 5f 72 65 63 25 |$(2,curr|ent_rec%|
|00004790| 29 3d a4 69 63 6f 6e 5f | 67 65 74 64 61 74 61 28 |)=.icon_|getdata(|
|000047a0| 71 25 2c 6d 61 69 6e 77 | 25 2c 31 32 29 0d 10 4a |q%,mainw|%,12)..J|
|000047b0| 3a 20 20 20 20 66 69 65 | 6c 64 24 28 33 2c 63 75 |: fie|ld$(3,cu|
|000047c0| 72 72 65 6e 74 5f 72 65 | 63 25 29 3d a4 69 63 6f |rrent_re|c%)=.ico|
|000047d0| 6e 5f 67 65 74 64 61 74 | 61 28 71 25 2c 6d 61 69 |n_getdat|a(q%,mai|
|000047e0| 6e 77 25 2c 31 33 29 0d | 10 54 3a 20 20 20 20 66 |nw%,13).|.T: f|
|000047f0| 69 65 6c 64 24 28 34 2c | 63 75 72 72 65 6e 74 5f |ield$(4,|current_|
|00004800| 72 65 63 25 29 3d a4 69 | 63 6f 6e 5f 67 65 74 64 |rec%)=.i|con_getd|
|00004810| 61 74 61 28 71 25 2c 6d | 61 69 6e 77 25 2c 31 34 |ata(q%,m|ainw%,14|
|00004820| 29 0d 10 5e 3a 20 20 20 | 20 66 69 65 6c 64 24 28 |)..^: | field$(|
|00004830| 35 2c 63 75 72 72 65 6e | 74 5f 72 65 63 25 29 3d |5,curren|t_rec%)=|
|00004840| a4 69 63 6f 6e 5f 67 65 | 74 64 61 74 61 28 71 25 |.icon_ge|tdata(q%|
|00004850| 2c 6d 61 69 6e 77 25 2c | 31 35 29 0d 10 68 15 20 |,mainw%,|15)..h. |
|00004860| 20 20 20 f2 66 69 6c 65 | 5f 63 68 61 6e 67 65 64 | .file|_changed|
|00004870| 0d 10 72 1b 20 20 c9 20 | 31 38 20 3a f4 20 27 43 |..r. . |18 :. 'C|
|00004880| 61 6e 63 65 6c 27 20 49 | 63 6f 6e 0d 10 7c 25 20 |ancel' I|con..|% |
|00004890| 20 20 20 f2 64 69 73 70 | 6c 61 79 5f 72 65 63 6f | .disp|lay_reco|
|000048a0| 72 64 28 63 75 72 72 65 | 6e 74 5f 72 65 63 25 29 |rd(curre|nt_rec%)|
|000048b0| 0d 10 86 07 20 20 cb 0d | 10 90 05 cb 0d 10 9a 05 |.... ..|........|
|000048c0| e1 0d 10 a4 04 0d 10 ae | 20 dd f2 63 6c 69 63 6b |........| ..click|
|000048d0| 73 65 61 72 63 68 28 62 | 75 74 74 6f 6e 25 2c 69 |search(b|utton%,i|
|000048e0| 63 6f 6e 25 29 0d 10 b8 | 0a c8 8e 20 b9 20 ca 0d |con%)...|... . ..|
|000048f0| 10 c2 27 c9 20 28 62 75 | 74 74 6f 6e 25 20 80 20 |..'. (bu|tton% . |
|00004900| 34 29 3d 34 20 84 20 28 | 62 75 74 74 6f 6e 25 20 |4)=4 . (|button% |
|00004910| 80 20 31 29 3d 31 0d 10 | cc 10 20 20 c8 8e 20 69 |. 1)=1..|.. .. i|
|00004920| 63 6f 6e 25 20 ca 0d 10 | d6 0a 20 20 c9 20 20 30 |con% ...|.. . 0|
|00004930| 0d 10 e0 12 20 20 20 20 | f2 64 6f 5f 73 65 61 72 |.... |.do_sear|
|00004940| 63 68 0d 10 ea 34 20 20 | 20 20 e7 20 28 62 75 74 |ch...4 | . (but|
|00004950| 74 6f 6e 25 20 80 20 34 | 29 3d 34 20 8c 20 c8 99 |ton% . 4|)=4 . ..|
|00004960| 20 22 57 69 6d 70 5f 43 | 72 65 61 74 65 4d 65 6e | "Wimp_C|reateMen|
|00004970| 75 22 2c 2c 2d 31 0d 10 | f4 0a 20 20 c9 20 20 31 |u",,-1..|.. . 1|
|00004980| 0d 10 fe 20 20 20 20 20 | c8 99 20 22 57 69 6d 70 |... |.. "Wimp|
|00004990| 5f 43 72 65 61 74 65 4d | 65 6e 75 22 2c 2c 2d 31 |_CreateM|enu",,-1|
|000049a0| 0d 11 08 0a 20 20 c9 20 | 20 33 0d 11 12 10 20 20 |.... . | 3.... |
|000049b0| 20 20 6d 61 74 63 68 25 | 3d b9 0d 11 1c 0a 20 20 | match%|=..... |
|000049c0| c9 20 20 34 0d 11 26 10 | 20 20 20 20 6d 61 74 63 |. 4..&.| matc|
|000049d0| 68 25 3d a3 0d 11 30 07 | 20 20 cb 0d 11 3a 05 cb |h%=...0.| ...:..|
|000049e0| 0d 11 44 05 e1 0d 11 4e | 04 0d 11 58 1f dd f2 63 |..D....N|...X...c|
|000049f0| 6c 69 63 6b 71 75 65 72 | 79 28 62 75 74 74 6f 6e |lickquer|y(button|
|00004a00| 25 2c 69 63 6f 6e 25 29 | 0d 11 62 0a c8 8e 20 b9 |%,icon%)|..b... .|
|00004a10| 20 ca 0d 11 6c 21 c9 20 | 28 62 75 74 74 6f 6e 25 | ...l!. |(button%|
|00004a20| 20 80 20 34 29 3d 34 20 | 80 20 69 63 6f 6e 25 3c | . 4)=4 |. icon%<|
|00004a30| 3e 2d 31 0d 11 76 20 20 | 20 e7 20 63 6c 61 69 6d |>-1..v | . claim|
|00004a40| 71 75 65 72 79 24 3d 22 | 71 75 69 74 70 72 6f 67 |query$="|quitprog|
|00004a50| 22 20 8c 0d 11 80 12 20 | 20 20 20 c8 8e 20 69 63 |" ..... | .. ic|
|00004a60| 6f 6e 25 20 ca 0d 11 8a | 0d 20 20 20 20 20 20 c9 |on% ....|. .|
|00004a70| 20 32 0d 11 94 2f 20 20 | 20 20 20 20 20 20 f2 63 | 2.../ | .c|
|00004a80| 6c 6f 73 65 77 69 6e 64 | 6f 77 28 71 75 65 72 79 |losewind|ow(query|
|00004a90| 25 29 3a 63 6c 61 69 6d | 71 75 65 72 79 24 3d 22 |%):claim|query$="|
|00004aa0| 22 0d 11 9e 2b 20 20 20 | 20 20 20 20 20 f2 6d 6f |"...+ | .mo|
|00004ab0| 75 73 65 5f 72 65 63 74 | 61 6e 67 6c 65 28 30 2c |use_rect|angle(0,|
|00004ac0| 30 2c 33 30 30 30 2c 33 | 30 30 30 29 0d 11 a8 17 |0,3000,3|000)....|
|00004ad0| 20 20 20 20 20 20 20 20 | 63 6c 6f 73 65 64 6f 77 | |closedow|
|00004ae0| 6e 3d b9 0d 11 b2 0d 20 | 20 20 20 20 20 c9 20 30 |n=..... | . 0|
|00004af0| 0d 11 bc 2f 20 20 20 20 | 20 20 20 20 f2 63 6c 6f |.../ | .clo|
|00004b00| 73 65 77 69 6e 64 6f 77 | 28 71 75 65 72 79 25 29 |sewindow|(query%)|
|00004b10| 3a 63 6c 61 69 6d 71 75 | 65 72 79 24 3d 22 22 0d |:claimqu|ery$="".|
|00004b20| 11 c6 1d 20 20 20 20 20 | 20 20 20 c8 99 20 22 48 |... | .. "H|
|00004b30| 6f 75 72 67 6c 61 73 73 | 5f 4f 6e 22 0d 11 d0 24 |ourglass|_On"...$|
|00004b40| 20 20 20 20 20 20 20 20 | f2 73 61 76 65 66 69 6c | |.savefil|
|00004b50| 65 28 63 75 72 72 65 6e | 74 5f 66 69 6c 65 24 29 |e(curren|t_file$)|
|00004b60| 0d 11 da 1e 20 20 20 20 | 20 20 20 20 c8 99 20 22 |.... | .. "|
|00004b70| 48 6f 75 72 67 6c 61 73 | 73 5f 4f 66 66 22 0d 11 |Hourglas|s_Off"..|
|00004b80| e4 17 20 20 20 20 20 20 | 20 20 63 6c 6f 73 65 64 |.. | closed|
|00004b90| 6f 77 6e 3d b9 0d 11 ee | 2b 20 20 20 20 20 20 20 |own=....|+ |
|00004ba0| 20 f2 6d 6f 75 73 65 5f | 72 65 63 74 61 6e 67 6c | .mouse_|rectangl|
|00004bb0| 65 28 30 2c 30 2c 33 30 | 30 30 2c 33 30 30 30 29 |e(0,0,30|00,3000)|
|00004bc0| 0d 11 f8 09 20 20 20 20 | cb 0d 12 02 07 20 20 cd |.... |..... .|
|00004bd0| 0d 12 0c 05 cb 0d 12 16 | 05 e1 0d 12 20 04 0d 12 |........|.... ...|
|00004be0| 2a 1e dd f2 63 6c 69 63 | 6b 78 66 65 72 28 62 75 |*...clic|kxfer(bu|
|00004bf0| 74 74 6f 6e 25 2c 69 63 | 6f 6e 25 29 0d 12 34 0a |tton%,ic|on%)..4.|
|00004c00| c8 8e 20 b9 20 ca 0d 12 | 3e 1f c9 20 28 62 75 74 |.. . ...|>.. (but|
|00004c10| 74 6f 6e 25 20 80 20 34 | 29 3d 34 20 80 20 69 63 |ton% . 4|)=4 . ic|
|00004c20| 6f 6e 25 3d 30 0d 12 48 | 2a 20 20 f2 73 61 76 65 |on%=0..H|* .save|
|00004c30| 66 69 6c 65 28 a4 69 63 | 6f 6e 5f 67 65 74 64 61 |file(.ic|on_getda|
|00004c40| 74 61 28 71 25 2c 78 66 | 65 72 25 2c 32 29 29 0d |ta(q%,xf|er%,2)).|
|00004c50| 12 52 1e 20 20 c8 99 20 | 22 57 69 6d 70 5f 43 72 |.R. .. |"Wimp_Cr|
|00004c60| 65 61 74 65 4d 65 6e 75 | 22 2c 2c 2d 31 0d 12 5c |eateMenu|",,-1..\|
|00004c70| 1f c9 20 28 62 75 74 74 | 6f 6e 25 20 80 20 34 29 |.. (butt|on% . 4)|
|00004c80| 3d 34 20 80 20 69 63 6f | 6e 25 3d 33 0d 12 66 17 |=4 . ico|n%=3..f.|
|00004c90| 20 20 63 6c 61 69 6d 64 | 72 61 67 24 3d 22 78 66 | claimd|rag$="xf|
|00004ca0| 65 72 22 0d 12 70 0f 20 | 20 21 71 25 3d 78 66 65 |er"..p. | !q%=xfe|
|00004cb0| 72 25 0d 12 7a 22 20 20 | c8 99 20 22 57 69 6d 70 |r%..z" |.. "Wimp|
|00004cc0| 5f 47 65 74 57 69 6e 64 | 6f 77 53 74 61 74 65 22 |_GetWind|owState"|
|00004cd0| 2c 2c 71 25 0d 12 84 14 | 20 20 77 65 78 3d 71 25 |,,q%....| wex=q%|
|00004ce0| 21 34 2d 71 25 21 32 30 | 0d 12 8e 15 20 20 77 65 |!4-q%!20|.... we|
|00004cf0| 79 3d 71 25 21 31 36 2d | 71 25 21 32 34 0d 12 98 |y=q%!16-|q%!24...|
|00004d00| 0c 20 20 71 25 21 34 3d | 33 0d 12 a2 20 20 20 c8 |. q%!4=|3... .|
|00004d10| 99 20 22 57 69 6d 70 5f | 47 65 74 49 63 6f 6e 53 |. "Wimp_|GetIconS|
|00004d20| 74 61 74 65 22 2c 2c 71 | 25 0d 12 ac 16 20 20 21 |tate",,q|%.... !|
|00004d30| 71 25 3d 78 66 65 72 25 | 3a 71 25 21 34 3d 35 0d |q%=xfer%|:q%!4=5.|
|00004d40| 12 b6 13 20 20 71 25 21 | 38 3d 71 25 21 38 2b 77 |... q%!|8=q%!8+w|
|00004d50| 65 78 0d 12 c0 15 20 20 | 71 25 21 31 32 3d 71 25 |ex.... |q%!12=q%|
|00004d60| 21 31 32 2b 77 65 79 0d | 12 ca 15 20 20 71 25 21 |!12+wey.|... q%!|
|00004d70| 31 36 3d 71 25 21 31 36 | 2b 77 65 78 0d 12 d4 15 |16=q%!16|+wex....|
|00004d80| 20 20 71 25 21 32 30 3d | 71 25 21 32 30 2b 77 65 | q%!20=|q%!20+we|
|00004d90| 79 0d 12 de 15 20 20 71 | 25 21 32 34 3d 30 3a 71 |y.... q|%!24=0:q|
|00004da0| 25 21 32 38 3d 30 0d 12 | e8 25 20 20 71 25 21 33 |%!28=0..|.% q%!3|
|00004db0| 32 3d 26 37 46 46 46 46 | 46 46 46 3a 71 25 21 33 |2=&7FFFF|FFF:q%!3|
|00004dc0| 36 3d 26 37 46 46 46 46 | 46 46 46 0d 12 f2 1b 20 |6=&7FFFF|FFF.... |
|00004dd0| 20 c8 99 20 22 57 69 6d | 70 5f 44 72 61 67 42 6f | .. "Wim|p_DragBo|
|00004de0| 78 22 2c 2c 71 25 0d 12 | fc 05 cb 0d 13 06 05 e1 |x",,q%..|........|
|00004df0| 0d 13 10 04 0d 13 1a 18 | dd f2 64 6f 5f 62 61 63 |........|..do_bac|
|00004e00| 6b 67 72 6f 75 6e 64 5f | 74 61 73 6b 0d 13 24 05 |kground_|task..$.|
|00004e10| e1 0d 13 2e 04 0d 13 38 | 1b dd f2 72 65 64 72 61 |.......8|...redra|
|00004e20| 77 77 69 6e 64 6f 77 28 | 68 61 6e 64 6c 65 25 29 |wwindow(|handle%)|
|00004e30| 0d 13 42 0b ea 20 76 6f | 69 64 25 0d 13 4c 10 71 |..B.. vo|id%..L.q|
|00004e40| 25 21 30 3d 68 61 6e 64 | 6c 65 25 0d 13 56 27 c8 |%!0=hand|le%..V'.|
|00004e50| 99 20 22 57 69 6d 70 5f | 52 65 64 72 61 77 57 69 |. "Wimp_|RedrawWi|
|00004e60| 6e 64 6f 77 22 2c 30 2c | 71 25 20 b8 20 6d 6f 72 |ndow",0,|q% . mor|
|00004e70| 65 25 0d 13 60 1c f2 6c | 77 61 6f 72 69 67 69 6e |e%..`..l|waorigin|
|00004e80| 28 71 25 2b 34 2c 78 30 | 25 2c 79 30 25 29 0d 13 |(q%+4,x0|%,y0%)..|
|00004e90| 6a 0c c8 95 20 6d 6f 72 | 65 25 0d 13 74 0e 20 20 |j... mor|e%..t. |
|00004ea0| f2 6e 65 77 76 61 6c 73 | 0d 13 7e 12 20 20 c8 8e |.newvals|..~. ..|
|00004eb0| 20 68 61 6e 64 6c 65 25 | 20 ca 0d 13 88 07 20 20 | handle%| ..... |
|00004ec0| cb 0d 13 92 29 20 20 c8 | 99 20 22 57 69 6d 70 5f |....) .|. "Wimp_|
|00004ed0| 47 65 74 52 65 63 74 61 | 6e 67 6c 65 22 2c 30 2c |GetRecta|ngle",0,|
|00004ee0| 71 25 20 b8 20 6d 6f 72 | 65 25 0d 13 9c 05 ce 0d |q% . mor|e%......|
|00004ef0| 13 a6 05 e1 0d 13 b0 04 | 0d 13 ba 48 f4 20 54 68 |........|...H. Th|
|00004f00| 69 73 20 66 75 6e 63 74 | 69 6f 6e 20 68 61 6e 64 |is funct|ion hand|
|00004f10| 6c 65 73 20 61 6e 79 20 | 73 70 65 63 69 61 6c 20 |les any |special |
|00004f20| 77 69 6e 64 6f 77 20 63 | 6c 6f 73 69 6e 67 20 72 |window c|losing r|
|00004f30| 65 71 75 69 72 65 6d 65 | 6e 74 73 2e 20 46 6f 72 |equireme|nts. For|
|00004f40| 0d 13 c4 4a f4 20 74 68 | 65 20 27 6d 61 69 6e 77 |...J. th|e 'mainw|
|00004f50| 27 20 77 69 6e 64 6f 77 | 20 69 74 20 6a 75 73 74 |' window| it just|
|00004f60| 20 73 65 74 73 20 74 68 | 65 20 6f 70 65 6e 25 20 | sets th|e open% |
|00004f70| 66 6c 61 67 20 74 6f 20 | 46 41 4c 53 45 20 77 68 |flag to |FALSE wh|
|00004f80| 69 63 68 20 61 6c 6c 6f | 77 73 0d 13 ce 49 f4 20 |ich allo|ws...I. |
|00004f90| 74 68 65 20 6d 61 69 6e | 20 77 69 6e 64 6f 77 20 |the main| window |
|00004fa0| 74 6f 20 62 65 20 63 6c | 6f 73 65 64 20 61 6e 64 |to be cl|osed and|
|00004fb0| 20 72 65 6f 70 65 6e 65 | 64 20 62 79 20 63 6c 69 | reopene|d by cli|
|00004fc0| 63 6b 69 6e 67 20 73 65 | 6c 65 63 74 20 6f 6e 20 |cking se|lect on |
|00004fd0| 74 68 65 0d 13 d8 49 f4 | 20 69 63 6f 6e 62 61 72 |the...I.| iconbar|
|00004fe0| 20 69 63 6f 6e 2e 20 49 | 74 20 63 6f 75 6c 64 20 | icon. I|t could |
|00004ff0| 61 6c 73 6f 20 6d 61 6b | 65 20 77 69 6e 64 6f 77 |also mak|e window|
|00005000| 73 20 72 65 66 75 73 65 | 20 74 6f 20 63 6c 6f 73 |s refuse| to clos|
|00005010| 65 20 62 79 20 73 65 74 | 74 69 6e 67 0d 13 e2 1d |e by set|ting....|
|00005020| f4 20 73 68 75 74 74 69 | 6e 67 25 20 66 6c 61 67 |. shutti|ng% flag|
|00005030| 20 74 6f 20 46 41 4c 53 | 45 0d 13 ec 04 0d 13 f6 | to FALS|E.......|
|00005040| 19 dd a4 6f 6b 74 6f 63 | 6c 6f 73 65 77 28 68 61 |...oktoc|losew(ha|
|00005050| 6e 64 6c 65 25 29 0d 14 | 00 0f ea 20 73 68 75 74 |ndle%)..|... shut|
|00005060| 74 69 6e 67 25 0d 14 0a | 0f 73 68 75 74 74 69 6e |ting%...|.shuttin|
|00005070| 67 25 3d b9 0d 14 14 1e | e7 20 68 61 6e 64 6c 65 |g%=.....|. handle|
|00005080| 25 3d 6d 61 69 6e 77 25 | 20 8c 20 6f 70 65 6e 25 |%=mainw%| . open%|
|00005090| 3d a3 0d 14 1e 0e 3d 73 | 68 75 74 74 69 6e 67 25 |=.....=s|hutting%|
|000050a0| 0d 14 28 04 0d 14 32 46 | f4 20 54 68 65 20 6b 65 |..(...2F|. The ke|
|000050b0| 79 70 72 65 73 73 20 72 | 6f 75 74 69 6e 65 20 69 |ypress r|outine i|
|000050c0| 73 20 6e 65 65 64 65 64 | 20 74 6f 20 68 61 6e 64 |s needed| to hand|
|000050d0| 6c 65 20 27 73 70 65 63 | 69 61 6c 27 20 6b 65 79 |le 'spec|ial' key|
|000050e0| 73 20 74 68 61 74 20 74 | 68 65 0d 14 3c 48 f4 20 |s that t|he..<H. |
|000050f0| 57 49 4d 50 20 6d 61 6e | 61 67 65 72 20 63 61 6e |WIMP man|ager can|
|00005100| 6e 6f 74 20 70 72 6f 63 | 65 73 73 20 69 74 73 65 |not proc|ess itse|
|00005110| 6c 66 2e 20 54 68 65 73 | 65 20 69 6e 63 6c 75 64 |lf. Thes|e includ|
|00005120| 65 20 74 68 65 20 3c 52 | 45 54 55 52 4e 3e 20 61 |e the <R|ETURN> a|
|00005130| 6e 64 0d 14 46 4a f4 20 | 75 70 20 61 6e 64 20 64 |nd..FJ. |up and d|
|00005140| 6f 77 6e 20 63 75 72 73 | 6f 72 20 6b 65 79 73 20 |own curs|or keys |
|00005150| 77 68 69 63 68 20 61 72 | 65 20 75 73 65 64 20 74 |which ar|e used t|
|00005160| 6f 20 6d 6f 76 65 20 74 | 68 65 20 63 61 72 65 74 |o move t|he caret|
|00005170| 20 74 6f 20 74 68 65 20 | 6e 65 78 74 0d 14 50 46 | to the |next..PF|
|00005180| f4 20 6f 72 20 70 72 65 | 76 69 6f 75 73 20 77 72 |. or pre|vious wr|
|00005190| 69 74 65 61 62 6c 65 20 | 69 63 6f 6e 2e 20 53 69 |iteable |icon. Si|
|000051a0| 6e 63 65 20 74 68 65 20 | 57 49 4d 50 20 6d 61 6e |nce the |WIMP man|
|000051b0| 61 67 65 72 20 64 6f 65 | 73 20 6e 6f 74 20 6b 6e |ager doe|s not kn|
|000051c0| 6f 77 0d 14 5a 44 f4 20 | 74 68 65 20 6f 72 64 65 |ow..ZD. |the orde|
|000051d0| 72 20 69 6e 20 77 68 69 | 63 68 20 79 6f 75 20 73 |r in whi|ch you s|
|000051e0| 70 65 63 69 66 69 65 64 | 20 74 68 65 20 69 63 6f |pecified| the ico|
|000051f0| 6e 73 20 69 74 20 6e 65 | 65 64 73 20 73 6f 6d 65 |ns it ne|eds some|
|00005200| 20 68 65 6c 70 21 0d 14 | 64 49 f4 20 59 6f 75 20 | help!..|dI. You |
|00005210| 63 61 6e 20 6d 61 6b 65 | 20 74 68 69 6e 67 73 20 |can make| things |
|00005220| 65 61 73 69 65 72 20 66 | 6f 72 20 79 6f 75 72 73 |easier f|or yours|
|00005230| 65 6c 66 20 69 66 20 79 | 6f 75 20 64 65 66 69 6e |elf if y|ou defin|
|00005240| 65 20 74 68 65 20 77 72 | 69 74 65 61 62 6c 65 0d |e the wr|iteable.|
|00005250| 14 6e 47 f4 20 69 63 6f | 6e 73 20 69 6e 20 21 46 |.nG. ico|ns in !F|
|00005260| 6f 72 6d 45 64 20 73 6f | 20 74 68 61 74 20 74 68 |ormEd so| that th|
|00005270| 65 79 20 66 6f 72 6d 20 | 61 20 63 6f 6e 74 69 6e |ey form |a contin|
|00005280| 75 6f 75 73 20 62 6c 6f | 63 6b 20 28 69 2e 65 2e |uous blo|ck (i.e.|
|00005290| 20 31 31 2d 31 35 0d 14 | 78 4b f4 20 69 6e 20 27 | 11-15..|xK. in '|
|000052a0| 6d 61 69 6e 77 27 20 69 | 6e 20 74 68 69 73 20 61 |mainw' i|n this a|
|000052b0| 70 70 6c 69 63 61 74 69 | 6f 6e 29 2e 20 41 6c 6c |pplicati|on). All|
|000052c0| 20 77 69 6e 64 6f 77 73 | 20 72 65 71 75 69 72 69 | windows| requiri|
|000052d0| 6e 67 20 73 70 65 63 69 | 61 6c 20 63 75 72 73 6f |ng speci|al curso|
|000052e0| 72 0d 14 82 45 f4 20 6d | 6f 76 65 6d 65 6e 74 73 |r...E. m|ovements|
|000052f0| 20 2d 20 61 6e 79 20 77 | 69 74 68 20 6d 6f 72 65 | - any w|ith more|
|00005300| 20 74 68 61 6e 20 6f 6e | 65 20 77 72 69 74 65 61 | than on|e writea|
|00005310| 62 6c 65 20 69 63 6f 6e | 20 2d 20 77 69 6c 6c 20 |ble icon| - will |
|00005320| 6e 65 65 64 20 61 0d 14 | 8c 4b f4 20 44 45 46 50 |need a..|.K. DEFP|
|00005330| 52 4f 43 6b 65 79 70 72 | 65 73 73 5f 78 78 78 78 |ROCkeypr|ess_xxxx|
|00005340| 20 72 6f 75 74 69 6e 65 | 20 68 65 72 65 2e 20 48 | routine| here. H|
|00005350| 61 76 69 6e 67 20 61 20 | 73 65 70 61 72 61 74 65 |aving a |separate|
|00005360| 20 72 6f 75 74 69 6e 65 | 20 66 6f 72 20 65 61 63 | routine| for eac|
|00005370| 68 0d 14 96 41 f4 20 77 | 69 6e 64 6f 77 20 6d 61 |h...A. w|indow ma|
|00005380| 6b 65 73 20 74 68 69 6e | 67 73 20 61 20 62 69 74 |kes thin|gs a bit|
|00005390| 20 65 61 73 69 65 72 20 | 77 68 65 6e 20 61 6c 74 | easier |when alt|
|000053a0| 65 72 69 6e 67 20 74 68 | 65 20 70 72 6f 67 72 61 |ering th|e progra|
|000053b0| 6d 2e 0d 14 a0 04 0d 14 | aa 0e dd f2 6b 65 79 70 |m.......|....keyp|
|000053c0| 72 65 73 73 0d 14 b4 09 | ea 20 69 63 25 0d 14 be |ress....|. ic%...|
|000053d0| 10 e7 20 71 25 21 34 3c | 3e 2d 31 20 8c 0d 14 c8 |.. q%!4<|>-1 ....|
|000053e0| 29 20 20 c8 99 20 22 57 | 69 6d 70 5f 47 65 74 43 |) .. "W|imp_GetC|
|000053f0| 61 72 65 74 50 6f 73 69 | 74 69 6f 6e 22 2c 2c 6d |aretPosi|tion",,m|
|00005400| 73 67 62 6c 6b 25 0d 14 | d2 13 20 20 69 63 25 3d |sgblk%..|.. ic%=|
|00005410| 6d 73 67 62 6c 6b 25 21 | 34 0d 14 dc 10 20 20 c8 |msgblk%!|4.... .|
|00005420| 8e 20 71 25 21 32 34 20 | ca 0d 14 e6 27 20 20 20 |. q%!24 |....' |
|00005430| 20 c9 20 32 37 20 8c 20 | c8 99 20 22 57 69 6d 70 | . 27 . |.. "Wimp|
|00005440| 5f 43 72 65 61 74 65 4d | 65 6e 75 22 2c 2c 2d 31 |_CreateM|enu",,-1|
|00005450| 0d 14 f0 07 20 20 7f 0d | 14 fa 11 20 20 20 20 c8 |.... ..|... .|
|00005460| 8e 20 71 25 21 30 20 ca | 0d 15 04 2f 20 20 20 20 |. q%!0 .|.../ |
|00005470| 20 20 c9 20 6d 61 69 6e | 77 25 20 20 3a f2 6b 65 | . main|w% :.ke|
|00005480| 79 70 72 65 73 73 5f 6d | 61 69 6e 77 28 69 63 25 |ypress_m|ainw(ic%|
|00005490| 2c 71 25 21 32 34 29 0d | 15 0e 09 20 20 20 20 cb |,q%!24).|... .|
|000054a0| 0d 15 18 07 20 20 cb 0d | 15 22 05 cd 0d 15 2c 05 |.... ..|."....,.|
|000054b0| e1 0d 15 36 04 0d 15 40 | 20 dd f2 6b 65 79 70 72 |...6...@| ..keypr|
|000054c0| 65 73 73 5f 6d 61 69 6e | 77 28 69 63 6f 6e 25 2c |ess_main|w(icon%,|
|000054d0| 6b 65 79 25 29 0d 15 4a | 0d c8 8e 20 6b 65 79 25 |key%)..J|... key%|
|000054e0| 20 ca 0d 15 54 17 20 20 | c9 20 31 33 20 20 3a f4 | ...T. |. 13 :.|
|000054f0| 20 3c 52 45 54 55 52 4e | 3e 0d 15 5e 24 20 20 69 | <RETURN|>..^$ i|
|00005500| 63 6f 6e 25 2b 3d 31 3a | e7 20 69 63 6f 6e 25 3e |con%+=1:|. icon%>|
|00005510| 31 35 20 8c 20 69 63 6f | 6e 25 3d 31 31 0d 15 68 |15 . ico|n%=11..h|
|00005520| 1b 20 20 c9 20 26 31 38 | 45 20 3a f4 20 63 75 72 |. . &18|E :. cur|
|00005530| 73 6f 72 20 64 6f 77 6e | 0d 15 72 24 20 20 69 63 |sor down|..r$ ic|
|00005540| 6f 6e 25 2b 3d 31 3a e7 | 20 69 63 6f 6e 25 3e 31 |on%+=1:.| icon%>1|
|00005550| 35 20 8c 20 69 63 6f 6e | 25 3d 31 31 0d 15 7c 19 |5 . icon|%=11..|.|
|00005560| 20 20 c9 20 26 31 38 46 | 20 3a f4 20 63 75 72 73 | . &18F| :. curs|
|00005570| 6f 72 20 75 70 0d 15 86 | 24 20 20 69 63 6f 6e 25 |or up...|$ icon%|
|00005580| 2d 3d 31 3a e7 20 69 63 | 6f 6e 25 3c 31 31 20 8c |-=1:. ic|on%<11 .|
|00005590| 20 69 63 6f 6e 25 3d 31 | 35 0d 15 90 05 cb 0d 15 | icon%=1|5.......|
|000055a0| 9a 4f f2 63 61 72 65 74 | 5f 73 65 74 70 6f 73 69 |.O.caret|_setposi|
|000055b0| 74 69 6f 6e 28 6d 61 69 | 6e 77 25 2c 69 63 6f 6e |tion(mai|nw%,icon|
|000055c0| 25 2c 2d 31 2c 2d 31 2c | 2d 31 2c a9 28 a4 69 63 |%,-1,-1,|-1,.(.ic|
|000055d0| 6f 6e 5f 67 65 74 64 61 | 74 61 28 71 25 2c 6d 61 |on_getda|ta(q%,ma|
|000055e0| 69 6e 77 25 2c 69 63 6f | 6e 25 29 29 29 0d 15 a4 |inw%,ico|n%)))...|
|000055f0| 05 e1 0d 15 ae 04 0d 15 | b8 48 f4 20 54 68 65 20 |........|.H. The |
|00005600| 66 6f 6c 6c 6f 77 69 6e | 67 20 72 6f 75 74 69 6e |followin|g routin|
|00005610| 65 73 20 68 61 6e 64 6c | 65 20 6d 65 6e 75 20 73 |es handl|e menu s|
|00005620| 65 6c 65 63 74 69 6f 6e | 73 2e 20 53 6f 6d 65 20 |election|s. Some |
|00005630| 6f 66 20 74 68 65 20 6f | 70 74 69 6f 6e 73 0d 15 |of the o|ptions..|
|00005640| c2 49 f4 20 28 69 2e 65 | 2e 20 74 68 65 20 66 69 |.I. (i.e|. the fi|
|00005650| 72 73 74 20 74 68 72 65 | 65 29 20 64 6f 20 6e 6f |rst thre|e) do no|
|00005660| 74 20 72 65 71 75 69 72 | 65 20 61 6e 79 20 63 6f |t requir|e any co|
|00005670| 64 65 20 62 65 63 61 75 | 73 65 20 74 68 65 79 20 |de becau|se they |
|00005680| 6c 65 61 64 20 74 6f 0d | 15 cc 39 f4 20 64 69 61 |lead to.|..9. dia|
|00005690| 6c 6f 67 20 62 6f 78 65 | 73 20 77 68 69 63 68 20 |log boxe|s which |
|000056a0| 61 72 65 20 68 61 6e 64 | 6c 65 64 20 62 79 20 74 |are hand|led by t|
|000056b0| 68 65 20 57 49 4d 50 20 | 6d 61 6e 61 67 65 72 2e |he WIMP |manager.|
|000056c0| 0d 15 d6 44 f4 20 45 61 | 63 68 20 6d 65 6e 75 20 |...D. Ea|ch menu |
|000056d0| 77 69 6c 6c 20 72 65 71 | 75 69 72 65 20 61 20 72 |will req|uire a r|
|000056e0| 6f 75 74 69 6e 65 20 63 | 61 6c 6c 65 64 20 46 4e |outine c|alled FN|
|000056f0| 6d 65 6e 75 73 65 6c 65 | 63 74 5f 78 78 78 78 20 |menusele|ct_xxxx |
|00005700| 68 65 72 65 0d 15 e0 04 | 0d 15 ea 15 dd a4 6d 65 |here....|......me|
|00005710| 6e 75 73 65 6c 65 63 74 | 5f 6d 61 69 6e 0d 15 f4 |nuselect|_main...|
|00005720| 1b ea 20 6c 65 76 65 6c | 30 2c 6c 65 76 65 6c 31 |.. level|0,level1|
|00005730| 2c 62 75 74 74 6f 6e 25 | 0d 15 fe 0f 6c 65 76 65 |,button%|....leve|
|00005740| 6c 30 3d 71 25 21 30 0d | 16 08 0f 6c 65 76 65 6c |l0=q%!0.|...level|
|00005750| 31 3d 71 25 21 34 0d 16 | 12 48 c8 99 20 22 57 69 |1=q%!4..|.H.. "Wi|
|00005760| 6d 70 5f 47 65 74 50 6f | 69 6e 74 65 72 49 6e 66 |mp_GetPo|interInf|
|00005770| 6f 22 2c 2c 71 25 20 3a | f4 20 72 65 74 72 69 65 |o",,q% :|. retrie|
|00005780| 76 65 20 6d 6f 75 73 65 | 20 62 75 74 74 6f 6e 20 |ve mouse| button |
|00005790| 73 74 61 74 65 20 77 68 | 69 63 68 20 69 73 0d 16 |state wh|ich is..|
|000057a0| 1c 49 62 75 74 74 6f 6e | 25 3d 71 25 21 38 20 20 |.Ibutton|%=q%!8 |
|000057b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000057c0| 3a f4 20 6e 65 65 64 65 | 64 20 74 6f 20 63 68 65 |:. neede|d to che|
|000057d0| 63 6b 20 69 66 20 27 61 | 64 6a 75 73 74 27 20 77 |ck if 'a|djust' w|
|000057e0| 61 73 20 75 73 65 64 0d | 16 26 0f c8 8e 20 6c 65 |as used.|.&... le|
|000057f0| 76 65 6c 30 20 ca 0d 16 | 30 21 20 20 c9 20 30 20 |vel0 ...|0! . 0 |
|00005800| 20 3a 20 f4 20 3d 3d 3d | 3d 20 49 6e 66 6f 20 20 | : . ===|= Info |
|00005810| 20 20 20 20 3d 3d 3d 0d | 16 3a 21 20 20 c9 20 31 | ===.|.:! . 1|
|00005820| 20 20 3a 20 f4 20 3d 3d | 3d 3d 20 46 69 6c 65 73 | : . ==|== Files|
|00005830| 20 20 20 20 20 3d 3d 3d | 0d 16 44 21 20 20 c9 20 | ===|..D! . |
|00005840| 32 20 20 3a 20 f4 20 3d | 3d 3d 3d 20 53 61 76 65 |2 : . =|=== Save|
|00005850| 20 20 20 20 20 20 3d 3d | 3d 0d 16 4e 21 20 20 c9 | ==|=..N! .|
|00005860| 20 33 20 20 3a 20 f4 20 | 3d 3d 3d 3d 20 53 65 61 | 3 : . |==== Sea|
|00005870| 72 63 68 20 20 20 20 3d | 3d 3d 0d 16 58 21 20 20 |rch =|==..X! |
|00005880| c9 20 34 20 20 3a 20 f4 | 20 3d 3d 3d 3d 20 53 75 |. 4 : .| ==== Su|
|00005890| 62 2d 4d 65 6e 75 20 20 | 3d 3d 3d 0d 16 62 13 20 |b-Menu |===..b. |
|000058a0| 20 20 20 c8 8e 20 6c 65 | 76 65 6c 31 20 ca 0d 16 | .. le|vel1 ...|
|000058b0| 6c 0d 20 20 20 20 20 20 | c9 20 30 0d 16 76 13 20 |l. |. 0..v. |
|000058c0| 20 20 20 20 20 20 20 74 | 69 63 6b 25 3d b9 0d 16 | t|ick%=...|
|000058d0| 80 0d 20 20 20 20 20 20 | c9 20 31 0d 16 8a 13 20 |.. |. 1.... |
|000058e0| 20 20 20 20 20 20 20 74 | 69 63 6b 25 3d a3 0d 16 | t|ick%=...|
|000058f0| 94 0d 20 20 20 20 20 20 | c9 20 32 0d 16 9e 15 20 |.. |. 2.... |
|00005900| 20 20 20 20 20 20 20 73 | 68 61 64 65 64 25 3d b9 | s|haded%=.|
|00005910| 0d 16 a8 0d 20 20 20 20 | 20 20 c9 20 33 0d 16 b2 |.... | . 3...|
|00005920| 15 20 20 20 20 20 20 20 | 20 73 68 61 64 65 64 25 |. | shaded%|
|00005930| 3d a3 0d 16 bc 09 20 20 | 20 20 cb 0d 16 c6 21 20 |=..... | ....! |
|00005940| 20 c9 20 35 20 20 3a 20 | f4 20 3d 3d 3d 3d 20 57 | . 5 : |. ==== W|
|00005950| 72 69 74 65 61 62 6c 65 | 20 3d 3d 3d 0d 16 d0 05 |riteable| ===....|
|00005960| cb 0d 16 da 3d e7 20 62 | 75 74 74 6f 6e 25 3d 31 |....=. b|utton%=1|
|00005970| 20 8c 20 f2 6d 65 6e 75 | 5f 6d 61 69 6e 20 3a f4 | . .menu|_main :.|
|00005980| 20 61 64 6a 75 73 74 20 | 62 75 74 74 6f 6e 20 75 | adjust |button u|
|00005990| 73 65 64 2c 20 73 6f 20 | 72 65 6f 70 65 6e 0d 16 |sed, so |reopen..|
|000059a0| e4 2b 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.+ | |
|000059b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000059c0| 20 20 3a f4 20 6d 65 6e | 75 0d 16 ee 06 3d 30 0d | :. men|u....=0.|
|000059d0| 16 f8 04 0d 17 02 4c f4 | 20 48 61 6e 64 6c 65 73 |......L.| Handles|
|000059e0| 20 6d 65 6e 75 20 63 6c | 69 63 6b 73 20 6f 6e 20 | menu cl|icks on |
|000059f0| 74 68 65 20 69 63 6f 6e | 62 61 72 20 69 63 6f 6e |the icon|bar icon|
|00005a00| 2e 20 49 6e 20 74 68 69 | 73 20 63 61 73 65 20 73 |. In thi|s case s|
|00005a10| 65 6c 65 63 74 69 6e 67 | 20 6f 70 74 69 6f 6e 0d |electing| option.|
|00005a20| 17 0c 4c f4 20 31 20 28 | 51 75 69 74 29 20 63 68 |..L. 1 (|Quit) ch|
|00005a30| 65 63 6b 73 20 74 6f 20 | 73 65 65 20 69 66 20 75 |ecks to |see if u|
|00005a40| 6e 73 61 76 65 64 20 64 | 61 74 61 20 65 78 69 73 |nsaved d|ata exis|
|00005a50| 74 73 20 2d 20 69 66 20 | 69 74 20 64 6f 65 73 20 |ts - if |it does |
|00005a60| 74 68 65 20 27 71 75 65 | 72 79 27 0d 17 16 4a f4 |the 'que|ry'...J.|
|00005a70| 20 77 69 6e 64 6f 77 20 | 69 73 20 6f 70 65 6e 65 | window |is opene|
|00005a80| 64 20 74 6f 20 61 73 6b | 20 61 20 71 75 65 73 74 |d to ask| a quest|
|00005a90| 69 6f 6e 2e 20 4f 70 74 | 69 6f 6e 20 30 20 69 73 |ion. Opt|ion 0 is|
|00005aa0| 20 27 49 6e 66 6f 27 20 | 28 77 68 69 63 68 20 73 | 'Info' |(which s|
|00005ab0| 68 6f 75 6c 64 0d 17 20 | 48 f4 20 61 6c 77 61 79 |hould.. |H. alway|
|00005ac0| 73 20 62 65 20 74 68 65 | 20 66 69 72 73 74 20 65 |s be the| first e|
|00005ad0| 6e 74 72 79 20 69 6e 20 | 74 68 69 73 20 6d 65 6e |ntry in |this men|
|00005ae0| 75 29 20 61 6e 64 20 74 | 68 69 73 20 69 73 20 68 |u) and t|his is h|
|00005af0| 61 6e 64 6c 65 64 20 62 | 79 20 74 68 65 0d 17 2a |andled b|y the..*|
|00005b00| 2e f4 20 57 49 4d 50 20 | 6d 61 6e 61 67 65 72 20 |.. WIMP |manager |
|00005b10| 73 6f 20 6e 6f 20 63 6f | 64 65 20 69 73 20 72 65 |so no co|de is re|
|00005b20| 71 75 69 72 65 64 20 68 | 65 72 65 0d 17 34 04 0d |quired h|ere..4..|
|00005b30| 17 3e 16 dd a4 6d 65 6e | 75 73 65 6c 65 63 74 5f |.>...men|uselect_|
|00005b40| 73 69 63 6f 6e 0d 17 48 | 0c ea 20 6c 65 76 65 6c |sicon..H|.. level|
|00005b50| 30 0d 17 52 0f 6c 65 76 | 65 6c 30 3d 71 25 21 30 |0..R.lev|el0=q%!0|
|00005b60| 0d 17 5c 0f c8 8e 20 6c | 65 76 65 6c 30 20 ca 0d |..\... l|evel0 ..|
|00005b70| 17 66 09 20 20 c9 20 30 | 0d 17 70 09 20 20 c9 20 |.f. . 0|..p. . |
|00005b80| 31 0d 17 7a 14 20 20 20 | 20 e7 20 63 68 61 6e 67 |1..z. | . chang|
|00005b90| 65 64 25 20 8c 0d 17 84 | 20 20 20 20 20 20 20 63 |ed% ....| c|
|00005ba0| 6c 61 69 6d 71 75 65 72 | 79 24 3d 22 71 75 69 74 |laimquer|y$="quit|
|00005bb0| 70 72 6f 67 22 0d 17 8e | 34 20 20 20 20 20 20 f4 |prog"...|4 .|
|00005bc0| 20 66 69 72 73 74 20 70 | 75 74 20 74 68 65 20 74 | first p|ut the t|
|00005bd0| 65 78 74 20 69 6e 74 6f | 20 74 68 65 20 71 75 65 |ext into| the que|
|00005be0| 72 79 20 77 69 6e 64 6f | 77 0d 17 98 76 20 20 20 |ry windo|w...v |
|00005bf0| 20 20 20 f2 69 63 6f 6e | 5f 70 75 74 64 61 74 61 | .icon|_putdata|
|00005c00| 28 71 25 2c 71 75 65 72 | 79 25 2c 31 2c 22 54 68 |(q%,quer|y%,1,"Th|
|00005c10| 65 20 64 61 74 61 20 68 | 61 73 20 62 65 65 6e 20 |e data h|as been |
|00005c20| 65 64 69 74 65 64 20 62 | 75 74 20 6e 6f 74 20 73 |edited b|ut not s|
|00005c30| 61 76 65 64 2e 20 44 6f | 20 79 6f 75 20 77 61 6e |aved. Do| you wan|
|00005c40| 74 20 74 6f 20 73 61 76 | 65 20 74 68 65 20 72 65 |t to sav|e the re|
|00005c50| 76 69 73 65 64 20 66 69 | 6c 65 3f 22 2c 30 29 0d |vised fi|le?",0).|
|00005c60| 17 a2 37 20 20 20 20 20 | 20 f2 6f 70 65 6e 77 69 |..7 | .openwi|
|00005c70| 6e 64 6f 77 28 71 75 65 | 72 79 25 2c a3 2c 2d 31 |ndow(que|ry%,.,-1|
|00005c80| 29 20 3a f4 20 6f 70 65 | 6e 20 71 75 65 72 79 20 |) :. ope|n query |
|00005c90| 77 69 6e 64 6f 77 0d 17 | ac 48 20 20 20 20 20 20 |window..|.H |
|00005ca0| f2 6d 6f 75 73 65 5f 6c | 69 6d 69 74 28 71 25 2c |.mouse_l|imit(q%,|
|00005cb0| 71 75 65 72 79 25 29 20 | 20 20 20 20 20 3a f4 20 |query%) | :. |
|00005cc0| 73 74 6f 70 20 74 68 65 | 20 6d 6f 75 73 65 20 77 |stop the| mouse w|
|00005cd0| 61 6e 64 65 72 69 6e 67 | 20 61 62 6f 75 74 0d 17 |andering| about..|
|00005ce0| b6 48 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.H | |
|00005cf0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005d00| 20 20 20 20 20 20 20 20 | 3a f4 20 75 6e 74 69 6c | |:. until|
|00005d10| 20 74 68 65 20 71 75 65 | 73 74 69 6f 6e 20 68 61 | the que|stion ha|
|00005d20| 73 20 62 65 65 6e 0d 17 | c0 35 20 20 20 20 20 20 |s been..|.5 |
|00005d30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005d40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005d50| 3a f4 20 61 6e 73 77 65 | 72 65 64 0d 17 ca 09 20 |:. answe|red.... |
|00005d60| 20 20 20 cc 0d 17 d4 15 | 20 20 20 20 20 20 63 6c | .....| cl|
|00005d70| 6f 73 65 64 6f 77 6e 3d | b9 0d 17 de 09 20 20 20 |osedown=|..... |
|00005d80| 20 cd 0d 17 e8 05 cb 0d | 17 f2 06 3d 30 0d 17 fc | .......|...=0...|
|00005d90| 04 0d 18 06 48 f4 20 54 | 68 65 20 6d 65 6e 75 20 |....H. T|he menu |
|00005da0| 74 65 78 74 20 61 6e 64 | 20 63 68 61 72 61 63 74 |text and| charact|
|00005db0| 65 72 69 73 74 69 63 73 | 20 61 72 65 20 64 65 66 |eristics| are def|
|00005dc0| 69 6e 65 64 20 68 65 72 | 65 2e 20 45 61 63 68 20 |ined her|e. Each |
|00005dd0| 6d 65 6e 75 20 77 69 6c | 6c 0d 18 10 4c f4 20 6e |menu wil|l...L. n|
|00005de0| 65 65 64 20 61 20 72 6f | 75 74 69 6e 65 20 63 61 |eed a ro|utine ca|
|00005df0| 6c 6c 65 64 20 50 52 4f | 43 6d 65 6e 75 5f 78 78 |lled PRO|Cmenu_xx|
|00005e00| 78 78 2e 20 4e 6f 74 65 | 20 74 68 61 74 20 74 68 |xx. Note| that th|
|00005e10| 65 20 66 69 72 73 74 20 | 74 68 72 65 65 20 6f 70 |e first |three op|
|00005e20| 74 69 6f 6e 73 0d 18 1a | 4a f4 20 73 68 6f 77 20 |tions...|J. show |
|00005e30| 68 6f 77 20 74 6f 20 6f | 70 65 6e 20 61 20 64 69 |how to o|pen a di|
|00005e40| 61 6c 6f 67 20 62 6f 78 | 20 69 6e 20 61 20 6d 65 |alog box| in a me|
|00005e50| 6e 75 20 2d 20 74 68 65 | 20 6c 61 73 74 20 62 75 |nu - the| last bu|
|00005e60| 74 20 6f 6e 65 20 70 61 | 72 61 6d 65 74 65 72 0d |t one pa|rameter.|
|00005e70| 18 24 1b f4 20 69 73 20 | 74 68 65 20 77 69 6e 64 |.$.. is |the wind|
|00005e80| 6f 77 20 68 61 6e 64 6c | 65 2e 0d 18 2e 43 f4 20 |ow handl|e....C. |
|00005e90| 54 68 65 20 70 61 72 61 | 6d 65 74 65 72 73 20 70 |The para|meters p|
|00005ea0| 61 73 73 65 64 20 74 6f | 20 50 52 4f 43 64 65 66 |assed to| PROCdef|
|00005eb0| 69 6e 65 5f 6d 65 6e 75 | 5f 74 65 78 74 20 61 72 |ine_menu|_text ar|
|00005ec0| 65 20 61 73 20 66 6f 6c | 6c 6f 77 73 3a 0d 18 38 |e as fol|lows:..8|
|00005ed0| 4a f4 20 20 20 54 68 65 | 20 73 74 72 69 6e 67 20 |J. The| string |
|00005ee0| 66 6f 72 20 74 68 65 20 | 6d 65 6e 75 20 74 65 78 |for the |menu tex|
|00005ef0| 74 20 2d 20 6e 6f 74 65 | 20 74 68 65 20 73 70 65 |t - note| the spe|
|00005f00| 63 69 61 6c 20 66 6f 72 | 6d 20 72 65 71 75 69 72 |cial for|m requir|
|00005f10| 65 64 20 77 68 65 6e 0d | 18 42 46 f4 20 20 20 75 |ed when.|.BF. u|
|00005f20| 73 69 6e 67 20 69 6e 64 | 69 72 65 63 74 65 64 20 |sing ind|irected |
|00005f30| 6f 72 20 77 72 69 74 65 | 61 62 6c 65 20 74 65 78 |or write|able tex|
|00005f40| 74 20 62 75 74 20 70 72 | 6f 67 72 61 6d 20 63 72 |t but pr|ogram cr|
|00005f50| 75 6e 63 68 65 72 73 20 | 77 68 69 63 68 0d 18 4c |unchers |which..L|
|00005f60| 49 f4 20 20 20 72 65 61 | 6c 6c 6f 63 61 74 65 20 |I. rea|llocate |
|00005f70| 73 68 6f 72 74 65 72 20 | 76 61 72 69 61 62 6c 65 |shorter |variable|
|00005f80| 20 6e 61 6d 65 73 20 77 | 69 6c 6c 20 6e 6f 74 20 | names w|ill not |
|00005f90| 63 6f 70 65 20 77 69 74 | 68 20 74 68 69 73 21 20 |cope wit|h this! |
|00005fa0| 49 66 20 79 6f 75 0d 18 | 56 45 f4 20 20 20 77 61 |If you..|VE. wa|
|00005fb0| 6e 74 20 74 6f 20 75 73 | 65 20 73 75 63 68 20 61 |nt to us|e such a|
|00005fc0| 20 63 72 75 6e 63 68 65 | 72 20 79 6f 75 20 77 69 | crunche|r you wi|
|00005fd0| 6c 6c 20 6e 65 65 64 20 | 74 6f 20 64 69 73 63 6f |ll need |to disco|
|00005fe0| 76 65 72 20 74 68 65 20 | 6e 65 77 0d 18 60 46 f4 |ver the |new..`F.|
|00005ff0| 20 20 20 76 61 72 69 61 | 62 6c 65 20 6e 61 6d 65 | varia|ble name|
|00006000| 20 61 6e 64 20 73 75 62 | 73 74 69 74 75 74 65 20 | and sub|stitute |
|00006010| 69 74 20 79 6f 75 72 73 | 65 6c 66 20 69 6e 20 74 |it yours|elf in t|
|00006020| 68 69 73 20 72 6f 75 74 | 69 6e 65 20 61 66 74 65 |his rout|ine afte|
|00006030| 72 0d 18 6a 11 f4 20 20 | 20 63 72 75 6e 63 68 69 |r..j.. | crunchi|
|00006040| 6e 67 0d 18 74 37 f4 20 | 20 20 54 68 65 20 6e 75 |ng..t7. | The nu|
|00006050| 6d 62 65 72 20 6f 66 20 | 74 68 65 20 6d 65 6e 75 |mber of |the menu|
|00006060| 20 69 74 65 6d 20 2d 20 | 61 75 74 6f 6d 61 74 69 | item - |automati|
|00006070| 63 61 6c 6c 79 20 73 65 | 74 0d 18 7e 3a f4 20 20 |cally se|t..~:. |
|00006080| 20 54 68 65 20 27 77 72 | 69 74 65 61 62 6c 65 27 | The 'wr|iteable'|
|00006090| 20 66 6c 61 67 20 54 52 | 55 45 20 69 66 20 74 68 | flag TR|UE if th|
|000060a0| 65 20 69 74 65 6d 20 69 | 73 20 77 72 69 74 65 61 |e item i|s writea|
|000060b0| 62 6c 65 0d 18 88 37 f4 | 20 20 20 54 68 65 20 27 |ble...7.| The '|
|000060c0| 74 69 63 6b 27 20 66 6c | 61 67 20 20 20 20 20 20 |tick' fl|ag |
|000060d0| 54 52 55 45 20 69 66 20 | 74 68 65 20 69 74 65 6d |TRUE if |the item|
|000060e0| 20 69 73 20 74 69 63 6b | 65 64 0d 18 92 48 f4 20 | is tick|ed...H. |
|000060f0| 20 20 54 68 65 20 27 64 | 6f 74 74 65 64 27 20 66 | The 'd|otted' f|
|00006100| 6c 61 67 20 20 20 20 54 | 52 55 45 20 69 66 20 74 |lag T|RUE if t|
|00006110| 68 65 20 69 74 65 6d 20 | 68 61 73 20 61 20 64 6f |he item |has a do|
|00006120| 74 74 65 64 20 6c 69 6e | 65 20 75 6e 64 65 72 20 |tted lin|e under |
|00006130| 69 74 0d 18 9c 37 f4 20 | 20 20 54 68 65 20 27 73 |it...7. | The 's|
|00006140| 68 61 64 65 64 27 20 66 | 6c 61 67 20 20 20 20 54 |haded' f|lag T|
|00006150| 52 55 45 20 69 66 20 74 | 68 65 20 69 74 65 6d 20 |RUE if t|he item |
|00006160| 69 73 20 73 68 61 64 65 | 64 0d 18 a6 47 f4 20 20 |is shade|d...G. |
|00006170| 20 54 68 65 20 6d 65 6e | 75 20 69 74 65 6d 20 66 | The men|u item f|
|00006180| 6c 61 67 20 20 20 55 73 | 65 20 26 31 30 30 32 31 |lag Us|e &10021|
|00006190| 20 66 6f 72 20 6e 6f 72 | 6d 61 6c 20 69 74 65 6d | for nor|mal item|
|000061a0| 73 2c 20 6f 72 20 26 31 | 30 31 32 31 20 66 6f 72 |s, or &1|0121 for|
|000061b0| 0d 18 b0 47 f4 20 20 20 | 20 20 20 20 20 20 20 20 |...G. | |
|000061c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 69 6e 64 | | ind|
|000061d0| 69 72 65 63 74 65 64 20 | 61 6e 64 20 77 72 69 74 |irected |and writ|
|000061e0| 65 61 62 6c 65 20 69 74 | 65 6d 73 2e 20 49 6e 64 |eable it|ems. Ind|
|000061f0| 69 72 65 63 74 65 64 0d | 18 ba 4a f4 20 20 20 20 |irected.|..J. |
|00006200| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00006210| 20 20 20 20 69 74 65 6d | 73 20 61 72 65 20 6e 65 | item|s are ne|
|00006220| 65 64 65 64 20 77 68 65 | 6e 20 6d 6f 72 65 20 74 |eded whe|n more t|
|00006230| 68 61 6e 20 31 31 20 63 | 68 61 72 61 63 74 65 72 |han 11 c|haracter|
|00006240| 73 0d 18 c4 38 f4 20 20 | 20 20 20 20 20 20 20 20 |s...8. | |
|00006250| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 61 72 | | ar|
|00006260| 65 20 6e 65 65 64 65 64 | 20 69 6e 20 74 68 65 20 |e needed| in the |
|00006270| 6d 65 6e 75 20 69 74 65 | 6d 0d 18 ce 4a f4 20 20 |menu ite|m...J. |
|00006280| 20 54 68 65 20 73 75 62 | 2d 6d 65 6e 75 20 6e 75 | The sub|-menu nu|
|00006290| 6d 62 65 72 20 20 43 61 | 6e 20 62 65 20 30 20 66 |mber Ca|n be 0 f|
|000062a0| 6f 72 20 6e 6f 20 73 75 | 62 6d 65 6e 75 2c 20 31 |or no su|bmenu, 1|
|000062b0| 2d 39 39 20 6d 65 61 6e | 73 20 61 20 73 75 62 6d |-99 mean|s a subm|
|000062c0| 65 6e 75 0d 18 d8 49 f4 | 20 20 20 20 20 20 20 20 |enu...I.| |
|000062d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000062e0| 6e 75 6d 62 65 72 2c 20 | 61 6e 79 74 68 69 6e 67 |number, |anything|
|000062f0| 20 65 6c 73 65 20 69 73 | 20 74 72 65 61 74 65 64 | else is| treated|
|00006300| 20 61 73 20 61 20 77 69 | 6e 64 6f 77 0d 18 e2 34 | as a wi|ndow...4|
|00006310| f4 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00006320| 20 20 20 20 20 20 20 20 | 20 68 61 6e 64 6c 65 20 | | handle |
|00006330| 66 6f 72 20 61 20 64 69 | 61 6c 6f 67 20 62 6f 78 |for a di|alog box|
|00006340| 0d 18 ec 47 f4 20 20 20 | 54 68 65 20 27 6c 61 73 |...G. |The 'las|
|00006350| 74 27 20 66 6c 61 67 20 | 20 20 20 20 20 4d 75 73 |t' flag | Mus|
|00006360| 74 20 62 65 20 2d 31 20 | 66 6f 72 20 74 68 65 20 |t be -1 |for the |
|00006370| 6c 61 73 74 20 69 74 65 | 6d 20 69 6e 20 61 20 6d |last ite|m in a m|
|00006380| 65 6e 75 20 73 65 74 0d | 18 f6 04 0d 19 00 47 f4 |enu set.|......G.|
|00006390| 20 54 68 69 73 20 65 78 | 61 6d 70 6c 65 20 68 61 | This ex|ample ha|
|000063a0| 73 20 64 69 61 6c 6f 67 | 20 62 6f 78 65 73 20 74 |s dialog| boxes t|
|000063b0| 72 69 67 67 65 72 65 64 | 20 62 79 20 74 68 65 20 |riggered| by the |
|000063c0| 66 69 72 73 74 20 66 6f | 75 72 20 6f 70 74 69 6f |first fo|ur optio|
|000063d0| 6e 73 0d 19 0a 44 f4 20 | 61 6e 64 20 61 6e 6f 74 |ns...D. |and anot|
|000063e0| 68 65 72 20 6d 65 6e 75 | 20 73 65 74 20 62 79 20 |her menu| set by |
|000063f0| 74 68 65 20 66 69 66 74 | 68 2e 20 4e 6f 74 65 20 |the fift|h. Note |
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.