home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 3 / PDCD_3.iso / utilities / utilst / wimpext < prev    next >
ArcFS Archive  |  1995-10-05  |  186.6 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


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

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



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 41 72 63 68 69 76 65 00 | 90 00 00 00 54 03 00 00 |Archive.|....T...|
|00000010| 28 00 00 00 64 00 00 00 | 00 00 00 00 00 00 00 00 |(...d...|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000060| 83 4d 61 6e 75 61 6c 00 | 00 00 00 00 d3 53 01 00 |.Manual.|.....S..|
|00000070| 44 ff ff ff b3 4f 4e ca | 03 00 00 00 b3 3f 01 00 |D....ON.|.....?..|
|00000080| 24 00 00 00 83 53 57 49 | 73 00 00 00 00 00 00 00 |$....SWI|s.......|
|00000090| 7f ec 00 00 44 ff ff ff | c9 8b 49 98 03 00 00 00 |....D...|..I.....|
|000000a0| 7d da 00 00 fb 3f 01 00 | 83 57 69 6d 70 45 78 74 |}....?..|.WimpExt|
|000000b0| 00 00 00 00 88 d7 00 00 | 44 fa ff ff 01 f7 4c ca |........|D.....L.|
|000000c0| 03 00 00 00 44 cc 00 00 | 9c 1a 02 00 00 00 00 00 |....D...|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000210| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000270| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000280| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000290| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000350| 00 00 00 00 46 69 6c 65 | 44 61 74 61 83 4d 61 6e |....File|Data.Man|
|00000360| 75 61 6c 00 00 00 00 00 | d3 53 01 00 46 fd ff ff |ual.....|.S..F...|
|00000370| bb 40 f1 5b 03 00 00 00 | 20 90 16 5f 90 20 0a 0a |.@.[....| .._. ..|
|00000380| 20 90 16 57 69 6d 70 45 | 78 74 65 6e 73 69 6f 6e | ..WimpE|xtension|
|00000390| 20 32 2e 31 38 20 28 31 | 36 2d 41 75 67 2d 31 39 | 2.18 (1|6-Aug-19|
|000003a0| 39 33 29 0a 20 90 16 5f | 90 20 0a 90 03 20 90 15 |93). .._|. ... ..|
|000003b0| 28 63 29 20 4a 6f 6e 20 | 52 69 62 62 65 6e 73 20 |(c) Jon |Ribbens |
|000003c0| 6f 66 20 44 6f 67 67 79 | 53 6f 66 74 2c 20 31 39 |of Doggy|Soft, 19|
|000003d0| 39 33 0a 90 03 4c 69 63 | 65 6e 63 65 0a 3d 90 07 |93...Lic|ence.=..|
|000003e0| 0a 90 03 59 6f 75 20 63 | 61 6e 20 67 69 76 65 20 |...You c|an give |
|000003f0| 63 6f 70 69 65 73 20 6f | 66 20 57 69 6d 70 45 78 |copies o|f WimpEx|
|00000400| 74 65 6e 73 69 6f 6e 2c | 20 77 69 74 68 20 6f 72 |tension,| with or|
|00000410| 20 77 69 74 68 6f 75 74 | 20 74 68 65 20 61 63 63 | without| the acc|
|00000420| 6f 6d 70 61 6e 79 69 6e | 67 0a 64 6f 63 75 6d 65 |ompanyin|g.docume|
|00000430| 6e 74 61 74 69 6f 6e 20 | 61 6e 64 20 65 78 61 6d |ntation |and exam|
|00000440| 70 6c 65 20 61 70 70 6c | 69 63 61 74 69 6f 6e 2c |ple appl|ication,|
|00000450| 20 74 6f 20 61 6e 79 62 | 6f 64 79 20 79 6f 75 20 | to anyb|ody you |
|00000460| 6c 69 6b 65 2c 20 61 73 | 20 6c 6f 6e 67 20 61 73 |like, as| long as|
|00000470| 20 79 6f 75 0a 64 6f 6e | 27 74 20 6d 61 6b 65 20 | you.don|'t make |
|00000480| 61 6e 79 20 6d 6f 6e 65 | 79 20 6f 75 74 20 6f 66 |any mone|y out of|
|00000490| 20 64 6f 69 6e 67 20 73 | 6f 2e 20 59 6f 75 20 63 | doing s|o. You c|
|000004a0| 61 6e 2c 20 68 6f 77 65 | 76 65 72 2c 20 69 6e 63 |an, howe|ver, inc|
|000004b0| 6c 75 64 65 20 57 69 6d | 70 45 78 74 65 6e 73 69 |lude Wim|pExtensi|
|000004c0| 6f 6e 0a 77 69 74 68 20 | 6f 74 68 65 72 20 63 6f |on.with |other co|
|000004d0| 6d 6d 65 72 63 69 61 6c | 20 70 72 6f 64 75 63 74 |mmercial| product|
|000004e0| 73 2e 20 69 65 3a 20 59 | 6f 75 20 63 61 6e 20 73 |s. ie: Y|ou can s|
|000004f0| 65 6c 6c 20 61 20 70 72 | 6f 67 72 61 6d 20 77 68 |ell a pr|ogram wh|
|00000500| 69 63 68 20 75 73 65 73 | 0a 57 69 6d 70 45 78 74 |ich uses|.WimpExt|
|00000510| 65 6e 73 69 6f 6e 2c 20 | 61 6e 64 20 69 6e 63 6c |ension, |and incl|
|00000520| 75 64 65 20 57 69 6d 70 | 45 78 74 65 6e 73 69 6f |ude Wimp|Extensio|
|00000530| 6e 20 77 69 74 68 20 69 | 74 2c 20 62 75 74 20 79 |n with i|t, but y|
|00000540| 6f 75 20 63 61 6e 27 74 | 20 73 65 6c 6c 0a 57 69 |ou can't| sell.Wi|
|00000550| 6d 70 45 78 74 65 6e 73 | 69 6f 6e 20 6f 6e 20 69 |mpExtens|ion on i|
|00000560| 74 73 20 6f 77 6e 2e 0a | 0a 54 68 65 72 65 20 69 |ts own..|.There i|
|00000570| 73 20 6e 6f 20 77 61 72 | 72 61 6e 74 79 20 61 74 |s no war|ranty at|
|00000580| 20 61 6c 6c 2c 20 65 78 | 70 72 65 73 73 20 6f 72 | all, ex|press or|
|00000590| 20 69 6d 70 6c 69 65 64 | 20 6f 72 20 77 68 61 74 | implied| or what|
|000005a0| 65 76 65 72 2e 20 49 66 | 20 61 6e 79 74 68 69 6e |ever. If| anythin|
|000005b0| 67 20 67 6f 65 73 0a 77 | 72 6f 6e 67 2c 20 64 6f |g goes.w|rong, do|
|000005c0| 6e 27 74 20 62 6c 61 6d | 65 20 6d 65 2e 20 49 20 |n't blam|e me. I |
|000005d0| 77 69 6c 6c 2c 20 68 6f | 77 65 76 65 72 2c 20 74 |will, ho|wever, t|
|000005e0| 72 79 20 74 6f 20 66 69 | 78 20 61 6e 79 20 70 72 |ry to fi|x any pr|
|000005f0| 6f 62 6c 65 6d 73 20 79 | 6f 75 20 66 69 6e 64 2e |oblems y|ou find.|
|00000600| 0a 90 03 4e 42 20 20 49 | 66 20 79 6f 75 20 66 69 |...NB I|f you fi|
|00000610| 6e 64 20 61 6e 79 20 62 | 75 67 73 20 69 6e 20 57 |nd any b|ugs in W|
|00000620| 69 6d 70 45 78 74 65 6e | 73 69 6f 6e 2c 20 6f 72 |impExten|sion, or|
|00000630| 20 79 6f 75 20 74 68 69 | 6e 6b 20 49 20 73 68 6f | you thi|nk I sho|
|00000640| 75 6c 64 20 69 6e 63 6c | 75 64 65 20 73 6f 6d 65 |uld incl|ude some|
|00000650| 0a 2d 2d 20 20 65 78 74 | 72 61 20 66 65 61 74 75 |.-- ext|ra featu|
|00000660| 72 65 2c 20 64 6f 6e 27 | 74 20 6a 75 73 74 20 73 |re, don'|t just s|
|00000670| 69 74 20 74 68 65 72 65 | 20 6d 75 74 74 65 72 69 |it there| mutteri|
|00000680| 6e 67 20 74 6f 20 79 6f | 75 72 73 65 6c 66 2c 20 |ng to yo|urself, |
|00000690| 54 45 4c 4c 20 6d 65 20 | 61 62 6f 75 74 0a 20 90 |TELL me |about. .|
|000006a0| 04 69 74 2e 0a 90 04 49 | 6e 74 72 6f 64 75 63 74 |.it....I|ntroduct|
|000006b0| 69 6f 6e 0a 3d 90 0c 0a | 0a 57 69 6d 70 45 78 74 |ion.=...|.WimpExt|
|000006c0| 65 6e 73 69 6f 6e 20 69 | 73 20 64 65 73 69 67 6e |ension i|s design|
|000006d0| 65 64 20 74 6f 20 6d 61 | 6b 65 20 74 68 65 20 74 |ed to ma|ke the t|
|000006e0| 61 73 6b 20 6f 66 20 70 | 72 6f 67 72 61 6d 6d 69 |ask of p|rogrammi|
|000006f0| 6e 67 20 74 68 65 20 57 | 69 6d 70 20 65 61 73 69 |ng the W|imp easi|
|00000700| 65 72 2e 20 49 74 0a 61 | 6c 73 6f 20 65 6e 61 62 |er. It.a|lso enab|
|00000710| 6c 65 73 20 79 6f 75 20 | 74 6f 20 75 73 65 20 33 |les you |to use 3|
|00000720| 44 20 69 63 6f 6e 73 20 | 28 6c 69 6b 65 20 49 6d |D icons |(like Im|
|00000730| 70 72 65 73 73 69 6f 6e | 29 2e 20 49 74 20 69 73 |pression|). It is|
|00000740| 20 64 65 73 69 67 6e 65 | 64 20 74 6f 20 65 6e 61 | designe|d to ena|
|00000750| 62 6c 65 0a 79 6f 75 2c | 20 77 68 65 6e 20 79 6f |ble.you,| when yo|
|00000760| 75 20 61 72 65 20 77 72 | 69 74 69 6e 67 20 79 6f |u are wr|iting yo|
|00000770| 75 72 20 70 72 6f 67 72 | 61 6d 73 2c 20 74 6f 20 |ur progr|ams, to |
|00000780| 74 68 69 6e 6b 20 6c 65 | 73 73 20 27 49 74 27 73 |think le|ss 'It's|
|00000790| 20 61 20 44 65 73 6b 74 | 6f 70 0a 70 72 6f 67 72 | a Deskt|op.progr|
|000007a0| 61 6d 27 20 61 6e 64 20 | 6d 6f 72 65 20 27 49 74 |am' and |more 'It|
|000007b0| 27 73 20 61 20 70 72 6f | 67 72 61 6d 20 74 6f 20 |'s a pro|gram to |
|000007c0| 64 6f 20 2e 90 03 27 2e | 20 49 74 20 68 61 73 20 |do ...'.| It has |
|000007d0| 62 65 65 6e 20 77 72 69 | 74 74 65 6e 20 6f 76 65 |been wri|tten ove|
|000007e0| 72 20 61 0a 70 65 72 69 | 6f 64 20 6f 66 20 6d 6f |r a.peri|od of mo|
|000007f0| 72 65 20 74 68 61 6e 20 | 61 20 79 65 61 72 2c 20 |re than |a year, |
|00000800| 72 65 61 63 68 69 6e 67 | 20 6f 76 65 72 20 74 77 |reaching| over tw|
|00000810| 65 6c 76 65 20 74 68 6f | 75 73 61 6e 64 20 6c 69 |elve tho|usand li|
|00000820| 6e 65 73 20 6f 66 20 73 | 6f 75 72 63 65 0a 63 6f |nes of s|ource.co|
|00000830| 64 65 2c 20 68 6f 70 65 | 66 75 6c 6c 79 20 63 61 |de, hope|fully ca|
|00000840| 72 65 66 75 6c 6c 79 20 | 64 65 73 69 67 6e 65 64 |refully |designed|
|00000850| 20 74 6f 20 62 65 20 61 | 73 20 65 61 73 79 20 74 | to be a|s easy t|
|00000860| 6f 20 75 73 65 20 61 73 | 20 70 6f 73 73 69 62 6c |o use as| possibl|
|00000870| 65 2e 0a 0a 59 6f 75 20 | 75 73 65 20 57 69 6d 70 |e...You |use Wimp|
|00000880| 45 78 74 65 6e 73 69 6f | 6e 20 62 79 20 61 20 73 |Extensio|n by a s|
|00000890| 65 74 20 6f 66 20 53 57 | 49 20 28 42 41 53 49 43 |et of SW|I (BASIC|
|000008a0| 27 73 20 53 59 53 29 20 | 63 6f 6d 6d 61 6e 64 73 |'s SYS) |commands|
|000008b0| 2e 20 54 68 65 72 65 20 | 61 72 65 20 63 61 6c 6c |. There |are call|
|000008c0| 73 0a 74 6f 20 70 75 74 | 20 69 63 6f 6e 73 20 6f |s.to put| icons o|
|000008d0| 6e 20 74 68 65 20 69 63 | 6f 6e 62 61 72 2c 20 74 |n the ic|onbar, t|
|000008e0| 6f 20 63 68 61 6e 67 65 | 20 74 68 65 20 70 6f 69 |o change| the poi|
|000008f0| 6e 74 65 72 20 73 68 61 | 70 65 2c 20 74 6f 20 70 |nter sha|pe, to p|
|00000900| 6f 70 20 69 63 6f 6e 73 | 20 69 6e 20 61 6e 64 0a |op icons| in and.|
|00000910| 6f 75 74 2c 20 6c 69 6e | 6b 20 77 69 6e 64 6f 77 |out, lin|k window|
|00000920| 73 20 73 6f 20 74 68 65 | 79 20 6d 6f 76 65 20 61 |s so the|y move a|
|00000930| 62 6f 75 74 20 74 6f 67 | 65 74 68 65 72 20 28 66 |bout tog|ether (f|
|00000940| 6f 72 20 74 6f 6f 6c 62 | 6f 78 65 73 20 61 6e 64 |or toolb|oxes and|
|00000950| 0a 77 69 6e 64 6f 77 73 | 2d 69 6e 2d 77 69 6e 64 |.windows|-in-wind|
|00000960| 6f 77 73 29 2c 20 74 68 | 65 72 65 20 61 72 65 20 |ows), th|ere are |
|00000970| 66 61 63 69 6c 69 74 69 | 65 73 20 66 6f 72 20 6f |faciliti|es for o|
|00000980| 70 74 69 6f 6e 73 20 77 | 69 6e 64 6f 77 20 68 61 |ptions w|indow ha|
|00000990| 6e 64 6c 69 6e 67 2c 20 | 66 6f 72 0a 64 69 61 6c |ndling, |for.dial|
|000009a0| 6f 67 75 65 20 62 6f 78 | 65 73 2c 20 66 6f 72 20 |ogue box|es, for |
|000009b0| 63 6f 6e 74 72 6f 6c 6c | 69 6e 67 20 69 6e 64 69 |controll|ing indi|
|000009c0| 72 65 63 74 65 64 20 69 | 63 6f 6e 73 2c 20 66 6f |rected i|cons, fo|
|000009d0| 72 20 6c 6f 61 64 69 6e | 67 20 74 65 6d 70 6c 61 |r loadin|g templa|
|000009e0| 74 65 73 2c 20 66 6f 72 | 0a 63 6f 6c 6f 75 72 20 |tes, for|.colour |
|000009f0| 6d 65 6e 75 73 2c 20 66 | 6f 72 20 52 41 4d 20 74 |menus, f|or RAM t|
|00000a00| 65 6d 70 6c 61 74 65 73 | 2c 20 66 6f 72 20 64 72 |emplates|, for dr|
|00000a10| 61 67 67 69 6e 67 20 69 | 63 6f 6e 73 2c 20 66 6f |agging i|cons, fo|
|00000a20| 72 20 6d 65 6e 75 20 68 | 61 6e 64 6c 69 6e 67 2c |r menu h|andling,|
|00000a30| 20 66 6f 72 0a 64 72 61 | 77 2d 66 69 6c 65 73 20 | for.dra|w-files |
|00000a40| 61 6e 64 20 73 70 72 69 | 74 65 73 2c 20 66 6f 72 |and spri|tes, for|
|00000a50| 20 69 6d 6d 65 64 69 61 | 74 65 20 77 69 6e 64 6f | immedia|te windo|
|00000a60| 77 73 2c 20 66 6f 72 20 | 6d 65 6d 6f 72 79 20 6d |ws, for |memory m|
|00000a70| 61 6e 61 67 65 6d 65 6e | 74 2c 20 65 74 63 2e 2c |anagemen|t, etc.,|
|00000a80| 0a 65 74 63 2e 0a 0a 54 | 68 69 73 20 6d 61 6e 75 |.etc...T|his manu|
|00000a90| 61 6c 20 65 78 70 6c 61 | 69 6e 73 20 61 6c 6c 20 |al expla|ins all |
|00000aa0| 74 68 65 20 66 65 61 74 | 75 72 65 73 20 6f 66 20 |the feat|ures of |
|00000ab0| 57 69 6d 70 45 78 74 65 | 6e 73 69 6f 6e 2c 20 61 |WimpExte|nsion, a|
|00000ac0| 6e 64 20 68 6f 77 20 74 | 6f 20 75 73 65 20 74 68 |nd how t|o use th|
|00000ad0| 65 6d 2e 0a 46 6f 72 20 | 61 20 71 75 69 63 6b 20 |em..For |a quick |
|00000ae0| 6f 76 65 72 76 69 65 77 | 20 6f 66 20 74 68 65 20 |overview| of the |
|00000af0| 53 57 49 20 63 61 6c 6c | 73 20 72 65 61 64 20 74 |SWI call|s read t|
|00000b00| 68 65 20 66 69 6c 65 20 | 27 53 57 49 73 27 2e 0a |he file |'SWIs'..|
|00000b10| 0a 54 68 65 72 65 20 69 | 73 20 61 6e 20 61 63 63 |.There i|s an acc|
|00000b20| 6f 6d 70 61 6e 79 69 6e | 67 20 65 78 61 6d 70 6c |ompanyin|g exampl|
|00000b30| 65 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 2c 20 45 |e applic|ation, E|
|00000b40| 78 74 44 65 6d 6f 2c 20 | 77 68 69 63 68 20 73 68 |xtDemo, |which sh|
|00000b50| 6f 75 6c 64 20 62 65 0a | 69 6e 63 6c 75 64 65 64 |ould be.|included|
|00000b60| 20 77 69 74 68 20 74 68 | 65 20 57 69 6d 70 45 78 | with th|e WimpEx|
|00000b70| 74 65 6e 73 69 6f 6e 20 | 6d 6f 64 75 6c 65 2e 20 |tension |module. |
|00000b80| 54 68 69 73 20 73 68 6f | 77 73 20 6f 66 66 20 73 |This sho|ws off s|
|00000b90| 6f 6d 65 20 6f 66 20 74 | 68 65 20 66 65 61 74 75 |ome of t|he featu|
|00000ba0| 72 65 73 0a 6f 66 20 57 | 69 6d 70 45 78 74 65 6e |res.of W|impExten|
|00000bb0| 73 69 6f 6e 2e 20 49 74 | 20 69 73 20 77 72 69 74 |sion. It| is writ|
|00000bc0| 74 65 6e 20 69 6e 20 42 | 41 53 49 43 20 73 6f 20 |ten in B|ASIC so |
|00000bd0| 74 68 61 74 20 79 6f 75 | 20 63 61 6e 20 73 65 65 |that you| can see|
|00000be0| 20 68 6f 77 20 69 74 20 | 77 6f 72 6b 73 2e 0a 90 | how it |works...|
|00000bf0| 04 47 65 6e 65 72 61 6c | 20 70 6f 69 6e 74 73 0a |.General| points.|
|00000c00| 3d 90 0e 0a 0a 2a 20 57 | 69 6d 70 45 78 74 65 6e |=....* W|impExten|
|00000c10| 73 69 6f 6e 20 6e 65 65 | 64 73 20 74 6f 20 6b 6e |sion nee|ds to kn|
|00000c20| 6f 77 20 77 68 69 63 68 | 20 74 61 73 6b 20 69 73 |ow which| task is|
|00000c30| 20 63 61 6c 6c 69 6e 67 | 20 69 74 2e 20 49 74 20 | calling| it. It |
|00000c40| 69 73 20 74 6f 6c 64 20 | 77 68 65 6e 20 79 6f 75 |is told |when you|
|00000c50| 0a 20 20 63 61 6c 6c 20 | 57 69 6d 70 45 78 74 5f |. call |WimpExt_|
|00000c60| 49 6e 69 74 69 61 6c 69 | 73 65 20 6f 72 20 57 69 |Initiali|se or Wi|
|00000c70| 6d 70 45 78 74 5f 41 63 | 74 69 6f 6e 2c 20 62 75 |mpExt_Ac|tion, bu|
|00000c80| 74 20 63 61 6c 6c 73 20 | 74 6f 20 57 69 6d 70 5f |t calls |to Wimp_|
|00000c90| 50 6f 6c 6c 20 6d 61 79 | 0a 20 20 63 68 61 6e 67 |Poll may|. chang|
|00000ca0| 65 20 69 74 20 28 61 73 | 20 6f 74 68 65 72 20 74 |e it (as| other t|
|00000cb0| 61 73 6b 73 20 63 61 6c | 6c 20 69 74 29 2e 20 49 |asks cal|l it). I|
|00000cc0| 66 20 79 6f 75 20 68 61 | 76 65 20 6e 6f 74 20 63 |f you ha|ve not c|
|00000cd0| 61 6c 6c 65 64 0a 20 20 | 57 69 6d 70 45 78 74 5f |alled. |WimpExt_|
|00000ce0| 49 6e 69 74 69 61 6c 69 | 73 65 20 6f 72 20 57 69 |Initiali|se or Wi|
|00000cf0| 6d 70 45 78 74 5f 41 63 | 74 69 6f 6e 20 73 69 6e |mpExt_Ac|tion sin|
|00000d00| 63 65 20 74 68 65 20 6c | 61 73 74 20 57 69 6d 70 |ce the l|ast Wimp|
|00000d10| 5f 50 6f 6c 6c 20 74 68 | 65 72 65 66 6f 72 65 2c |_Poll th|erefore,|
|00000d20| 0a 20 20 79 6f 75 20 73 | 68 6f 75 6c 64 20 63 61 |. you s|hould ca|
|00000d30| 6c 6c 20 57 69 6d 70 45 | 78 74 5f 43 75 72 72 65 |ll WimpE|xt_Curre|
|00000d40| 6e 74 54 61 73 6b 20 74 | 6f 20 74 65 6c 6c 20 57 |ntTask t|o tell W|
|00000d50| 69 6d 70 45 78 74 65 6e | 73 69 6f 6e 20 79 6f 75 |impExten|sion you|
|00000d60| 72 20 74 61 73 6b 20 68 | 61 6e 64 6c 65 2e 0a 2a |r task h|andle..*|
|00000d70| 20 49 6e 20 67 65 6e 65 | 72 61 6c 2c 20 61 6c 6c | In gene|ral, all|
|00000d80| 20 73 74 72 69 6e 67 73 | 20 61 72 65 20 63 6f 6e | strings| are con|
|00000d90| 74 72 6f 6c 2d 74 65 72 | 6d 69 6e 61 74 65 64 2c |trol-ter|minated,|
|00000da0| 20 69 65 2e 20 74 68 65 | 79 20 6d 61 79 20 6e 6f | ie. the|y may no|
|00000db0| 74 20 63 6f 6e 74 61 69 | 6e 0a 20 20 61 6e 79 20 |t contai|n. any |
|00000dc0| 63 68 61 72 61 63 74 65 | 72 73 20 6c 65 73 73 20 |characte|rs less |
|00000dd0| 74 68 61 6e 20 33 32 2c | 20 77 68 69 63 68 20 61 |than 32,| which a|
|00000de0| 72 65 20 74 72 65 61 74 | 65 64 20 61 73 20 74 65 |re treat|ed as te|
|00000df0| 72 6d 69 6e 61 74 6f 72 | 73 2e 0a 2a 20 53 6f 6d |rminator|s..* Som|
|00000e00| 65 20 66 65 61 74 75 72 | 65 73 20 6f 66 20 57 69 |e featur|es of Wi|
|00000e10| 6d 70 45 78 74 65 6e 73 | 69 6f 6e 20 61 72 65 20 |mpExtens|ion are |
|00000e20| 63 6f 6e 74 72 6f 6c 6c | 65 64 20 62 79 20 74 68 |controll|ed by th|
|00000e30| 65 20 76 61 6c 69 64 61 | 74 69 6f 6e 20 73 74 72 |e valida|tion str|
|00000e40| 69 6e 67 73 20 6f 66 0a | 20 20 69 63 6f 6e 73 2e |ings of.| icons.|
|00000e50| 20 54 6f 20 68 61 76 65 | 20 61 20 76 61 6c 69 64 | To have| a valid|
|00000e60| 61 74 69 6f 6e 20 73 74 | 72 69 6e 67 2c 20 74 68 |ation st|ring, th|
|00000e70| 65 20 69 63 6f 6e 20 6d | 75 73 74 20 62 65 20 69 |e icon m|ust be i|
|00000e80| 6e 64 69 72 65 63 74 65 | 64 20 74 65 78 74 20 28 |ndirecte|d text (|
|00000e90| 70 6c 75 73 0a 20 20 73 | 70 72 69 74 65 20 69 66 |plus. s|prite if|
|00000ea0| 20 79 6f 75 20 77 61 6e | 74 29 2e 20 28 49 66 20 | you wan|t). (If |
|00000eb0| 79 6f 75 20 64 6f 6e 27 | 74 20 77 61 6e 74 20 74 |you don'|t want t|
|00000ec0| 65 78 74 2c 20 6d 61 6b | 65 20 69 74 20 74 65 78 |ext, mak|e it tex|
|00000ed0| 74 2c 20 6a 75 73 74 20 | 64 6f 6e 27 74 20 70 75 |t, just |don't pu|
|00000ee0| 74 0a 20 20 61 6e 79 20 | 74 65 78 74 20 69 6e 20 |t. any |text in |
|00000ef0| 69 74 2e 29 20 56 61 6c | 69 64 61 74 69 6f 6e 20 |it.) Val|idation |
|00000f00| 63 6f 6d 6d 61 6e 64 73 | 20 61 72 65 20 73 65 70 |commands| are sep|
|00000f10| 61 72 61 74 65 64 20 62 | 79 20 73 65 6d 69 63 6f |arated b|y semico|
|00000f20| 6c 6f 6e 73 3b 20 79 6f | 75 20 63 61 6e 0a 20 20 |lons; yo|u can. |
|00000f30| 70 75 74 20 61 73 20 6d | 61 6e 79 20 61 73 20 79 |put as m|any as y|
|00000f40| 6f 75 20 77 61 6e 74 20 | 6f 6e 20 61 20 73 69 6e |ou want |on a sin|
|00000f50| 67 6c 65 20 69 63 6f 6e | 2e 20 59 6f 75 20 73 68 |gle icon|. You sh|
|00000f60| 6f 75 6c 64 6e 27 74 20 | 75 73 65 20 74 68 65 20 |ouldn't |use the |
|00000f70| 73 61 6d 65 0a 20 20 63 | 6f 6d 6d 61 6e 64 20 74 |same. c|ommand t|
|00000f80| 77 69 63 65 2c 20 75 6e | 6c 65 73 73 20 79 6f 75 |wice, un|less you|
|00000f90| 20 61 72 65 20 73 70 65 | 63 69 66 69 63 61 6c 6c | are spe|cificall|
|00000fa0| 79 20 74 6f 6c 64 20 79 | 6f 75 20 63 61 6e 2e 20 |y told y|ou can. |
|00000fb0| 28 54 68 65 20 62 65 68 | 61 76 69 6f 75 72 20 69 |(The beh|aviour i|
|00000fc0| 73 0a 20 20 75 6e 64 65 | 66 69 6e 65 64 20 69 66 |s. unde|fined if|
|00000fd0| 20 79 6f 75 20 64 6f 20 | 2d 20 69 65 2e 20 64 69 | you do |- ie. di|
|00000fe0| 66 66 65 72 65 6e 74 20 | 76 65 72 73 69 6f 6e 73 |fferent |versions|
|00000ff0| 20 6f 66 20 57 69 6d 70 | 45 78 74 65 6e 73 69 6f | of Wimp|Extensio|
|00001000| 6e 20 6d 61 79 20 64 6f | 0a 20 20 64 69 66 66 65 |n may do|. diffe|
|00001010| 72 65 6e 74 20 74 68 69 | 6e 67 73 2e 29 0a 2a 20 |rent thi|ngs.).* |
|00001020| 53 69 6e 63 65 20 69 74 | 20 63 6c 61 69 6d 73 20 |Since it| claims |
|00001030| 77 6f 72 6b 73 70 61 63 | 65 20 66 6f 72 20 74 61 |workspac|e for ta|
|00001040| 73 6b 73 20 69 74 20 6b | 6e 6f 77 73 20 61 62 6f |sks it k|nows abo|
|00001050| 75 74 2c 20 57 69 6d 70 | 45 78 74 65 6e 73 69 6f |ut, Wimp|Extensio|
|00001060| 6e 20 4d 55 53 54 20 6b | 6e 6f 77 0a 20 20 77 68 |n MUST k|now. wh|
|00001070| 65 6e 20 61 20 74 61 73 | 6b 20 63 6c 6f 73 65 73 |en a tas|k closes|
|00001080| 20 64 6f 77 6e 2e 20 59 | 6f 75 20 73 68 6f 75 6c | down. Y|ou shoul|
|00001090| 64 20 74 68 65 72 65 66 | 6f 72 65 2c 20 61 6c 77 |d theref|ore, alw|
|000010a0| 61 79 73 20 63 61 6c 6c | 0a 20 20 57 69 6d 70 45 |ays call|. WimpE|
|000010b0| 78 74 5f 43 6c 6f 73 65 | 44 6f 77 6e 20 62 65 66 |xt_Close|Down bef|
|000010c0| 6f 72 65 20 79 6f 75 72 | 20 74 61 73 6b 20 65 78 |ore your| task ex|
|000010d0| 69 74 73 2e 20 54 6f 20 | 63 61 74 63 68 20 61 6e |its. To |catch an|
|000010e0| 79 20 75 6e 61 76 6f 69 | 64 61 62 6c 65 20 73 6c |y unavoi|dable sl|
|000010f0| 69 70 73 0a 20 20 28 65 | 67 2e 20 41 64 64 72 65 |ips. (e|g. Addre|
|00001100| 73 73 20 45 78 63 65 70 | 74 69 6f 6e 73 20 69 6e |ss Excep|tions in|
|00001110| 20 42 41 53 49 43 29 20 | 57 69 6d 70 45 78 74 65 | BASIC) |WimpExte|
|00001120| 6e 73 69 6f 6e 20 69 6e | 69 74 69 61 6c 69 73 65 |nsion in|itialise|
|00001130| 73 20 61 20 6d 6f 64 75 | 6c 65 20 74 61 73 6b 0a |s a modu|le task.|
|00001140| 20 20 77 68 69 63 68 20 | 77 69 6c 6c 20 63 61 6c | which |will cal|
|00001150| 6c 20 57 69 6d 70 45 78 | 74 5f 43 6c 6f 73 65 44 |l WimpEx|t_CloseD|
|00001160| 6f 77 6e 20 66 6f 72 20 | 61 6e 79 20 74 61 73 6b |own for |any task|
|00001170| 73 20 74 68 61 74 20 65 | 78 69 74 2e 20 59 6f 75 |s that e|xit. You|
|00001180| 20 6d 75 73 74 20 6e 6f | 74 0a 20 20 72 65 6c 79 | must no|t. rely|
|00001190| 20 6f 6e 20 74 68 69 73 | 2c 20 74 68 6f 75 67 68 | on this|, though|
|000011a0| 2e 0a 2a 20 41 6c 6c 20 | 53 57 49 73 20 63 6f 72 |..* All |SWIs cor|
|000011b0| 72 75 70 74 20 52 30 2c | 20 65 76 65 6e 20 69 66 |rupt R0,| even if|
|000011c0| 20 74 68 65 79 20 61 72 | 65 20 6e 6f 74 20 75 73 | they ar|e not us|
|000011d0| 69 6e 67 20 69 74 20 74 | 6f 20 72 65 74 75 72 6e |ing it t|o return|
|000011e0| 20 61 20 72 65 73 75 6c | 74 2e 0a 2a 20 42 65 63 | a resul|t..* Bec|
|000011f0| 61 75 73 65 20 57 69 6d | 70 45 78 74 65 6e 73 69 |ause Wim|pExtensi|
|00001200| 6f 6e 20 70 72 6f 76 69 | 64 65 73 20 6d 6f 72 65 |on provi|des more|
|00001210| 20 74 68 61 6e 20 36 34 | 20 53 57 49 73 2c 20 61 | than 64| SWIs, a|
|00001220| 6e 6f 74 68 65 72 20 6d | 6f 64 75 6c 65 20 63 61 |nother m|odule ca|
|00001230| 6c 6c 65 64 0a 20 20 27 | 57 69 6d 70 45 78 74 53 |lled. '|WimpExtS|
|00001240| 68 61 64 6f 77 27 20 61 | 70 70 65 61 72 73 20 69 |hadow' a|ppears i|
|00001250| 6e 20 74 68 65 20 6d 6f | 64 75 6c 65 20 6c 69 73 |n the mo|dule lis|
|00001260| 74 2e 20 54 68 69 73 20 | 69 73 20 70 65 72 66 65 |t. This |is perfe|
|00001270| 63 74 6c 79 20 6e 6f 72 | 6d 61 6c 20 61 6e 64 0a |ctly nor|mal and.|
|00001280| 20 20 73 68 6f 75 6c 64 | 20 62 65 20 69 67 6e 6f | should| be igno|
|00001290| 72 65 64 2e 0a 90 04 45 | 73 73 65 6e 74 69 61 6c |red....E|ssential|
|000012a0| 20 53 57 49 73 0a 3d 90 | 0e 0a 0a 54 68 65 73 65 | SWIs.=.|...These|
|000012b0| 20 61 72 65 20 53 57 49 | 73 20 79 6f 75 20 4d 55 | are SWI|s you MU|
|000012c0| 53 54 20 63 61 6c 6c 20 | 69 66 20 79 6f 75 20 61 |ST call |if you a|
|000012d0| 72 65 20 67 6f 69 6e 67 | 20 74 6f 20 75 73 65 20 |re going| to use |
|000012e0| 41 4e 59 20 6f 66 20 74 | 68 65 20 66 65 61 74 75 |ANY of t|he featu|
|000012f0| 72 65 73 20 6f 66 0a 57 | 69 6d 70 45 78 74 65 6e |res of.W|impExten|
|00001300| 73 69 6f 6e 2e 0a 90 03 | 57 69 6d 70 45 78 74 5f |sion....|WimpExt_|
|00001310| 49 6e 69 74 69 61 6c 69 | 73 65 20 90 07 26 34 35 |Initiali|se ..&45|
|00001320| 37 38 30 0a 2d 90 1f 0a | 52 30 20 3d 20 31 36 0a |780.-...|R0 = 16.|
|00001330| 52 31 20 3d 20 74 61 73 | 6b 20 68 61 6e 64 6c 65 |R1 = tas|k handle|
|00001340| 0a 52 32 20 3d 20 66 65 | 61 74 75 72 65 73 20 66 |.R2 = fe|atures f|
|00001350| 6c 61 67 73 0a 20 90 07 | 62 69 74 20 90 05 6d 65 |lags. ..|bit ..me|
|00001360| 61 6e 69 6e 67 0a 20 90 | 07 30 20 90 07 73 65 6d |aning. .|.0 ..sem|
|00001370| 69 2d 61 75 74 6f 6d 61 | 74 69 63 20 73 6c 61 62 |i-automa|tic slab|
|00001380| 62 69 6e 67 20 69 66 20 | 73 65 74 2c 20 61 75 74 |bing if |set, aut|
|00001390| 6f 6d 61 74 69 63 20 6f | 74 68 65 72 77 69 73 65 |omatic o|therwise|
|000013a0| 0a 20 90 07 31 20 90 07 | 61 75 74 6f 6d 61 74 69 |. ..1 ..|automati|
|000013b0| 63 61 6c 6c 79 20 72 65 | 63 72 65 61 74 65 20 6d |cally re|create m|
|000013c0| 65 6e 75 73 20 69 66 20 | 73 65 74 0a 20 90 07 32 |enus if |set. ..2|
|000013d0| 20 90 07 74 61 73 6b 20 | 77 61 6e 74 73 20 74 6f | ..task |wants to|
|000013e0| 20 75 73 65 20 66 6f 6e | 74 20 6d 65 6e 75 73 20 | use fon|t menus |
|000013f0| 69 66 20 73 65 74 0a 20 | 90 07 33 20 90 07 61 75 |if set. |..3 ..au|
|00001400| 74 6f 6d 61 74 69 63 61 | 6c 6c 79 20 63 6f 6d 70 |tomatica|lly comp|
|00001410| 61 63 74 20 68 65 61 70 | 20 6f 6e 63 65 20 61 20 |act heap| once a |
|00001420| 73 65 63 6f 6e 64 20 69 | 66 20 73 65 74 0a 20 90 |second i|f set. .|
|00001430| 07 34 20 90 07 27 63 6f | 72 72 65 63 74 27 20 72 |.4 ..'co|rrect' r|
|00001440| 61 64 69 6f 20 69 63 6f | 6e 73 20 69 66 20 73 65 |adio ico|ns if se|
|00001450| 74 0a 20 90 07 35 20 90 | 07 73 65 6d 69 2d 61 75 |t. ..5 .|.semi-au|
|00001460| 74 6f 6d 61 74 69 63 20 | 68 65 6c 70 20 69 66 20 |tomatic |help if |
|00001470| 73 65 74 2c 20 61 75 74 | 6f 6d 61 74 69 63 20 6f |set, aut|omatic o|
|00001480| 74 68 65 72 77 69 73 65 | 0a 20 90 07 36 20 90 07 |therwise|. ..6 ..|
|00001490| 75 73 65 20 61 6c 74 65 | 72 6e 61 74 69 76 65 20 |use alte|rnative |
|000014a0| 70 61 72 61 6d 65 74 65 | 72 73 20 66 6f 72 20 66 |paramete|rs for f|
|000014b0| 6c 61 67 2d 73 65 74 74 | 69 6e 67 20 53 57 49 73 |lag-sett|ing SWIs|
|000014c0| 20 69 66 20 73 65 74 0a | 20 90 07 37 20 90 07 75 | if set.| ..7 ..u|
|000014d0| 73 65 20 52 30 20 6f 66 | 20 57 69 6d 70 45 78 74 |se R0 of| WimpExt|
|000014e0| 5f 53 65 74 49 63 6f 6e | 53 74 72 69 6e 67 5b 4e |_SetIcon|String[N|
|000014f0| 5d 0a 20 90 07 38 20 90 | 07 61 75 74 6f 6d 61 74 |]. ..8 .|.automat|
|00001500| 69 63 61 6c 6c 79 20 63 | 61 6c 6c 20 57 69 6d 70 |ically c|all Wimp|
|00001510| 45 78 74 5f 4d 6f 76 65 | 43 61 72 65 74 0a 20 90 |Ext_Move|Caret. .|
|00001520| 07 39 20 90 07 55 6e 73 | 65 74 20 6f 74 68 65 72 |.9 ..Uns|et other|
|00001530| 20 69 63 6f 6e 73 20 69 | 6e 20 45 53 47 20 77 68 | icons i|n ESG wh|
|00001540| 65 6e 20 73 65 74 74 69 | 6e 67 20 69 63 6f 6e 73 |en setti|ng icons|
|00001550| 0a 20 90 07 31 30 20 90 | 06 41 75 74 6f 6d 61 74 |. ..10 .|.Automat|
|00001560| 69 63 61 6c 6c 79 20 63 | 61 6c 6c 20 57 69 6d 70 |ically c|all Wimp|
|00001570| 45 78 74 5f 56 69 65 77 | 49 63 6f 6e 20 61 66 74 |Ext_View|Icon aft|
|00001580| 65 72 20 6d 6f 76 69 6e | 67 20 63 61 72 65 74 0a |er movin|g caret.|
|00001590| 20 90 07 31 31 20 90 06 | 44 6f 6e 27 74 20 61 6c | ..11 ..|Don't al|
|000015a0| 6c 6f 77 20 54 41 42 20 | 66 6f 72 20 6d 6f 76 69 |low TAB |for movi|
|000015b0| 6e 67 20 62 65 74 77 65 | 65 6e 20 77 72 69 74 65 |ng betwe|en write|
|000015c0| 61 62 6c 65 20 69 63 6f | 6e 73 0a 20 90 07 31 32 |able ico|ns. ..12|
|000015d0| 2d 33 31 20 90 03 72 65 | 73 65 72 76 65 64 3b 20 |-31 ..re|served; |
|000015e0| 4d 55 53 54 20 42 45 20 | 30 0a 45 78 69 74 3a 0a |MUST BE |0.Exit:.|
|000015f0| 52 30 20 3d 20 57 69 6d | 70 45 78 74 20 76 65 72 |R0 = Wim|pExt ver|
|00001600| 73 69 6f 6e 20 6e 75 6d | 62 65 72 20 2a 20 31 30 |sion num|ber * 10|
|00001610| 30 0a 52 32 20 3d 20 70 | 6f 69 6e 74 65 72 20 74 |0.R2 = p|ointer t|
|00001620| 6f 20 57 69 6d 70 45 78 | 74 27 73 20 73 70 72 69 |o WimpEx|t's spri|
|00001630| 74 65 20 70 6f 6f 6c 0a | 0a 4d 75 73 74 20 62 65 |te pool.|.Must be|
|00001640| 20 63 61 6c 6c 65 64 20 | 70 72 69 6f 72 20 74 6f | called |prior to|
|00001650| 20 75 73 69 6e 67 20 61 | 6e 79 20 6f 74 68 65 72 | using a|ny other|
|00001660| 20 57 69 6d 70 45 78 74 | 20 63 61 6c 6c 73 2e 20 | WimpExt| calls. |
|00001670| 52 30 20 6d 75 73 74 20 | 62 65 20 31 31 20 6f 6e |R0 must |be 11 on|
|00001680| 0a 65 6e 74 72 79 2e 20 | 54 68 69 73 20 69 73 20 |.entry. |This is |
|00001690| 73 6f 20 74 68 61 74 20 | 57 69 6d 70 45 78 74 65 |so that |WimpExte|
|000016a0| 6e 73 69 6f 6e 20 63 61 | 6e 20 77 6f 72 6b 20 6f |nsion ca|n work o|
|000016b0| 75 74 20 77 68 61 74 20 | 76 65 72 73 69 6f 6e 20 |ut what |version |
|000016c0| 74 68 65 20 70 72 6f 67 | 72 61 6d 0a 74 68 69 6e |the prog|ram.thin|
|000016d0| 6b 73 20 69 74 20 69 73 | 20 63 61 6c 6c 69 6e 67 |ks it is| calling|
|000016e0| 20 28 73 6f 20 49 20 63 | 61 6e 20 63 68 61 6e 67 | (so I c|an chang|
|000016f0| 65 20 74 68 65 20 66 75 | 6e 63 74 69 6f 6e 61 6c |e the fu|nctional|
|00001700| 69 74 79 20 6f 66 20 63 | 61 6c 6c 73 20 6c 61 74 |ity of c|alls lat|
|00001710| 65 72 20 77 68 69 6c 73 | 74 0a 73 74 69 6c 6c 20 |er whils|t.still |
|00001720| 72 65 74 61 69 6e 69 6e | 67 20 62 61 63 6b 77 61 |retainin|g backwa|
|00001730| 72 64 73 2d 63 6f 6d 70 | 61 74 69 62 69 6c 69 74 |rds-comp|atibilit|
|00001740| 79 29 2e 20 52 32 20 68 | 6f 6c 64 73 20 66 65 61 |y). R2 h|olds fea|
|00001750| 74 75 72 65 73 20 66 6c | 61 67 73 2c 20 66 6f 72 |tures fl|ags, for|
|00001760| 0a 73 70 65 63 69 66 79 | 69 6e 67 20 63 65 72 74 |.specify|ing cert|
|00001770| 61 69 6e 20 74 68 69 6e | 67 73 20 61 74 20 73 74 |ain thin|gs at st|
|00001780| 61 72 74 2d 75 70 2e 20 | 49 66 20 62 69 74 20 31 |art-up. |If bit 1|
|00001790| 20 6f 66 20 52 32 20 69 | 73 20 73 65 74 20 74 68 | of R2 i|s set th|
|000017a0| 65 6e 20 69 66 20 74 68 | 65 20 75 73 65 72 0a 73 |en if th|e user.s|
|000017b0| 65 6c 65 63 74 73 20 61 | 20 6d 65 6e 75 20 6f 70 |elects a| menu op|
|000017c0| 74 69 6f 6e 20 77 69 74 | 68 20 74 68 65 20 41 44 |tion wit|h the AD|
|000017d0| 4a 55 53 54 20 62 75 74 | 74 6f 6e 20 74 68 65 6e |JUST but|ton then|
|000017e0| 20 74 68 65 20 6d 65 6e | 75 20 77 69 6c 6c 20 61 | the men|u will a|
|000017f0| 75 74 6f 6d 61 74 69 63 | 61 6c 6c 79 0a 62 65 20 |utomatic|ally.be |
|00001800| 72 65 63 72 65 61 74 65 | 64 20 77 68 65 6e 20 79 |recreate|d when y|
|00001810| 6f 75 20 6e 65 78 74 20 | 63 61 6c 6c 20 57 69 6d |ou next |call Wim|
|00001820| 70 45 78 74 5f 50 72 65 | 50 6f 6c 6c 20 28 61 73 |pExt_Pre|Poll (as|
|00001830| 73 75 6d 69 6e 67 20 79 | 6f 75 20 75 73 65 64 0a |suming y|ou used.|
|00001840| 27 57 69 6d 70 45 78 74 | 5f 43 72 65 61 74 65 4d |'WimpExt|_CreateM|
|00001850| 65 6e 75 27 20 74 6f 20 | 63 72 65 61 74 65 20 74 |enu' to |create t|
|00001860| 68 65 20 6d 65 6e 75 2c | 20 74 68 61 74 20 69 73 |he menu,| that is|
|00001870| 29 2e 20 49 66 20 62 69 | 74 20 32 20 6f 66 20 52 |). If bi|t 2 of R|
|00001880| 32 20 69 73 20 73 65 74 | 20 74 68 65 6e 0a 79 6f |2 is set| then.yo|
|00001890| 75 20 61 72 65 20 61 6c | 6c 6f 77 65 64 20 74 6f |u are al|lowed to|
|000018a0| 20 63 61 6c 6c 20 57 69 | 6d 70 45 78 74 5f 47 65 | call Wi|mpExt_Ge|
|000018b0| 74 46 6f 6e 74 4d 65 6e | 75 20 61 6e 64 20 57 69 |tFontMen|u and Wi|
|000018c0| 6d 70 45 78 74 5f 44 65 | 63 6f 64 65 46 6f 6e 74 |mpExt_De|codeFont|
|000018d0| 4d 65 6e 75 20 2d 20 79 | 6f 75 0a 61 72 65 20 4e |Menu - y|ou.are N|
|000018e0| 4f 54 20 61 6c 6c 6f 77 | 65 64 20 74 6f 20 63 61 |OT allow|ed to ca|
|000018f0| 6c 6c 20 74 68 65 6d 20 | 69 66 20 79 6f 75 20 64 |ll them |if you d|
|00001900| 6f 20 6e 6f 74 20 73 65 | 74 20 62 69 74 20 32 2e |o not se|t bit 2.|
|00001910| 20 49 66 20 62 69 74 20 | 34 20 6f 66 20 52 32 20 | If bit |4 of R2 |
|00001920| 69 73 20 73 65 74 0a 74 | 68 65 6e 20 74 68 65 20 |is set.t|hen the |
|00001930| 75 73 65 72 20 77 6f 6e | 27 74 20 62 65 20 61 62 |user won|'t be ab|
|00001940| 6c 65 20 74 6f 20 64 65 | 73 65 6c 65 63 74 20 61 |le to de|select a|
|00001950| 6c 6c 20 6f 66 20 61 20 | 67 72 6f 75 70 20 6f 66 |ll of a |group of|
|00001960| 20 72 61 64 69 6f 20 69 | 63 6f 6e 73 20 62 79 0a | radio i|cons by.|
|00001970| 63 6c 69 63 6b 69 6e 67 | 20 61 64 6a 75 73 74 20 |clicking| adjust |
|00001980| 6f 6e 20 74 68 65 20 73 | 65 6c 65 63 74 65 64 20 |on the s|elected |
|00001990| 69 63 6f 6e 2e 0a 90 03 | 57 69 6d 70 45 78 74 5f |icon....|WimpExt_|
|000019a0| 43 6c 6f 73 65 44 6f 77 | 6e 20 90 08 26 34 35 37 |CloseDow|n ..&457|
|000019b0| 38 31 0a 2d 90 1f 0a 52 | 30 20 3d 20 74 61 73 6b |81.-...R|0 = task|
|000019c0| 20 68 61 6e 64 6c 65 0a | 0a 4d 75 73 74 20 62 65 | handle.|.Must be|
|000019d0| 20 63 61 6c 6c 65 64 20 | 70 72 69 6f 72 20 74 6f | called |prior to|
|000019e0| 20 74 68 65 20 74 61 73 | 6b 20 65 78 69 74 69 6e | the tas|k exitin|
|000019f0| 67 2e 0a 90 03 57 69 6d | 70 45 78 74 5f 50 72 65 |g....Wim|pExt_Pre|
|00001a00| 50 6f 6c 6c 20 90 0a 26 | 34 35 37 42 34 0a 2d 90 |Poll ..&|457B4.-.|
|00001a10| 1f 0a 0a 54 6f 20 62 65 | 20 63 61 6c 6c 65 64 20 |...To be| called |
|00001a20| 69 6d 6d 65 64 69 61 74 | 65 6c 79 20 62 65 66 6f |immediat|ely befo|
|00001a30| 72 65 20 57 69 6d 70 5f | 50 6f 6c 6c 20 6f 72 20 |re Wimp_|Poll or |
|00001a40| 57 69 6d 70 5f 50 6f 6c | 6c 49 64 6c 65 2e 0a 90 |Wimp_Pol|lIdle...|
|00001a50| 03 57 69 6d 70 45 78 74 | 5f 41 63 74 69 6f 6e 20 |.WimpExt|_Action |
|00001a60| 90 0b 26 34 35 37 38 34 | 0a 2d 90 1f 0a 52 30 20 |..&45784|.-...R0 |
|00001a70| 3d 20 74 61 73 6b 20 68 | 61 6e 64 6c 65 0a 52 31 |= task h|andle.R1|
|00001a80| 20 3d 20 57 69 6d 70 5f | 50 6f 6c 6c 20 62 6c 6f | = Wimp_|Poll blo|
|00001a90| 63 6b 0a 52 32 20 3d 20 | 57 69 6d 70 5f 50 6f 6c |ck.R2 = |Wimp_Pol|
|00001aa0| 6c 20 72 65 61 73 6f 6e | 20 63 6f 64 65 0a 45 78 |l reason| code.Ex|
|00001ab0| 69 74 3a 0a 52 30 20 3d | 20 57 69 6d 70 5f 50 6f |it:.R0 =| Wimp_Po|
|00001ac0| 6c 6c 20 72 65 61 73 6f | 6e 20 63 6f 64 65 20 28 |ll reaso|n code (|
|00001ad0| 70 6f 73 73 69 62 6c 79 | 20 61 6c 74 65 72 65 64 |possibly| altered|
|00001ae0| 29 0a 0a 54 6f 20 62 65 | 20 63 61 6c 6c 65 64 20 |)..To be| called |
|00001af0| 69 6d 6d 65 64 69 61 74 | 65 6c 79 20 61 66 74 65 |immediat|ely afte|
|00001b00| 72 20 57 69 6d 70 5f 50 | 6f 6c 6c 2e 20 57 69 6d |r Wimp_P|oll. Wim|
|00001b10| 70 45 78 74 65 6e 73 69 | 6f 6e 20 6d 61 79 20 61 |pExtensi|on may a|
|00001b20| 6c 74 65 72 20 74 68 65 | 20 63 6f 64 65 0a 72 65 |lter the| code.re|
|00001b30| 74 75 72 6e 65 64 20 2d | 20 65 67 2e 20 69 66 20 |turned -| eg. if |
|00001b40| 74 68 65 20 75 73 65 72 | 20 63 6c 69 63 6b 73 20 |the user| clicks |
|00001b50| 69 6e 20 61 20 72 65 71 | 75 65 73 74 65 72 20 77 |in a req|uester w|
|00001b60| 69 6e 64 6f 77 20 74 68 | 65 6e 20 74 68 65 20 63 |indow th|en the c|
|00001b70| 6f 64 65 20 77 69 6c 6c | 0a 62 65 20 74 72 61 6e |ode will|.be tran|
|00001b80| 73 6c 61 74 65 64 20 62 | 65 66 6f 72 65 20 79 6f |slated b|efore yo|
|00001b90| 75 72 20 70 72 6f 67 72 | 61 6d 20 67 65 74 73 20 |ur progr|am gets |
|00001ba0| 74 6f 20 73 65 65 20 69 | 74 2e 0a 90 03 54 68 65 |to see i|t....The|
|00001bb0| 20 67 65 6e 65 72 61 6c | 20 73 74 72 75 63 74 75 | general| structu|
|00001bc0| 72 65 20 6f 66 20 79 6f | 75 72 20 70 72 6f 67 72 |re of yo|ur progr|
|00001bd0| 61 6d 2c 20 74 68 65 72 | 65 66 6f 72 65 2c 20 77 |am, ther|efore, w|
|00001be0| 69 6c 6c 20 62 65 3a 0a | 0a 20 90 04 53 59 53 20 |ill be:.|. ..SYS |
|00001bf0| 22 57 69 6d 70 5f 49 6e | 69 74 69 61 6c 69 73 65 |"Wimp_In|itialise|
|00001c00| 22 2e 90 03 0a 20 90 04 | 53 59 53 20 22 57 69 6d |".... ..|SYS "Wim|
|00001c10| 70 45 78 74 5f 49 6e 69 | 74 69 61 6c 69 73 65 22 |pExt_Ini|tialise"|
|00001c20| 2e 90 03 0a 20 90 04 57 | 48 49 4c 45 20 4e 4f 54 |.... ..W|HILE NOT|
|00001c30| 20 71 75 69 74 25 0a 20 | 90 06 53 59 53 20 22 57 | quit%. |..SYS "W|
|00001c40| 69 6d 70 45 78 74 5f 50 | 72 65 50 6f 6c 6c 22 0a |impExt_P|rePoll".|
|00001c50| 20 90 06 53 59 53 20 22 | 57 69 6d 70 5f 50 6f 6c | ..SYS "|Wimp_Pol|
|00001c60| 6c 22 2e 90 03 0a 20 90 | 06 53 59 53 20 22 57 69 |l".... .|.SYS "Wi|
|00001c70| 6d 70 45 78 74 5f 41 63 | 74 69 6f 6e 22 2e 90 03 |mpExt_Ac|tion"...|
|00001c80| 0a 20 90 04 45 4e 44 57 | 48 49 4c 45 0a 20 90 04 |. ..ENDW|HILE. ..|
|00001c90| 53 59 53 20 22 57 69 6d | 70 45 78 74 5f 43 6c 6f |SYS "Wim|pExt_Clo|
|00001ca0| 73 65 44 6f 77 6e 22 2e | 90 03 0a 20 90 04 53 59 |seDown".|... ..SY|
|00001cb0| 53 20 22 57 69 6d 70 5f | 43 6c 6f 73 65 44 6f 77 |S "Wimp_|CloseDow|
|00001cc0| 6e 22 2e 90 03 0a 20 90 | 04 45 4e 44 0a 90 04 33 |n".... .|.END...3|
|00001cd0| 44 20 69 63 6f 6e 73 20 | 61 6e 64 20 77 69 6e 64 |D icons |and wind|
|00001ce0| 6f 77 20 72 65 64 72 61 | 77 73 0a 3d 90 1b 0a 0a |ow redra|ws.=....|
|00001cf0| 33 44 20 62 6f 72 64 65 | 72 73 20 61 72 65 20 74 |3D borde|rs are t|
|00001d00| 72 65 61 74 65 64 20 61 | 73 20 75 73 65 72 20 67 |reated a|s user g|
|00001d10| 72 61 70 68 69 63 73 2c | 20 73 6f 20 74 68 65 20 |raphics,| so the |
|00001d20| 27 61 75 74 6f 2d 72 65 | 64 72 61 77 27 20 66 6c |'auto-re|draw' fl|
|00001d30| 61 67 20 69 6e 20 74 68 | 65 0a 77 69 6e 64 6f 77 |ag in th|e.window|
|00001d40| 20 64 65 66 69 6e 69 74 | 69 6f 6e 20 73 68 6f 75 | definit|ion shou|
|00001d50| 6c 64 20 6e 6f 74 20 62 | 65 20 73 65 74 2e 20 33 |ld not b|e set. 3|
|00001d60| 44 20 62 6f 72 64 65 72 | 73 20 61 72 65 20 63 6f |D border|s are co|
|00001d70| 6e 74 72 6f 6c 6c 65 64 | 20 62 79 20 74 68 65 20 |ntrolled| by the |
|00001d80| 27 77 27 0a 76 61 6c 69 | 64 61 74 69 6f 6e 20 63 |'w'.vali|dation c|
|00001d90| 6f 6d 6d 61 6e 64 3a 0a | 0a 20 20 27 77 27 20 28 |ommand:.|. 'w' (|
|00001da0| 62 6f 72 64 65 72 20 74 | 79 70 65 29 0a 20 90 04 |border t|ype). ..|
|00001db0| 53 79 6e 74 61 78 3a 0a | 20 90 06 77 3c 62 6f 72 |Syntax:.| ..w<bor|
|00001dc0| 64 65 72 20 6e 75 6d 62 | 65 72 3e 2c 3c 73 6c 61 |der numb|er>,<sla|
|00001dd0| 62 62 69 6e 67 20 6d 61 | 73 6b 3e 2c 3c 73 6c 61 |bbing ma|sk>,<sla|
|00001de0| 62 62 69 6e 67 20 74 69 | 6d 65 3e 2c 3c 74 6f 70 |bbing ti|me>,<top|
|00001df0| 20 6c 65 66 74 20 63 6f | 6c 6f 75 72 3e 2c 0a 20 | left co|lour>,. |
|00001e00| 90 07 3c 62 6f 74 74 6f | 6d 20 72 69 67 68 74 20 |..<botto|m right |
|00001e10| 63 6f 6c 6f 75 72 3e 2c | 3c 70 6f 70 70 65 64 20 |colour>,|<popped |
|00001e20| 69 6e 20 63 6f 6c 6f 75 | 72 3e 2c 3c 70 6f 70 70 |in colou|r>,<popp|
|00001e30| 65 64 20 6f 75 74 20 63 | 6f 6c 6f 75 72 3e 2c 0a |ed out c|olour>,.|
|00001e40| 20 90 07 3c 63 68 61 6e | 6e 65 6c 20 63 6f 6c 6f | ..<chan|nel colo|
|00001e50| 75 72 3e 0a 0a 41 6c 6c | 20 74 68 65 20 6e 75 6d |ur>..All| the num|
|00001e60| 62 65 72 73 20 61 70 61 | 72 74 20 66 72 6f 6d 20 |bers apa|rt from |
|00001e70| 74 68 65 20 62 6f 72 64 | 65 72 20 6e 75 6d 62 65 |the bord|er numbe|
|00001e80| 72 20 61 72 65 20 6f 70 | 74 69 6f 6e 61 6c 2e 20 |r are op|tional. |
|00001e90| 54 68 65 20 64 65 66 61 | 75 6c 74 73 20 61 72 65 |The defa|ults are|
|00001ea0| 3a 0a 77 78 78 2c 34 2c | 31 35 2c 34 2c 30 2c 31 |:.wxx,4,|15,4,0,1|
|00001eb0| 2c 31 34 2c 31 32 2e 20 | 54 68 65 73 65 20 64 65 |,14,12. |These de|
|00001ec0| 66 61 75 6c 74 73 20 63 | 61 6e 20 62 65 20 63 68 |faults c|an be ch|
|00001ed0| 61 6e 67 65 64 20 62 79 | 20 74 68 65 20 75 73 65 |anged by| the use|
|00001ee0| 72 2c 20 75 73 69 6e 67 | 20 74 68 65 0a 63 6f 6d |r, using| the.com|
|00001ef0| 6d 61 6e 64 20 27 57 69 | 6d 70 45 78 74 20 44 65 |mand 'Wi|mpExt De|
|00001f00| 66 61 75 6c 74 73 27 20 | 2d 20 73 65 65 20 62 65 |faults' |- see be|
|00001f10| 6c 6f 77 2e 20 59 6f 75 | 20 63 61 6e 20 73 70 65 |low. You| can spe|
|00001f20| 63 69 66 79 20 6f 6e 6c | 79 20 73 6f 6d 65 2c 20 |cify onl|y some, |
|00001f30| 65 67 3a 0a 77 32 2c 34 | 2c 32 30 20 6f 72 20 77 |eg:.w2,4|,20 or w|
|00001f40| 32 2c 90 04 33 2e 20 54 | 68 65 20 62 6f 72 64 65 |2,..3. T|he borde|
|00001f50| 72 20 6e 75 6d 62 65 72 | 73 20 61 72 65 3a 0a 0a |r number|s are:..|
|00001f60| 20 90 05 30 20 20 3a 20 | 53 74 61 6e 64 61 72 64 | ..0 : |Standard|
|00001f70| 20 33 44 20 62 6f 72 64 | 65 72 2e 20 55 73 65 64 | 3D bord|er. Used|
|00001f80| 20 66 6f 72 20 68 65 61 | 64 69 6e 67 73 20 61 6e | for hea|dings an|
|00001f90| 64 20 62 75 74 74 6f 6e | 73 2e 20 50 6f 70 73 20 |d button|s. Pops |
|00001fa0| 69 6e 20 69 66 0a 20 90 | 0a 63 6c 69 63 6b 65 64 |in if. .|.clicked|
|00001fb0| 20 6f 6e 2e 0a 20 90 05 | 31 20 20 3a 20 52 69 64 | on.. ..|1 : Rid|
|00001fc0| 67 65 64 20 67 72 6f 75 | 70 69 6e 67 20 62 6f 72 |ged grou|ping bor|
|00001fd0| 64 65 72 2e 20 50 75 74 | 20 69 74 20 61 72 6f 75 |der. Put| it arou|
|00001fe0| 6e 64 20 74 68 69 6e 67 | 73 20 6f 66 20 61 20 73 |nd thing|s of a s|
|00001ff0| 69 6d 69 6c 61 72 20 6e | 61 74 75 72 65 2e 0a 20 |imilar n|ature.. |
|00002000| 90 05 32 20 20 3a 20 4c | 69 6b 65 20 30 2c 20 77 |..2 : L|ike 0, w|
|00002010| 69 74 68 20 61 20 63 68 | 61 6e 6e 65 6c 20 72 6f |ith a ch|annel ro|
|00002020| 75 6e 64 20 69 74 2e 20 | 55 73 65 64 20 66 6f 72 |und it. |Used for|
|00002030| 20 74 68 65 20 64 65 66 | 61 75 6c 74 20 62 75 74 | the def|ault but|
|00002040| 74 6f 6e 20 28 69 65 2e | 0a 20 90 0a 74 68 65 20 |ton (ie.|. ..the |
|00002050| 6f 6e 65 20 74 68 61 74 | 20 69 73 20 70 72 65 73 |one that| is pres|
|00002060| 73 65 64 20 69 66 20 79 | 6f 75 20 70 72 65 73 73 |sed if y|ou press|
|00002070| 20 52 45 54 55 52 4e 29 | 2e 0a 20 90 05 33 20 20 | RETURN)|.. ..3 |
|00002080| 3a 20 57 69 64 65 20 62 | 6f 72 64 65 72 20 66 6f |: Wide b|order fo|
|00002090| 72 20 77 72 69 74 65 61 | 62 6c 65 20 69 63 6f 6e |r writea|ble icon|
|000020a0| 73 20 2d 20 6c 65 61 76 | 65 20 74 68 65 20 6e 6f |s - leav|e the no|
|000020b0| 72 6d 61 6c 20 62 6c 61 | 63 6b 20 62 6f 72 64 65 |rmal bla|ck borde|
|000020c0| 72 20 6f 6e 0a 20 90 0a | 74 68 65 20 69 63 6f 6e |r on. ..|the icon|
|000020d0| 20 61 6e 64 20 6d 61 6b | 65 20 74 68 65 20 62 61 | and mak|e the ba|
|000020e0| 63 6b 67 72 6f 75 6e 64 | 20 77 68 69 74 65 2e 0a |ckground| white..|
|000020f0| 20 90 05 34 20 20 3a 20 | 50 6f 70 70 65 64 20 69 | ..4 : |Popped i|
|00002100| 6e 20 62 6f 72 64 65 72 | 20 2d 20 66 6f 72 20 74 |n border| - for t|
|00002110| 68 69 6e 67 73 20 74 68 | 61 74 20 61 72 65 20 66 |hings th|at are f|
|00002120| 6f 72 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 20 6f |or infor|mation o|
|00002130| 6e 6c 79 2e 0a 20 90 05 | 35 20 20 3a 20 54 72 65 |nly.. ..|5 : Tre|
|00002140| 6e 63 68 65 64 20 62 6f | 72 64 65 72 20 2d 20 74 |nched bo|rder - t|
|00002150| 68 65 20 6f 70 70 6f 73 | 69 74 65 20 6f 66 20 62 |he oppos|ite of b|
|00002160| 6f 72 64 65 72 20 31 2e | 20 43 61 6e 20 62 65 20 |order 1.| Can be |
|00002170| 63 6c 69 63 6b 65 64 20 | 6f 6e 2e 0a 20 90 0a 53 |clicked |on.. ..S|
|00002180| 75 67 67 65 73 74 65 64 | 20 75 73 65 20 69 73 20 |uggested| use is |
|00002190| 61 73 20 61 6e 20 61 6c | 74 65 72 6e 61 74 65 20 |as an al|ternate |
|000021a0| 62 6f 72 64 65 72 20 31 | 2e 0a 20 90 05 36 20 20 |border 1|.. ..6 |
|000021b0| 3a 20 54 69 74 6c 65 20 | 62 6f 72 64 65 72 20 2d |: Title |border -|
|000021c0| 20 73 69 6d 69 6c 61 72 | 20 74 6f 20 62 6f 72 64 | similar| to bord|
|000021d0| 65 72 20 30 2c 20 62 75 | 74 20 77 69 74 68 20 74 |er 0, bu|t with t|
|000021e0| 77 6f 20 27 64 65 6e 74 | 73 27 2e 0a 20 90 0a 54 |wo 'dent|s'.. ..T|
|000021f0| 68 69 73 20 62 6f 72 64 | 65 72 20 69 73 20 64 65 |his bord|er is de|
|00002200| 73 69 67 6e 65 64 20 74 | 6f 20 62 65 20 75 73 65 |signed t|o be use|
|00002210| 64 20 61 73 20 74 68 65 | 20 74 69 74 6c 65 20 6f |d as the| title o|
|00002220| 66 20 61 20 67 72 6f 75 | 70 2c 20 77 69 74 68 0a |f a grou|p, with.|
|00002230| 20 90 0a 61 20 62 6f 72 | 64 65 72 20 31 20 69 63 | ..a bor|der 1 ic|
|00002240| 6f 6e 20 62 65 68 69 6e | 64 20 69 74 20 61 73 20 |on behin|d it as |
|00002250| 74 68 65 20 66 72 61 6d | 65 20 2d 20 73 65 65 20 |the fram|e - see |
|00002260| 45 78 74 44 65 6d 6f 20 | 66 6f 72 20 65 78 61 6d |ExtDemo |for exam|
|00002270| 70 6c 65 73 2e 0a 0a 49 | 66 20 79 6f 75 20 61 64 |ples...I|f you ad|
|00002280| 64 20 38 20 74 6f 20 74 | 68 65 20 62 6f 72 64 65 |d 8 to t|he borde|
|00002290| 72 20 6e 75 6d 62 65 72 | 2c 20 69 74 20 77 69 6c |r number|, it wil|
|000022a0| 6c 20 62 65 63 6f 6d 65 | 20 69 6e 65 72 74 20 2d |l become| inert -|
|000022b0| 20 69 65 2e 20 69 74 20 | 77 69 6c 6c 20 69 67 6e | ie. it |will ign|
|000022c0| 6f 72 65 0a 61 6c 6c 20 | 6d 6f 75 73 65 20 63 6c |ore.all |mouse cl|
|000022d0| 69 63 6b 73 20 61 6e 64 | 20 6e 6f 74 20 70 6f 70 |icks and| not pop|
|000022e0| 20 69 6e 2e 20 42 6f 72 | 64 65 72 65 64 20 69 63 | in. Bor|dered ic|
|000022f0| 6f 6e 73 20 73 68 6f 75 | 6c 64 20 62 65 20 66 69 |ons shou|ld be fi|
|00002300| 6c 6c 65 64 20 69 66 20 | 79 6f 75 20 77 61 6e 74 |lled if |you want|
|00002310| 0a 74 68 65 6d 20 74 6f | 20 63 68 61 6e 67 65 20 |.them to| change |
|00002320| 63 6f 6c 6f 75 72 20 77 | 68 65 6e 20 63 6c 69 63 |colour w|hen clic|
|00002330| 6b 65 64 20 6f 6e 20 28 | 77 68 69 63 68 20 69 73 |ked on (|which is|
|00002340| 20 64 65 66 69 6e 69 74 | 65 6c 79 20 72 65 63 6f | definit|ely reco|
|00002350| 6d 6d 65 6e 64 65 64 29 | 2c 20 61 6e 64 0a 79 6f |mmended)|, and.yo|
|00002360| 75 20 73 68 6f 75 6c 64 | 20 69 6e 69 74 69 61 6c |u should| initial|
|00002370| 6c 79 20 73 65 74 20 74 | 68 65 20 62 61 63 6b 67 |ly set t|he backg|
|00002380| 72 6f 75 6e 64 20 63 6f | 6c 6f 75 72 20 6f 66 20 |round co|lour of |
|00002390| 74 68 65 20 69 63 6f 6e | 20 74 6f 20 74 68 65 20 |the icon| to the |
|000023a0| 6f 75 74 2d 63 6f 6c 6f | 75 72 2e 0a 0a 41 6e 74 |out-colo|ur...Ant|
|000023b0| 69 2d 61 6c 69 61 73 65 | 64 20 66 6f 6e 74 20 69 |i-aliase|d font i|
|000023c0| 63 6f 6e 73 20 61 72 65 | 20 6e 6f 77 20 73 75 70 |cons are| now sup|
|000023d0| 70 6f 72 74 65 64 2e 20 | 54 68 65 20 69 63 6f 6e |ported. |The icon|
|000023e0| 20 4d 55 53 54 20 68 61 | 76 65 20 61 6e 20 27 46 | MUST ha|ve an 'F|
|000023f0| 27 0a 76 61 6c 69 64 61 | 74 69 6f 6e 20 63 6f 6d |'.valida|tion com|
|00002400| 6d 61 6e 64 2c 20 61 73 | 20 74 68 65 20 57 69 6d |mand, as| the Wim|
|00002410| 70 20 6e 65 65 64 73 20 | 74 68 69 73 20 74 6f 20 |p needs |this to |
|00002420| 73 70 65 63 69 66 79 20 | 74 68 65 20 69 63 6f 6e |specify |the icon|
|00002430| 27 73 20 63 6f 6c 6f 75 | 72 2e 20 4e 6f 74 65 0a |'s colou|r. Note.|
|00002440| 74 68 61 74 20 73 6c 61 | 62 62 69 6e 67 20 66 6f |that sla|bbing fo|
|00002450| 6e 74 20 69 63 6f 6e 73 | 20 64 6f 65 73 6e 27 74 |nt icons| doesn't|
|00002460| 20 6c 6f 6f 6b 20 76 65 | 72 79 20 67 6f 6f 64 20 | look ve|ry good |
|00002470| 69 6e 20 31 36 2d 63 6f | 6c 6f 75 72 20 6d 6f 64 |in 16-co|lour mod|
|00002480| 65 73 2c 20 64 75 65 20 | 74 6f 0a 61 6e 74 69 2d |es, due |to.anti-|
|00002490| 61 6c 69 61 73 69 6e 67 | 20 28 74 68 69 73 20 69 |aliasing| (this i|
|000024a0| 73 6e 27 74 20 57 69 6d | 70 45 78 74 65 6e 73 69 |sn't Wim|pExtensi|
|000024b0| 6f 6e 27 73 20 66 61 75 | 6c 74 2c 20 69 74 27 73 |on's fau|lt, it's|
|000024c0| 20 6a 75 73 74 20 61 20 | 66 61 63 74 20 6f 66 20 | just a |fact of |
|000024d0| 6c 69 66 65 29 2e 0a 0a | 49 66 20 79 6f 75 20 73 |life)...|If you s|
|000024e0| 65 74 20 74 68 65 20 69 | 6e 2d 63 6f 6c 6f 75 72 |et the i|n-colour|
|000024f0| 20 61 6e 64 20 6f 75 74 | 2d 63 6f 6c 6f 75 72 20 | and out|-colour |
|00002500| 74 68 65 20 73 61 6d 65 | 20 74 68 65 6e 20 74 68 |the same| then th|
|00002510| 65 20 69 63 6f 6e 20 77 | 6f 6e 27 74 20 65 76 65 |e icon w|on't eve|
|00002520| 72 20 62 65 0a 73 6c 61 | 62 62 65 64 20 69 6e 20 |r be.sla|bbed in |
|00002530| 6f 72 20 6f 75 74 2e 20 | 49 66 20 79 6f 75 20 72 |or out. |If you r|
|00002540| 65 61 6c 6c 79 20 72 65 | 61 6c 6c 79 20 77 61 6e |eally re|ally wan|
|00002550| 74 20 61 6e 20 69 63 6f | 6e 20 77 68 69 63 68 20 |t an ico|n which |
|00002560| 64 6f 65 73 6e 27 74 20 | 63 68 61 6e 67 65 0a 63 |doesn't |change.c|
|00002570| 6f 6c 6f 75 72 20 77 68 | 65 6e 20 73 6c 61 62 62 |olour wh|en slabb|
|00002580| 65 64 20 69 6e 20 61 6e | 64 20 6f 75 74 20 75 6e |ed in an|d out un|
|00002590| 73 65 74 20 74 68 65 20 | 27 46 69 6c 6c 65 64 27 |set the |'Filled'|
|000025a0| 20 66 6c 61 67 2e 20 49 | 20 64 6f 6e 27 74 20 72 | flag. I| don't r|
|000025b0| 65 63 6f 6d 6d 65 6e 64 | 0a 68 61 76 69 6e 67 20 |ecommend|.having |
|000025c0| 69 63 6f 6e 73 20 77 68 | 69 63 68 20 64 6f 6e 27 |icons wh|ich don'|
|000025d0| 74 20 63 68 61 6e 67 65 | 20 63 6f 6c 6f 75 72 2c |t change| colour,|
|000025e0| 20 61 6e 79 77 61 79 20 | 2d 20 74 68 65 79 20 6c | anyway |- they l|
|000025f0| 6f 6f 6b 20 61 77 66 75 | 6c 2e 0a 0a 4e 6f 74 65 |ook awfu|l...Note|
|00002600| 20 74 68 61 74 20 77 68 | 65 6e 20 57 69 6d 70 45 | that wh|en WimpE|
|00002610| 78 74 65 6e 73 69 6f 6e | 20 72 65 64 72 61 77 73 |xtension| redraws|
|00002620| 20 62 6f 72 64 65 72 20 | 74 79 70 65 20 36 2c 20 | border |type 6, |
|00002630| 69 66 20 74 68 65 20 69 | 63 6f 6e 20 69 73 20 66 |if the i|con is f|
|00002640| 69 6c 6c 65 64 20 28 61 | 73 0a 69 74 20 73 68 6f |illed (a|s.it sho|
|00002650| 75 6c 64 20 62 65 20 75 | 73 69 6e 67 20 74 68 69 |uld be u|sing thi|
|00002660| 73 20 62 6f 72 64 65 72 | 29 20 74 68 65 6e 20 57 |s border|) then W|
|00002670| 69 6d 70 45 78 74 65 6e | 73 69 6f 6e 20 66 69 6c |impExten|sion fil|
|00002680| 6c 73 20 74 68 65 20 69 | 63 6f 6e 20 61 74 20 74 |ls the i|con at t|
|00002690| 68 65 20 73 61 6d 65 0a | 74 69 6d 65 2e 20 54 68 |he same.|time. Th|
|000026a0| 69 73 20 6d 65 61 6e 73 | 20 74 68 61 74 20 79 6f |is means| that yo|
|000026b0| 75 20 6f 6e 6c 79 20 76 | 65 72 79 20 76 65 72 79 |u only v|ery very|
|000026c0| 20 62 72 69 65 66 6c 79 | 20 73 65 65 20 74 68 65 | briefly| see the|
|000026d0| 20 72 69 64 67 65 64 20 | 62 6f 72 64 65 72 20 62 | ridged |border b|
|000026e0| 65 68 69 6e 64 0a 69 74 | 2e 0a 90 03 57 69 6d 70 |ehind.it|....Wimp|
|000026f0| 45 78 74 5f 53 6c 61 62 | 49 63 6f 6e 20 90 09 26 |Ext_Slab|Icon ..&|
|00002700| 34 35 37 38 32 0a 2d 90 | 1f 0a 52 32 20 3d 20 77 |45782.-.|..R2 = w|
|00002710| 69 6e 64 6f 77 20 68 61 | 6e 64 6c 65 20 6f 72 20 |indow ha|ndle or |
|00002720| 30 20 66 6f 72 20 73 6c | 61 62 62 65 64 20 69 63 |0 for sl|abbed ic|
|00002730| 6f 6e 0a 52 33 20 3d 20 | 69 63 6f 6e 20 68 61 6e |on.R3 = |icon han|
|00002740| 64 6c 65 0a 49 66 20 73 | 65 6d 69 2d 61 75 74 6f |dle.If s|emi-auto|
|00002750| 6d 61 74 69 63 20 73 6c | 61 62 62 69 6e 67 20 69 |matic sl|abbing i|
|00002760| 73 20 65 6e 61 62 6c 65 | 64 2c 20 74 68 65 6e 3a |s enable|d, then:|
|00002770| 0a 52 34 20 3d 20 30 20 | 74 6f 20 70 6f 70 20 6f |.R4 = 0 |to pop o|
|00002780| 75 74 2c 20 61 6e 79 20 | 6f 74 68 65 72 20 74 6f |ut, any |other to|
|00002790| 20 70 6f 70 20 69 6e 0a | 0a 54 6f 20 62 65 20 63 | pop in.|.To be c|
|000027a0| 61 6c 6c 65 64 20 74 6f | 20 66 6f 72 63 65 20 61 |alled to| force a|
|000027b0| 6e 20 69 63 6f 6e 20 74 | 6f 20 62 65 20 73 6c 61 |n icon t|o be sla|
|000027c0| 62 62 65 64 20 28 66 6f | 72 20 65 78 61 6d 70 6c |bbed (fo|r exampl|
|000027d0| 65 20 74 6f 20 73 6c 61 | 62 20 74 68 65 20 64 65 |e to sla|b the de|
|000027e0| 66 61 75 6c 74 0a 61 63 | 74 69 6f 6e 20 69 63 6f |fault.ac|tion ico|
|000027f0| 6e 20 69 66 20 52 45 54 | 55 52 4e 20 69 73 20 70 |n if RET|URN is p|
|00002800| 72 65 73 73 65 64 29 2e | 20 49 66 20 73 65 6d 69 |ressed).| If semi|
|00002810| 2d 61 75 74 6f 6d 61 74 | 69 63 20 73 6c 61 62 62 |-automat|ic slabb|
|00002820| 69 6e 67 20 69 73 20 65 | 6e 61 62 6c 65 64 20 74 |ing is e|nabled t|
|00002830| 68 65 6e 0a 74 68 65 20 | 69 63 6f 6e 20 77 69 6c |hen.the |icon wil|
|00002840| 6c 20 62 65 20 70 6f 70 | 70 65 64 20 69 6e 20 6f |l be pop|ped in o|
|00002850| 72 20 6f 75 74 20 64 65 | 70 65 6e 64 69 6e 67 20 |r out de|pending |
|00002860| 6f 6e 20 52 34 2c 20 6f | 74 68 65 72 77 69 73 65 |on R4, o|therwise|
|00002870| 20 69 74 20 77 69 6c 6c | 20 62 65 0a 70 6f 70 70 | it will| be.popp|
|00002880| 65 64 20 69 6e 20 61 6e | 64 20 74 68 65 6e 20 6f |ed in an|d then o|
|00002890| 75 74 20 61 67 61 69 6e | 2e 20 49 66 20 52 32 20 |ut again|. If R2 |
|000028a0| 69 73 20 7a 65 72 6f 20 | 74 68 65 6e 20 74 68 65 |is zero |then the|
|000028b0| 20 6c 61 73 74 20 69 63 | 6f 6e 20 74 6f 20 62 65 | last ic|on to be|
|000028c0| 20 73 6c 61 62 62 65 64 | 0a 69 6e 20 28 65 69 74 | slabbed|.in (eit|
|000028d0| 68 65 72 20 69 6d 70 6c | 69 63 69 74 79 20 6f 72 |her impl|icity or|
|000028e0| 20 65 78 70 6c 69 63 69 | 74 79 29 20 69 73 20 75 | explici|ty) is u|
|000028f0| 73 65 64 2e 20 4e 6f 74 | 65 20 74 68 61 74 20 69 |sed. Not|e that i|
|00002900| 6e 20 74 68 69 73 20 63 | 61 73 65 20 74 68 65 20 |n this c|ase the |
|00002910| 53 57 49 0a 6d 69 67 68 | 74 20 72 65 74 75 72 6e |SWI.migh|t return|
|00002920| 20 61 6e 20 65 72 72 6f | 72 20 28 65 67 2e 20 69 | an erro|r (eg. i|
|00002930| 66 20 74 68 65 20 77 69 | 6e 64 6f 77 20 68 61 73 |f the wi|ndow has|
|00002940| 20 62 65 65 6e 20 64 65 | 6c 65 74 65 64 29 2c 20 | been de|leted), |
|00002950| 73 6f 20 75 73 65 20 74 | 68 65 20 58 20 66 6f 72 |so use t|he X for|
|00002960| 6d 0a 69 66 20 74 68 65 | 20 53 57 49 2e 0a 90 03 |m.if the| SWI....|
|00002970| 57 69 6d 70 45 78 74 5f | 52 65 64 72 61 77 20 90 |WimpExt_|Redraw .|
|00002980| 0b 26 34 35 37 38 33 0a | 2d 90 1f 0a 52 31 20 3d |.&45783.|-...R1 =|
|00002990| 20 57 69 6d 70 5f 52 65 | 64 72 61 77 57 69 6e 64 | Wimp_Re|drawWind|
|000029a0| 6f 77 20 62 6c 6f 63 6b | 0a 0a 54 6f 20 62 65 20 |ow block|..To be |
|000029b0| 63 61 6c 6c 65 64 20 69 | 6e 20 74 68 65 20 77 69 |called i|n the wi|
|000029c0| 6e 64 6f 77 20 72 65 64 | 72 61 77 20 6c 6f 6f 70 |ndow red|raw loop|
|000029d0| 2c 20 74 6f 20 64 72 61 | 77 20 74 68 65 20 33 44 |, to dra|w the 3D|
|000029e0| 20 62 6f 72 64 65 72 73 | 20 72 6f 75 6e 64 20 69 | borders| round i|
|000029f0| 63 6f 6e 73 2e 0a 90 03 | 49 66 20 79 6f 75 20 75 |cons....|If you u|
|00002a00| 73 65 20 33 44 20 62 6f | 72 64 65 72 73 2c 20 79 |se 3D bo|rders, y|
|00002a10| 6f 75 20 4d 55 53 54 20 | 63 61 6c 6c 20 57 69 6d |ou MUST |call Wim|
|00002a20| 70 45 78 74 5f 52 65 64 | 72 61 77 2c 20 6f 72 20 |pExt_Red|raw, or |
|00002a30| 74 68 65 79 20 77 6f 6e | 27 74 20 61 70 70 65 61 |they won|'t appea|
|00002a40| 72 2e 0a 59 6f 75 72 20 | 72 65 64 72 61 77 20 6c |r..Your |redraw l|
|00002a50| 6f 6f 70 20 77 6f 75 6c | 64 20 70 72 6f 62 61 62 |oop woul|d probab|
|00002a60| 6c 79 20 6c 6f 6f 6b 20 | 73 6f 6d 65 74 68 69 6e |ly look |somethin|
|00002a70| 67 20 6c 69 6b 65 3a 0a | 0a 20 90 04 53 59 53 20 |g like:.|. ..SYS |
|00002a80| 22 57 69 6d 70 5f 52 65 | 64 72 61 77 57 69 6e 64 |"Wimp_Re|drawWind|
|00002a90| 6f 77 22 2c 2c 71 25 20 | 54 4f 20 66 6c 61 67 25 |ow",,q% |TO flag%|
|00002aa0| 0a 20 90 04 57 48 49 4c | 45 20 66 6c 61 67 25 0a |. ..WHIL|E flag%.|
|00002ab0| 20 90 06 53 59 53 20 22 | 57 69 6d 70 45 78 74 5f | ..SYS "|WimpExt_|
|00002ac0| 52 65 64 72 61 77 22 2c | 2c 71 25 0a 20 90 06 2e |Redraw",|,q%. ...|
|00002ad0| 90 03 0a 20 90 06 53 59 | 53 20 22 57 69 6d 70 5f |... ..SY|S "Wimp_|
|00002ae0| 47 65 74 52 65 63 74 61 | 6e 67 6c 65 22 2c 2c 71 |GetRecta|ngle",,q|
|00002af0| 25 20 54 4f 20 66 6c 61 | 67 25 0a 20 90 04 45 4e |% TO fla|g%. ..EN|
|00002b00| 44 57 48 49 4c 45 0a 90 | 03 57 69 6d 70 45 78 74 |DWHILE..|.WimpExt|
|00002b10| 5f 41 75 74 6f 52 65 64 | 72 61 77 20 90 07 26 34 |_AutoRed|raw ..&4|
|00002b20| 35 37 39 38 0a 2d 90 1f | 0a 52 31 20 3d 20 57 69 |5798.-..|.R1 = Wi|
|00002b30| 6d 70 5f 50 6f 6c 6c 20 | 72 65 61 73 6f 6e 20 63 |mp_Poll |reason c|
|00002b40| 6f 64 65 20 31 20 62 6c | 6f 63 6b 0a 0a 54 68 69 |ode 1 bl|ock..Thi|
|00002b50| 73 20 63 61 6c 6c 20 63 | 61 6e 20 62 65 20 75 73 |s call c|an be us|
|00002b60| 65 64 20 69 6e 73 74 65 | 61 64 20 6f 66 20 74 68 |ed inste|ad of th|
|00002b70| 65 20 6e 6f 72 6d 61 6c | 20 57 69 6d 70 5f 52 65 |e normal| Wimp_Re|
|00002b80| 64 72 61 77 57 69 6e 64 | 6f 77 2f 47 65 74 52 65 |drawWind|ow/GetRe|
|00002b90| 63 74 61 6e 67 6c 65 0a | 6c 6f 6f 70 20 69 66 20 |ctangle.|loop if |
|00002ba0| 74 68 65 20 77 69 6e 64 | 6f 77 20 64 6f 65 73 6e |the wind|ow doesn|
|00002bb0| 27 74 20 63 6f 6e 74 61 | 69 6e 20 61 6e 79 20 67 |'t conta|in any g|
|00002bc0| 72 61 70 68 69 63 73 20 | 64 72 61 77 6e 20 62 79 |raphics |drawn by|
|00002bd0| 20 79 6f 75 72 20 70 72 | 6f 67 72 61 6d 2e 20 49 | your pr|ogram. I|
|00002be0| 74 0a 64 6f 65 73 20 74 | 68 65 20 65 71 75 69 76 |t.does t|he equiv|
|00002bf0| 61 6c 65 6e 74 20 6f 66 | 3a 0a 0a 20 90 04 53 59 |alent of|:.. ..SY|
|00002c00| 53 20 22 57 69 6d 70 5f | 52 65 64 72 61 77 57 69 |S "Wimp_|RedrawWi|
|00002c10| 6e 64 6f 77 22 2c 2c 71 | 25 20 54 4f 20 66 6c 61 |ndow",,q|% TO fla|
|00002c20| 67 25 0a 20 90 04 57 48 | 49 4c 45 20 66 6c 61 67 |g%. ..WH|ILE flag|
|00002c30| 25 0a 20 90 06 53 59 53 | 20 22 57 69 6d 70 45 78 |%. ..SYS| "WimpEx|
|00002c40| 74 5f 52 65 64 72 61 77 | 22 2c 2c 71 25 0a 20 90 |t_Redraw|",,q%. .|
|00002c50| 06 53 59 53 20 22 57 69 | 6d 70 5f 47 65 74 52 65 |.SYS "Wi|mp_GetRe|
|00002c60| 63 74 61 6e 67 6c 65 22 | 2c 2c 71 25 20 54 4f 20 |ctangle"|,,q% TO |
|00002c70| 66 6c 61 67 25 0a 20 90 | 04 45 4e 44 57 48 49 4c |flag%. .|.ENDWHIL|
|00002c80| 45 0a 90 04 49 63 6f 6e | 62 61 72 20 73 70 72 69 |E...Icon|bar spri|
|00002c90| 74 65 73 0a 3d 90 0f 0a | 0a 54 77 6f 20 53 57 49 |tes.=...|.Two SWI|
|00002ca0| 73 20 61 72 65 20 70 72 | 6f 76 69 64 65 64 20 66 |s are pr|ovided f|
|00002cb0| 6f 72 20 70 75 74 74 69 | 6e 67 20 69 63 6f 6e 73 |or putti|ng icons|
|00002cc0| 20 6f 6e 20 74 68 65 20 | 69 63 6f 6e 62 61 72 20 | on the |iconbar |
|00002cd0| 2d 20 6f 6e 65 20 66 6f | 72 20 73 70 72 69 74 65 |- one fo|r sprite|
|00002ce0| 73 0a 6f 6e 6c 79 2c 20 | 61 6e 64 20 6f 6e 65 20 |s.only, |and one |
|00002cf0| 66 6f 72 20 74 65 78 74 | 2d 70 6c 75 73 2d 73 70 |for text|-plus-sp|
|00002d00| 72 69 74 65 20 69 63 6f | 6e 73 2e 20 54 68 65 73 |rite ico|ns. Thes|
|00002d10| 65 20 72 65 61 64 20 74 | 68 65 20 73 69 7a 65 20 |e read t|he size |
|00002d20| 6f 66 20 74 68 65 20 73 | 70 72 69 74 65 0a 74 6f |of the s|prite.to|
|00002d30| 20 67 65 74 20 74 68 65 | 20 77 69 64 74 68 20 6f | get the| width o|
|00002d40| 66 20 74 68 65 20 69 63 | 6f 6e 2e 0a 90 03 57 69 |f the ic|on....Wi|
|00002d50| 6d 70 45 78 74 5f 49 63 | 6f 6e 42 61 72 53 70 72 |mpExt_Ic|onBarSpr|
|00002d60| 69 74 65 20 90 04 26 34 | 35 37 38 35 0a 2d 90 1f |ite ..&4|5785.-..|
|00002d70| 0a 52 32 20 3d 20 2d 32 | 20 66 6f 72 20 6c 65 66 |.R2 = -2| for lef|
|00002d80| 74 20 6f 66 20 69 63 6f | 6e 62 61 72 2c 20 2d 31 |t of ico|nbar, -1|
|00002d90| 20 66 6f 72 20 72 69 67 | 68 74 0a 52 33 20 3d 20 | for rig|ht.R3 = |
|00002da0| 70 6f 69 6e 74 65 72 20 | 74 6f 20 73 70 72 69 74 |pointer |to sprit|
|00002db0| 65 20 6e 61 6d 65 0a 52 | 35 20 3d 20 69 63 6f 6e |e name.R|5 = icon|
|00002dc0| 20 62 75 74 74 6f 6e 20 | 74 79 70 65 20 28 65 67 | button |type (eg|
|00002dd0| 2e 20 33 29 0a 45 78 69 | 74 3a 0a 52 30 20 3d 20 |. 3).Exi|t:.R0 = |
|00002de0| 69 63 6f 6e 20 68 61 6e | 64 6c 65 0a 0a 57 69 6c |icon han|dle..Wil|
|00002df0| 6c 20 70 6c 61 63 65 20 | 61 20 73 70 72 69 74 65 |l place |a sprite|
|00002e00| 20 6f 6e 20 74 68 65 20 | 69 63 6f 6e 62 61 72 2c | on the |iconbar,|
|00002e10| 20 72 65 74 75 72 6e 69 | 6e 67 20 74 68 65 20 69 | returni|ng the i|
|00002e20| 63 6f 6e 20 68 61 6e 64 | 6c 65 2e 20 4e 6f 74 65 |con hand|le. Note|
|00002e30| 20 74 68 61 74 20 74 68 | 65 0a 73 70 72 69 74 65 | that th|e.sprite|
|00002e40| 20 6e 61 6d 65 20 69 73 | 20 63 6f 70 69 65 64 20 | name is| copied |
|00002e50| 6f 75 74 20 6f 66 20 74 | 68 65 20 6d 65 6d 6f 72 |out of t|he memor|
|00002e60| 79 20 62 6c 6f 63 6b 2c | 20 77 68 69 63 68 20 63 |y block,| which c|
|00002e70| 61 6e 20 62 65 20 72 65 | 75 73 65 64 2e 20 41 6c |an be re|used. Al|
|00002e80| 73 6f 20 6e 6f 74 65 0a | 74 68 61 74 20 74 68 65 |so note.|that the|
|00002e90| 20 6e 75 6d 62 65 72 20 | 69 6e 20 52 35 20 69 73 | number |in R5 is|
|00002ea0| 20 6a 75 73 74 20 74 68 | 65 20 62 75 74 74 6f 6e | just th|e button|
|00002eb0| 20 74 79 70 65 2c 20 6e | 6f 74 20 74 68 65 20 66 | type, n|ot the f|
|00002ec0| 6c 61 67 73 2e 0a 90 03 | 57 69 6d 70 45 78 74 5f |lags....|WimpExt_|
|00002ed0| 49 63 6f 6e 42 61 72 54 | 65 78 74 20 90 06 26 34 |IconBarT|ext ..&4|
|00002ee0| 35 37 38 36 0a 2d 90 1f | 0a 52 32 20 3d 20 2d 32 |5786.-..|.R2 = -2|
|00002ef0| 20 66 6f 72 20 6c 65 66 | 74 20 6f 66 20 69 63 6f | for lef|t of ico|
|00002f00| 6e 62 61 72 2c 20 2d 31 | 20 66 6f 72 20 72 69 67 |nbar, -1| for rig|
|00002f10| 68 74 0a 52 33 20 3d 20 | 70 6f 69 6e 74 65 72 20 |ht.R3 = |pointer |
|00002f20| 74 6f 20 73 70 72 69 74 | 65 20 6e 61 6d 65 0a 52 |to sprit|e name.R|
|00002f30| 34 20 3d 20 70 6f 69 6e | 74 65 72 20 74 6f 20 74 |4 = poin|ter to t|
|00002f40| 65 78 74 20 28 6d 61 78 | 2e 20 31 32 38 20 63 68 |ext (max|. 128 ch|
|00002f50| 61 72 73 20 69 6e 63 2e | 20 74 65 72 6d 69 6e 61 |ars inc.| termina|
|00002f60| 74 6f 72 29 0a 52 35 20 | 3d 20 69 63 6f 6e 20 62 |tor).R5 |= icon b|
|00002f70| 75 74 74 6f 6e 20 74 79 | 70 65 20 28 65 67 2e 20 |utton ty|pe (eg. |
|00002f80| 33 29 0a 45 78 69 74 3a | 0a 52 30 20 3d 20 69 63 |3).Exit:|.R0 = ic|
|00002f90| 6f 6e 20 68 61 6e 64 6c | 65 0a 0a 57 69 6c 6c 20 |on handl|e..Will |
|00002fa0| 70 6c 61 63 65 20 61 20 | 73 70 72 69 74 65 20 6f |place a |sprite o|
|00002fb0| 6e 20 74 68 65 20 69 63 | 6f 6e 62 61 72 2c 20 77 |n the ic|onbar, w|
|00002fc0| 69 74 68 20 61 20 74 65 | 78 74 20 6d 65 73 73 61 |ith a te|xt messa|
|00002fd0| 67 65 20 75 6e 64 65 72 | 6e 65 61 74 68 2c 20 72 |ge under|neath, r|
|00002fe0| 65 74 75 72 6e 69 6e 67 | 0a 74 68 65 20 69 63 6f |eturning|.the ico|
|00002ff0| 6e 20 68 61 6e 64 6c 65 | 2e 20 4e 6f 74 65 20 74 |n handle|. Note t|
|00003000| 68 61 74 20 74 68 65 20 | 73 70 72 69 74 65 20 6e |hat the |sprite n|
|00003010| 61 6d 65 20 69 73 20 63 | 6f 70 69 65 64 20 6f 75 |ame is c|opied ou|
|00003020| 74 20 6f 66 20 74 68 65 | 20 6d 65 6d 6f 72 79 20 |t of the| memory |
|00003030| 62 6c 6f 63 6b 2c 0a 77 | 68 69 63 68 20 63 61 6e |block,.w|hich can|
|00003040| 20 62 65 20 72 65 75 73 | 65 64 2c 20 62 75 74 20 | be reus|ed, but |
|00003050| 74 68 65 20 74 65 78 74 | 20 72 65 6d 61 69 6e 73 |the text| remains|
|00003060| 20 77 68 65 72 65 20 69 | 74 20 69 73 3b 20 74 68 | where i|t is; th|
|00003070| 69 73 20 69 73 20 73 6f | 20 79 6f 75 20 63 61 6e |is is so| you can|
|00003080| 0a 63 68 61 6e 67 65 20 | 74 68 65 20 74 65 78 74 |.change |the text|
|00003090| 20 61 66 74 65 72 20 63 | 72 65 61 74 69 6e 67 20 | after c|reating |
|000030a0| 74 68 65 20 69 63 6f 6e | 2e 20 41 6c 73 6f 20 6e |the icon|. Also n|
|000030b0| 6f 74 65 20 74 68 61 74 | 20 74 68 65 20 6e 75 6d |ote that| the num|
|000030c0| 62 65 72 20 69 6e 20 52 | 35 20 69 73 0a 6a 75 73 |ber in R|5 is.jus|
|000030d0| 74 20 74 68 65 20 62 75 | 74 74 6f 6e 20 74 79 70 |t the bu|tton typ|
|000030e0| 65 2c 20 6e 6f 74 20 74 | 68 65 20 66 6c 61 67 73 |e, not t|he flags|
|000030f0| 2e 0a 90 04 4c 69 6e 6b | 65 64 20 77 69 6e 64 6f |....Link|ed windo|
|00003100| 77 73 0a 3d 90 0e 0a 0a | 4c 69 6e 6b 65 64 20 77 |ws.=....|Linked w|
|00003110| 69 6e 64 6f 77 73 20 61 | 72 65 20 67 6f 6f 64 20 |indows a|re good |
|00003120| 66 6f 72 20 6f 70 74 69 | 6f 6e 20 73 65 74 74 69 |for opti|on setti|
|00003130| 6e 67 20 61 6e 64 20 6c | 69 73 74 73 20 6f 66 20 |ng and l|ists of |
|00003140| 74 68 69 6e 67 73 2e 20 | 54 68 65 79 20 63 6f 6e |things. |They con|
|00003150| 73 69 73 74 0a 6f 66 20 | 61 20 6d 61 69 6e 20 77 |sist.of |a main w|
|00003160| 69 6e 64 6f 77 2c 20 77 | 68 69 63 68 20 69 73 20 |indow, w|hich is |
|00003170| 6e 6f 72 6d 61 6c 2c 20 | 61 6e 64 20 61 20 73 75 |normal, |and a su|
|00003180| 62 77 69 6e 64 6f 77 2c | 20 77 68 69 63 68 20 6d |bwindow,| which m|
|00003190| 6f 76 65 73 20 61 72 6f | 75 6e 64 20 77 69 74 68 |oves aro|und with|
|000031a0| 0a 74 68 65 20 6d 61 69 | 6e 20 77 69 6e 64 6f 77 |.the mai|n window|
|000031b0| 2e 20 54 68 65 20 73 75 | 62 77 69 6e 64 6f 77 20 |. The su|bwindow |
|000031c0| 6e 6f 72 6d 61 6c 6c 79 | 20 68 61 73 20 6e 6f 20 |normally| has no |
|000031d0| 74 69 74 6c 65 62 61 72 | 20 61 6e 64 20 6e 6f 20 |titlebar| and no |
|000031e0| 68 6f 72 69 7a 6f 6e 74 | 61 6c 0a 73 63 72 6f 6c |horizont|al.scrol|
|000031f0| 6c 62 61 72 2c 20 6a 75 | 73 74 20 74 68 65 20 76 |lbar, ju|st the v|
|00003200| 65 72 74 69 63 61 6c 20 | 73 63 72 6f 6c 6c 62 61 |ertical |scrollba|
|00003210| 72 2c 20 61 6c 74 68 6f | 75 67 68 20 74 68 69 73 |r, altho|ugh this|
|00003220| 20 69 73 20 61 20 6d 61 | 74 74 65 72 20 6f 66 20 | is a ma|tter of |
|00003230| 73 74 79 6c 65 2e 0a 54 | 6f 20 68 61 76 65 20 6d |style..T|o have m|
|00003240| 6f 72 65 20 74 68 61 6e | 20 6f 6e 65 20 73 75 62 |ore than| one sub|
|00003250| 77 69 6e 64 6f 77 20 69 | 6e 20 61 20 6d 61 69 6e |window i|n a main|
|00003260| 20 77 69 6e 64 6f 77 20 | 79 6f 75 20 73 68 6f 75 | window |you shou|
|00003270| 6c 64 20 6c 69 6e 6b 20 | 74 68 65 0a 73 75 62 77 |ld link |the.subw|
|00003280| 69 6e 64 6f 77 73 20 74 | 6f 67 65 74 68 65 72 2e |indows t|ogether.|
|00003290| 20 65 67 3a 0a 20 20 53 | 59 53 20 22 57 69 6d 70 | eg:. S|YS "Wimp|
|000032a0| 45 78 74 5f 4c 69 6e 6b | 57 69 6e 64 6f 77 73 22 |Ext_Link|Windows"|
|000032b0| 2c 90 03 6d 61 69 6e 77 | 25 2c 6c 69 6e 6b 31 77 |,..mainw|%,link1w|
|000032c0| 25 2c 30 0a 20 20 53 59 | 53 20 22 57 69 6d 70 45 |%,0. SY|S "WimpE|
|000032d0| 78 74 5f 4c 69 6e 6b 57 | 69 6e 64 6f 77 73 22 2c |xt_LinkW|indows",|
|000032e0| 90 03 6c 69 6e 6b 31 77 | 25 2c 6c 69 6e 6b 32 77 |..link1w|%,link2w|
|000032f0| 25 2c 30 0a 20 20 53 59 | 53 20 22 57 69 6d 70 45 |%,0. SY|S "WimpE|
|00003300| 78 74 5f 4c 69 6e 6b 57 | 69 6e 64 6f 77 73 22 2c |xt_LinkW|indows",|
|00003310| 90 03 6c 69 6e 6b 32 77 | 25 2c 6c 69 6e 6b 33 77 |..link2w|%,link3w|
|00003320| 25 2c 30 0a 20 20 2e 90 | 03 0a 0a 57 69 6d 70 45 |%,0. ..|...WimpE|
|00003330| 78 74 65 6e 73 69 6f 6e | 20 6d 61 6b 65 73 20 6c |xtension| makes l|
|00003340| 69 6e 6b 65 64 20 77 69 | 6e 64 6f 77 73 20 76 65 |inked wi|ndows ve|
|00003350| 72 79 20 65 61 73 79 20 | 2d 20 74 6f 20 73 65 74 |ry easy |- to set|
|00003360| 20 75 70 20 61 20 6c 69 | 6e 6b 65 64 20 77 69 6e | up a li|nked win|
|00003370| 64 6f 77 2c 0a 6a 75 73 | 74 20 75 73 65 20 53 57 |dow,.jus|t use SW|
|00003380| 49 20 57 69 6d 70 45 78 | 74 5f 4c 69 6e 6b 57 69 |I WimpEx|t_LinkWi|
|00003390| 6e 64 6f 77 73 2c 20 61 | 6e 64 20 75 73 65 20 57 |ndows, a|nd use W|
|000033a0| 69 6d 70 45 78 74 5f 4f | 70 65 6e 4c 69 6e 6b 65 |impExt_O|penLinke|
|000033b0| 64 20 61 6e 64 0a 57 69 | 6d 70 45 78 74 5f 43 6c |d and.Wi|mpExt_Cl|
|000033c0| 6f 73 65 4c 69 6e 6b 65 | 64 20 69 6e 73 74 65 61 |oseLinke|d instea|
|000033d0| 64 20 6f 66 20 57 69 6d | 70 5f 4f 70 65 6e 57 69 |d of Wim|p_OpenWi|
|000033e0| 6e 64 6f 77 20 61 6e 64 | 20 57 69 6d 70 5f 43 6c |ndow and| Wimp_Cl|
|000033f0| 6f 73 65 57 69 6e 64 6f | 77 2e 0a 90 03 57 69 6d |oseWindo|w....Wim|
|00003400| 70 45 78 74 5f 4c 69 6e | 6b 57 69 6e 64 6f 77 73 |pExt_Lin|kWindows|
|00003410| 20 90 06 26 34 35 37 38 | 37 0a 2d 90 1f 0a 52 32 | ..&4578|7.-...R2|
|00003420| 20 3d 20 6d 61 69 6e 20 | 77 69 6e 64 6f 77 20 68 | = main |window h|
|00003430| 61 6e 64 6c 65 0a 52 33 | 20 3d 20 73 75 62 2d 77 |andle.R3| = sub-w|
|00003440| 69 6e 64 6f 77 20 68 61 | 6e 64 6c 65 0a 52 34 20 |indow ha|ndle.R4 |
|00003450| 3d 20 66 6c 61 67 73 0a | 20 90 05 62 69 74 20 90 |= flags.| ..bit .|
|00003460| 04 6d 65 61 6e 69 6e 67 | 0a 20 90 05 30 20 90 06 |.meaning|. ..0 ..|
|00003470| 63 6c 69 70 20 6c 69 6e | 6b 65 64 20 77 69 6e 64 |clip lin|ked wind|
|00003480| 6f 77 20 74 6f 20 74 68 | 65 20 6c 65 66 74 20 6f |ow to th|e left o|
|00003490| 66 20 74 68 65 20 6d 61 | 69 6e 20 77 69 6e 64 6f |f the ma|in windo|
|000034a0| 77 0a 20 90 05 31 20 90 | 06 63 6c 69 70 20 6c 69 |w. ..1 .|.clip li|
|000034b0| 6e 6b 65 64 20 77 69 6e | 64 6f 77 20 74 6f 20 74 |nked win|dow to t|
|000034c0| 68 65 20 72 69 67 68 74 | 20 6f 66 20 74 68 65 20 |he right| of the |
|000034d0| 6d 61 69 6e 20 77 69 6e | 64 6f 77 0a 20 90 05 32 |main win|dow. ..2|
|000034e0| 20 90 06 63 6c 69 70 20 | 6c 69 6e 6b 65 64 20 77 | ..clip |linked w|
|000034f0| 69 6e 64 6f 77 20 61 62 | 6f 76 65 20 74 68 65 20 |indow ab|ove the |
|00003500| 6d 61 69 6e 20 77 69 6e | 64 6f 77 0a 20 90 05 33 |main win|dow. ..3|
|00003510| 20 90 06 63 6c 69 70 20 | 6c 69 6e 6b 65 64 20 77 | ..clip |linked w|
|00003520| 69 6e 64 6f 77 20 62 65 | 6c 6f 77 20 74 68 65 20 |indow be|low the |
|00003530| 6d 61 69 6e 20 77 69 6e | 64 6f 77 0a 20 90 05 34 |main win|dow. ..4|
|00003540| 2d 33 30 20 90 03 72 65 | 73 65 72 76 65 64 3b 20 |-30 ..re|served; |
|00003550| 4d 55 53 54 20 42 45 20 | 30 0a 20 90 05 33 31 20 |MUST BE |0. ..31 |
|00003560| 90 05 6c 69 6e 6b 20 69 | 73 20 68 69 64 64 65 6e |..link i|s hidden|
|00003570| 0a 0a 57 69 6c 6c 20 6c | 69 6e 6b 20 74 77 6f 20 |..Will l|ink two |
|00003580| 77 69 6e 64 6f 77 73 20 | 73 6f 20 74 68 65 20 73 |windows |so the s|
|00003590| 75 62 2d 77 69 6e 64 6f | 77 20 6d 6f 76 65 73 20 |ub-windo|w moves |
|000035a0| 77 69 74 68 20 74 68 65 | 20 6d 61 69 6e 20 77 69 |with the| main wi|
|000035b0| 6e 64 6f 77 2e 20 43 75 | 72 72 65 6e 74 6c 79 0a |ndow. Cu|rrently.|
|000035c0| 74 68 65 72 65 20 69 73 | 20 61 20 6c 69 6d 69 74 |there is| a limit|
|000035d0| 20 6f 66 20 31 36 20 6c | 69 6e 6b 65 64 20 77 69 | of 16 l|inked wi|
|000035e0| 6e 64 6f 77 73 20 2d 20 | 74 68 69 73 20 6d 61 79 |ndows - |this may|
|000035f0| 20 62 65 20 72 65 6d 6f | 76 65 64 20 69 6e 20 61 | be remo|ved in a|
|00003600| 20 6c 61 74 65 72 0a 76 | 65 72 73 69 6f 6e 2e 0a | later.v|ersion..|
|00003610| 90 03 57 69 6d 70 45 78 | 74 5f 4f 70 65 6e 4c 69 |..WimpEx|t_OpenLi|
|00003620| 6e 6b 65 64 20 90 07 26 | 34 35 37 38 38 0a 2d 90 |nked ..&|45788.-.|
|00003630| 1f 0a 52 31 20 3d 20 57 | 69 6d 70 5f 4f 70 65 6e |..R1 = W|imp_Open|
|00003640| 57 69 6e 64 6f 77 20 62 | 6c 6f 63 6b 0a 0a 54 6f |Window b|lock..To|
|00003650| 20 62 65 20 75 73 65 64 | 20 69 6e 73 74 65 61 64 | be used| instead|
|00003660| 20 6f 66 20 57 69 6d 70 | 5f 4f 70 65 6e 57 69 6e | of Wimp|_OpenWin|
|00003670| 64 6f 77 2e 20 49 74 20 | 64 6f 65 73 20 74 68 65 |dow. It |does the|
|00003680| 20 73 61 6d 65 20 74 68 | 69 6e 67 2c 20 62 75 74 | same th|ing, but|
|00003690| 20 69 66 20 74 68 65 0a | 77 69 6e 64 6f 77 20 69 | if the.|window i|
|000036a0| 73 20 6c 69 6e 6b 65 64 | 20 74 68 65 6e 20 69 74 |s linked| then it|
|000036b0| 20 77 69 6c 6c 20 68 61 | 6e 64 6c 65 20 74 68 65 | will ha|ndle the|
|000036c0| 20 6c 69 6e 6b 2e 20 49 | 66 20 74 68 65 20 77 69 | link. I|f the wi|
|000036d0| 6e 64 6f 77 20 69 73 20 | 6e 6f 74 20 6c 69 6e 6b |ndow is |not link|
|000036e0| 65 64 2c 0a 69 74 20 68 | 61 73 20 74 68 65 20 73 |ed,.it h|as the s|
|000036f0| 61 6d 65 20 65 66 66 65 | 63 74 20 61 73 20 57 69 |ame effe|ct as Wi|
|00003700| 6d 70 5f 4f 70 65 6e 57 | 69 6e 64 6f 77 2e 0a 90 |mp_OpenW|indow...|
|00003710| 03 57 69 6d 70 45 78 74 | 5f 43 6c 6f 73 65 4c 69 |.WimpExt|_CloseLi|
|00003720| 6e 6b 65 64 20 90 06 26 | 34 35 37 38 39 0a 2d 90 |nked ..&|45789.-.|
|00003730| 1f 0a 52 31 20 3d 20 57 | 69 6d 70 5f 43 6c 6f 73 |..R1 = W|imp_Clos|
|00003740| 65 57 69 6e 64 6f 77 20 | 62 6c 6f 63 6b 0a 0a 54 |eWindow |block..T|
|00003750| 6f 20 62 65 20 75 73 65 | 64 20 69 6e 73 74 65 61 |o be use|d instea|
|00003760| 64 20 6f 66 20 57 69 6d | 70 5f 43 6c 6f 73 65 57 |d of Wim|p_CloseW|
|00003770| 69 6e 64 6f 77 2e 20 49 | 74 20 64 6f 65 73 20 74 |indow. I|t does t|
|00003780| 68 65 20 73 61 6d 65 20 | 74 68 69 6e 67 2c 20 62 |he same |thing, b|
|00003790| 75 74 20 69 66 20 74 68 | 65 0a 77 69 6e 64 6f 77 |ut if th|e.window|
|000037a0| 20 69 73 20 6c 69 6e 6b | 65 64 20 74 68 65 6e 20 | is link|ed then |
|000037b0| 69 74 20 77 69 6c 6c 20 | 63 6c 6f 73 65 20 74 68 |it will |close th|
|000037c0| 65 20 6c 69 6e 6b 65 64 | 20 77 69 6e 64 6f 77 20 |e linked| window |
|000037d0| 61 73 20 77 65 6c 6c 2e | 20 49 66 20 74 68 65 20 |as well.| If the |
|000037e0| 77 69 6e 64 6f 77 0a 69 | 73 20 6e 6f 74 20 6c 69 |window.i|s not li|
|000037f0| 6e 6b 65 64 2c 20 69 74 | 20 68 61 73 20 74 68 65 |nked, it| has the|
|00003800| 20 73 61 6d 65 20 65 66 | 66 65 63 74 20 61 73 20 | same ef|fect as |
|00003810| 57 69 6d 70 5f 43 6c 6f | 73 65 57 69 6e 64 6f 77 |Wimp_Clo|seWindow|
|00003820| 2e 0a 90 03 57 69 6d 70 | 45 78 74 5f 55 6e 4c 69 |....Wimp|Ext_UnLi|
|00003830| 6e 6b 57 69 6e 64 6f 77 | 73 20 90 04 26 34 35 37 |nkWindow|s ..&457|
|00003840| 38 41 0a 2d 90 1f 0a 52 | 32 20 3d 20 6d 61 69 6e |8A.-...R|2 = main|
|00003850| 20 77 69 6e 64 6f 77 20 | 68 61 6e 64 6c 65 0a 52 | window |handle.R|
|00003860| 33 20 3d 20 73 75 62 2d | 77 69 6e 64 6f 77 20 68 |3 = sub-|window h|
|00003870| 61 6e 64 6c 65 0a 0a 57 | 69 6c 6c 20 72 65 6d 6f |andle..W|ill remo|
|00003880| 76 65 20 74 68 65 20 6c | 69 6e 6b 20 62 65 74 77 |ve the l|ink betw|
|00003890| 65 65 6e 20 74 68 65 20 | 73 70 65 63 69 66 69 65 |een the |specifie|
|000038a0| 64 20 77 69 6e 64 6f 77 | 20 61 6e 64 20 69 74 73 |d window| and its|
|000038b0| 20 73 75 62 77 69 6e 64 | 6f 77 2e 20 4e 6f 74 65 | subwind|ow. Note|
|000038c0| 0a 74 68 61 74 20 74 68 | 69 73 20 6a 75 73 74 20 |.that th|is just |
|000038d0| 72 65 6d 6f 76 65 73 20 | 74 68 65 20 70 6f 69 6e |removes |the poin|
|000038e0| 74 65 72 20 69 6e 20 57 | 69 6d 70 45 78 74 65 6e |ter in W|impExten|
|000038f0| 73 69 6f 6e 20 77 6f 72 | 6b 73 70 61 63 65 2c 20 |sion wor|kspace, |
|00003900| 69 66 20 74 68 65 20 77 | 69 6e 64 6f 77 73 0a 61 |if the w|indows.a|
|00003910| 72 65 20 6f 6e 20 74 68 | 65 20 73 63 72 65 65 6e |re on th|e screen|
|00003920| 20 74 68 65 79 20 77 69 | 6c 6c 20 72 65 6d 61 69 | they wi|ll remai|
|00003930| 6e 20 74 68 65 72 65 2e | 20 59 6f 75 20 64 6f 20 |n there.| You do |
|00003940| 6e 6f 74 20 68 61 76 65 | 20 74 6f 20 63 61 6c 6c |not have| to call|
|00003950| 0a 55 6e 4c 69 6e 6b 57 | 69 6e 64 6f 77 73 20 62 |.UnLinkW|indows b|
|00003960| 65 66 6f 72 65 20 79 6f | 75 20 65 78 69 74 20 2d |efore yo|u exit -|
|00003970| 20 69 74 20 69 73 20 68 | 65 72 65 20 73 6f 20 74 | it is h|ere so t|
|00003980| 68 61 74 20 79 6f 75 20 | 63 61 6e 20 75 6e 6c 69 |hat you |can unli|
|00003990| 6e 6b 20 77 69 6e 64 6f | 77 73 0a 77 68 69 6c 65 |nk windo|ws.while|
|000039a0| 20 79 6f 75 72 20 61 70 | 70 6c 69 63 61 74 69 6f | your ap|plicatio|
|000039b0| 6e 20 69 73 20 73 74 69 | 6c 6c 20 72 75 6e 6e 69 |n is sti|ll runni|
|000039c0| 6e 67 2e 0a 90 03 57 69 | 6d 70 45 78 74 5f 48 69 |ng....Wi|mpExt_Hi|
|000039d0| 64 65 4c 69 6e 6b 20 90 | 09 26 34 35 37 41 38 0a |deLink .|.&457A8.|
|000039e0| 2d 90 1f 0a 52 30 20 3d | 20 6d 61 69 6e 20 77 69 |-...R0 =| main wi|
|000039f0| 6e 64 6f 77 20 68 61 6e | 64 6c 65 0a 52 32 20 3d |ndow han|dle.R2 =|
|00003a00| 20 73 75 62 2d 77 69 6e | 64 6f 77 20 68 61 6e 64 | sub-win|dow hand|
|00003a10| 6c 65 0a 0a 54 65 6d 70 | 6f 72 61 72 69 6c 79 20 |le..Temp|orarily |
|00003a20| 68 69 64 65 73 20 74 68 | 65 20 6c 69 6e 6b 20 62 |hides th|e link b|
|00003a30| 65 74 77 65 65 6e 20 74 | 68 65 20 73 70 65 63 69 |etween t|he speci|
|00003a40| 66 69 65 64 20 77 69 6e | 64 6f 77 20 61 6e 64 20 |fied win|dow and |
|00003a50| 69 74 73 20 73 75 62 2d | 77 69 6e 64 6f 77 2e 0a |its sub-|window..|
|00003a60| 54 68 69 73 20 69 73 20 | 75 73 65 66 75 6c 2c 20 |This is |useful, |
|00003a70| 66 6f 72 20 65 78 61 6d | 70 6c 65 2c 20 66 6f 72 |for exam|ple, for|
|00003a80| 20 72 65 6d 6f 76 69 6e | 67 20 74 6f 6f 6c 62 6f | removin|g toolbo|
|00003a90| 78 65 73 20 69 6e 20 73 | 75 63 68 20 61 20 77 61 |xes in s|uch a wa|
|00003aa0| 79 20 74 68 61 74 20 74 | 68 65 79 0a 63 61 6e 20 |y that t|hey.can |
|00003ab0| 62 65 20 72 65 70 6c 61 | 63 65 64 20 6c 61 74 65 |be repla|ced late|
|00003ac0| 72 2e 20 4e 6f 74 65 20 | 74 68 61 74 20 74 68 69 |r. Note |that thi|
|00003ad0| 73 20 63 61 6c 6c 20 64 | 6f 65 73 20 6e 6f 20 73 |s call d|oes no s|
|00003ae0| 63 72 65 65 6e 20 75 70 | 64 61 74 65 20 2d 20 69 |creen up|date - i|
|00003af0| 65 2e 20 74 68 65 0a 73 | 75 62 2d 77 69 6e 64 6f |e. the.s|ub-windo|
|00003b00| 77 20 72 65 6d 61 69 6e | 73 20 77 68 65 72 65 20 |w remain|s where |
|00003b10| 69 74 20 69 73 2e 0a 90 | 03 57 69 6d 70 45 78 74 |it is...|.WimpExt|
|00003b20| 5f 55 6e 48 69 64 65 4c | 69 6e 6b 20 90 07 26 34 |_UnHideL|ink ..&4|
|00003b30| 35 37 41 39 0a 2d 90 1f | 0a 52 30 20 3d 20 6d 61 |57A9.-..|.R0 = ma|
|00003b40| 69 6e 20 77 69 6e 64 6f | 77 20 68 61 6e 64 6c 65 |in windo|w handle|
|00003b50| 0a 52 32 20 3d 20 73 75 | 62 2d 77 69 6e 64 6f 77 |.R2 = su|b-window|
|00003b60| 20 68 61 6e 64 6c 65 0a | 0a 55 6e 68 69 64 65 73 | handle.|.Unhides|
|00003b70| 20 74 68 65 20 70 72 65 | 76 69 6f 75 73 6c 79 20 | the pre|viously |
|00003b80| 68 69 64 64 65 6e 20 6c | 69 6e 6b 2e 20 4e 6f 74 |hidden l|ink. Not|
|00003b90| 65 20 74 68 61 74 20 74 | 68 69 73 20 63 61 6c 6c |e that t|his call|
|00003ba0| 20 64 6f 65 73 20 6e 6f | 20 73 63 72 65 65 6e 0a | does no| screen.|
|00003bb0| 75 70 64 61 74 65 20 2d | 20 69 65 2e 20 74 68 65 |update -| ie. the|
|00003bc0| 20 73 75 62 2d 77 69 6e | 64 6f 77 20 72 65 6d 61 | sub-win|dow rema|
|00003bd0| 69 6e 73 20 77 68 65 72 | 65 20 69 74 20 69 73 2e |ins wher|e it is.|
|00003be0| 0a 90 03 57 69 6d 70 45 | 78 74 5f 4d 61 6e 75 61 |...WimpE|xt_Manua|
|00003bf0| 6c 4c 69 6e 6b 20 90 07 | 26 34 36 33 38 39 0a 2d |lLink ..|&46389.-|
|00003c00| 90 1f 0a 52 32 20 3d 20 | 6d 61 69 6e 20 77 69 6e |...R2 = |main win|
|00003c10| 64 6f 77 20 68 61 6e 64 | 6c 65 0a 52 33 20 3d 20 |dow hand|le.R3 = |
|00003c20| 73 75 62 2d 77 69 6e 64 | 6f 77 20 68 61 6e 64 6c |sub-wind|ow handl|
|00003c30| 65 0a 52 34 20 3d 20 66 | 6c 61 67 73 0a 20 90 05 |e.R4 = f|lags. ..|
|00003c40| 62 69 74 20 90 04 6d 65 | 61 6e 69 6e 67 0a 20 90 |bit ..me|aning. .|
|00003c50| 05 30 20 90 06 63 6c 69 | 70 20 6c 69 6e 6b 65 64 |.0 ..cli|p linked|
|00003c60| 20 77 69 6e 64 6f 77 20 | 74 6f 20 74 68 65 20 6c | window |to the l|
|00003c70| 65 66 74 20 6f 66 20 74 | 68 65 20 6d 61 69 6e 20 |eft of t|he main |
|00003c80| 77 69 6e 64 6f 77 0a 20 | 90 05 31 20 90 06 63 6c |window. |..1 ..cl|
|00003c90| 69 70 20 6c 69 6e 6b 65 | 64 20 77 69 6e 64 6f 77 |ip linke|d window|
|00003ca0| 20 74 6f 20 74 68 65 20 | 72 69 67 68 74 20 6f 66 | to the |right of|
|00003cb0| 20 74 68 65 20 6d 61 69 | 6e 20 77 69 6e 64 6f 77 | the mai|n window|
|00003cc0| 0a 20 90 05 32 20 90 06 | 63 6c 69 70 20 6c 69 6e |. ..2 ..|clip lin|
|00003cd0| 6b 65 64 20 77 69 6e 64 | 6f 77 20 61 62 6f 76 65 |ked wind|ow above|
|00003ce0| 20 74 68 65 20 6d 61 69 | 6e 20 77 69 6e 64 6f 77 | the mai|n window|
|00003cf0| 0a 20 90 05 33 20 90 06 | 63 6c 69 70 20 6c 69 6e |. ..3 ..|clip lin|
|00003d00| 6b 65 64 20 77 69 6e 64 | 6f 77 20 62 65 6c 6f 77 |ked wind|ow below|
|00003d10| 20 74 68 65 20 6d 61 69 | 6e 20 77 69 6e 64 6f 77 | the mai|n window|
|00003d20| 0a 20 90 05 34 2d 33 30 | 20 90 03 72 65 73 65 72 |. ..4-30| ..reser|
|00003d30| 76 65 64 3b 20 4d 55 53 | 54 20 42 45 20 30 0a 20 |ved; MUS|T BE 0. |
|00003d40| 90 05 33 31 20 90 05 6c | 69 6e 6b 20 69 73 20 68 |..31 ..l|ink is h|
|00003d50| 69 64 64 65 6e 0a 52 35 | 20 3d 20 58 20 6f 66 66 |idden.R5| = X off|
|00003d60| 73 65 74 20 62 65 74 77 | 65 65 6e 20 6d 61 69 6e |set betw|een main|
|00003d70| 20 61 6e 64 20 73 75 62 | 2d 77 69 6e 64 6f 77 0a | and sub|-window.|
|00003d80| 52 36 20 3d 20 59 20 6f | 66 66 73 65 74 20 62 65 |R6 = Y o|ffset be|
|00003d90| 74 77 65 65 6e 20 6d 61 | 69 6e 20 61 6e 64 20 73 |tween ma|in and s|
|00003da0| 75 62 2d 77 69 6e 64 6f | 77 0a 0a 57 69 6c 6c 20 |ub-windo|w..Will |
|00003db0| 6c 69 6e 6b 20 74 77 6f | 20 77 69 6e 64 6f 77 73 |link two| windows|
|00003dc0| 20 73 6f 20 74 68 65 20 | 73 75 62 2d 77 69 6e 64 | so the |sub-wind|
|00003dd0| 6f 77 20 6d 6f 76 65 73 | 20 77 69 74 68 20 74 68 |ow moves| with th|
|00003de0| 65 20 6d 61 69 6e 20 77 | 69 6e 64 6f 77 2e 20 43 |e main w|indow. C|
|00003df0| 75 72 72 65 6e 74 6c 79 | 0a 74 68 65 72 65 20 69 |urrently|.there i|
|00003e00| 73 20 61 20 6c 69 6d 69 | 74 20 6f 66 20 31 36 20 |s a limi|t of 16 |
|00003e10| 6c 69 6e 6b 65 64 20 77 | 69 6e 64 6f 77 73 20 2d |linked w|indows -|
|00003e20| 20 74 68 69 73 20 6d 61 | 79 20 62 65 20 72 65 6d | this ma|y be rem|
|00003e30| 6f 76 65 64 20 69 6e 20 | 61 20 6c 61 74 65 72 0a |oved in |a later.|
|00003e40| 76 65 72 73 69 6f 6e 2e | 0a 90 04 54 65 6d 70 6c |version.|...Templ|
|00003e50| 61 74 65 73 0a 3d 90 09 | 0a 0a 55 73 69 6e 67 20 |ates.=..|..Using |
|00003e60| 74 65 6d 70 6c 61 74 65 | 73 20 75 73 75 61 6c 6c |template|s usuall|
|00003e70| 79 20 69 73 20 71 75 69 | 74 65 20 74 65 64 69 6f |y is qui|te tedio|
|00003e80| 75 73 2c 20 61 73 20 79 | 6f 75 20 68 61 76 65 20 |us, as y|ou have |
|00003e90| 74 6f 20 6f 70 65 6e 20 | 74 68 65 20 74 65 6d 70 |to open |the temp|
|00003ea0| 6c 61 74 65 0a 66 69 6c | 65 20 61 6e 64 20 72 65 |late.fil|e and re|
|00003eb0| 61 64 20 69 6e 20 74 68 | 65 20 64 65 66 69 6e 69 |ad in th|e defini|
|00003ec0| 74 69 6f 6e 73 20 66 6f | 72 20 65 61 63 68 20 77 |tions fo|r each w|
|00003ed0| 69 6e 64 6f 77 20 69 6e | 64 69 76 69 64 75 61 6c |indow in|dividual|
|00003ee0| 6c 79 2c 20 63 61 6c 6c | 69 6e 67 0a 57 69 6d 70 |ly, call|ing.Wimp|
|00003ef0| 5f 43 72 65 61 74 65 57 | 69 6e 64 6f 77 20 66 6f |_CreateW|indow fo|
|00003f00| 72 20 65 61 63 68 20 6f | 6e 65 20 61 6e 64 20 73 |r each o|ne and s|
|00003f10| 74 6f 72 69 6e 67 20 74 | 68 65 20 77 69 6e 64 6f |toring t|he windo|
|00003f20| 77 20 68 61 6e 64 6c 65 | 2e 20 55 73 69 6e 67 0a |w handle|. Using.|
|00003f30| 57 69 6d 70 45 78 74 65 | 6e 73 69 6f 6e 20 79 6f |WimpExte|nsion yo|
|00003f40| 75 20 6a 75 73 74 20 63 | 61 6c 6c 20 57 69 6d 70 |u just c|all Wimp|
|00003f50| 45 78 74 5f 4c 6f 61 64 | 54 65 6d 70 6c 61 74 65 |Ext_Load|Template|
|00003f60| 73 20 61 6e 64 20 61 6c | 6c 20 74 68 65 20 77 69 |s and al|l the wi|
|00003f70| 6e 64 6f 77 73 20 69 6e | 20 74 68 65 0a 6e 61 6d |ndows in| the.nam|
|00003f80| 65 64 20 66 69 6c 65 20 | 77 69 6c 6c 20 62 65 20 |ed file |will be |
|00003f90| 6c 6f 61 64 65 64 20 61 | 6e 64 20 63 72 65 61 74 |loaded a|nd creat|
|00003fa0| 65 64 2c 20 61 6e 64 20 | 74 68 65 20 68 61 6e 64 |ed, and |the hand|
|00003fb0| 6c 65 73 20 73 74 6f 72 | 65 64 20 69 6e 20 61 20 |les stor|ed in a |
|00003fc0| 62 75 66 66 65 72 2e 0a | 54 68 65 20 6f 6e 6c 79 |buffer..|The only|
|00003fd0| 20 74 69 6d 65 20 79 6f | 75 20 63 61 6e 6e 6f 74 | time yo|u cannot|
|00003fe0| 20 64 6f 20 74 68 69 73 | 20 69 73 20 69 66 20 79 | do this| is if y|
|00003ff0| 6f 75 20 68 61 76 65 20 | 6d 6f 72 65 20 74 68 61 |ou have |more tha|
|00004000| 6e 20 6f 6e 65 20 77 69 | 6e 64 6f 77 20 74 68 61 |n one wi|ndow tha|
|00004010| 74 20 79 6f 75 0a 77 61 | 6e 74 20 74 6f 20 6f 70 |t you.wa|nt to op|
|00004020| 65 6e 20 6d 75 6c 74 69 | 70 6c 65 20 63 6f 70 69 |en multi|ple copi|
|00004030| 65 73 20 6f 66 2e 20 49 | 66 20 79 6f 75 20 68 61 |es of. I|f you ha|
|00004040| 76 65 20 6e 6f 20 73 75 | 63 68 20 77 69 6e 64 6f |ve no su|ch windo|
|00004050| 77 73 2c 20 79 6f 75 27 | 72 65 20 4f 4b 2c 20 69 |ws, you'|re OK, i|
|00004060| 66 0a 79 6f 75 20 77 61 | 6e 74 20 6f 6e 65 20 73 |f.you wa|nt one s|
|00004070| 75 63 68 20 77 69 6e 64 | 6f 77 20 74 68 65 6e 20 |uch wind|ow then |
|00004080| 79 6f 75 20 73 69 6d 70 | 6c 79 20 6d 61 6b 65 20 |you simp|ly make |
|00004090| 73 75 72 65 20 69 74 27 | 73 20 74 68 65 20 6c 61 |sure it'|s the la|
|000040a0| 73 74 20 77 69 6e 64 6f | 77 20 69 6e 0a 74 68 65 |st windo|w in.the|
|000040b0| 20 74 65 6d 70 6c 61 74 | 65 73 20 66 69 6c 65 2c | templat|es file,|
|000040c0| 20 61 6e 64 20 69 74 73 | 20 64 65 66 69 6e 69 74 | and its| definit|
|000040d0| 69 6f 6e 20 77 69 6c 6c | 20 62 65 20 69 6e 20 74 |ion will| be in t|
|000040e0| 68 65 20 62 75 66 66 65 | 72 20 61 66 74 65 72 20 |he buffe|r after |
|000040f0| 74 68 65 20 53 57 49 0a | 63 61 6c 6c 2e 0a 0a 4e |the SWI.|call...N|
|00004100| 6f 74 65 20 74 68 61 74 | 20 62 79 20 75 73 69 6e |ote that| by usin|
|00004110| 67 20 74 68 69 73 20 63 | 61 6c 6c 20 79 6f 75 72 |g this c|all your|
|00004120| 20 70 72 6f 67 72 61 6d | 20 69 73 20 64 65 70 65 | program| is depe|
|00004130| 6e 64 65 6e 74 20 6f 6e | 20 74 68 65 20 6f 72 64 |ndent on| the ord|
|00004140| 65 72 20 6f 66 20 74 68 | 65 0a 74 65 6d 70 6c 61 |er of th|e.templa|
|00004150| 74 65 73 20 69 6e 20 74 | 68 65 20 66 69 6c 65 2e |tes in t|he file.|
|00004160| 20 54 68 69 73 20 73 68 | 6f 75 6c 64 6e 27 74 20 | This sh|ouldn't |
|00004170| 6d 61 74 74 65 72 2c 20 | 61 73 20 77 68 65 6e 20 |matter, |as when |
|00004180| 79 6f 75 20 6d 61 6b 65 | 20 74 68 65 20 74 65 6d |you make| the tem|
|00004190| 70 6c 61 74 65 73 0a 66 | 69 6c 65 20 79 6f 75 20 |plates.f|ile you |
|000041a0| 6b 6e 6f 77 20 77 68 61 | 74 20 6f 72 64 65 72 20 |know wha|t order |
|000041b0| 79 6f 75 27 76 65 20 67 | 6f 74 20 74 68 65 6d 20 |you've g|ot them |
|000041c0| 69 6e 2c 20 61 6e 64 20 | 6e 6f 62 6f 64 79 20 65 |in, and |nobody e|
|000041d0| 6c 73 65 20 68 61 73 20 | 61 6e 79 20 62 75 73 69 |lse has |any busi|
|000041e0| 6e 65 73 73 0a 63 68 61 | 6e 67 69 6e 67 20 79 6f |ness.cha|nging yo|
|000041f0| 75 72 20 74 65 6d 70 6c | 61 74 65 73 20 66 69 6c |ur templ|ates fil|
|00004200| 65 2e 0a 90 03 57 69 6d | 70 45 78 74 5f 4c 6f 61 |e....Wim|pExt_Loa|
|00004210| 64 54 65 6d 70 6c 61 74 | 65 73 20 90 04 26 34 35 |dTemplat|es ..&45|
|00004220| 37 38 43 0a 2d 90 1f 0a | 52 30 20 3d 20 70 6f 69 |78C.-...|R0 = poi|
|00004230| 6e 74 65 72 20 74 6f 20 | 62 75 66 66 65 72 20 66 |nter to |buffer f|
|00004240| 6f 72 20 73 74 6f 72 69 | 6e 67 20 77 69 6e 64 6f |or stori|ng windo|
|00004250| 77 20 68 61 6e 64 6c 65 | 73 0a 52 31 20 3d 20 70 |w handle|s.R1 = p|
|00004260| 6f 69 6e 74 65 72 20 74 | 6f 20 75 73 65 72 20 62 |ointer t|o user b|
|00004270| 75 66 66 65 72 20 66 6f | 72 20 74 65 6d 70 6c 61 |uffer fo|r templa|
|00004280| 74 65 20 28 62 69 67 20 | 65 6e 6f 75 67 68 20 66 |te (big |enough f|
|00004290| 6f 72 20 6c 61 72 67 65 | 73 74 20 74 65 6d 70 6c |or large|st templ|
|000042a0| 61 74 65 29 0a 52 32 20 | 3d 20 70 6f 69 6e 74 65 |ate).R2 |= pointe|
|000042b0| 72 20 74 6f 20 77 6f 72 | 6b 73 70 61 63 65 20 66 |r to wor|kspace f|
|000042c0| 6f 72 20 69 6e 64 69 72 | 65 63 74 65 64 20 69 63 |or indir|ected ic|
|000042d0| 6f 6e 73 0a 52 33 20 3d | 20 70 6f 69 6e 74 65 72 |ons.R3 =| pointer|
|000042e0| 20 74 6f 20 65 6e 64 20 | 6f 66 20 77 6f 72 6b 73 | to end |of works|
|000042f0| 70 61 63 65 20 66 6f 72 | 20 69 6e 64 69 72 65 63 |pace for| indirec|
|00004300| 74 65 64 20 69 63 6f 6e | 73 0a 52 34 20 3d 20 32 |ted icon|s.R4 = 2|
|00004310| 35 36 2d 62 79 74 65 20 | 66 6f 6e 74 20 72 65 66 |56-byte |font ref|
|00004320| 65 72 65 6e 63 65 20 61 | 72 72 61 79 20 28 2d 31 |erence a|rray (-1|
|00004330| 20 66 6f 72 20 6e 6f 20 | 66 6f 6e 74 73 29 0a 52 | for no |fonts).R|
|00004340| 35 20 3d 20 70 6f 69 6e | 74 65 72 20 74 6f 20 66 |5 = poin|ter to f|
|00004350| 69 6c 65 6e 61 6d 65 20 | 6f 66 20 74 65 6d 70 6c |ilename |of templ|
|00004360| 61 74 65 73 20 66 69 6c | 65 0a 52 36 20 3d 20 70 |ates fil|e.R6 = p|
|00004370| 6f 69 6e 74 65 72 20 74 | 6f 20 73 70 72 69 74 65 |ointer t|o sprite|
|00004380| 20 61 72 65 61 20 63 6f | 6e 74 72 6f 6c 20 62 6c | area co|ntrol bl|
|00004390| 6f 63 6b 20 28 2b 31 20 | 66 6f 72 20 57 69 6d 70 |ock (+1 |for Wimp|
|000043a0| 20 73 70 72 69 74 65 20 | 70 6f 6f 6c 29 0a 0a 4c | sprite |pool)..L|
|000043b0| 6f 61 64 73 20 69 6e 20 | 61 6c 6c 20 74 68 65 20 |oads in |all the |
|000043c0| 74 65 6d 70 6c 61 74 65 | 73 20 66 72 6f 6d 20 74 |template|s from t|
|000043d0| 68 65 20 66 69 6c 65 20 | 77 68 6f 73 65 20 6e 61 |he file |whose na|
|000043e0| 6d 65 20 69 73 20 70 6f | 69 6e 74 65 64 20 74 6f |me is po|inted to|
|000043f0| 20 62 79 20 52 35 2c 20 | 61 6e 64 0a 63 61 6c 6c | by R5, |and.call|
|00004400| 65 64 20 57 69 6d 70 5f | 43 72 65 61 74 65 57 69 |ed Wimp_|CreateWi|
|00004410| 6e 64 6f 77 20 66 6f 72 | 20 65 61 63 68 20 6f 6e |ndow for| each on|
|00004420| 65 2e 20 54 68 65 20 76 | 61 6c 75 65 20 69 6e 20 |e. The v|alue in |
|00004430| 52 36 20 69 73 20 70 6c | 61 63 65 64 20 69 6e 20 |R6 is pl|aced in |
|00004440| 74 68 65 0a 77 69 6e 64 | 6f 77 20 62 6c 6f 63 6b |the.wind|ow block|
|00004450| 20 61 74 20 6f 66 66 73 | 65 74 20 2b 36 34 2e 20 | at offs|et +64. |
|00004460| 53 74 6f 72 65 73 20 74 | 68 65 20 77 69 6e 64 6f |Stores t|he windo|
|00004470| 77 20 68 61 6e 64 6c 65 | 73 20 73 65 71 75 65 6e |w handle|s sequen|
|00004480| 74 69 61 6c 6c 79 20 69 | 6e 20 74 68 65 0a 62 75 |tially i|n the.bu|
|00004490| 66 66 65 72 20 70 6f 69 | 6e 74 65 64 20 74 6f 20 |ffer poi|nted to |
|000044a0| 62 79 20 52 30 2c 20 69 | 6e 20 74 68 65 20 6f 72 |by R0, i|n the or|
|000044b0| 64 65 72 20 74 68 65 79 | 20 61 72 65 20 66 6f 75 |der they| are fou|
|000044c0| 6e 64 20 69 6e 20 74 68 | 65 20 74 65 6d 70 6c 61 |nd in th|e templa|
|000044d0| 74 65 73 20 66 69 6c 65 | 2e 0a 4f 6e 20 65 78 69 |tes file|..On exi|
|000044e0| 74 20 74 68 65 20 62 75 | 66 66 65 72 20 70 6f 69 |t the bu|ffer poi|
|000044f0| 6e 74 65 64 20 74 6f 20 | 62 79 20 52 31 20 77 69 |nted to |by R1 wi|
|00004500| 6c 6c 20 63 6f 6e 74 61 | 69 6e 20 74 68 65 20 74 |ll conta|in the t|
|00004510| 65 6d 70 6c 61 74 65 20 | 66 6f 72 20 74 68 65 20 |emplate |for the |
|00004520| 6c 61 73 74 0a 77 69 6e | 64 6f 77 20 69 6e 20 74 |last.win|dow in t|
|00004530| 68 65 20 66 69 6c 65 2e | 20 54 68 65 20 62 75 66 |he file.| The buf|
|00004540| 66 65 72 20 66 6f 72 20 | 77 69 6e 64 6f 77 20 68 |fer for |window h|
|00004550| 61 6e 64 6c 65 73 20 73 | 68 6f 75 6c 64 20 62 65 |andles s|hould be|
|00004560| 20 62 69 67 20 65 6e 6f | 75 67 68 20 74 6f 0a 73 | big eno|ugh to.s|
|00004570| 74 6f 72 65 20 61 6c 6c | 20 74 68 65 20 77 69 6e |tore all| the win|
|00004580| 64 6f 77 20 68 61 6e 64 | 6c 65 73 2c 20 65 61 63 |dow hand|les, eac|
|00004590| 68 20 6f 66 20 77 68 69 | 63 68 20 69 73 20 61 20 |h of whi|ch is a |
|000045a0| 77 6f 72 64 2e 20 46 6f | 72 20 65 61 63 68 20 77 |word. Fo|r each w|
|000045b0| 69 6e 64 6f 77 2c 20 69 | 66 0a 74 68 65 20 77 6f |indow, i|f.the wo|
|000045c0| 72 64 20 6f 6e 20 65 6e | 74 72 79 20 69 73 20 7a |rd on en|try is z|
|000045d0| 65 72 6f 20 74 68 65 20 | 77 69 6e 64 6f 77 20 77 |ero the |window w|
|000045e0| 69 6c 6c 20 62 65 20 63 | 72 65 61 74 65 64 20 61 |ill be c|reated a|
|000045f0| 73 20 75 73 75 61 6c 2e | 20 42 69 74 73 20 74 68 |s usual.| Bits th|
|00004600| 61 74 20 61 72 65 0a 73 | 65 74 20 68 61 76 65 20 |at are.s|et have |
|00004610| 74 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 6d 65 |the foll|owing me|
|00004620| 61 6e 69 6e 67 73 3a 0a | 0a 20 90 04 42 69 74 20 |anings:.|. ..Bit |
|00004630| 90 03 4d 65 61 6e 69 6e | 67 20 69 66 20 73 65 74 |..Meanin|g if set|
|00004640| 0a 20 90 04 2d 90 2e 0a | 20 90 04 30 20 90 05 63 |. ..-...| ..0 ..c|
|00004650| 65 6e 74 72 65 20 77 69 | 6e 64 6f 77 20 68 6f 72 |entre wi|ndow hor|
|00004660| 69 7a 6f 6e 74 61 6c 6c | 79 0a 20 90 04 31 20 90 |izontall|y. ..1 .|
|00004670| 05 64 6f 6e 27 74 20 63 | 72 65 61 74 65 20 77 69 |.don't c|reate wi|
|00004680| 6e 64 6f 77 0a 20 90 04 | 32 20 90 05 63 65 6e 74 |ndow. ..|2 ..cent|
|00004690| 72 65 20 77 69 6e 64 6f | 77 20 76 65 72 74 69 63 |re windo|w vertic|
|000046a0| 61 6c 6c 79 0a 0a 42 69 | 74 20 31 20 69 73 20 75 |ally..Bi|t 1 is u|
|000046b0| 73 65 66 75 6c 20 69 66 | 20 79 6f 75 20 68 61 76 |seful if| you hav|
|000046c0| 65 20 74 68 65 20 6c 61 | 73 74 20 77 69 6e 64 6f |e the la|st windo|
|000046d0| 77 20 69 6e 20 74 68 65 | 20 66 69 6c 65 20 61 73 |w in the| file as|
|000046e0| 20 6f 6e 65 20 74 68 61 | 74 20 79 6f 75 20 77 61 | one tha|t you wa|
|000046f0| 6e 74 0a 72 65 70 65 61 | 74 65 64 6c 79 2c 20 62 |nt.repea|tedly, b|
|00004700| 75 74 20 79 6f 75 20 64 | 6f 6e 27 74 20 77 61 6e |ut you d|on't wan|
|00004710| 74 20 69 74 20 63 72 65 | 61 74 65 64 20 61 74 20 |t it cre|ated at |
|00004720| 6f 6e 63 65 2e 0a 90 03 | 41 6e 6f 74 68 65 72 20 |once....|Another |
|00004730| 53 57 49 20 69 73 20 70 | 72 6f 76 69 64 65 64 20 |SWI is p|rovided |
|00004740| 66 6f 72 20 52 41 4d 20 | 74 65 6d 70 6c 61 74 65 |for RAM |template|
|00004750| 73 2e 20 54 68 69 73 20 | 69 73 20 70 72 6f 76 69 |s. This |is provi|
|00004760| 64 65 64 20 6d 61 69 6e | 6c 79 20 66 6f 72 20 6d |ded main|ly for m|
|00004770| 6f 64 75 6c 65 0a 74 61 | 73 6b 73 2c 20 77 68 65 |odule.ta|sks, whe|
|00004780| 72 65 20 74 68 65 20 74 | 65 6d 70 6c 61 74 65 73 |re the t|emplates|
|00004790| 20 6d 75 73 74 20 62 65 | 20 70 61 72 74 20 6f 66 | must be| part of|
|000047a0| 20 74 68 65 20 6d 61 69 | 6e 20 63 6f 64 65 2e 20 | the mai|n code. |
|000047b0| 59 6f 75 20 63 61 6e 20 | 75 73 65 20 74 68 65 0a |You can |use the.|
|000047c0| 73 75 70 70 6c 69 65 64 | 20 42 41 53 49 43 20 66 |supplied| BASIC f|
|000047d0| 75 6e 63 74 69 6f 6e 20 | 27 46 4e 74 65 6d 70 6c |unction |'FNtempl|
|000047e0| 61 74 65 27 20 74 6f 20 | 69 6e 63 6c 75 64 65 20 |ate' to |include |
|000047f0| 74 68 65 20 74 65 6d 70 | 6c 61 74 65 20 61 73 20 |the temp|late as |
|00004800| 70 61 72 74 20 6f 66 20 | 79 6f 75 72 0a 63 6f 64 |part of |your.cod|
|00004810| 65 2c 20 61 6e 64 20 74 | 68 65 6e 20 75 73 65 20 |e, and t|hen use |
|00004820| 57 69 6d 70 45 78 74 5f | 4c 6f 61 64 52 41 4d 54 |WimpExt_|LoadRAMT|
|00004830| 65 6d 70 6c 61 74 65 20 | 74 6f 20 74 75 72 6e 20 |emplate |to turn |
|00004840| 74 68 69 73 20 69 6e 74 | 6f 20 61 20 77 69 6e 64 |this int|o a wind|
|00004850| 6f 77 0a 64 65 66 69 6e | 69 74 69 6f 6e 2e 0a 90 |ow.defin|ition...|
|00004860| 03 57 69 6d 70 45 78 74 | 5f 4c 6f 61 64 52 41 4d |.WimpExt|_LoadRAM|
|00004870| 54 65 6d 70 6c 61 74 65 | 20 20 26 34 35 37 41 35 |Template| &457A5|
|00004880| 0a 2d 90 1f 0a 52 31 20 | 3d 20 70 6f 69 6e 74 65 |.-...R1 |= pointe|
|00004890| 72 20 74 6f 20 75 73 65 | 72 20 62 75 66 66 65 72 |r to use|r buffer|
|000048a0| 20 66 6f 72 20 77 69 6e | 64 6f 77 20 64 65 66 69 | for win|dow defi|
|000048b0| 6e 69 74 69 6f 6e 0a 52 | 32 20 3d 20 70 6f 69 6e |nition.R|2 = poin|
|000048c0| 74 65 72 20 74 6f 20 77 | 6f 72 6b 73 70 61 63 65 |ter to w|orkspace|
|000048d0| 20 66 6f 72 20 69 6e 64 | 69 72 65 63 74 65 64 20 | for ind|irected |
|000048e0| 69 63 6f 6e 73 0a 52 33 | 20 3d 20 70 6f 69 6e 74 |icons.R3| = point|
|000048f0| 65 72 20 74 6f 20 65 6e | 64 20 6f 66 20 77 6f 72 |er to en|d of wor|
|00004900| 6b 73 70 61 63 65 20 66 | 6f 72 20 69 6e 64 69 72 |kspace f|or indir|
|00004910| 65 63 74 65 64 20 69 63 | 6f 6e 73 0a 52 34 20 3d |ected ic|ons.R4 =|
|00004920| 20 2d 31 20 66 6f 72 20 | 6e 6f 20 66 6f 6e 74 73 | -1 for |no fonts|
|00004930| 20 2d 20 66 6f 6e 74 73 | 20 6e 6f 74 20 73 75 70 | - fonts| not sup|
|00004940| 70 6f 72 74 65 64 20 61 | 74 20 70 72 65 73 65 6e |ported a|t presen|
|00004950| 74 0a 52 35 20 3d 20 70 | 6f 69 6e 74 65 72 20 74 |t.R5 = p|ointer t|
|00004960| 6f 20 74 65 6d 70 6c 61 | 74 65 0a 45 78 69 74 3a |o templa|te.Exit:|
|00004970| 0a 52 32 20 3d 20 70 6f | 69 6e 74 65 72 20 74 6f |.R2 = po|inter to|
|00004980| 20 65 6e 64 20 6f 66 20 | 77 6f 72 6b 73 70 61 63 | end of |workspac|
|00004990| 65 20 75 73 65 64 20 28 | 69 65 2e 20 66 69 72 73 |e used (|ie. firs|
|000049a0| 74 20 66 72 65 65 20 62 | 79 74 65 29 0a 0a 54 68 |t free b|yte)..Th|
|000049b0| 69 73 20 63 61 6c 6c 20 | 69 73 20 73 69 6d 69 6c |is call |is simil|
|000049c0| 61 72 20 74 6f 20 57 69 | 6d 70 5f 4c 6f 61 64 54 |ar to Wi|mp_LoadT|
|000049d0| 65 6d 70 6c 61 74 65 20 | 65 78 63 65 70 74 20 74 |emplate |except t|
|000049e0| 68 61 74 20 69 74 20 75 | 73 65 73 20 74 65 6d 70 |hat it u|ses temp|
|000049f0| 6c 61 74 65 73 20 69 6e | 0a 52 41 4d 2e 20 54 68 |lates in|.RAM. Th|
|00004a00| 69 73 20 69 73 20 64 65 | 73 69 67 6e 65 64 20 74 |is is de|signed t|
|00004a10| 6f 20 62 65 20 75 73 65 | 64 20 69 6e 20 4d 6f 64 |o be use|d in Mod|
|00004a20| 75 6c 65 20 74 61 73 6b | 73 2c 20 77 68 65 72 65 |ule task|s, where|
|00004a30| 20 79 6f 75 20 63 61 6e | 6e 6f 74 20 68 61 76 65 | you can|not have|
|00004a40| 20 61 0a 73 65 70 61 72 | 61 74 65 20 54 65 6d 70 | a.separ|ate Temp|
|00004a50| 6c 61 74 65 73 20 66 69 | 6c 65 2e 20 59 6f 75 20 |lates fi|le. You |
|00004a60| 77 6f 75 6c 64 20 75 73 | 65 20 74 68 65 20 73 75 |would us|e the su|
|00004a70| 70 70 6c 69 65 64 20 27 | 46 4e 74 65 6d 70 6c 61 |pplied '|FNtempla|
|00004a80| 74 65 27 20 66 75 6e 63 | 74 69 6f 6e 20 74 6f 0a |te' func|tion to.|
|00004a90| 69 6e 73 65 72 74 20 74 | 68 65 20 74 65 6d 70 6c |insert t|he templ|
|00004aa0| 61 74 65 20 69 6e 20 79 | 6f 75 72 20 6d 6f 64 75 |ate in y|our modu|
|00004ab0| 6c 65 2c 20 61 6e 64 20 | 74 68 65 6e 20 63 61 6c |le, and |then cal|
|00004ac0| 6c 20 57 69 6d 70 45 78 | 74 5f 4c 6f 61 64 52 41 |l WimpEx|t_LoadRA|
|00004ad0| 4d 54 65 6d 70 6c 61 74 | 65 20 74 6f 0a 63 6f 6e |MTemplat|e to.con|
|00004ae0| 76 65 72 74 20 74 68 69 | 73 20 74 6f 20 61 20 77 |vert thi|s to a w|
|00004af0| 69 6e 64 6f 77 20 64 65 | 66 69 6e 69 74 69 6f 6e |indow de|finition|
|00004b00| 2e 20 41 74 20 70 72 65 | 73 65 6e 74 20 66 6f 6e |. At pre|sent fon|
|00004b10| 74 73 20 69 6e 20 74 65 | 6d 70 6c 61 74 65 73 20 |ts in te|mplates |
|00004b20| 61 72 65 20 6e 6f 74 0a | 73 75 70 70 6f 72 74 65 |are not.|supporte|
|00004b30| 64 20 2d 20 74 68 69 73 | 20 73 68 6f 75 6c 64 6e |d - this| shouldn|
|00004b40| 27 74 20 63 61 75 73 65 | 20 74 6f 6f 20 6d 75 63 |'t cause| too muc|
|00004b50| 68 20 6f 66 20 61 20 70 | 72 6f 62 6c 65 6d 20 61 |h of a p|roblem a|
|00004b60| 73 20 49 20 68 61 76 65 | 20 6e 65 76 65 72 20 73 |s I have| never s|
|00004b70| 65 65 6e 0a 61 20 70 72 | 6f 67 72 61 6d 20 77 68 |een.a pr|ogram wh|
|00004b80| 69 63 68 20 75 73 65 73 | 20 74 68 69 73 20 66 65 |ich uses| this fe|
|00004b90| 61 74 75 72 65 20 61 6e | 79 77 61 79 2e 0a 90 04 |ature an|yway....|
|00004ba0| 49 63 6f 6e 20 68 61 6e | 64 6c 69 6e 67 0a 3d 90 |Icon han|dling.=.|
|00004bb0| 0d 0a 0a 4c 6f 74 73 20 | 6f 66 20 53 57 49 73 20 |...Lots |of SWIs |
|00004bc0| 61 72 65 20 70 72 6f 76 | 69 64 65 64 20 66 6f 72 |are prov|ided for|
|00004bd0| 20 68 61 6e 64 6c 69 6e | 67 20 69 63 6f 6e 73 2c | handlin|g icons,|
|00004be0| 20 65 67 2e 20 73 65 74 | 74 69 6e 67 20 74 68 65 | eg. set|ting the|
|00004bf0| 20 73 74 72 69 6e 67 20 | 69 6e 20 61 0a 74 65 78 | string |in a.tex|
|00004c00| 74 20 69 63 6f 6e 2c 20 | 73 68 61 64 69 6e 67 20 |t icon, |shading |
|00004c10| 69 63 6f 6e 73 2c 20 72 | 65 61 64 69 6e 67 20 61 |icons, r|eading a|
|00004c20| 20 6e 75 6d 62 65 72 20 | 66 72 6f 6d 20 61 6e 20 | number |from an |
|00004c30| 69 63 6f 6e 2c 20 65 74 | 63 2e 90 03 0a 90 03 57 |icon, et|c......W|
|00004c40| 69 6d 70 45 78 74 5f 53 | 65 74 49 63 6f 6e 53 74 |impExt_S|etIconSt|
|00004c50| 72 69 6e 67 20 90 04 26 | 34 35 37 38 44 0a 2d 90 |ring ..&|4578D.-.|
|00004c60| 1f 0a 52 30 20 3d 20 6e | 6f 6e 2d 7a 65 72 6f 20 |..R0 = n|on-zero |
|00004c70| 66 6f 72 20 65 6c 6c 69 | 70 73 69 73 20 28 6f 6e |for elli|psis (on|
|00004c80| 6c 79 20 69 66 20 65 6e | 61 62 6c 65 64 20 69 6e |ly if en|abled in|
|00004c90| 20 57 69 6d 70 45 78 74 | 5f 49 6e 69 74 69 61 6c | WimpExt|_Initial|
|00004ca0| 69 73 65 29 0a 52 32 20 | 3d 20 77 69 6e 64 6f 77 |ise).R2 |= window|
|00004cb0| 20 68 61 6e 64 6c 65 0a | 52 33 20 3d 20 69 63 6f | handle.|R3 = ico|
|00004cc0| 6e 20 68 61 6e 64 6c 65 | 0a 52 34 20 3d 20 70 6f |n handle|.R4 = po|
|00004cd0| 69 6e 74 65 72 20 74 6f | 20 73 74 72 69 6e 67 0a |inter to| string.|
|00004ce0| 0a 43 6f 70 69 65 73 20 | 74 68 65 20 73 74 72 69 |.Copies |the stri|
|00004cf0| 6e 67 20 70 6f 69 6e 74 | 65 64 20 74 6f 20 62 79 |ng point|ed to by|
|00004d00| 20 52 32 20 69 6e 74 6f | 20 74 68 65 20 73 70 65 | R2 into| the spe|
|00004d10| 63 69 66 69 65 64 20 69 | 6e 64 69 72 65 63 74 65 |cified i|ndirecte|
|00004d20| 64 20 74 65 78 74 20 69 | 63 6f 6e 2c 0a 61 6e 64 |d text i|con,.and|
|00004d30| 20 75 70 64 61 74 65 73 | 20 74 68 65 20 73 63 72 | updates| the scr|
|00004d40| 65 65 6e 20 69 66 20 6e | 65 63 65 73 73 61 72 79 |een if n|ecessary|
|00004d50| 2e 20 49 66 20 74 68 65 | 20 63 61 72 65 74 20 77 |. If the| caret w|
|00004d60| 61 73 20 69 6e 20 74 68 | 65 20 69 63 6f 6e 20 74 |as in th|e icon t|
|00004d70| 68 65 6e 20 69 74 20 69 | 73 0a 6d 6f 76 65 64 20 |hen it i|s.moved |
|00004d80| 74 6f 20 74 68 65 20 65 | 6e 64 20 6f 66 20 74 68 |to the e|nd of th|
|00004d90| 65 20 6e 65 77 20 73 74 | 72 69 6e 67 2e 20 4f 6e |e new st|ring. On|
|00004da0| 6c 79 20 75 70 64 61 74 | 65 73 20 74 68 65 20 73 |ly updat|es the s|
|00004db0| 63 72 65 65 6e 20 69 66 | 20 61 6e 79 74 68 69 6e |creen if| anythin|
|00004dc0| 67 20 77 61 73 0a 63 68 | 61 6e 67 65 64 20 2d 20 |g was.ch|anged - |
|00004dd0| 69 65 2e 20 69 66 20 74 | 68 65 20 6e 65 77 20 73 |ie. if t|he new s|
|00004de0| 74 72 69 6e 67 20 69 73 | 20 74 68 65 20 73 61 6d |tring is| the sam|
|00004df0| 65 20 61 73 20 74 68 65 | 20 6f 6c 64 20 73 74 72 |e as the| old str|
|00004e00| 69 6e 67 20 74 68 65 6e | 20 6e 6f 74 68 69 6e 67 |ing then| nothing|
|00004e10| 0a 77 69 6c 6c 20 68 61 | 70 70 65 6e 2e 20 49 66 |.will ha|ppen. If|
|00004e20| 20 52 30 20 69 73 20 6e | 6f 6e 2d 7a 65 72 6f 20 | R0 is n|on-zero |
|00004e30| 61 6e 64 20 62 69 74 20 | 37 20 77 61 73 20 73 65 |and bit |7 was se|
|00004e40| 74 20 69 6e 20 52 32 20 | 69 6e 20 57 69 6d 70 45 |t in R2 |in WimpE|
|00004e50| 78 74 5f 49 6e 69 74 69 | 61 6c 69 73 65 0a 61 6e |xt_Initi|alise.an|
|00004e60| 64 20 74 68 65 20 73 74 | 72 69 6e 67 20 69 73 20 |d the st|ring is |
|00004e70| 6c 6f 6e 67 65 72 20 74 | 68 61 6e 20 74 68 65 20 |longer t|han the |
|00004e80| 69 63 6f 6e 20 63 61 6e | 20 68 6f 6c 64 20 74 68 |icon can| hold th|
|00004e90| 65 6e 20 74 68 65 20 73 | 74 72 69 6e 67 20 77 69 |en the s|tring wi|
|00004ea0| 6c 6c 20 62 65 0a 70 6f | 73 74 2d 66 69 78 65 64 |ll be.po|st-fixed|
|00004eb0| 20 77 69 74 68 20 27 2e | 90 03 27 2e 0a 90 03 57 | with '.|..'....W|
|00004ec0| 69 6d 70 45 78 74 5f 53 | 65 74 49 63 6f 6e 20 90 |impExt_S|etIcon .|
|00004ed0| 0a 26 34 35 37 38 46 0a | 2d 90 1f 0a 52 32 20 3d |.&4578F.|-...R2 =|
|00004ee0| 20 77 69 6e 64 6f 77 20 | 68 61 6e 64 6c 65 0a 52 | window |handle.R|
|00004ef0| 33 20 3d 20 69 63 6f 6e | 20 68 61 6e 64 6c 65 0a |3 = icon| handle.|
|00004f00| 52 34 20 3d 20 30 20 74 | 6f 20 64 65 73 65 6c 65 |R4 = 0 t|o desele|
|00004f10| 63 74 20 69 63 6f 6e 2c | 20 6e 6f 6e 2d 7a 65 72 |ct icon,| non-zer|
|00004f20| 6f 20 74 6f 20 73 65 6c | 65 63 74 20 69 63 6f 6e |o to sel|ect icon|
|00004f30| 0a 49 66 20 62 69 74 20 | 36 20 6f 66 20 52 32 20 |.If bit |6 of R2 |
|00004f40| 77 61 73 20 73 65 74 20 | 69 6e 20 57 69 6d 70 45 |was set |in WimpE|
|00004f50| 78 74 5f 49 6e 69 74 69 | 61 6c 69 73 65 3a 0a 52 |xt_Initi|alise:.R|
|00004f60| 34 20 3d 20 30 20 74 6f | 20 64 65 73 65 6c 65 63 |4 = 0 to| deselec|
|00004f70| 74 20 69 63 6f 6e 2c 20 | 31 20 74 6f 20 73 65 6c |t icon, |1 to sel|
|00004f80| 65 63 74 20 69 63 6f 6e | 2c 20 32 20 74 6f 20 74 |ect icon|, 2 to t|
|00004f90| 6f 67 67 6c 65 20 69 63 | 6f 6e 0a 45 78 69 74 3a |oggle ic|on.Exit:|
|00004fa0| 0a 52 30 20 3d 20 6f 6c | 64 20 73 74 61 74 65 20 |.R0 = ol|d state |
|00004fb0| 6f 66 20 69 63 6f 6e 20 | 28 30 20 66 6f 72 20 75 |of icon |(0 for u|
|00004fc0| 6e 73 65 74 2c 20 31 20 | 66 6f 72 20 73 65 74 29 |nset, 1 |for set)|
|00004fd0| 0a 0a 53 65 6c 65 63 74 | 73 20 74 68 65 20 69 63 |..Select|s the ic|
|00004fe0| 6f 6e 20 69 66 20 52 34 | 20 69 73 20 6e 6f 6e 2d |on if R4| is non-|
|00004ff0| 7a 65 72 6f 2c 20 64 65 | 73 65 6c 65 63 74 73 20 |zero, de|selects |
|00005000| 69 74 20 6f 74 68 65 72 | 77 69 73 65 2e 20 55 70 |it other|wise. Up|
|00005010| 64 61 74 65 73 20 74 68 | 65 0a 73 63 72 65 65 6e |dates th|e.screen|
|00005020| 20 69 66 20 6e 65 63 65 | 73 73 61 72 79 2e 20 49 | if nece|ssary. I|
|00005030| 66 20 62 69 74 20 36 20 | 6f 66 20 52 32 20 77 61 |f bit 6 |of R2 wa|
|00005040| 73 20 73 65 74 20 69 6e | 20 57 69 6d 70 45 78 74 |s set in| WimpExt|
|00005050| 5f 49 6e 69 74 69 61 6c | 69 73 65 20 74 68 65 6e |_Initial|ise then|
|00005060| 20 74 68 65 0a 61 6c 74 | 65 72 6e 61 74 69 76 65 | the.alt|ernative|
|00005070| 20 70 61 72 61 6d 65 74 | 65 72 73 20 61 72 65 20 | paramet|ers are |
|00005080| 75 73 65 64 20 61 73 20 | 73 68 6f 77 6e 2e 20 49 |used as |shown. I|
|00005090| 66 20 62 69 74 20 39 20 | 6f 66 20 52 32 20 77 61 |f bit 9 |of R2 wa|
|000050a0| 73 20 73 65 74 20 69 6e | 0a 57 69 6d 70 45 78 74 |s set in|.WimpExt|
|000050b0| 5f 49 6e 69 74 69 61 6c | 69 73 65 20 61 6e 64 20 |_Initial|ise and |
|000050c0| 79 6f 75 20 61 72 65 20 | 73 65 74 74 69 6e 67 20 |you are |setting |
|000050d0| 74 68 65 20 69 63 6f 6e | 2c 20 74 68 65 6e 20 6f |the icon|, then o|
|000050e0| 74 68 65 72 20 69 63 6f | 6e 73 20 69 6e 20 74 68 |ther ico|ns in th|
|000050f0| 65 20 73 61 6d 65 0a 45 | 53 47 20 77 69 6c 6c 20 |e same.E|SG will |
|00005100| 62 65 20 75 6e 73 65 74 | 2e 0a 90 03 57 69 6d 70 |be unset|....Wimp|
|00005110| 45 78 74 5f 47 65 74 49 | 63 6f 6e 20 90 0a 26 34 |Ext_GetI|con ..&4|
|00005120| 35 37 39 30 0a 2d 90 1f | 0a 52 32 20 3d 20 77 69 |5790.-..|.R2 = wi|
|00005130| 6e 64 6f 77 20 68 61 6e | 64 6c 65 0a 52 33 20 3d |ndow han|dle.R3 =|
|00005140| 20 69 63 6f 6e 20 68 61 | 6e 64 6c 65 0a 45 78 69 | icon ha|ndle.Exi|
|00005150| 74 3a 0a 52 30 20 3d 20 | 30 20 69 66 20 69 63 6f |t:.R0 = |0 if ico|
|00005160| 6e 20 69 73 20 6e 6f 74 | 20 73 65 6c 65 63 74 65 |n is not| selecte|
|00005170| 64 2c 20 31 20 69 66 20 | 69 74 20 69 73 20 73 65 |d, 1 if |it is se|
|00005180| 6c 65 63 74 65 64 0a 52 | 33 20 3d 20 77 6f 72 64 |lected.R|3 = word|
|00005190| 20 61 74 20 69 63 6f 6e | 62 6c 6f 63 6b 2b 32 30 | at icon|block+20|
|000051a0| 20 28 69 65 2e 20 70 6f | 69 6e 74 65 72 20 74 6f | (ie. po|inter to|
|000051b0| 20 69 6e 64 69 72 65 63 | 74 65 64 20 74 65 78 74 | indirec|ted text|
|000051c0| 20 66 6f 72 20 69 6e 64 | 69 72 65 63 74 65 64 20 | for ind|irected |
|000051d0| 74 65 78 74 0a 20 90 05 | 69 63 6f 6e 29 0a 0a 44 |text. ..|icon)..D|
|000051e0| 65 74 65 63 74 73 20 77 | 68 65 74 68 65 72 20 74 |etects w|hether t|
|000051f0| 68 65 20 69 63 6f 6e 20 | 69 73 20 73 65 6c 65 63 |he icon |is selec|
|00005200| 74 65 64 2c 20 61 6e 64 | 20 72 65 74 75 72 6e 73 |ted, and| returns|
|00005210| 20 31 20 69 6e 20 52 30 | 20 69 66 20 69 74 20 69 | 1 in R0| if it i|
|00005220| 73 2c 20 30 0a 6f 74 68 | 65 72 77 69 73 65 2e 20 |s, 0.oth|erwise. |
|00005230| 41 6c 73 6f 20 72 65 74 | 75 72 6e 73 20 69 6e 20 |Also ret|urns in |
|00005240| 52 31 20 74 68 65 6e 20 | 76 61 6c 75 65 20 69 6e |R1 then |value in|
|00005250| 20 74 68 65 20 69 63 6f | 6e 62 6c 6f 63 6b 20 61 | the ico|nblock a|
|00005260| 74 20 6f 66 66 73 65 74 | 20 32 30 2e 20 46 6f 72 |t offset| 20. For|
|00005270| 0a 61 6e 20 69 6e 64 69 | 72 65 63 74 65 64 20 74 |.an indi|rected t|
|00005280| 65 78 74 20 69 63 6f 6e | 20 74 68 69 73 20 77 69 |ext icon| this wi|
|00005290| 6c 6c 20 62 65 20 61 20 | 70 6f 69 6e 74 65 72 20 |ll be a |pointer |
|000052a0| 74 6f 20 74 68 65 20 74 | 65 78 74 2e 0a 90 03 57 |to the t|ext....W|
|000052b0| 69 6d 70 45 78 74 5f 53 | 65 74 4e 75 6d 62 65 72 |impExt_S|etNumber|
|000052c0| 49 63 6f 6e 20 90 04 26 | 34 35 37 39 31 0a 2d 90 |Icon ..&|45791.-.|
|000052d0| 1f 0a 52 30 20 3d 20 62 | 61 73 65 0a 52 32 20 3d |..R0 = b|ase.R2 =|
|000052e0| 20 77 69 6e 64 6f 77 20 | 68 61 6e 64 6c 65 0a 52 | window |handle.R|
|000052f0| 33 20 3d 20 69 63 6f 6e | 20 68 61 6e 64 6c 65 0a |3 = icon| handle.|
|00005300| 52 34 20 3d 20 76 61 6c | 75 65 0a 0a 43 6f 6e 76 |R4 = val|ue..Conv|
|00005310| 65 72 74 73 20 74 68 65 | 20 73 69 67 6e 65 64 20 |erts the| signed |
|00005320| 69 6e 74 65 67 65 72 20 | 69 6e 20 52 34 20 69 6e |integer |in R4 in|
|00005330| 74 6f 20 61 20 73 74 72 | 69 6e 67 20 61 6e 64 20 |to a str|ing and |
|00005340| 70 6c 61 63 65 73 20 69 | 74 20 69 6e 20 74 68 65 |places i|t in the|
|00005350| 20 69 63 6f 6e 2e 0a 55 | 70 64 61 74 65 73 20 74 | icon..U|pdates t|
|00005360| 68 65 20 73 63 72 65 65 | 6e 20 61 73 20 6e 65 63 |he scree|n as nec|
|00005370| 65 73 73 61 72 79 2e 20 | 54 68 65 20 62 61 73 65 |essary. |The base|
|00005380| 20 74 6f 20 62 65 20 75 | 73 65 64 20 69 73 20 73 | to be u|sed is s|
|00005390| 70 65 63 69 66 69 65 64 | 20 69 6e 20 52 30 20 2d |pecified| in R0 -|
|000053a0| 20 69 74 0a 6d 75 73 74 | 20 62 65 20 69 6e 20 74 | it.must| be in t|
|000053b0| 68 65 20 72 61 6e 67 65 | 20 32 2d 33 36 2e 0a 90 |he range| 2-36...|
|000053c0| 03 57 69 6d 70 45 78 74 | 5f 47 65 74 4e 75 6d 62 |.WimpExt|_GetNumb|
|000053d0| 65 72 49 63 6f 6e 20 90 | 04 26 34 35 37 39 32 0a |erIcon .|.&45792.|
|000053e0| 2d 90 1f 0a 52 30 20 3d | 20 64 65 66 61 75 6c 74 |-...R0 =| default|
|000053f0| 20 62 61 73 65 0a 52 32 | 20 3d 20 77 69 6e 64 6f | base.R2| = windo|
|00005400| 77 20 68 61 6e 64 6c 65 | 0a 52 33 20 3d 20 69 63 |w handle|.R3 = ic|
|00005410| 6f 6e 20 68 61 6e 64 6c | 65 0a 45 78 69 74 3a 0a |on handl|e.Exit:.|
|00005420| 52 30 20 3d 20 76 61 6c | 75 65 0a 0a 43 6f 6e 76 |R0 = val|ue..Conv|
|00005430| 65 72 74 73 20 74 68 65 | 20 73 74 72 69 6e 67 20 |erts the| string |
|00005440| 69 6e 20 74 68 65 20 69 | 63 6f 6e 20 74 6f 20 61 |in the i|con to a|
|00005450| 20 73 69 67 6e 65 64 20 | 69 6e 74 65 67 65 72 20 | signed |integer |
|00005460| 61 6e 64 20 70 6c 61 63 | 65 73 20 69 74 20 69 6e |and plac|es it in|
|00005470| 20 52 30 2e 20 54 68 65 | 0a 62 61 73 65 20 74 6f | R0. The|.base to|
|00005480| 20 62 65 20 75 73 65 64 | 20 62 79 20 64 65 66 61 | be used| by defa|
|00005490| 75 6c 74 20 69 73 20 73 | 70 65 63 69 66 69 65 64 |ult is s|pecified|
|000054a0| 20 69 6e 20 52 30 20 2d | 20 69 74 20 6d 75 73 74 | in R0 -| it must|
|000054b0| 20 62 65 20 69 6e 20 74 | 68 65 20 72 61 6e 67 65 | be in t|he range|
|000054c0| 20 32 2d 33 36 2e 0a 90 | 03 57 69 6d 70 45 78 74 | 2-36...|.WimpExt|
|000054d0| 5f 49 6e 63 4e 75 6d 62 | 65 72 49 63 6f 6e 20 90 |_IncNumb|erIcon .|
|000054e0| 04 26 34 35 37 39 33 0a | 2d 90 1f 0a 52 30 20 3d |.&45793.|-...R0 =|
|000054f0| 20 62 61 73 65 0a 52 32 | 20 3d 20 77 69 6e 64 6f | base.R2| = windo|
|00005500| 77 20 68 61 6e 64 6c 65 | 0a 52 33 20 3d 20 69 63 |w handle|.R3 = ic|
|00005510| 6f 6e 20 68 61 6e 64 6c | 65 0a 52 34 20 3d 20 6d |on handl|e.R4 = m|
|00005520| 61 78 69 6d 75 6d 20 76 | 61 6c 75 65 0a 52 35 20 |aximum v|alue.R5 |
|00005530| 3d 20 73 74 65 70 0a 45 | 78 69 74 3a 0a 52 30 20 |= step.E|xit:.R0 |
|00005540| 3d 20 6e 65 77 20 76 61 | 6c 75 65 0a 0a 43 6f 6e |= new va|lue..Con|
|00005550| 76 65 72 74 73 20 74 68 | 65 20 73 74 72 69 6e 67 |verts th|e string|
|00005560| 20 69 6e 20 74 68 65 20 | 69 63 6f 6e 20 74 6f 20 | in the |icon to |
|00005570| 61 6e 20 73 69 67 6e 65 | 64 20 69 6e 74 65 67 65 |an signe|d intege|
|00005580| 72 2c 20 61 64 64 73 20 | 74 68 65 20 73 74 65 70 |r, adds |the step|
|00005590| 2c 20 61 6e 64 20 70 75 | 74 73 0a 69 74 20 62 61 |, and pu|ts.it ba|
|000055a0| 63 6b 2e 20 55 70 64 61 | 74 65 73 20 74 68 65 20 |ck. Upda|tes the |
|000055b0| 73 63 72 65 65 6e 20 61 | 73 20 6e 65 63 65 73 73 |screen a|s necess|
|000055c0| 61 72 79 2e 20 54 68 65 | 20 76 61 6c 75 65 20 77 |ary. The| value w|
|000055d0| 69 6c 6c 20 6e 6f 74 20 | 67 6f 20 62 65 79 6f 6e |ill not |go beyon|
|000055e0| 64 20 74 68 65 0a 76 61 | 6c 75 65 20 70 61 73 73 |d the.va|lue pass|
|000055f0| 65 64 20 69 6e 20 52 34 | 2c 20 61 6e 64 20 74 68 |ed in R4|, and th|
|00005600| 65 20 6e 65 77 20 76 61 | 6c 75 65 20 69 73 20 72 |e new va|lue is r|
|00005610| 65 74 75 72 6e 65 64 20 | 69 6e 20 52 30 2e 0a 90 |eturned |in R0...|
|00005620| 03 57 69 6d 70 45 78 74 | 5f 44 65 63 4e 75 6d 62 |.WimpExt|_DecNumb|
|00005630| 65 72 49 63 6f 6e 20 90 | 04 26 34 35 37 39 34 0a |erIcon .|.&45794.|
|00005640| 2d 90 1f 0a 52 30 20 3d | 20 62 61 73 65 0a 52 32 |-...R0 =| base.R2|
|00005650| 20 3d 20 77 69 6e 64 6f | 77 20 68 61 6e 64 6c 65 | = windo|w handle|
|00005660| 0a 52 33 20 3d 20 69 63 | 6f 6e 20 68 61 6e 64 6c |.R3 = ic|on handl|
|00005670| 65 0a 52 34 20 3d 20 6d | 69 6e 69 6d 75 6d 20 76 |e.R4 = m|inimum v|
|00005680| 61 6c 75 65 0a 52 35 20 | 3d 20 73 74 65 70 0a 45 |alue.R5 |= step.E|
|00005690| 78 69 74 3a 0a 52 30 20 | 3d 20 6e 65 77 20 76 61 |xit:.R0 |= new va|
|000056a0| 6c 75 65 0a 0a 43 6f 6e | 76 65 72 74 73 20 74 68 |lue..Con|verts th|
|000056b0| 65 20 73 74 72 69 6e 67 | 20 69 6e 20 74 68 65 20 |e string| in the |
|000056c0| 69 63 6f 6e 20 74 6f 20 | 61 6e 20 73 69 67 6e 65 |icon to |an signe|
|000056d0| 64 20 69 6e 74 65 67 65 | 72 2c 20 73 75 62 74 72 |d intege|r, subtr|
|000056e0| 61 63 74 73 20 74 68 65 | 20 73 74 65 70 2c 20 61 |acts the| step, a|
|000056f0| 6e 64 0a 70 75 74 73 20 | 69 74 20 62 61 63 6b 2e |nd.puts |it back.|
|00005700| 20 55 70 64 61 74 65 73 | 20 74 68 65 20 73 63 72 | Updates| the scr|
|00005710| 65 65 6e 20 61 73 20 6e | 65 63 65 73 73 61 72 79 |een as n|ecessary|
|00005720| 2e 20 54 68 65 20 76 61 | 6c 75 65 20 77 69 6c 6c |. The va|lue will|
|00005730| 20 6e 6f 74 20 67 6f 20 | 62 65 79 6f 6e 64 0a 74 | not go |beyond.t|
|00005740| 68 65 20 76 61 6c 75 65 | 20 70 61 73 73 65 64 20 |he value| passed |
|00005750| 69 6e 20 52 34 2c 20 61 | 6e 64 20 74 68 65 20 6e |in R4, a|nd the n|
|00005760| 65 77 20 76 61 6c 75 65 | 20 69 73 20 72 65 74 75 |ew value| is retu|
|00005770| 72 6e 65 64 20 69 6e 20 | 52 30 2e 0a 90 03 57 69 |rned in |R0....Wi|
|00005780| 6d 70 45 78 74 5f 53 65 | 74 49 63 6f 6e 53 74 72 |mpExt_Se|tIconStr|
|00005790| 69 6e 67 4e 20 90 03 26 | 34 35 37 41 30 0a 2d 90 |ingN ..&|457A0.-.|
|000057a0| 1f 0a 52 30 20 3d 20 6e | 6f 6e 2d 7a 65 72 6f 20 |..R0 = n|on-zero |
|000057b0| 66 6f 72 20 65 6c 6c 69 | 70 73 69 73 20 28 6f 6e |for elli|psis (on|
|000057c0| 6c 79 20 69 66 20 65 6e | 61 62 6c 65 64 20 69 6e |ly if en|abled in|
|000057d0| 20 57 69 6d 70 45 78 74 | 5f 49 6e 69 74 69 61 6c | WimpExt|_Initial|
|000057e0| 69 73 65 29 0a 52 32 20 | 3d 20 77 69 6e 64 6f 77 |ise).R2 |= window|
|000057f0| 20 68 61 6e 64 6c 65 0a | 52 33 20 3d 20 69 63 6f | handle.|R3 = ico|
|00005800| 6e 20 68 61 6e 64 6c 65 | 0a 52 34 20 3d 20 70 6f |n handle|.R4 = po|
|00005810| 69 6e 74 65 72 20 74 6f | 20 73 74 72 69 6e 67 0a |inter to| string.|
|00005820| 0a 43 6f 70 69 65 73 20 | 74 68 65 20 73 74 72 69 |.Copies |the stri|
|00005830| 6e 67 20 70 6f 69 6e 74 | 65 64 20 74 6f 20 62 79 |ng point|ed to by|
|00005840| 20 52 32 20 69 6e 74 6f | 20 74 68 65 20 73 70 65 | R2 into| the spe|
|00005850| 63 69 66 69 65 64 20 69 | 6e 64 69 72 65 63 74 65 |cified i|ndirecte|
|00005860| 64 20 74 65 78 74 20 69 | 63 6f 6e 2c 0a 61 6e 64 |d text i|con,.and|
|00005870| 20 75 70 64 61 74 65 73 | 20 74 68 65 20 73 63 72 | updates| the scr|
|00005880| 65 65 6e 20 69 66 20 6e | 65 63 65 73 73 61 72 79 |een if n|ecessary|
|00005890| 2e 20 49 66 20 74 68 65 | 20 73 74 72 69 6e 67 20 |. If the| string |
|000058a0| 69 73 20 6c 6f 6e 67 65 | 72 20 74 68 61 6e 20 74 |is longe|r than t|
|000058b0| 68 65 20 73 69 7a 65 20 | 6f 66 0a 74 68 65 20 62 |he size |of.the b|
|000058c0| 75 66 66 65 72 20 74 68 | 65 6e 20 74 68 65 20 72 |uffer th|en the r|
|000058d0| 69 67 68 74 2d 68 61 6e | 64 20 65 6e 64 20 6f 66 |ight-han|d end of|
|000058e0| 20 74 68 65 20 73 74 72 | 69 6e 67 20 69 73 20 63 | the str|ing is c|
|000058f0| 6f 70 69 65 64 20 28 61 | 73 20 6f 70 70 6f 73 65 |opied (a|s oppose|
|00005900| 64 20 74 6f 20 74 68 65 | 0a 6c 65 66 74 2d 68 61 |d to the|.left-ha|
|00005910| 6e 64 20 65 6e 64 2c 20 | 77 68 69 63 68 20 69 73 |nd end, |which is|
|00005920| 20 74 68 65 20 63 61 73 | 65 20 69 66 20 79 6f 75 | the cas|e if you|
|00005930| 20 75 73 65 20 57 69 6d | 70 45 78 74 5f 53 65 74 | use Wim|pExt_Set|
|00005940| 49 63 6f 6e 53 74 72 69 | 6e 67 29 2e 20 49 66 20 |IconStri|ng). If |
|00005950| 74 68 65 0a 63 61 72 65 | 74 20 77 61 73 20 69 6e |the.care|t was in|
|00005960| 20 74 68 65 20 69 63 6f | 6e 20 74 68 65 6e 20 69 | the ico|n then i|
|00005970| 74 20 69 73 20 6d 6f 76 | 65 64 20 74 6f 20 74 68 |t is mov|ed to th|
|00005980| 65 20 65 6e 64 20 6f 66 | 20 74 68 65 20 6e 65 77 |e end of| the new|
|00005990| 20 73 74 72 69 6e 67 2e | 20 49 66 20 52 30 20 69 | string.| If R0 i|
|000059a0| 73 0a 6e 6f 6e 2d 7a 65 | 72 6f 20 61 6e 64 20 62 |s.non-ze|ro and b|
|000059b0| 69 74 20 37 20 77 61 73 | 20 73 65 74 20 69 6e 20 |it 7 was| set in |
|000059c0| 52 32 20 69 6e 20 57 69 | 6d 70 45 78 74 5f 49 6e |R2 in Wi|mpExt_In|
|000059d0| 69 74 69 61 6c 69 73 65 | 20 61 6e 64 20 74 68 65 |itialise| and the|
|000059e0| 20 73 74 72 69 6e 67 20 | 69 73 0a 6c 6f 6e 67 65 | string |is.longe|
|000059f0| 72 20 74 68 61 6e 20 74 | 68 65 20 69 63 6f 6e 20 |r than t|he icon |
|00005a00| 63 61 6e 20 68 6f 6c 64 | 20 74 68 65 6e 20 74 68 |can hold| then th|
|00005a10| 65 20 73 74 72 69 6e 67 | 20 77 69 6c 6c 20 62 65 |e string| will be|
|00005a20| 20 70 72 65 2d 66 69 78 | 65 64 20 77 69 74 68 20 | pre-fix|ed with |
|00005a30| 27 2e 90 03 27 2e 0a 90 | 03 57 69 6d 70 45 78 74 |'...'...|.WimpExt|
|00005a40| 5f 53 65 74 49 63 6f 6e | 43 6f 6c 6f 75 72 20 90 |_SetIcon|Colour .|
|00005a50| 04 26 34 35 37 42 30 0a | 2d 90 1f 0a 52 32 20 3d |.&457B0.|-...R2 =|
|00005a60| 20 77 69 6e 64 6f 77 20 | 68 61 6e 64 6c 65 0a 52 | window |handle.R|
|00005a70| 33 20 3d 20 69 63 6f 6e | 20 68 61 6e 64 6c 65 0a |3 = icon| handle.|
|00005a80| 52 34 20 3d 20 66 6f 72 | 65 67 72 6f 75 6e 64 20 |R4 = for|eground |
|00005a90| 63 6f 6c 6f 75 72 20 28 | 30 2d 31 35 20 6f 72 20 |colour (|0-15 or |
|00005aa0| 2d 31 20 74 6f 20 6b 65 | 65 70 20 74 68 65 20 73 |-1 to ke|ep the s|
|00005ab0| 61 6d 65 29 0a 52 35 20 | 3d 20 62 61 63 6b 67 72 |ame).R5 |= backgr|
|00005ac0| 6f 75 6e 64 20 63 6f 6c | 6f 75 72 20 28 30 2d 31 |ound col|our (0-1|
|00005ad0| 35 20 6f 72 20 2d 31 20 | 74 6f 20 6b 65 65 70 20 |5 or -1 |to keep |
|00005ae0| 74 68 65 20 73 61 6d 65 | 29 0a 45 78 69 74 3a 0a |the same|).Exit:.|
|00005af0| 52 30 20 3d 20 6f 6c 64 | 20 66 6f 72 65 67 72 6f |R0 = old| foregro|
|00005b00| 75 6e 64 20 63 6f 6c 6f | 75 72 20 2b 20 6f 6c 64 |und colo|ur + old|
|00005b10| 20 62 61 63 6b 67 72 6f | 75 6e 64 20 63 6f 6c 6f | backgro|und colo|
|00005b20| 75 72 20 2a 20 31 36 0a | 0a 43 68 61 6e 67 65 73 |ur * 16.|.Changes|
|00005b30| 20 74 68 65 20 73 70 65 | 63 69 66 69 65 64 20 69 | the spe|cified i|
|00005b40| 63 6f 6e 27 73 20 63 6f | 6c 6f 75 72 28 73 29 2e |con's co|lour(s).|
|00005b50| 20 49 66 20 74 68 65 72 | 65 20 69 73 20 6e 6f 20 | If ther|e is no |
|00005b60| 63 68 61 6e 67 65 20 74 | 68 65 6e 20 74 68 65 20 |change t|hen the |
|00005b70| 69 63 6f 6e 0a 69 73 20 | 6e 6f 74 20 75 70 64 61 |icon.is |not upda|
|00005b80| 74 65 64 20 28 69 65 2e | 20 69 74 20 64 6f 65 73 |ted (ie.| it does|
|00005b90| 6e 27 74 20 66 6c 69 63 | 6b 65 72 29 2e 20 54 68 |n't flic|ker). Th|
|00005ba0| 69 73 20 63 61 6c 6c 20 | 77 69 6c 6c 20 6e 6f 77 |is call |will now|
|00005bb0| 20 77 6f 72 6b 20 66 6f | 72 20 61 6e 74 69 2d 0a | work fo|r anti-.|
|00005bc0| 61 6c 69 61 73 65 64 20 | 66 6f 6e 74 73 2c 20 62 |aliased |fonts, b|
|00005bd0| 75 74 20 74 68 65 20 69 | 63 6f 6e 20 4d 55 53 54 |ut the i|con MUST|
|00005be0| 20 68 61 76 65 20 61 6e | 20 27 46 27 20 76 61 6c | have an| 'F' val|
|00005bf0| 69 64 61 74 69 6f 6e 20 | 63 6f 6d 6d 61 6e 64 2c |idation |command,|
|00005c00| 20 61 73 20 74 68 65 20 | 57 69 6d 70 0a 6e 65 65 | as the |Wimp.nee|
|00005c10| 64 73 20 74 68 69 73 20 | 74 6f 20 73 70 65 63 69 |ds this |to speci|
|00005c20| 66 79 20 74 68 65 20 69 | 63 6f 6e 27 73 20 63 6f |fy the i|con's co|
|00005c30| 6c 6f 75 72 2e 0a 90 03 | 57 69 6d 70 45 78 74 5f |lour....|WimpExt_|
|00005c40| 53 68 61 64 65 49 63 6f | 6e 20 90 08 26 34 35 37 |ShadeIco|n ..&457|
|00005c50| 42 31 0a 2d 90 1f 0a 52 | 32 20 3d 20 77 69 6e 64 |B1.-...R|2 = wind|
|00005c60| 6f 77 20 68 61 6e 64 6c | 65 0a 52 33 20 3d 20 69 |ow handl|e.R3 = i|
|00005c70| 63 6f 6e 20 68 61 6e 64 | 6c 65 0a 52 34 20 3d 20 |con hand|le.R4 = |
|00005c80| 30 20 74 6f 20 75 6e 73 | 68 61 64 65 20 69 63 6f |0 to uns|hade ico|
|00005c90| 6e 2c 20 6e 6f 6e 2d 7a | 65 72 6f 20 74 6f 20 73 |n, non-z|ero to s|
|00005ca0| 68 61 64 65 20 69 63 6f | 6e 0a 49 66 20 62 69 74 |hade ico|n.If bit|
|00005cb0| 20 36 20 6f 66 20 52 32 | 20 77 61 73 20 73 65 74 | 6 of R2| was set|
|00005cc0| 20 69 6e 20 57 69 6d 70 | 45 78 74 5f 49 6e 69 74 | in Wimp|Ext_Init|
|00005cd0| 69 61 6c 69 73 65 3a 0a | 52 34 20 3d 20 30 20 74 |ialise:.|R4 = 0 t|
|00005ce0| 6f 20 75 6e 73 68 61 64 | 65 20 69 63 6f 6e 2c 20 |o unshad|e icon, |
|00005cf0| 31 20 74 6f 20 73 68 61 | 64 65 20 69 63 6f 6e 2c |1 to sha|de icon,|
|00005d00| 20 32 20 74 6f 20 74 6f | 67 67 6c 65 20 73 68 61 | 2 to to|ggle sha|
|00005d10| 64 65 20 66 6c 61 67 0a | 45 78 69 74 3a 0a 52 30 |de flag.|Exit:.R0|
|00005d20| 20 3d 20 6f 6c 64 20 73 | 74 61 74 65 20 6f 66 20 | = old s|tate of |
|00005d30| 69 63 6f 6e 20 28 30 20 | 66 6f 72 20 75 6e 73 68 |icon (0 |for unsh|
|00005d40| 61 64 65 64 2c 20 31 20 | 66 6f 72 20 73 68 61 64 |aded, 1 |for shad|
|00005d50| 65 64 29 0a 0a 53 68 61 | 64 65 73 20 74 68 65 20 |ed)..Sha|des the |
|00005d60| 69 63 6f 6e 20 69 66 20 | 52 32 20 69 73 20 6e 6f |icon if |R2 is no|
|00005d70| 6e 2d 7a 65 72 6f 2c 20 | 75 6e 73 68 61 64 65 73 |n-zero, |unshades|
|00005d80| 20 69 74 20 6f 74 68 65 | 72 77 69 73 65 2e 20 55 | it othe|rwise. U|
|00005d90| 70 64 61 74 65 73 20 74 | 68 65 20 73 63 72 65 65 |pdates t|he scree|
|00005da0| 6e 0a 69 66 20 6e 65 63 | 65 73 73 61 72 79 2e 20 |n.if nec|essary. |
|00005db0| 49 66 20 74 68 65 20 63 | 61 72 65 74 20 77 61 73 |If the c|aret was|
|00005dc0| 20 69 6e 20 74 68 65 20 | 69 63 6f 6e 20 61 6e 64 | in the |icon and|
|00005dd0| 20 79 6f 75 20 61 72 65 | 20 74 65 6c 6c 69 6e 67 | you are| telling|
|00005de0| 20 57 69 6d 70 45 78 74 | 65 6e 73 69 6f 6e 0a 74 | WimpExt|ension.t|
|00005df0| 6f 20 73 68 61 64 65 20 | 69 74 20 74 68 65 6e 20 |o shade |it then |
|00005e00| 74 68 65 20 63 61 72 65 | 74 20 69 73 20 72 65 6d |the care|t is rem|
|00005e10| 6f 76 65 64 20 28 64 69 | 73 6f 77 6e 65 64 29 2e |oved (di|sowned).|
|00005e20| 20 49 66 20 62 69 74 20 | 36 20 6f 66 20 52 32 20 | If bit |6 of R2 |
|00005e30| 77 61 73 20 73 65 74 20 | 69 6e 0a 57 69 6d 70 45 |was set |in.WimpE|
|00005e40| 78 74 5f 49 6e 69 74 69 | 61 6c 69 73 65 20 74 68 |xt_Initi|alise th|
|00005e50| 65 6e 20 74 68 65 20 61 | 6c 74 65 72 6e 61 74 69 |en the a|lternati|
|00005e60| 76 65 20 70 61 72 61 6d | 65 74 65 72 73 20 61 72 |ve param|eters ar|
|00005e70| 65 20 75 73 65 64 20 61 | 73 20 73 68 6f 77 6e 2e |e used a|s shown.|
|00005e80| 0a 90 03 57 69 6d 70 45 | 78 74 5f 56 69 65 77 49 |...WimpE|xt_ViewI|
|00005e90| 63 6f 6e 20 90 09 26 34 | 36 33 38 42 0a 2d 90 1f |con ..&4|638B.-..|
|00005ea0| 0a 52 30 20 3d 20 6d 6f | 76 65 6d 65 6e 74 20 74 |.R0 = mo|vement t|
|00005eb0| 79 70 65 3a 0a 20 90 05 | 30 20 3d 20 73 63 72 6f |ype:. ..|0 = scro|
|00005ec0| 6c 6c 20 77 69 6e 64 6f | 77 20 6d 69 6e 69 6d 75 |ll windo|w minimu|
|00005ed0| 6d 20 61 6d 6f 75 6e 74 | 20 6e 65 63 65 73 73 61 |m amount| necessa|
|00005ee0| 72 79 0a 20 90 05 31 20 | 3d 20 63 65 6e 74 72 65 |ry. ..1 |= centre|
|00005ef0| 20 69 63 6f 6e 20 69 6e | 20 77 69 6e 64 6f 77 20 | icon in| window |
|00005f00| 28 6f 6e 6c 79 20 69 66 | 20 69 74 27 73 20 63 75 |(only if| it's cu|
|00005f10| 72 72 65 6e 74 6c 79 20 | 6f 75 74 73 69 64 65 20 |rrently |outside |
|00005f20| 74 68 65 20 77 69 6e 64 | 6f 77 29 0a 20 90 05 32 |the wind|ow). ..2|
|00005f30| 20 3d 20 63 68 6f 6f 73 | 65 20 30 20 6f 72 20 31 | = choos|e 0 or 1|
|00005f40| 20 64 65 70 65 6e 64 69 | 6e 67 20 6f 6e 20 68 6f | dependi|ng on ho|
|00005f50| 77 20 66 61 72 20 6f 75 | 74 73 69 64 65 20 74 68 |w far ou|tside th|
|00005f60| 65 20 77 69 6e 64 6f 77 | 20 74 68 65 20 69 63 6f |e window| the ico|
|00005f70| 6e 20 69 73 0a 52 32 20 | 3d 20 77 69 6e 64 6f 77 |n is.R2 |= window|
|00005f80| 20 68 61 6e 64 6c 65 20 | 28 6f 72 20 2d 31 20 66 | handle |(or -1 f|
|00005f90| 6f 72 20 63 61 72 65 74 | 20 77 69 6e 64 6f 77 20 |or caret| window |
|00005fa0| 61 6e 64 20 69 63 6f 6e | 29 0a 52 33 20 3d 20 69 |and icon|).R3 = i|
|00005fb0| 63 6f 6e 20 68 61 6e 64 | 6c 65 20 28 69 66 20 52 |con hand|le (if R|
|00005fc0| 32 3c 3e 2d 31 29 0a 0a | 43 68 65 63 6b 73 20 74 |2<>-1)..|Checks t|
|00005fd0| 6f 20 73 65 65 20 69 66 | 20 74 68 65 20 73 70 65 |o see if| the spe|
|00005fe0| 63 69 66 69 65 64 20 69 | 63 6f 6e 20 69 73 20 69 |cified i|con is i|
|00005ff0| 6e 20 74 68 65 20 70 6f | 72 74 69 6f 6e 20 6f 66 |n the po|rtion of|
|00006000| 20 74 68 65 20 77 69 6e | 64 6f 77 20 77 68 69 63 | the win|dow whic|
|00006010| 68 20 69 73 0a 76 69 73 | 69 62 6c 65 20 6f 6e 20 |h is.vis|ible on |
|00006020| 74 68 65 20 73 63 72 65 | 65 6e 2c 20 61 6e 64 20 |the scre|en, and |
|00006030| 73 63 72 6f 6c 6c 73 20 | 74 68 65 20 77 69 6e 64 |scrolls |the wind|
|00006040| 6f 77 20 74 6f 20 64 69 | 73 70 6c 61 79 20 69 74 |ow to di|splay it|
|00006050| 20 69 66 20 69 74 20 69 | 73 6e 27 74 2e 20 49 66 | if it i|sn't. If|
|00006060| 0a 52 32 3d 2d 31 20 74 | 68 65 6e 20 74 68 65 20 |.R2=-1 t|hen the |
|00006070| 69 63 6f 6e 20 63 6f 6e | 74 61 69 6e 69 6e 67 20 |icon con|taining |
|00006080| 74 68 65 20 63 61 72 65 | 74 20 28 69 66 20 69 66 |the care|t (if if|
|00006090| 20 62 65 6c 6f 6e 67 73 | 20 74 6f 20 79 6f 75 72 | belongs| to your|
|000060a0| 20 74 61 73 6b 29 20 69 | 73 0a 75 73 65 64 2e 20 | task) i|s.used. |
|000060b0| 52 30 3d 32 20 69 73 20 | 74 68 65 20 72 65 63 6f |R0=2 is |the reco|
|000060c0| 6d 6d 65 6e 64 65 64 20 | 6d 6f 76 65 6d 65 6e 74 |mmended |movement|
|000060d0| 20 74 79 70 65 20 74 6f | 20 75 73 65 2e 0a 90 04 | type to| use....|
|000060e0| 50 6f 69 6e 74 65 72 20 | 68 61 6e 64 6c 69 6e 67 |Pointer |handling|
|000060f0| 0a 3d 90 10 0a 0a 50 6f | 69 6e 74 65 72 20 63 68 |.=....Po|inter ch|
|00006100| 61 6e 67 65 73 20 6f 76 | 65 72 20 69 63 6f 6e 73 |anges ov|er icons|
|00006110| 20 61 72 65 20 63 6f 6e | 74 72 6f 6c 6c 65 64 20 | are con|trolled |
|00006120| 62 79 20 74 68 65 20 27 | 77 70 27 20 76 61 6c 69 |by the '|wp' vali|
|00006130| 64 61 74 69 6f 6e 20 63 | 6f 6d 6d 61 6e 64 2e 0a |dation c|ommand..|
|00006140| 0a 20 90 03 27 77 70 27 | 20 28 63 68 61 6e 67 65 |. ..'wp'| (change|
|00006150| 20 70 6f 69 6e 74 65 72 | 29 0a 20 90 05 53 79 6e | pointer|). ..Syn|
|00006160| 74 61 78 3a 0a 20 90 07 | 77 70 3c 70 6f 69 6e 74 |tax:. ..|wp<point|
|00006170| 65 72 20 6e 61 6d 65 3e | 2c 3c 78 20 68 6f 74 73 |er name>|,<x hots|
|00006180| 70 6f 74 3e 2c 3c 79 20 | 68 6f 74 73 70 6f 74 3e |pot>,<y |hotspot>|
|00006190| 0a 0a 54 68 65 20 78 20 | 61 6e 64 20 79 20 68 6f |..The x |and y ho|
|000061a0| 74 73 70 6f 74 73 20 61 | 72 65 20 6f 70 74 69 6f |tspots a|re optio|
|000061b0| 6e 61 6c 2e 20 57 68 61 | 74 20 68 61 70 70 65 6e |nal. Wha|t happen|
|000061c0| 73 20 69 73 20 74 68 61 | 74 20 77 68 65 6e 20 74 |s is tha|t when t|
|000061d0| 68 65 20 70 6f 69 6e 74 | 65 72 20 69 73 0a 6f 76 |he point|er is.ov|
|000061e0| 65 72 20 74 68 65 20 69 | 63 6f 6e 20 69 74 20 77 |er the i|con it w|
|000061f0| 69 6c 6c 20 63 68 61 6e | 67 65 64 20 74 6f 20 74 |ill chan|ged to t|
|00006200| 68 65 20 6e 61 6d 65 64 | 20 73 70 72 69 74 65 2e |he named| sprite.|
|00006210| 20 54 68 65 20 27 68 6f | 74 73 70 6f 74 27 20 69 | The 'ho|tspot' i|
|00006220| 73 20 74 68 65 20 61 72 | 65 61 0a 74 68 61 74 20 |s the ar|ea.that |
|00006230| 69 73 20 74 68 65 20 61 | 63 74 75 61 6c 20 27 70 |is the a|ctual 'p|
|00006240| 6f 69 6e 74 27 20 6f 66 | 20 74 68 65 20 70 6f 69 |oint' of| the poi|
|00006250| 6e 74 65 72 2e 20 41 70 | 61 72 74 20 66 72 6f 6d |nter. Ap|art from|
|00006260| 20 74 68 65 20 66 6f 6c | 6c 6f 77 69 6e 67 20 73 | the fol|lowing s|
|00006270| 75 70 70 6c 69 65 64 0a | 73 74 61 6e 64 61 72 64 |upplied.|standard|
|00006280| 20 70 6f 69 6e 74 65 72 | 73 2c 20 74 68 65 20 73 | pointer|s, the s|
|00006290| 70 72 69 74 65 20 6d 75 | 73 74 20 62 65 20 69 6e |prite mu|st be in|
|000062a0| 20 74 68 65 20 57 69 6d | 70 20 73 70 72 69 74 65 | the Wim|p sprite|
|000062b0| 20 70 6f 6f 6c 2e 0a 0a | 53 74 61 6e 64 61 72 64 | pool...|Standard|
|000062c0| 20 73 75 70 70 6c 69 65 | 64 20 70 6f 69 6e 74 65 | supplie|d pointe|
|000062d0| 72 73 20 61 72 65 3a 0a | 0a 20 90 07 70 74 72 5f |rs are:.|. ..ptr_|
|000062e0| 77 72 69 74 65 20 90 04 | 28 34 2c 34 29 0a 20 90 |write ..|(4,4). .|
|000062f0| 08 73 68 6f 75 6c 64 20 | 62 65 20 75 73 65 64 20 |.should |be used |
|00006300| 6f 76 65 72 20 77 72 69 | 74 65 61 62 6c 65 20 69 |over wri|teable i|
|00006310| 63 6f 6e 73 0a 20 90 07 | 70 74 72 5f 6d 65 6e 75 |cons. ..|ptr_menu|
|00006320| 20 90 05 28 36 2c 35 29 | 0a 20 90 08 73 68 6f 75 | ..(6,5)|. ..shou|
|00006330| 6c 64 20 62 65 20 75 73 | 65 64 20 6f 76 65 72 20 |ld be us|ed over |
|00006340| 69 63 6f 6e 73 20 74 68 | 61 74 20 6c 65 61 64 20 |icons th|at lead |
|00006350| 74 6f 20 6d 65 6e 75 73 | 20 77 68 65 6e 20 63 6c |to menus| when cl|
|00006360| 69 63 6b 65 64 20 77 69 | 74 68 20 53 45 4c 45 43 |icked wi|th SELEC|
|00006370| 54 0a 20 90 07 70 74 72 | 5f 64 69 72 65 63 74 20 |T. ..ptr|_direct |
|00006380| 90 03 28 31 32 2c 36 29 | 0a 20 90 08 73 68 6f 75 |..(12,6)|. ..shou|
|00006390| 6c 64 20 62 65 20 75 73 | 65 64 20 66 6f 72 20 72 |ld be us|ed for r|
|000063a0| 65 73 69 7a 69 6e 67 20 | 6f 62 6a 65 63 74 73 0a |esizing |objects.|
|000063b0| 20 90 07 70 74 72 5f 68 | 61 6e 64 20 90 05 28 31 | ..ptr_h|and ..(1|
|000063c0| 30 2c 39 29 0a 20 90 08 | 73 68 6f 75 6c 64 20 62 |0,9). ..|should b|
|000063d0| 65 20 75 73 65 64 20 66 | 6f 72 20 64 72 61 67 67 |e used f|or dragg|
|000063e0| 69 6e 67 20 6f 62 6a 65 | 63 74 73 0a 20 90 07 70 |ing obje|cts. ..p|
|000063f0| 74 72 5f 63 72 6f 73 73 | 20 90 04 28 38 2c 34 29 |tr_cross| ..(8,4)|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.