home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD1.iso / Printer / add16.dms / in.adf < prev   
Amiga Disk Format (OFS)  |  1995-01-04  |  880.0 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: Amiga Disk Format (OFS) (archive/adfOFS).

You can browse this item here: in.adf

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Amiga Disk Format (OFS) (archive/adfOFS) magic Supported
66% dexvert Amiga Disk Format (FFS) (archive/adfFFS) ext Supported
1% dexvert ABackup Disk Image (archive/abackupDiskImage) ext Unsupported
1% dexvert Ami-Back backup disk image (archive/amiBackBackupDiskImage) ext Unsupported
1% dexvert Amiga Hard Disk Image (PFS) (archive/amigaHardDiskPFS) ext Unsupported
1% dexvert Amiga Kickstart disk image (archive/amigaKickstartDiskImage) ext Unsupported
1% dexvert ESRI Arc/Info Binary Grid (other/esriArcInfoBinaryGrid) ext Unsupported
100% file Amiga DOS disk (DD 880 KiB), "AddressIt!_v1.6" default
99% file data default
56% TrID Amiga Disk image File (OFS) default
42% TrID Amiga Disk image File (generic) default (weak)
1% TrID Memo File Apollo Database Engine default (weak)
0% TrID VXD Driver default (weak)
0% TrID Sybase iAnywhere database files default (weak)
100% siegfried fmt/1361 Amiga Disk File default
100% disktype Amiga OFS file system (non-intl.) Type "DOS\0" Size matches DD floppy default
100% xdgMime application/x-amiga-disk-format default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 44 4f 53 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |DOS.....|........|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 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| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000080| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000090| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|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| 44 4f 53 80 44 4f 53 81 | 44 4f 53 82 44 4f 53 83 |DOS.DOS.|DOS.DOS.|
|00000210| 44 4f 53 84 44 4f 53 85 | 44 4f 53 86 44 4f 53 87 |DOS.DOS.|DOS.DOS.|
|00000220| 44 4f 53 88 44 4f 53 89 | 44 4f 53 8a 44 4f 53 8b |DOS.DOS.|DOS.DOS.|
|00000230| 44 4f 53 8c 44 4f 53 8d | 44 4f 53 8e 44 4f 53 8f |DOS.DOS.|DOS.DOS.|
|00000240| 44 4f 53 90 44 4f 53 91 | 44 4f 53 92 44 4f 53 93 |DOS.DOS.|DOS.DOS.|
|00000250| 44 4f 53 94 44 4f 53 95 | 44 4f 53 96 44 4f 53 97 |DOS.DOS.|DOS.DOS.|
|00000260| 44 4f 53 98 44 4f 53 99 | 44 4f 53 9a 44 4f 53 9b |DOS.DOS.|DOS.DOS.|
|00000270| 44 4f 53 9c 44 4f 53 9d | 44 4f 53 9e 44 4f 53 9f |DOS.DOS.|DOS.DOS.|
|00000280| 44 4f 53 a0 44 4f 53 a1 | 44 4f 53 a2 44 4f 53 a3 |DOS.DOS.|DOS.DOS.|
|00000290| 44 4f 53 a4 44 4f 53 a5 | 44 4f 53 a6 44 4f 53 a7 |DOS.DOS.|DOS.DOS.|
|000002a0| 44 4f 53 a8 44 4f 53 a9 | 44 4f 53 aa 44 4f 53 ab |DOS.DOS.|DOS.DOS.|
|000002b0| 44 4f 53 ac 44 4f 53 ad | 44 4f 53 ae 44 4f 53 af |DOS.DOS.|DOS.DOS.|
|000002c0| 44 4f 53 b0 44 4f 53 b1 | 44 4f 53 b2 44 4f 53 b3 |DOS.DOS.|DOS.DOS.|
|000002d0| 44 4f 53 b4 44 4f 53 b5 | 44 4f 53 b6 44 4f 53 b7 |DOS.DOS.|DOS.DOS.|
|000002e0| 44 4f 53 b8 44 4f 53 b9 | 44 4f 53 ba 44 4f 53 bb |DOS.DOS.|DOS.DOS.|
|000002f0| 44 4f 53 bc 44 4f 53 bd | 44 4f 53 be 44 4f 53 bf |DOS.DOS.|DOS.DOS.|
|00000300| 44 4f 53 c0 44 4f 53 c1 | 44 4f 53 c2 44 4f 53 c3 |DOS.DOS.|DOS.DOS.|
|00000310| 44 4f 53 c4 44 4f 53 c5 | 44 4f 53 c6 44 4f 53 c7 |DOS.DOS.|DOS.DOS.|
|00000320| 44 4f 53 c8 44 4f 53 c9 | 44 4f 53 ca 44 4f 53 cb |DOS.DOS.|DOS.DOS.|
|00000330| 44 4f 53 cc 44 4f 53 cd | 44 4f 53 ce 44 4f 53 cf |DOS.DOS.|DOS.DOS.|
|00000340| 44 4f 53 d0 44 4f 53 d1 | 44 4f 53 d2 44 4f 53 d3 |DOS.DOS.|DOS.DOS.|
|00000350| 44 4f 53 d4 44 4f 53 d5 | 44 4f 53 d6 44 4f 53 d7 |DOS.DOS.|DOS.DOS.|
|00000360| 44 4f 53 d8 44 4f 53 d9 | 44 4f 53 da 44 4f 53 db |DOS.DOS.|DOS.DOS.|
|00000370| 44 4f 53 dc 44 4f 53 dd | 44 4f 53 de 44 4f 53 df |DOS.DOS.|DOS.DOS.|
|00000380| 44 4f 53 e0 44 4f 53 e1 | 44 4f 53 e2 44 4f 53 e3 |DOS.DOS.|DOS.DOS.|
|00000390| 44 4f 53 e4 44 4f 53 e5 | 44 4f 53 e6 44 4f 53 e7 |DOS.DOS.|DOS.DOS.|
|000003a0| 44 4f 53 e8 44 4f 53 e9 | 44 4f 53 ea 44 4f 53 eb |DOS.DOS.|DOS.DOS.|
|000003b0| 44 4f 53 ec 44 4f 53 ed | 44 4f 53 ee 44 4f 53 ef |DOS.DOS.|DOS.DOS.|
|000003c0| 44 4f 53 f0 44 4f 53 f1 | 44 4f 53 f2 44 4f 53 f3 |DOS.DOS.|DOS.DOS.|
|000003d0| 44 4f 53 f4 44 4f 53 f5 | 44 4f 53 f6 44 4f 53 f7 |DOS.DOS.|DOS.DOS.|
|000003e0| 44 4f 53 f8 44 4f 53 f9 | 44 4f 53 fa 44 4f 53 fb |DOS.DOS.|DOS.DOS.|
|000003f0| 44 4f 53 fc 44 4f 53 fd | 44 4f 53 fe 44 4f 53 ff |DOS.DOS.|DOS.DOS.|
|00000400| 00 00 00 08 00 00 03 96 | 00 00 00 1c 00 00 01 e8 |........|........|
|00000410| 00 00 00 03 3c 61 a3 7c | 2c 20 79 6f 75 20 6d 75 |....<a.||, you mu|
|00000420| 73 74 20 75 73 65 0a 27 | 25 6c 64 27 2c 20 72 61 |st use.'|%ld', ra|
|00000430| 74 68 65 72 20 74 68 61 | 6e 20 27 25 64 27 2e 0a |ther tha|n '%d'..|
|00000440| 0a 52 45 54 55 52 4e 53 | 0a 20 20 20 20 20 20 20 |.RETURNS|. |
|00000450| 20 20 20 20 20 20 20 20 | 20 54 68 65 20 6e 75 6d | | The num|
|00000460| 62 65 72 20 6f 66 20 63 | 68 61 72 61 63 74 65 72 |ber of c|haracter|
|00000470| 73 20 69 6e 20 74 68 65 | 20 66 6f 72 6d 61 74 74 |s in the| formatt|
|00000480| 65 64 20 73 74 72 69 6e | 67 2e 0a 42 55 47 53 0a |ed strin|g..BUGS.|
|00000490| 20 20 20 20 20 20 20 20 | 6e 6f 6e 65 20 6b 6e 6f | |none kno|
|000004a0| 77 6e 0a 0a 45 58 41 4d | 50 4c 45 0a 0a 20 20 20 |wn..EXAM|PLE.. |
|000004b0| 20 20 20 20 20 46 6f 72 | 6d 61 74 28 42 75 66 66 | For|mat(Buff|
|000004c0| 65 72 2c 22 54 68 65 72 | 65 20 61 72 65 20 25 64 |er,"Ther|e are %d|
|000004d0| 20 63 68 61 6e 67 65 73 | 20 74 6f 20 74 68 65 20 | changes| to the |
|000004e0| 66 69 6c 65 20 25 73 2e | 22 2c 6e 75 6d 63 68 61 |file %s.|",numcha|
|000004f0| 6e 67 65 73 2c 0a 66 69 | 6c 65 6e 61 6d 65 29 3b |nges,.fi|lename);|
|00000500| 0a 0a 20 20 20 20 20 20 | 20 20 46 6f 72 6d 61 74 |.. | Format|
|00000510| 28 42 75 66 66 65 72 2c | 22 25 78 20 69 73 20 61 |(Buffer,|"%x is a|
|00000520| 20 68 65 78 20 6e 75 6d | 62 65 72 2c 20 25 63 20 | hex num|ber, %c |
|00000530| 69 73 20 61 20 63 68 61 | 72 61 63 74 65 72 2e 22 |is a cha|racter."|
|00000540| 2c 20 6e 75 6d 2c 20 63 | 68 72 29 3b 0a 0a 53 45 |, num, c|hr);..SE|
|00000550| 45 0a 20 20 20 20 20 20 | 20 20 54 65 78 74 52 65 |E. | TextRe|
|00000560| 71 75 65 73 74 2c 20 53 | 69 6d 70 6c 65 52 65 71 |quest, S|impleReq|
|00000570| 75 65 73 74 2c 20 54 77 | 6f 47 61 64 52 65 71 75 |uest, Tw|oGadRequ|
|00000580| 65 73 74 2e 0a 20 20 20 | 20 20 20 20 20 46 75 72 |est.. | Fur|
|00000590| 74 68 65 72 20 20 69 6e | 66 6f 72 6d 61 74 69 6f |ther in|formatio|
|000005a0| 6e 20 20 6f 6e 20 70 72 | 69 6e 74 66 28 29 20 73 |n on pr|intf() s|
|000005b0| 74 79 6c 65 20 66 6f 72 | 6d 61 74 74 69 6e 67 20 |tyle for|matting |
|000005c0| 69 73 20 61 76 61 69 6c | 61 62 6c 65 20 69 6e 0a |is avail|able in.|
|000005d0| 74 68 65 20 41 75 74 6f | 44 6f 63 73 20 6f 6e 20 |the Auto|Docs on |
|000005e0| 52 61 77 44 6f 46 6d 74 | 20 61 6e 64 20 69 6e 20 |RawDoFmt| and in |
|000005f0| 43 20 6d 61 6e 75 61 6c | 73 20 64 69 73 63 75 73 |C manual|s discus|
|00000600| 00 00 00 08 00 00 03 96 | 00 00 00 1d 00 00 01 e8 |........|........|
|00000610| 00 00 00 04 37 2f e8 ad | 73 69 6e 67 20 70 72 69 |....7/..|sing pri|
|00000620| 6e 74 66 28 29 2e 0a 0a | 3b 2d 2d 2d 2d 2d 2d 2d |ntf()...|;-------|
|00000630| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000640| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000650| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000660| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 0a 0a 0a |--------|-----...|
|00000670| 0a 4e 41 4d 45 0a 20 20 | 20 20 20 20 20 20 20 20 |.NAME. | |
|00000680| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 43 6f | | Co|
|00000690| 6c 6f 72 52 65 71 75 65 | 73 74 65 72 0a 53 59 4e |lorReque|ster.SYN|
|000006a0| 4f 50 53 49 53 0a 0a 4e | 65 77 43 6f 6c 6f 72 3d |OPSIS..N|ewColor=|
|000006b0| 43 6f 6c 6f 72 52 65 71 | 75 65 73 74 65 72 28 44 |ColorReq|uester(D|
|000006c0| 65 73 69 72 65 64 43 6f | 6c 6f 72 29 3b 0a 20 20 |esiredCo|lor);. |
|000006d0| 20 44 30 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | D0 | |
|000006e0| 20 20 20 20 20 20 20 20 | 20 20 44 30 0a 6c 6f 6e | | D0.lon|
|000006f0| 67 20 20 20 20 44 65 73 | 69 72 65 64 43 6f 6c 6f |g Des|iredColo|
|00000700| 72 3b 0a 0a 44 45 53 43 | 52 49 50 54 49 4f 4e 0a |r;..DESC|RIPTION.|
|00000710| 0a 20 20 20 20 20 20 20 | 20 54 68 69 73 20 20 69 |. | This i|
|00000720| 73 20 61 20 66 75 6c 6c | 2d 66 6c 65 64 67 65 64 |s a full|-fledged|
|00000730| 20 63 6f 6c 6f 72 20 72 | 65 71 75 65 73 74 65 72 | color r|equester|
|00000740| 2e 20 20 49 74 20 69 73 | 20 69 6e 74 65 6c 6c 69 |. It is| intelli|
|00000750| 67 65 6e 74 20 65 6e 6f | 75 67 68 0a 74 6f 20 6f |gent eno|ugh.to o|
|00000760| 70 65 6e 20 77 69 74 68 | 20 74 68 65 20 72 69 67 |pen with| the rig|
|00000770| 68 74 20 6e 75 6d 62 65 | 72 20 6f 66 20 63 6f 6c |ht numbe|r of col|
|00000780| 6f 75 72 73 20 69 6e 20 | 74 68 65 20 70 61 6c 65 |ours in |the pale|
|00000790| 74 74 65 20 61 75 74 6f | 6d 61 74 69 63 61 6c 6c |tte auto|maticall|
|000007a0| 79 2e 0a 49 74 20 20 73 | 68 6f 77 73 20 20 79 6f |y..It s|hows yo|
|000007b0| 75 20 62 6f 74 68 20 74 | 68 65 20 63 6f 6c 6f 75 |u both t|he colou|
|000007c0| 72 20 79 6f 75 20 61 72 | 65 20 77 6f 72 6b 69 6e |r you ar|e workin|
|000007d0| 67 20 77 69 74 68 2c 20 | 61 6e 64 20 74 68 65 20 |g with, |and the |
|000007e0| 6e 75 6d 65 72 69 63 61 | 6c 0a 52 47 42 20 20 76 |numerica|l.RGB v|
|000007f0| 61 6c 75 65 20 20 6f 66 | 20 20 74 68 61 74 20 20 |alue of| that |
|00000800| 00 00 00 08 00 00 03 96 | 00 00 00 1e 00 00 01 e8 |........|........|
|00000810| 00 00 00 05 2d 51 da b6 | 63 6f 6c 6f 75 72 2e 20 |....-Q..|colour. |
|00000820| 20 20 49 74 20 20 68 61 | 73 20 20 53 70 72 65 61 | It ha|s Sprea|
|00000830| 64 2c 20 20 55 6e 64 6f | 2c 20 20 4f 6b 20 61 6e |d, Undo|, Ok an|
|00000840| 64 20 43 61 6e 63 65 6c | 0a 66 75 6e 63 74 69 6f |d Cancel|.functio|
|00000850| 6e 73 2e 20 20 50 6c 61 | 6e 6e 65 64 20 69 73 20 |ns. Pla|nned is |
|00000860| 74 68 65 20 61 64 64 69 | 74 69 6f 6e 20 6f 66 20 |the addi|tion of |
|00000870| 48 53 56 2e 0a 0a 20 20 | 20 20 20 20 20 20 54 68 |HSV... | Th|
|00000880| 65 20 20 63 75 72 73 6f | 72 20 20 6b 65 79 73 20 |e curso|r keys |
|00000890| 6d 6f 76 65 20 74 68 65 | 20 63 6f 6c 6f 72 2d 63 |move the| color-c|
|000008a0| 75 72 73 6f 72 20 61 72 | 6f 75 6e 64 20 74 68 65 |ursor ar|ound the|
|000008b0| 20 70 61 6c 65 74 74 65 | 2c 20 52 45 54 55 52 4e | palette|, RETURN|
|000008c0| 0a 73 65 6c 65 63 74 73 | 20 74 68 65 20 63 75 72 |.selects| the cur|
|000008d0| 72 65 6e 74 20 63 6f 6c | 6f 72 20 61 6e 64 20 45 |rent col|or and E|
|000008e0| 53 43 20 63 61 6e 63 65 | 6c 73 20 6f 75 74 2e 0a |SC cance|ls out..|
|000008f0| 0a 20 20 20 20 20 20 20 | 20 59 6f 75 20 20 70 61 |. | You pa|
|00000900| 73 73 20 20 74 68 69 73 | 20 20 72 6f 75 74 69 6e |ss this| routin|
|00000910| 65 20 20 74 68 65 20 20 | 63 6f 6c 6f 72 20 74 68 |e the |color th|
|00000920| 61 74 20 79 6f 75 20 77 | 6f 75 6c 64 20 6c 69 6b |at you w|ould lik|
|00000930| 65 20 69 6e 69 74 69 61 | 6c 6c 79 0a 68 69 67 68 |e initia|lly.high|
|00000940| 6c 69 67 68 74 65 64 20 | 20 28 74 79 70 69 63 61 |lighted | (typica|
|00000950| 6c 6c 79 20 20 74 68 65 | 20 20 63 75 72 72 65 6e |lly the| curren|
|00000960| 74 20 64 72 61 77 69 6e | 67 20 63 6f 6c 6f 75 72 |t drawin|g colour|
|00000970| 29 2e 0a 0a 20 20 20 20 | 20 20 20 20 54 68 65 20 |)... | The |
|00000980| 45 78 74 65 6e 64 65 64 | 43 6f 6c 6f 72 52 65 71 |Extended|ColorReq|
|00000990| 75 65 73 74 65 72 20 66 | 75 6e 63 74 69 6f 6e 20 |uester f|unction |
|000009a0| 68 61 73 20 73 6c 69 67 | 68 74 6c 79 20 6d 6f 72 |has slig|htly mor|
|000009b0| 65 20 6f 70 74 69 6f 6e | 73 2c 20 62 75 74 0a 69 |e option|s, but.i|
|000009c0| 73 20 73 6c 69 67 68 74 | 6c 79 20 6d 6f 72 65 20 |s slight|ly more |
|000009d0| 77 6f 72 6b 20 74 6f 20 | 63 61 6c 6c 2e 0a 0a 52 |work to |call...R|
|000009e0| 45 54 55 52 4e 53 0a 0a | 20 20 20 20 20 20 20 20 |ETURNS..| |
|000009f0| 43 6f 6c 6f 72 20 20 6e | 75 6d 62 65 72 20 20 74 |Color n|umber t|
|00000a00| 00 00 00 08 00 00 03 96 | 00 00 00 1f 00 00 01 e8 |........|........|
|00000a10| 00 00 00 06 3b 51 52 c6 | 68 61 74 20 20 74 68 65 |....;QR.|hat the|
|00000a20| 20 75 73 65 72 20 73 65 | 6c 65 63 74 65 64 2c 20 | user se|lected, |
|00000a30| 2d 31 20 69 66 20 74 68 | 65 20 75 73 65 72 20 63 |-1 if th|e user c|
|00000a40| 61 6e 63 65 6c 73 20 74 | 68 65 0a 63 6f 6c 6f 75 |ancels t|he.colou|
|00000a50| 72 20 20 72 65 71 75 65 | 73 74 65 72 2e 20 20 20 |r reque|ster. |
|00000a60| 54 68 65 20 20 63 68 61 | 6e 67 65 64 20 20 63 6f |The cha|nged co|
|00000a70| 6c 6f 75 72 73 20 20 77 | 69 6c 6c 20 20 62 65 20 |lours w|ill be |
|00000a80| 20 69 6e 20 20 74 68 65 | 20 76 69 65 77 70 6f 72 | in the| viewpor|
|00000a90| 74 0a 73 74 72 75 63 74 | 75 72 65 20 66 6f 72 20 |t.struct|ure for |
|00000aa0| 79 6f 75 72 20 73 63 72 | 65 65 6e 2e 0a 0a 53 45 |your scr|een...SE|
|00000ab0| 45 0a 20 20 20 20 20 20 | 20 20 45 78 74 65 6e 64 |E. | Extend|
|00000ac0| 65 64 43 6f 6c 6f 72 52 | 65 71 75 65 73 74 65 72 |edColorR|equester|
|00000ad0| 0a 0a 42 55 47 53 0a 0a | 20 20 20 20 20 20 20 20 |..BUGS..| |
|00000ae0| 6e 6f 6e 65 20 6b 6e 6f | 77 6e 2e 0a 0a 45 58 41 |none kno|wn...EXA|
|00000af0| 4d 50 4c 45 0a 0a 20 20 | 20 20 20 20 20 20 6e 65 |MPLE.. | ne|
|00000b00| 77 63 6f 6c 6f 72 20 3d | 20 43 6f 6c 6f 72 52 65 |wcolor =| ColorRe|
|00000b10| 71 75 65 73 74 65 72 28 | 6f 6c 64 63 6f 6c 6f 72 |quester(|oldcolor|
|00000b20| 29 3b 0a 0a 3b 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |);..;---|--------|
|00000b30| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000b40| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000b50| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000b60| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 0a 0a 4e 41 4d 45 0a |--------|-..NAME.|
|00000b70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000b80| 20 20 20 20 20 20 20 20 | 45 78 74 65 6e 64 65 64 | |Extended|
|00000b90| 43 6f 6c 6f 72 52 65 71 | 75 65 73 74 65 72 0a 53 |ColorReq|uester.S|
|00000ba0| 59 4e 4f 50 53 49 53 0a | 0a 4e 65 77 43 6f 6c 6f |YNOPSIS.|.NewColo|
|00000bb0| 72 3d 45 78 74 65 6e 64 | 65 64 43 6f 6c 6f 72 52 |r=Extend|edColorR|
|00000bc0| 65 71 75 65 73 74 65 72 | 28 26 28 73 74 72 75 63 |equester|(&(struc|
|00000bd0| 74 20 45 78 74 65 6e 64 | 65 64 43 6f 6c 6f 72 52 |t Extend|edColorR|
|00000be0| 65 71 75 65 73 74 65 72 | 29 0a 20 20 20 44 30 20 |equester|). D0 |
|00000bf0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000c00| 00 00 00 08 00 00 03 96 | 00 00 00 20 00 00 01 e8 |........|... ....|
|00000c10| 00 00 00 07 fa 5c bb fa | 20 20 20 20 20 20 20 20 |.....\..| |
|00000c20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 41 30 0a | | A0.|
|00000c30| 73 74 72 75 63 74 20 45 | 78 74 65 6e 64 65 64 43 |struct E|xtendedC|
|00000c40| 6f 6c 6f 72 52 65 71 75 | 65 73 74 65 72 20 20 20 |olorRequ|ester |
|00000c50| 63 6f 6c 6f 72 72 65 71 | 73 74 72 75 63 74 3b 0a |colorreq|struct;.|
|00000c60| 0a 44 45 53 43 52 49 50 | 54 49 4f 4e 0a 20 20 20 |.DESCRIP|TION. |
|00000c70| 20 20 20 20 20 54 68 69 | 73 20 20 63 61 6c 6c 20 | Thi|s call |
|00000c80| 20 62 72 69 6e 67 73 20 | 20 75 70 20 20 65 78 61 | brings | up exa|
|00000c90| 63 74 6c 79 20 20 74 68 | 65 20 20 73 61 6d 65 20 |ctly th|e same |
|00000ca0| 20 63 6f 6c 6f 72 20 72 | 65 71 75 65 73 74 65 72 | color r|equester|
|00000cb0| 20 61 73 20 74 68 65 0a | 43 6f 6c 6f 72 52 65 71 | as the.|ColorReq|
|00000cc0| 75 65 73 74 65 72 20 20 | 63 61 6c 6c 2e 20 20 54 |uester |call. T|
|00000cd0| 68 65 20 6f 6e 6c 79 20 | 64 69 66 66 65 72 65 6e |he only |differen|
|00000ce0| 63 65 20 69 73 20 74 68 | 61 74 20 74 68 69 73 20 |ce is th|at this |
|00000cf0| 72 6f 75 74 69 6e 65 20 | 61 6c 6c 6f 77 73 0a 79 |routine |allows.y|
|00000d00| 6f 75 20 20 74 6f 20 20 | 73 70 65 63 69 66 79 20 |ou to |specify |
|00000d10| 20 6d 6f 72 65 20 20 70 | 61 72 61 6d 65 74 65 72 | more p|arameter|
|00000d20| 73 2e 20 20 20 54 68 65 | 20 64 69 66 66 65 72 65 |s. The| differe|
|00000d30| 6e 63 65 20 69 73 20 61 | 63 74 75 61 6c 6c 79 20 |nce is a|ctually |
|00000d40| 71 75 69 74 65 0a 73 6d | 61 6c 6c 20 20 72 69 67 |quite.sm|all rig|
|00000d50| 68 74 20 20 6e 6f 77 2c | 20 62 65 63 61 75 73 65 |ht now,| because|
|00000d60| 20 74 68 65 72 65 20 69 | 73 20 6f 6e 6c 79 20 6f | there i|s only o|
|00000d70| 6e 65 20 61 64 64 69 74 | 69 6f 6e 61 6c 20 70 61 |ne addit|ional pa|
|00000d80| 72 61 6d 65 74 65 72 20 | 74 68 61 74 0a 63 61 6e |rameter |that.can|
|00000d90| 20 20 62 65 20 20 70 61 | 73 73 65 64 20 20 74 68 | be pa|ssed th|
|00000da0| 72 6f 75 67 68 20 20 74 | 68 69 73 20 20 65 6e 74 |rough t|his ent|
|00000db0| 72 79 20 20 70 6f 69 6e | 74 2e 20 20 20 54 68 69 |ry poin|t. Thi|
|00000dc0| 73 20 69 73 20 74 68 65 | 20 65 63 72 5f 77 69 6e |s is the| ecr_win|
|00000dd0| 64 6f 77 0a 70 61 72 61 | 6d 65 74 65 72 2c 20 20 |dow.para|meter, |
|00000de0| 75 73 65 64 20 20 74 6f | 20 20 73 70 65 63 69 66 |used to| specif|
|00000df0| 79 20 20 77 68 61 74 20 | 77 69 6e 64 6f 77 20 28 |y what |window (|
|00000e00| 00 00 00 08 00 00 03 96 | 00 00 00 21 00 00 01 e8 |........|...!....|
|00000e10| 00 00 00 08 e5 39 20 12 | 61 6e 64 20 68 65 6e 63 |.....9 .|and henc|
|00000e20| 65 20 77 68 61 74 20 73 | 63 72 65 65 6e 29 20 74 |e what s|creen) t|
|00000e30| 68 65 0a 63 6f 6c 6f 72 | 20 27 72 65 71 75 65 73 |he.color| 'reques|
|00000e40| 74 65 72 27 20 61 70 70 | 65 61 72 73 20 6f 6e 2e |ter' app|ears on.|
|00000e50| 20 20 54 68 69 73 20 70 | 61 72 61 6d 65 74 65 72 | This p|arameter|
|00000e60| 20 69 73 20 72 61 72 65 | 6c 79 20 6e 65 65 64 65 | is rare|ly neede|
|00000e70| 64 20 62 65 63 61 75 73 | 65 0a 74 68 65 20 20 77 |d becaus|e.the w|
|00000e80| 69 6e 64 6f 77 20 20 74 | 68 65 20 72 65 71 75 65 |indow t|he reque|
|00000e90| 73 74 65 72 20 6f 70 65 | 6e 73 20 75 70 20 6f 6e |ster ope|ns up on|
|00000ea0| 20 63 61 6e 20 62 65 20 | 73 70 65 63 69 66 69 65 | can be |specifie|
|00000eb0| 64 20 62 79 20 73 65 74 | 74 69 6e 67 20 74 68 65 |d by set|ting the|
|00000ec0| 0a 70 72 5f 57 69 6e 64 | 6f 77 50 74 72 20 20 66 |.pr_Wind|owPtr f|
|00000ed0| 69 65 6c 64 20 20 69 6e | 20 20 79 6f 75 72 20 70 |ield in| your p|
|00000ee0| 72 6f 63 65 73 73 20 73 | 74 72 75 63 74 75 72 65 |rocess s|tructure|
|00000ef0| 20 74 6f 20 74 68 65 20 | 61 64 64 72 65 73 73 20 | to the |address |
|00000f00| 6f 66 20 79 6f 75 72 0a | 77 69 6e 64 6f 77 20 20 |of your.|window |
|00000f10| 73 74 72 75 63 74 75 72 | 65 20 20 28 73 65 65 20 |structur|e (see |
|00000f20| 20 74 68 65 20 20 62 65 | 67 69 6e 6e 69 6e 67 20 | the be|ginning |
|00000f30| 6f 66 20 74 68 65 20 64 | 6f 63 73 20 66 6f 72 20 |of the d|ocs for |
|00000f40| 61 6e 20 6f 76 65 72 76 | 69 65 77 20 6f 6e 0a 74 |an overv|iew on.t|
|00000f50| 68 69 73 20 70 72 6f 63 | 65 64 75 72 65 29 2e 20 |his proc|edure). |
|00000f60| 20 54 68 65 20 6f 6e 6c | 79 20 74 69 6d 65 20 74 | The onl|y time t|
|00000f70| 68 69 73 20 65 6e 74 72 | 79 20 70 6f 69 6e 74 20 |his entr|y point |
|00000f80| 69 73 20 6e 65 65 64 65 | 64 2c 20 63 75 72 72 65 |is neede|d, curre|
|00000f90| 6e 74 6c 79 2c 0a 69 73 | 20 20 69 66 20 79 6f 75 |ntly,.is| if you|
|00000fa0| 20 74 72 79 20 74 6f 20 | 62 72 69 6e 67 20 75 70 | try to |bring up|
|00000fb0| 20 74 68 65 20 63 6f 6c | 6f 72 20 72 65 71 75 65 | the col|or reque|
|00000fc0| 73 74 65 72 20 6f 6e 20 | 61 20 63 75 73 74 6f 6d |ster on |a custom|
|00000fd0| 20 73 63 72 65 65 6e 20 | 66 72 6f 6d 0a 61 20 20 | screen |from.a |
|00000fe0| 74 61 73 6b 2c 20 20 73 | 69 6e 63 65 20 20 61 20 |task, s|ince a |
|00000ff0| 74 61 73 6b 20 64 6f 65 | 73 20 6e 6f 74 20 68 61 |task doe|s not ha|
|00001000| 00 00 00 08 00 00 03 96 | 00 00 00 22 00 00 01 e8 |........|..."....|
|00001010| 00 00 00 09 d4 bc 27 eb | 76 65 20 61 20 70 72 5f |......'.|ve a pr_|
|00001020| 57 69 6e 64 6f 77 50 74 | 72 20 61 6e 64 20 63 61 |WindowPt|r and ca|
|00001030| 6e 20 74 68 65 72 65 66 | 6f 72 65 0a 6e 6f 74 20 |n theref|ore.not |
|00001040| 73 70 65 63 69 66 79 20 | 74 68 65 20 77 69 6e 64 |specify |the wind|
|00001050| 6f 77 20 61 6e 64 20 73 | 63 72 65 65 6e 2e 0a 0a |ow and s|creen...|
|00001060| 52 45 54 55 52 4e 53 0a | 0a 20 20 20 20 20 20 20 |RETURNS.|. |
|00001070| 20 43 6f 6c 6f 72 20 20 | 6e 75 6d 62 65 72 20 20 | Color |number |
|00001080| 74 68 61 74 20 20 74 68 | 65 20 75 73 65 72 20 73 |that th|e user s|
|00001090| 65 6c 65 63 74 65 64 2c | 20 2d 31 20 69 66 20 74 |elected,| -1 if t|
|000010a0| 68 65 20 75 73 65 72 20 | 63 61 6e 63 65 6c 73 20 |he user |cancels |
|000010b0| 74 68 65 0a 63 6f 6c 6f | 75 72 20 20 72 65 71 75 |the.colo|ur requ|
|000010c0| 65 73 74 65 72 2e 20 20 | 20 54 68 65 20 20 63 68 |ester. | The ch|
|000010d0| 61 6e 67 65 64 20 20 63 | 6f 6c 6f 75 72 73 20 20 |anged c|olours |
|000010e0| 77 69 6c 6c 20 20 62 65 | 20 20 69 6e 20 20 74 68 |will be| in th|
|000010f0| 65 20 76 69 65 77 70 6f | 72 74 0a 73 74 72 75 63 |e viewpo|rt.struc|
|00001100| 74 75 72 65 20 66 6f 72 | 20 79 6f 75 72 20 73 63 |ture for| your sc|
|00001110| 72 65 65 6e 2e 0a 0a 53 | 45 45 0a 20 20 20 20 20 |reen...S|EE. |
|00001120| 20 20 20 43 6f 6c 6f 72 | 52 65 71 75 65 73 74 65 | Color|Requeste|
|00001130| 72 0a 0a 42 55 47 53 0a | 0a 20 20 20 20 20 20 20 |r..BUGS.|. |
|00001140| 20 6e 6f 6e 65 20 6b 6e | 6f 77 6e 2e 0a 0a 45 58 | none kn|own...EX|
|00001150| 41 4d 50 4c 45 0a 0a 20 | 20 20 20 20 20 20 20 20 |AMPLE.. | |
|00001160| 20 20 20 20 20 20 20 2f | 2a 20 54 68 69 73 20 73 | /|* This s|
|00001170| 68 6f 75 6c 64 20 67 65 | 6e 65 72 61 6c 6c 79 20 |hould ge|nerally |
|00001180| 62 65 20 64 65 63 6c 61 | 72 65 64 20 61 73 20 61 |be decla|red as a|
|00001190| 20 67 6c 6f 62 61 6c 20 | 76 61 72 69 61 62 6c 65 | global |variable|
|000011a0| 20 2a 2f 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 | */. | |
|000011b0| 20 20 20 20 2f 2a 20 73 | 6f 20 74 68 61 74 20 61 | /* s|o that a|
|000011c0| 6c 6c 20 6f 66 20 69 74 | 27 73 20 65 6c 65 6d 65 |ll of it|'s eleme|
|000011d0| 6e 74 73 20 67 65 74 20 | 69 6e 69 74 69 61 6c 69 |nts get |initiali|
|000011e0| 7a 65 64 20 74 6f 20 7a | 65 72 6f 2e 20 20 2a 2f |zed to z|ero. */|
|000011f0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00001200| 00 00 00 08 00 00 03 96 | 00 00 00 23 00 00 01 e8 |........|...#....|
|00001210| 00 00 00 0a ec 77 b7 f7 | 20 2f 2a 20 49 66 20 79 |.....w..| /* If y|
|00001220| 6f 75 20 64 65 63 6c 61 | 72 65 20 69 74 20 61 73 |ou decla|re it as|
|00001230| 20 61 20 6c 6f 63 61 6c | 20 76 61 72 69 61 62 6c | a local| variabl|
|00001240| 65 2c 20 62 65 20 73 75 | 72 65 20 74 6f 20 7a 65 |e, be su|re to ze|
|00001250| 72 6f 20 2a 2f 0a 20 20 | 20 20 20 20 20 20 20 20 |ro */. | |
|00001260| 20 20 20 20 20 20 2f 2a | 20 61 6c 6c 20 6f 66 20 | /*| all of |
|00001270| 74 68 65 20 66 69 65 6c | 64 73 2c 20 65 76 65 6e |the fiel|ds, even|
|00001280| 20 74 68 65 20 75 6e 75 | 73 65 64 20 6f 6e 65 73 | the unu|sed ones|
|00001290| 2e 20 2a 2f 0a 20 20 20 | 20 20 20 20 20 73 74 72 |. */. | str|
|000012a0| 75 63 74 20 45 78 74 65 | 6e 64 65 64 43 6f 6c 6f |uct Exte|ndedColo|
|000012b0| 72 52 65 71 75 65 73 74 | 65 72 20 20 20 63 6f 6c |rRequest|er col|
|000012c0| 6f 72 73 74 72 75 63 74 | 3b 0a 0a 20 20 20 20 20 |orstruct|;.. |
|000012d0| 20 20 20 63 6f 6c 6f 72 | 73 74 72 75 63 74 2e 64 | color|struct.d|
|000012e0| 65 66 63 6f 6c 6f 72 20 | 3d 20 30 3b 0a 20 20 20 |efcolor |= 0;. |
|000012f0| 20 20 20 20 20 63 6f 6c | 6f 72 73 74 72 75 63 74 | col|orstruct|
|00001300| 2e 77 69 6e 64 6f 77 20 | 3d 20 6d 79 77 69 6e 64 |.window |= mywind|
|00001310| 6f 77 3b 0a 20 20 20 20 | 20 20 20 20 6e 65 77 63 |ow;. | newc|
|00001320| 6f 6c 6f 72 20 3d 20 45 | 78 74 65 6e 64 65 64 43 |olor = E|xtendedC|
|00001330| 6f 6c 6f 72 52 65 71 75 | 65 73 74 65 72 28 26 63 |olorRequ|ester(&c|
|00001340| 6f 6c 6f 72 73 74 72 75 | 63 74 29 3b 0a 0a 3b 2d |olorstru|ct);..;-|
|00001350| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001360| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001370| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001380| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001390| 2d 2d 2d 0a 0a 4e 41 4d | 45 0a 20 20 20 20 20 20 |---..NAM|E. |
|000013a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000013b0| 20 20 4d 61 6b 65 47 61 | 64 67 65 74 0a 53 59 4e | MakeGa|dget.SYN|
|000013c0| 4f 50 53 49 53 0a 4d 61 | 6b 65 47 61 64 67 65 74 |OPSIS.Ma|keGadget|
|000013d0| 28 42 75 66 66 65 72 2c | 53 74 72 69 6e 67 2c 20 |(Buffer,|String, |
|000013e0| 58 2c 20 59 29 0a 20 20 | 20 20 20 20 20 20 20 20 |X, Y). | |
|000013f0| 20 20 20 20 41 30 20 20 | 20 20 41 31 20 20 20 44 | A0 | A1 D|
|00001400| 00 00 00 08 00 00 03 96 | 00 00 00 24 00 00 01 e8 |........|...$....|
|00001410| 00 00 00 0b 30 cc 8d 41 | 30 20 44 31 0a 73 74 72 |....0..A|0 D1.str|
|00001420| 75 63 74 20 42 75 66 66 | 65 72 20 20 20 2a 47 61 |uct Buff|er *Ga|
|00001430| 64 67 65 74 42 6c 6f 63 | 6b 3b 0a 63 68 61 72 20 |dgetBloc|k;.char |
|00001440| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001450| 20 20 20 2a 53 74 72 69 | 6e 67 3b 0a 6c 6f 6e 67 | *Stri|ng;.long|
|00001460| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001470| 20 20 20 20 44 30 2c 44 | 31 3b 0a 44 45 53 43 52 | D0,D|1;.DESCR|
|00001480| 49 50 54 49 4f 4e 0a 0a | 20 20 20 20 20 20 20 20 |IPTION..| |
|00001490| 20 20 20 20 20 20 20 20 | 54 68 69 73 20 20 72 6f | |This ro|
|000014a0| 75 74 69 6e 65 20 20 70 | 72 65 70 61 72 65 73 20 |utine p|repares |
|000014b0| 61 20 62 75 66 66 65 72 | 20 74 6f 20 62 65 20 61 |a buffer| to be a|
|000014c0| 20 73 74 61 6e 64 61 72 | 64 20 42 4f 4f 4c 45 41 | standar|d BOOLEA|
|000014d0| 4e 20 74 65 78 74 0a 67 | 61 64 67 65 74 2e 20 20 |N text.g|adget. |
|000014e0| 20 54 68 69 73 20 69 73 | 20 61 20 73 69 6d 70 6c | This is| a simpl|
|000014f0| 65 20 77 61 79 20 6f 66 | 20 70 72 6f 64 75 63 69 |e way of| produci|
|00001500| 6e 67 20 67 61 64 67 65 | 74 73 20 66 6f 72 20 63 |ng gadge|ts for c|
|00001510| 6f 64 65 20 74 68 61 74 | 20 6d 75 73 74 0a 62 65 |ode that| must.be|
|00001520| 20 20 72 65 65 6e 74 72 | 61 6e 74 2c 20 20 61 6e | reentr|ant, an|
|00001530| 64 20 69 74 20 69 73 20 | 6d 6f 72 65 20 65 66 66 |d it is |more eff|
|00001540| 69 63 69 65 6e 74 20 74 | 68 61 6e 20 64 65 66 69 |icient t|han defi|
|00001550| 6e 69 6e 67 20 67 61 64 | 67 65 74 73 20 69 6e 20 |ning gad|gets in |
|00001560| 64 61 74 61 0a 73 74 61 | 74 65 6d 65 6e 74 73 2e |data.sta|tements.|
|00001570| 20 20 20 20 54 68 65 20 | 20 72 6f 75 74 69 6e 65 | The | routine|
|00001580| 20 20 69 6e 69 74 69 61 | 6c 69 7a 65 73 20 20 74 | initia|lizes t|
|00001590| 68 65 20 20 67 61 64 67 | 65 74 73 20 20 74 6f 20 |he gadg|ets to |
|000015a0| 20 61 20 20 73 65 74 20 | 20 6f 66 0a 27 73 74 61 | a set | of.'sta|
|000015b0| 6e 64 61 72 64 27 20 76 | 61 6c 75 65 73 20 74 68 |ndard' v|alues th|
|000015c0| 61 74 20 73 68 6f 75 6c | 64 20 63 6f 76 65 72 20 |at shoul|d cover |
|000015d0| 6d 6f 73 74 20 63 61 73 | 65 73 20 61 6e 64 20 74 |most cas|es and t|
|000015e0| 68 65 6e 20 6c 69 6e 6b | 73 20 74 68 65 20 66 6f |hen link|s the fo|
|000015f0| 75 72 0a 70 61 72 74 73 | 20 6f 66 20 74 68 65 20 |ur.parts| of the |
|00001600| 00 00 00 08 00 00 03 96 | 00 00 00 25 00 00 01 e8 |........|...%....|
|00001610| 00 00 00 0c dc 6e bf aa | 47 61 64 67 65 74 42 6c |.....n..|GadgetBl|
|00001620| 6f 63 6b 20 74 6f 67 65 | 74 68 65 72 2e 0a 0a 20 |ock toge|ther... |
|00001630| 20 20 20 20 20 20 20 42 | 75 66 66 65 72 20 20 69 | B|uffer i|
|00001640| 73 20 20 61 20 70 6f 69 | 6e 74 65 72 20 74 6f 20 |s a poi|nter to |
|00001650| 61 20 75 6e 69 74 69 61 | 6c 69 7a 65 64 20 47 61 |a unitia|lized Ga|
|00001660| 64 67 65 74 42 6c 6f 63 | 6b 2c 20 77 68 69 63 68 |dgetBloc|k, which|
|00001670| 20 63 6f 6e 74 61 69 6e | 73 0a 74 68 65 20 20 6e | contain|s.the n|
|00001680| 65 63 65 73 73 61 72 79 | 20 20 47 61 64 67 65 74 |ecessary| Gadget|
|00001690| 2c 20 42 6f 72 64 65 72 | 2c 20 62 6f 72 64 65 72 |, Border|, border|
|000016a0| 20 70 61 69 72 73 20 61 | 6e 64 20 49 6e 74 75 69 | pairs a|nd Intui|
|000016b0| 74 54 65 78 74 20 73 74 | 72 75 63 74 75 72 65 73 |tText st|ructures|
|000016c0| 0a 6e 65 65 64 65 64 20 | 74 6f 20 72 65 6e 64 65 |.needed |to rende|
|000016d0| 72 20 61 20 62 6f 6f 6c | 65 61 6e 20 67 61 64 67 |r a bool|ean gadg|
|000016e0| 65 74 20 77 69 74 68 20 | 61 20 62 6f 72 64 65 72 |et with |a border|
|000016f0| 20 61 6e 64 20 73 6f 6d | 65 20 74 65 78 74 2e 0a | and som|e text..|
|00001700| 0a 20 20 20 20 20 20 20 | 20 53 74 72 69 6e 67 20 |. | String |
|00001710| 20 69 73 20 20 61 20 20 | 70 6f 69 6e 74 65 72 20 | is a |pointer |
|00001720| 20 74 6f 20 20 74 68 65 | 20 74 65 78 74 20 74 68 | to the| text th|
|00001730| 61 74 20 73 68 6f 75 6c | 64 20 61 70 70 65 61 72 |at shoul|d appear|
|00001740| 20 69 6e 73 69 64 65 20 | 74 68 65 0a 67 61 64 67 | inside |the.gadg|
|00001750| 65 74 2e 20 20 20 54 68 | 65 20 20 67 61 64 67 65 |et. Th|e gadge|
|00001760| 74 20 20 69 73 20 20 61 | 75 74 6f 6d 61 74 69 63 |t is a|utomatic|
|00001770| 61 6c 6c 79 20 20 73 69 | 7a 65 64 20 20 74 6f 20 |ally si|zed to |
|00001780| 20 6d 61 74 63 68 20 74 | 68 65 20 73 74 72 69 6e | match t|he strin|
|00001790| 67 73 0a 6c 65 6e 67 74 | 68 2e 0a 0a 20 20 20 20 |gs.lengt|h... |
|000017a0| 20 20 20 20 58 20 20 61 | 6e 64 20 20 59 20 61 72 | X a|nd Y ar|
|000017b0| 65 20 74 68 65 20 67 61 | 64 67 65 74 73 20 69 6e |e the ga|dgets in|
|000017c0| 69 74 69 61 6c 20 70 6f | 73 69 74 69 6f 6e 2c 20 |itial po|sition, |
|000017d0| 74 68 65 79 20 61 72 65 | 20 73 69 6d 70 6c 79 20 |they are| simply |
|000017e0| 63 6f 70 69 65 64 0a 69 | 6e 74 6f 20 4c 65 66 74 |copied.i|nto Left|
|000017f0| 45 64 67 65 20 61 6e 64 | 20 54 6f 70 45 64 67 65 |Edge and| TopEdge|
|00001800| 00 00 00 08 00 00 03 96 | 00 00 00 26 00 00 01 e8 |........|...&....|
|00001810| 00 00 00 0d 65 3a bc 11 | 20 69 6e 20 74 68 65 20 |....e:..| in the |
|00001820| 67 61 64 67 65 74 20 73 | 74 72 75 63 74 75 72 65 |gadget s|tructure|
|00001830| 2e 0a 0a 52 45 54 55 52 | 4e 53 0a 53 45 45 0a 42 |...RETUR|NS.SEE.B|
|00001840| 55 47 53 0a 45 58 41 4d | 50 4c 45 0a 0a 0a 3b 2d |UGS.EXAM|PLE...;-|
|00001850| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001860| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001870| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001880| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001890| 2d 2d 2d 0a 0a 4e 41 4d | 45 0a 20 20 20 20 20 20 |---..NAM|E. |
|000018a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000018b0| 20 20 4d 61 6b 65 53 74 | 72 69 6e 67 0a 0a 53 59 | MakeSt|ring..SY|
|000018c0| 4e 4f 50 53 49 53 0a 4d | 61 6b 65 53 74 72 69 6e |NOPSIS.M|akeStrin|
|000018d0| 67 28 42 75 66 66 65 72 | 2c 53 74 72 69 6e 67 42 |g(Buffer|,StringB|
|000018e0| 75 66 66 2c 55 6e 64 6f | 42 75 66 66 2c 4d 61 78 |uff,Undo|Buff,Max|
|000018f0| 57 69 64 74 68 42 69 74 | 73 2c 4d 61 78 4e 75 6d |WidthBit|s,MaxNum|
|00001900| 43 68 61 72 73 2c 20 58 | 2c 20 59 29 0a 20 20 20 |Chars, X|, Y). |
|00001910| 20 20 20 20 20 20 20 20 | 20 20 41 30 20 20 20 20 | | A0 |
|00001920| 20 20 41 31 20 20 20 20 | 20 20 20 20 20 20 41 32 | A1 | A2|
|00001930| 20 20 20 20 20 20 20 20 | 44 30 20 20 20 20 20 20 | |D0 |
|00001940| 20 20 20 20 44 31 20 20 | 20 20 20 20 44 32 20 20 | D1 | D2 |
|00001950| 44 33 0a 0a 73 74 72 75 | 63 74 20 42 75 66 66 65 |D3..stru|ct Buffe|
|00001960| 72 20 20 20 2a 53 74 72 | 69 6e 67 42 6c 6f 63 6b |r *Str|ingBlock|
|00001970| 3b 0a 63 68 61 72 20 20 | 20 20 20 20 20 20 20 20 |;.char | |
|00001980| 20 20 20 20 20 20 20 20 | 20 20 2a 53 74 72 69 6e | | *Strin|
|00001990| 67 42 75 66 66 3b 0a 63 | 68 61 72 20 20 20 20 20 |gBuff;.c|har |
|000019a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 2a | | *|
|000019b0| 55 6e 64 6f 42 75 66 66 | 3b 0a 6c 6f 6e 67 20 20 |UndoBuff|;.long |
|000019c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000019d0| 20 20 4d 61 78 57 69 64 | 74 68 42 69 74 73 2c 20 | MaxWid|thBits, |
|000019e0| 4d 61 78 4e 75 6d 43 68 | 61 72 73 2c 20 58 2c 20 |MaxNumCh|ars, X, |
|000019f0| 59 3b 0a 0a 44 45 53 43 | 52 49 50 54 49 4f 4e 0a |Y;..DESC|RIPTION.|
|00001a00| 00 00 00 08 00 00 03 96 | 00 00 00 27 00 00 01 e8 |........|...'....|
|00001a10| 00 00 00 0e 25 1e 3f f5 | 0a 20 20 20 20 20 20 20 |....%.?.|. |
|00001a20| 20 41 73 20 20 77 69 74 | 68 20 20 61 6c 6c 20 20 | As wit|h all |
|00001a30| 6f 66 20 20 74 68 65 20 | 20 4d 61 6b 65 47 61 64 |of the | MakeGad|
|00001a40| 67 65 74 20 20 66 75 6e | 63 74 69 6f 6e 73 2c 20 |get fun|ctions, |
|00001a50| 74 68 69 73 20 6f 6e 65 | 20 70 72 65 70 61 72 65 |this one| prepare|
|00001a60| 73 20 61 0a 62 75 66 66 | 65 72 20 20 74 6f 20 20 |s a.buff|er to |
|00001a70| 62 65 20 75 73 65 64 20 | 61 73 20 61 20 73 74 72 |be used |as a str|
|00001a80| 69 6e 67 20 67 61 64 67 | 65 74 2c 20 74 68 61 74 |ing gadg|et, that|
|00001a90| 20 6d 61 79 20 62 65 20 | 75 73 65 64 20 72 65 2d | may be |used re-|
|00001aa0| 65 6e 74 72 61 6e 74 6c | 79 2e 0a 54 68 65 20 20 |entrantl|y..The |
|00001ab0| 62 75 66 66 65 72 20 6e | 65 65 64 20 6e 6f 74 20 |buffer n|eed not |
|00001ac0| 62 65 20 63 6c 65 61 72 | 65 64 20 66 69 72 73 74 |be clear|ed first|
|00001ad0| 2e 20 20 54 68 69 73 20 | 6d 65 61 6e 73 20 74 68 |. This |means th|
|00001ae0| 61 74 20 79 6f 75 20 6d | 61 79 20 63 72 65 61 74 |at you m|ay creat|
|00001af0| 65 0a 61 20 74 65 6d 70 | 6f 72 61 72 79 20 67 61 |e.a temp|orary ga|
|00001b00| 64 67 65 74 20 6f 6e 20 | 74 68 65 20 73 74 61 63 |dget on |the stac|
|00001b10| 6b 2e 0a 0a 20 20 20 20 | 20 20 20 20 54 68 65 20 |k... | The |
|00001b20| 20 53 74 72 69 6e 67 42 | 75 66 66 20 20 69 73 20 | StringB|uff is |
|00001b30| 20 77 68 65 72 65 20 74 | 68 65 20 62 6f 64 79 20 | where t|he body |
|00001b40| 6f 66 20 74 65 78 74 20 | 69 6e 73 69 64 65 20 74 |of text |inside t|
|00001b50| 68 65 20 67 61 64 67 65 | 74 20 77 69 6c 6c 0a 72 |he gadge|t will.r|
|00001b60| 65 73 69 64 65 2e 0a 0a | 20 20 20 20 20 20 20 20 |eside...| |
|00001b70| 57 68 65 6e 20 20 20 74 | 68 65 20 20 20 67 61 64 |When t|he gad|
|00001b80| 67 65 74 20 20 69 73 20 | 20 61 63 74 69 76 61 74 |get is | activat|
|00001b90| 65 64 2c 20 20 74 68 65 | 20 20 74 65 78 74 20 20 |ed, the| text |
|00001ba0| 69 6e 20 20 53 74 72 69 | 6e 67 42 75 66 66 20 20 |in Stri|ngBuff |
|00001bb0| 69 73 0a 61 75 74 6f 6d | 61 74 69 63 61 6c 6c 79 |is.autom|atically|
|00001bc0| 20 63 6f 70 69 65 64 20 | 28 62 79 20 69 6e 74 75 | copied |(by intu|
|00001bd0| 69 74 69 6f 6e 29 20 69 | 6e 74 6f 20 55 6e 64 6f |ition) i|nto Undo|
|00001be0| 42 75 66 66 2e 20 20 54 | 68 69 73 20 61 6c 6c 6f |Buff. T|his allo|
|00001bf0| 77 73 20 79 6f 75 20 74 | 6f 0a 74 79 70 65 20 20 |ws you t|o.type |
|00001c00| 00 00 00 08 00 00 03 96 | 00 00 00 28 00 00 01 e8 |........|...(....|
|00001c10| 00 00 00 0f 25 53 ce c2 | 41 6d 69 67 61 2d 51 20 |....%S..|Amiga-Q |
|00001c20| 20 61 6e 64 20 67 65 74 | 20 74 68 65 20 6f 6c 64 | and get| the old|
|00001c30| 20 73 74 72 69 6e 67 20 | 62 61 63 6b 2e 20 20 54 | string |back. T|
|00001c40| 68 69 73 20 66 69 65 6c | 64 20 6d 61 79 20 62 65 |his fiel|d may be|
|00001c50| 20 6e 75 6c 6c 20 69 66 | 0a 79 6f 75 20 77 69 73 | null if|.you wis|
|00001c60| 68 20 74 6f 20 68 61 76 | 65 20 6e 6f 20 75 6e 64 |h to hav|e no und|
|00001c70| 6f 2e 0a 0a 20 20 20 20 | 20 20 20 20 4d 61 78 57 |o... | MaxW|
|00001c80| 69 64 74 68 42 69 74 73 | 20 69 73 20 74 68 65 20 |idthBits| is the |
|00001c90| 77 69 64 74 68 20 6f 66 | 20 74 68 65 20 66 72 61 |width of| the fra|
|00001ca0| 6d 65 20 61 72 6f 75 6e | 64 20 74 68 65 20 67 61 |me aroun|d the ga|
|00001cb0| 64 67 65 74 2e 0a 0a 20 | 20 20 20 20 20 20 20 4d |dget... | M|
|00001cc0| 61 78 4e 75 6d 43 68 61 | 72 73 20 20 69 73 20 20 |axNumCha|rs is |
|00001cd0| 74 68 65 20 6d 61 78 69 | 6d 75 6d 20 6e 75 6d 62 |the maxi|mum numb|
|00001ce0| 65 72 20 6f 66 20 63 68 | 61 72 61 63 74 65 72 73 |er of ch|aracters|
|00001cf0| 20 74 68 61 74 20 79 6f | 75 20 77 69 6c 6c 20 62 | that yo|u will b|
|00001d00| 65 0a 61 62 6c 65 20 20 | 74 6f 20 20 74 79 70 65 |e.able |to type|
|00001d10| 20 20 69 6e 74 6f 20 74 | 68 65 20 67 61 64 67 65 | into t|he gadge|
|00001d20| 74 2c 20 69 6e 63 6c 75 | 64 69 6e 67 20 74 68 65 |t, inclu|ding the|
|00001d30| 20 74 65 72 6d 69 6e 61 | 74 69 6e 67 20 7a 65 72 | termina|ting zer|
|00001d40| 6f 20 6f 6e 20 74 68 65 | 0a 73 74 72 69 6e 67 2e |o on the|.string.|
|00001d50| 20 20 4d 41 4b 45 20 53 | 55 52 45 20 74 68 61 74 | MAKE S|URE that|
|00001d60| 20 74 68 69 73 20 6e 75 | 6d 62 65 72 20 69 73 20 | this nu|mber is |
|00001d70| 6e 6f 20 67 72 65 61 74 | 65 72 20 74 68 61 6e 20 |no great|er than |
|00001d80| 79 6f 75 72 20 53 74 72 | 69 6e 67 42 75 66 66 0a |your Str|ingBuff.|
|00001d90| 73 69 7a 65 2c 20 6f 72 | 20 65 6c 73 65 20 79 6f |size, or| else yo|
|00001da0| 75 27 72 65 20 67 6f 69 | 6e 67 20 74 6f 20 62 65 |u're goi|ng to be|
|00001db0| 20 74 79 70 69 6e 67 20 | 6f 76 65 72 20 6d 65 6d | typing |over mem|
|00001dc0| 6f 72 79 20 74 68 61 74 | 20 69 73 6e 27 74 20 79 |ory that| isn't y|
|00001dd0| 6f 75 72 73 2e 0a 0a 20 | 20 20 20 20 20 20 20 58 |ours... | X|
|00001de0| 2c 59 20 20 61 72 65 20 | 74 68 65 20 70 6f 73 69 |,Y are |the posi|
|00001df0| 74 69 6f 6e 20 6f 66 20 | 74 68 65 20 75 70 70 65 |tion of |the uppe|
|00001e00| 00 00 00 08 00 00 03 96 | 00 00 00 29 00 00 01 e8 |........|...)....|
|00001e10| 00 00 00 10 6a dd 0c d9 | 72 20 6c 65 66 74 20 68 |....j...|r left h|
|00001e20| 61 6e 64 20 63 6f 72 6e | 65 72 20 6f 66 20 74 68 |and corn|er of th|
|00001e30| 65 20 67 61 64 67 65 74 | 2e 0a 54 68 65 20 62 6f |e gadget|..The bo|
|00001e40| 72 64 65 72 20 69 73 20 | 61 63 74 75 61 6c 6c 79 |rder is |actually|
|00001e50| 20 32 20 70 69 78 65 6c | 73 20 61 62 6f 76 65 20 | 2 pixel|s above |
|00001e60| 61 6e 64 20 74 6f 20 74 | 68 65 20 6c 65 66 74 20 |and to t|he left |
|00001e70| 6f 66 20 74 68 69 73 20 | 63 6f 72 6e 65 72 2e 0a |of this |corner..|
|00001e80| 0a 52 45 54 55 52 4e 53 | 0a 20 20 20 20 20 20 20 |.RETURNS|. |
|00001e90| 20 4e 6f 74 68 69 6e 67 | 0a 53 45 45 0a 0a 20 20 | Nothing|.SEE.. |
|00001ea0| 20 20 20 20 20 20 4d 61 | 6b 65 47 61 64 67 65 74 | Ma|keGadget|
|00001eb0| 2c 4d 61 6b 65 50 72 6f | 70 2c 4d 61 6b 65 53 63 |,MakePro|p,MakeSc|
|00001ec0| 72 6f 6c 6c 62 61 72 2c | 4c 69 6e 6b 47 61 64 67 |rollbar,|LinkGadg|
|00001ed0| 65 74 2c 4c 69 6e 6b 50 | 72 6f 70 2c 4c 69 6e 6b |et,LinkP|rop,Link|
|00001ee0| 53 74 72 69 6e 67 0a 0a | 0a 3b 2d 2d 2d 2d 2d 2d |String..|.;------|
|00001ef0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001f00| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001f10| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001f20| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 0a 0a |--------|------..|
|00001f30| 4e 41 4d 45 0a 20 20 20 | 20 20 20 20 20 20 20 20 |NAME. | |
|00001f40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 4d 61 6b | | Mak|
|00001f50| 65 50 72 6f 70 0a 53 59 | 4e 4f 50 53 49 53 0a 0a |eProp.SY|NOPSIS..|
|00001f60| 4d 61 6b 65 50 72 6f 70 | 28 42 75 66 66 65 72 2c |MakeProp|(Buffer,|
|00001f70| 57 69 64 74 68 2c 48 65 | 69 67 68 74 2c 46 6c 61 |Width,He|ight,Fla|
|00001f80| 67 73 29 0a 20 20 20 20 | 20 20 20 20 20 41 30 20 |gs). | A0 |
|00001f90| 20 20 20 20 20 20 44 30 | 20 20 20 44 31 20 20 20 | D0| D1 |
|00001fa0| 20 44 32 0a 0a 73 74 72 | 75 63 74 20 20 42 75 66 | D2..str|uct Buf|
|00001fb0| 66 65 72 20 20 2a 50 72 | 6f 70 42 6c 6f 63 6b 3b |fer *Pr|opBlock;|
|00001fc0| 0a 6c 6f 6e 67 20 20 20 | 20 20 20 20 20 20 20 20 |.long | |
|00001fd0| 20 20 20 20 20 20 20 20 | 20 57 69 64 74 68 2c 20 | | Width, |
|00001fe0| 48 65 69 67 68 74 2c 20 | 46 6c 61 67 73 3b 0a 0a |Height, |Flags;..|
|00001ff0| 44 45 53 43 52 49 50 54 | 49 4f 4e 0a 0a 20 20 20 |DESCRIPT|ION.. |
|00002000| 00 00 00 08 00 00 03 96 | 00 00 00 2a 00 00 01 e8 |........|...*....|
|00002010| 00 00 00 11 30 70 ac c9 | 20 20 20 20 20 54 68 69 |....0p..| Thi|
|00002020| 73 20 20 72 6f 75 74 69 | 6e 65 20 20 70 72 65 70 |s routi|ne prep|
|00002030| 61 72 65 73 20 61 6e 20 | 75 6e 2d 69 6e 69 74 69 |ares an |un-initi|
|00002040| 61 6c 69 7a 65 64 20 62 | 75 66 66 65 72 20 66 6f |alized b|uffer fo|
|00002050| 72 20 75 73 65 20 61 73 | 20 61 20 70 72 6f 70 0a |r use as| a prop.|
|00002060| 67 61 64 67 65 74 2e 0a | 0a 20 20 20 20 20 20 20 |gadget..|. |
|00002070| 20 42 75 66 66 65 72 2c | 20 20 6f 6e 20 20 72 65 | Buffer,| on re|
|00002080| 74 75 72 6e 2c 20 20 77 | 69 6c 6c 20 20 63 6f 6e |turn, w|ill con|
|00002090| 74 61 69 6e 20 20 74 68 | 65 20 20 67 61 64 67 65 |tain th|e gadge|
|000020a0| 74 2c 20 20 61 6c 6f 6e | 67 20 20 77 69 74 68 20 |t, alon|g with |
|000020b0| 74 68 65 0a 6e 65 63 65 | 73 73 61 72 79 20 50 72 |the.nece|ssary Pr|
|000020c0| 6f 70 49 6e 66 6f 20 61 | 6e 64 20 49 6d 61 67 65 |opInfo a|nd Image|
|000020d0| 20 73 74 72 75 63 74 75 | 72 65 73 2c 20 61 6c 6c | structu|res, all|
|000020e0| 20 6c 69 6e 6b 65 64 20 | 74 6f 67 65 74 68 65 72 | linked |together|
|000020f0| 2e 0a 0a 20 20 20 20 20 | 20 20 20 57 69 64 74 68 |... | Width|
|00002100| 20 69 73 20 74 68 65 20 | 77 69 74 68 20 6f 66 20 | is the |with of |
|00002110| 74 68 65 20 63 6f 6e 74 | 61 69 6e 65 72 2c 20 69 |the cont|ainer, i|
|00002120| 6e 20 70 69 78 65 6c 73 | 2e 0a 20 20 20 20 20 20 |n pixels|.. |
|00002130| 20 20 48 65 69 67 68 74 | 20 69 73 20 74 68 65 20 | Height| is the |
|00002140| 68 65 69 67 68 74 20 6f | 66 20 74 68 65 20 63 6f |height o|f the co|
|00002150| 6e 74 61 69 6e 65 72 20 | 69 6e 20 70 69 78 65 6c |ntainer |in pixel|
|00002160| 73 2e 0a 0a 20 20 20 20 | 20 20 20 20 54 68 65 20 |s... | The |
|00002170| 20 46 6c 61 67 73 20 20 | 70 61 72 61 6d 65 74 65 | Flags |paramete|
|00002180| 72 20 20 69 73 20 20 77 | 68 65 72 65 20 79 6f 75 |r is w|here you|
|00002190| 20 64 65 63 69 64 65 20 | 69 66 20 79 6f 75 20 77 | decide |if you w|
|000021a0| 61 6e 74 20 46 52 45 45 | 48 4f 52 49 5a 2c 0a 46 |ant FREE|HORIZ,.F|
|000021b0| 52 45 45 56 45 52 54 2c | 20 6f 72 20 62 6f 74 68 |REEVERT,| or both|
|000021c0| 2e 20 20 49 74 20 69 73 | 20 73 69 6d 70 6c 79 20 |. It is| simply |
|000021d0| 63 6f 70 69 65 64 20 69 | 6e 74 6f 20 74 68 65 20 |copied i|nto the |
|000021e0| 67 61 64 67 65 74 20 66 | 6c 61 67 73 20 66 69 65 |gadget f|lags fie|
|000021f0| 6c 64 2e 0a 0a 0a 52 45 | 54 55 52 4e 53 0a 0a 20 |ld....RE|TURNS.. |
|00002200| 00 00 00 08 00 00 03 96 | 00 00 00 2b 00 00 01 e8 |........|...+....|
|00002210| 00 00 00 12 4d 50 54 18 | 20 20 20 20 20 20 20 4e |....MPT.| N|
|00002220| 6f 74 68 69 6e 67 0a 0a | 0a 3b 2d 2d 2d 2d 2d 2d |othing..|.;------|
|00002230| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002240| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002250| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002260| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 0a 0a |--------|------..|
|00002270| 4e 41 4d 45 0a 20 20 20 | 20 20 20 20 20 20 20 20 |NAME. | |
|00002280| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 44 72 61 | | Dra|
|00002290| 77 42 6f 78 0a 53 59 4e | 4f 50 53 49 53 0a 0a 44 |wBox.SYN|OPSIS..D|
|000022a0| 72 61 77 42 6f 78 28 72 | 70 2c 4d 69 6e 58 2c 4d |rawBox(r|p,MinX,M|
|000022b0| 69 6e 59 2c 4d 61 78 58 | 2c 4d 61 78 59 29 0a 20 |inY,MaxX|,MaxY). |
|000022c0| 20 20 20 20 20 20 20 41 | 31 20 20 44 30 20 20 20 | A|1 D0 |
|000022d0| 44 31 20 20 20 44 32 20 | 20 20 44 33 0a 0a 73 74 |D1 D2 | D3..st|
|000022e0| 72 75 63 74 20 20 52 61 | 73 74 50 6f 72 74 20 20 |ruct Ra|stPort |
|000022f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 2a 72 | | *r|
|00002300| 70 3b 0a 6c 6f 6e 67 20 | 20 20 20 4d 69 6e 58 2c |p;.long | MinX,|
|00002310| 4d 69 6e 59 2c 4d 61 78 | 58 2c 4d 61 78 59 3b 0a |MinY,Max|X,MaxY;.|
|00002320| 0a 0a 44 45 53 43 52 49 | 50 54 49 4f 4e 0a 0a 20 |..DESCRI|PTION.. |
|00002330| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 54 | | T|
|00002340| 68 69 73 20 20 72 6f 75 | 74 69 6e 65 20 20 61 6c |his rou|tine al|
|00002350| 6c 6f 77 73 20 79 6f 75 | 20 74 6f 20 64 72 61 77 |lows you| to draw|
|00002360| 20 61 20 73 69 6d 70 6c | 65 20 62 6f 78 20 69 6e | a simpl|e box in|
|00002370| 20 6f 6e 65 20 63 6f 6d | 6d 61 6e 64 2e 0a 49 74 | one com|mand..It|
|00002380| 20 20 64 72 61 77 73 20 | 20 74 68 65 20 20 62 6f | draws | the bo|
|00002390| 78 20 20 69 6e 20 41 50 | 65 6e 20 63 6f 6c 6f 72 |x in AP|en color|
|000023a0| 2c 20 69 6e 20 74 68 65 | 20 63 75 72 72 65 6e 74 |, in the| current|
|000023b0| 20 64 72 61 77 20 6d 6f | 64 65 2c 20 77 69 74 68 | draw mo|de, with|
|000023c0| 20 74 68 65 0a 63 75 72 | 72 65 6e 74 20 6c 69 6e | the.cur|rent lin|
|000023d0| 65 20 70 61 74 74 65 72 | 6e 2e 0a 0a 20 20 20 20 |e patter|n... |
|000023e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 28 4d 69 6e | | (Min|
|000023f0| 58 2c 4d 69 6e 59 29 20 | 20 61 72 65 20 20 74 68 |X,MinY) | are th|
|00002400| 00 00 00 08 00 00 03 96 | 00 00 00 2c 00 00 01 e8 |........|...,....|
|00002410| 00 00 00 13 29 ea 39 1a | 65 20 20 75 70 70 65 72 |....).9.|e upper|
|00002420| 20 20 6c 65 66 74 20 20 | 63 6f 72 6e 65 72 20 20 | left |corner |
|00002430| 6f 66 20 20 74 68 65 20 | 20 62 6f 78 2c 20 20 61 |of the | box, a|
|00002440| 6e 64 0a 28 4d 61 78 58 | 2c 4d 61 78 59 29 20 61 |nd.(MaxX|,MaxY) a|
|00002450| 72 65 20 74 68 65 20 6c | 6f 77 65 72 20 72 69 67 |re the l|ower rig|
|00002460| 68 74 2e 0a 0a 20 20 20 | 20 20 20 20 20 20 20 20 |ht... | |
|00002470| 20 20 20 20 20 54 68 65 | 20 70 65 6e 20 69 73 20 | The| pen is |
|00002480| 6c 65 66 74 20 61 74 20 | 74 68 65 20 75 70 70 65 |left at |the uppe|
|00002490| 72 20 6c 65 66 74 20 63 | 6f 72 6e 65 72 20 28 4d |r left c|orner (M|
|000024a0| 69 6e 58 2c 4d 69 6e 59 | 29 2e 0a 0a 3b 2d 2d 2d |inX,MinY|)...;---|
|000024b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000024c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000024d0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000024e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000024f0| 2d 0a 0a 4e 41 4d 45 0a | 20 20 20 20 20 20 20 20 |-..NAME.| |
|00002500| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002510| 4d 61 6b 65 42 75 74 74 | 6f 6e 0a 53 59 4e 4f 50 |MakeButt|on.SYNOP|
|00002520| 53 49 53 0a 0a 4d 61 6b | 65 42 75 74 74 6f 6e 28 |SIS..Mak|eButton(|
|00002530| 42 75 66 66 65 72 2c 49 | 6d 61 67 65 2c 49 6d 61 |Buffer,I|mage,Ima|
|00002540| 67 65 32 2c 57 69 64 74 | 68 2c 48 65 69 67 68 74 |ge2,Widt|h,Height|
|00002550| 2c 44 65 70 74 68 29 0a | 20 20 20 20 20 20 20 20 |,Depth).| |
|00002560| 20 20 20 20 20 41 30 20 | 20 20 20 20 41 31 20 20 | A0 | A1 |
|00002570| 20 20 41 32 20 20 20 20 | 20 44 30 20 20 20 20 44 | A2 | D0 D|
|00002580| 31 20 20 20 20 44 32 0a | 0a 0a 73 74 72 75 63 74 |1 D2.|..struct|
|00002590| 20 20 54 77 6f 49 6d 61 | 67 65 47 61 64 67 65 74 | TwoIma|geGadget|
|000025a0| 20 20 2a 42 75 66 66 65 | 72 3b 0a 63 68 61 72 20 | *Buffe|r;.char |
|000025b0| 20 20 20 2a 49 6d 61 67 | 65 3b 20 20 20 20 20 20 | *Imag|e; |
|000025c0| 20 20 20 2f 2a 20 50 6f | 69 6e 74 65 72 20 74 6f | /* Po|inter to|
|000025d0| 20 74 68 65 20 61 63 74 | 75 61 6c 20 62 69 74 70 | the act|ual bitp|
|000025e0| 6c 61 6e 65 20 64 61 74 | 61 20 2a 2f 0a 63 68 61 |lane dat|a */.cha|
|000025f0| 72 20 20 20 20 2a 49 6d | 61 67 65 32 3b 20 20 20 |r *Im|age2; |
|00002600| 00 00 00 08 00 00 03 96 | 00 00 00 2d 00 00 01 e8 |........|...-....|
|00002610| 00 00 00 14 98 2f 36 40 | 20 20 20 20 20 2f 2a 20 |...../6@| /* |
|00002620| 50 6f 69 6e 74 65 72 20 | 74 6f 20 74 68 65 20 73 |Pointer |to the s|
|00002630| 65 63 6f 6e 64 20 69 6d | 61 67 65 2e 20 2a 2f 0a |econd im|age. */.|
|00002640| 6c 6f 6e 67 20 20 20 20 | 57 69 64 74 68 2c 48 65 |long |Width,He|
|00002650| 69 67 68 74 2c 44 65 70 | 74 68 3b 0a 0a 0a 0a 0a |ight,Dep|th;.....|
|00002660| 44 45 53 43 52 49 50 54 | 49 4f 4e 0a 0a 20 20 20 |DESCRIPT|ION.. |
|00002670| 20 20 20 20 20 54 68 65 | 20 20 70 75 72 70 6f 73 | The| purpos|
|00002680| 65 20 20 6f 66 20 20 74 | 68 69 73 20 20 72 6f 75 |e of t|his rou|
|00002690| 74 69 6e 65 20 20 69 73 | 20 6f 6e 65 20 73 69 6d |tine is| one sim|
|000026a0| 69 6c 61 72 20 74 6f 20 | 4d 61 6b 65 47 61 64 67 |ilar to |MakeGadg|
|000026b0| 65 74 2c 20 62 75 74 0a | 69 6e 73 74 65 61 64 20 |et, but.|instead |
|000026c0| 6f 66 20 75 73 69 6e 67 | 20 74 65 78 74 20 66 6f |of using| text fo|
|000026d0| 72 20 74 68 65 20 62 75 | 74 74 6f 6e 2c 20 69 74 |r the bu|tton, it|
|000026e0| 20 75 73 65 73 20 61 20 | 67 72 61 70 68 69 63 2e | uses a |graphic.|
|000026f0| 20 20 59 6f 75 20 73 75 | 70 70 6c 79 20 61 0a 62 | You su|pply a.b|
|00002700| 69 74 6d 61 70 2c 20 61 | 6e 64 20 4d 61 6b 65 42 |itmap, a|nd MakeB|
|00002710| 75 74 74 6f 6e 20 77 69 | 6c 6c 20 75 73 65 20 69 |utton wi|ll use i|
|00002720| 74 20 69 6e 20 69 74 27 | 73 20 72 65 6e 64 65 72 |t in it'|s render|
|00002730| 69 6e 67 2e 0a 0a 20 20 | 20 20 20 20 20 20 59 6f |ing... | Yo|
|00002740| 75 20 20 6d 61 79 20 20 | 68 61 76 65 20 20 65 69 |u may |have ei|
|00002750| 74 68 65 72 20 20 6f 6e | 65 20 20 6f 72 20 74 77 |ther on|e or tw|
|00002760| 6f 20 69 6d 61 67 65 73 | 2c 20 74 68 65 20 72 6f |o images|, the ro|
|00002770| 75 74 69 6e 65 20 68 61 | 6e 64 6c 65 73 20 69 74 |utine ha|ndles it|
|00002780| 0a 72 6f 75 74 69 6e 65 | 6c 79 2e 20 20 20 49 66 |.routine|ly. If|
|00002790| 20 79 6f 75 20 73 75 70 | 70 6c 79 20 6f 6e 65 20 | you sup|ply one |
|000027a0| 69 6d 61 67 65 2c 20 74 | 68 65 6e 20 74 68 69 73 |image, t|hen this|
|000027b0| 20 73 65 74 73 20 47 41 | 44 47 48 43 4f 4d 50 2c | sets GA|DGHCOMP,|
|000027c0| 20 61 6e 64 20 69 66 0a | 79 6f 75 20 20 68 61 76 | and if.|you hav|
|000027d0| 65 20 74 77 6f 20 69 6d | 61 67 65 73 2c 20 69 74 |e two im|ages, it|
|000027e0| 20 73 65 74 73 20 47 41 | 44 47 48 49 4d 41 47 45 | sets GA|DGHIMAGE|
|000027f0| 2e 20 20 52 45 4c 56 45 | 52 49 46 59 20 69 73 20 |. RELVE|RIFY is |
|00002800| 00 00 00 08 00 00 03 96 | 00 00 00 2e 00 00 01 e8 |........|........|
|00002810| 00 00 00 15 38 61 53 b2 | 61 6c 77 61 79 73 20 73 |....8aS.|always s|
|00002820| 65 74 2c 20 73 6f 0a 61 | 73 20 20 6c 6f 6e 67 20 |et, so.a|s long |
|00002830| 20 61 73 20 20 79 6f 75 | 20 20 74 68 65 20 20 75 | as you| the u|
|00002840| 73 65 72 20 20 69 73 20 | 20 70 72 65 73 73 69 6e |ser is | pressin|
|00002850| 67 20 20 74 68 61 74 20 | 67 61 64 67 65 74 2c 20 |g that |gadget, |
|00002860| 74 68 65 20 61 6c 74 65 | 72 6e 61 74 65 0a 68 69 |the alte|rnate.hi|
|00002870| 67 68 6c 69 67 68 74 20 | 69 73 20 73 68 6f 77 6e |ghlight |is shown|
|00002880| 2e 0a 0a 20 20 20 20 20 | 20 20 20 42 75 66 66 65 |... | Buffe|
|00002890| 72 20 68 61 73 20 72 6f | 6f 6d 20 66 6f 72 20 74 |r has ro|om for t|
|000028a0| 77 6f 20 69 6d 61 67 65 | 73 2e 0a 0a 20 20 20 20 |wo image|s... |
|000028b0| 20 20 20 20 49 6d 61 67 | 65 20 20 69 73 20 20 61 | Imag|e is a|
|000028c0| 20 70 6f 69 6e 74 65 72 | 20 74 6f 20 74 68 65 20 | pointer| to the |
|000028d0| 61 63 74 75 61 6c 20 69 | 6d 61 67 65 20 64 61 74 |actual i|mage dat|
|000028e0| 61 2c 20 69 6e 20 43 48 | 49 50 20 6d 65 6d 6f 72 |a, in CH|IP memor|
|000028f0| 79 2c 20 66 6f 72 0a 74 | 68 69 73 20 67 61 64 67 |y, for.t|his gadg|
|00002900| 65 74 2e 0a 20 20 20 20 | 20 20 20 20 49 6d 61 67 |et.. | Imag|
|00002910| 65 32 20 69 73 20 61 20 | 70 6f 69 6e 74 65 72 20 |e2 is a |pointer |
|00002920| 74 6f 20 74 68 65 20 61 | 6c 74 65 72 6e 61 74 65 |to the a|lternate|
|00002930| 20 69 6d 61 67 65 20 64 | 61 74 61 2e 0a 0a 20 20 | image d|ata... |
|00002940| 20 20 20 20 20 20 57 69 | 64 74 68 20 61 6e 64 20 | Wi|dth and |
|00002950| 48 65 69 67 68 74 20 6d | 61 6b 65 20 75 70 20 74 |Height m|ake up t|
|00002960| 68 65 20 73 69 7a 65 20 | 6f 66 20 79 6f 75 72 20 |he size |of your |
|00002970| 69 6d 61 67 65 2e 0a 0a | 20 20 20 20 20 20 20 20 |image...| |
|00002980| 44 65 70 74 68 20 69 73 | 20 68 6f 77 20 6d 61 6e |Depth is| how man|
|00002990| 79 20 62 69 74 70 6c 61 | 6e 65 73 20 6f 66 20 64 |y bitpla|nes of d|
|000029a0| 61 74 61 20 79 6f 75 27 | 76 65 20 73 75 70 70 6c |ata you'|ve suppl|
|000029b0| 69 65 64 2e 0a 0a 42 55 | 47 53 0a 20 20 20 20 20 |ied...BU|GS. |
|000029c0| 20 20 20 49 74 27 73 20 | 20 6e 6f 74 20 20 72 65 | It's | not re|
|000029d0| 61 6c 6c 79 20 20 61 20 | 62 75 67 2c 20 62 75 74 |ally a |bug, but|
|000029e0| 20 69 66 20 79 6f 75 72 | 20 69 6d 61 67 65 73 20 | if your| images |
|000029f0| 61 72 65 6e 27 74 20 74 | 68 65 20 73 61 6d 65 20 |aren't t|he same |
|00002a00| 00 00 00 08 00 00 03 96 | 00 00 00 2f 00 00 01 e8 |........|.../....|
|00002a10| 00 00 00 16 ae 68 1b 0a | 73 69 7a 65 2c 0a 74 68 |.....h..|size,.th|
|00002a20| 65 6e 20 6f 6e 65 20 77 | 6f 6e 27 74 20 65 72 61 |en one w|on't era|
|00002a30| 73 65 20 74 68 65 20 6f | 74 68 65 72 20 77 68 65 |se the o|ther whe|
|00002a40| 6e 20 69 74 20 69 73 20 | 64 72 61 77 6e 2c 20 73 |n it is |drawn, s|
|00002a50| 6f 20 79 6f 75 20 6d 61 | 79 20 62 65 20 73 68 6f |o you ma|y be sho|
|00002a60| 77 69 6e 67 0a 61 6e 20 | 69 6d 61 67 65 20 77 69 |wing.an |image wi|
|00002a70| 74 68 20 74 72 61 63 65 | 73 20 6f 66 20 74 68 65 |th trace|s of the|
|00002a80| 20 6f 74 68 65 72 20 6f | 6e 65 20 6c 65 66 74 20 | other o|ne left |
|00002a90| 74 68 65 72 65 2e 0a 0a | 3b 2d 2d 2d 2d 2d 2d 2d |there...|;-------|
|00002aa0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002ab0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002ac0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002ad0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 0a 0a 4e |--------|-----..N|
|00002ae0| 41 4d 45 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |AME. | |
|00002af0| 20 20 20 20 20 20 20 20 | 20 20 20 20 4d 61 6b 65 | | Make|
|00002b00| 53 63 72 6f 6c 6c 42 61 | 72 0a 53 59 4e 4f 50 53 |ScrollBa|r.SYNOPS|
|00002b10| 49 53 0a 0a 4d 61 6b 65 | 53 63 72 6f 6c 6c 42 61 |IS..Make|ScrollBa|
|00002b20| 72 28 42 75 66 66 65 72 | 2c 46 6c 61 67 73 2c 53 |r(Buffer|,Flags,S|
|00002b30| 69 7a 65 2c 58 2c 59 29 | 0a 20 20 20 20 20 20 20 |ize,X,Y)|. |
|00002b40| 20 20 20 20 20 20 20 20 | 20 41 30 20 20 20 20 44 | | A0 D|
|00002b50| 30 20 20 20 20 44 31 20 | 44 32 20 44 33 0a 0a 73 |0 D1 |D2 D3..s|
|00002b60| 74 72 75 63 74 20 53 63 | 72 6f 6c 6c 42 6c 6f 63 |truct Sc|rollBloc|
|00002b70| 6b 20 2a 42 75 66 66 65 | 72 3b 0a 6c 6f 6e 67 20 |k *Buffe|r;.long |
|00002b80| 20 20 20 46 6c 61 67 73 | 2c 53 69 7a 65 2c 58 2c | Flags|,Size,X,|
|00002b90| 59 3b 0a 0a 0a 44 45 53 | 43 52 49 50 54 49 4f 4e |Y;...DES|CRIPTION|
|00002ba0| 0a 0a 20 20 20 20 20 20 | 20 20 54 68 69 73 20 69 |.. | This i|
|00002bb0| 73 20 61 20 73 70 65 63 | 69 61 6c 20 72 6f 75 74 |s a spec|ial rout|
|00002bc0| 69 6e 65 20 74 68 61 74 | 20 63 72 65 61 74 65 73 |ine that| creates|
|00002bd0| 20 61 20 73 63 72 6f 6c | 6c 62 61 72 20 28 77 68 | a scrol|lbar (wh|
|00002be0| 69 63 68 20 63 6f 6e 73 | 69 73 74 73 0a 6f 66 20 |ich cons|ists.of |
|00002bf0| 20 61 20 70 72 6f 70 20 | 67 61 64 67 65 74 20 61 | a prop |gadget a|
|00002c00| 00 00 00 08 00 00 03 96 | 00 00 00 30 00 00 01 e8 |........|...0....|
|00002c10| 00 00 00 17 21 29 cb ea | 6e 64 20 74 77 6f 20 61 |....!)..|nd two a|
|00002c20| 72 72 6f 77 73 29 20 61 | 6e 64 20 79 6f 75 20 68 |rrows) a|nd you h|
|00002c30| 61 6e 64 6c 65 20 69 74 | 20 6c 69 6b 65 20 69 74 |andle it| like it|
|00002c40| 27 73 20 61 20 73 69 6e | 67 6c 65 0a 67 61 64 67 |'s a sin|gle.gadg|
|00002c50| 65 74 2e 20 20 20 59 6f | 75 20 20 6d 61 79 20 20 |et. Yo|u may |
|00002c60| 68 61 76 65 20 20 65 69 | 74 68 65 72 20 61 20 68 |have ei|ther a h|
|00002c70| 6f 72 69 7a 6f 6e 74 61 | 6c 20 73 63 72 6f 6c 6c |orizonta|l scroll|
|00002c80| 62 61 72 2c 20 6f 72 20 | 61 20 76 65 72 74 69 63 |bar, or |a vertic|
|00002c90| 61 6c 0a 73 63 72 6f 6c | 6c 62 61 72 2e 20 20 20 |al.scrol|lbar. |
|00002ca0| 54 68 65 73 65 20 73 63 | 72 6f 6c 6c 62 61 72 73 |These sc|rollbars|
|00002cb0| 20 61 72 65 20 76 65 72 | 79 20 6d 75 63 68 20 6c | are ver|y much l|
|00002cc0| 69 6b 65 20 74 68 65 20 | 6f 6e 65 73 20 69 6e 20 |ike the |ones in |
|00002cd0| 77 6f 72 6b 62 65 6e 63 | 68 0a 77 69 6e 64 6f 77 |workbenc|h.window|
|00002ce0| 20 20 62 6f 72 64 65 72 | 73 2e 20 20 20 54 68 65 | border|s. The|
|00002cf0| 73 65 20 20 75 73 65 20 | 73 6c 69 67 68 74 6c 79 |se use |slightly|
|00002d00| 20 64 69 66 66 65 72 65 | 6e 74 20 69 6d 61 67 65 | differe|nt image|
|00002d10| 73 20 6f 6e 20 74 68 65 | 20 61 72 72 6f 77 73 2c |s on the| arrows,|
|00002d20| 0a 68 6f 77 65 76 65 72 | 2e 0a 0a 20 20 20 20 20 |.however|... |
|00002d30| 20 20 20 54 68 65 20 20 | 77 61 79 20 20 79 6f 75 | The |way you|
|00002d40| 20 20 64 65 74 65 72 6d | 69 6e 65 20 20 68 6f 77 | determ|ine how|
|00002d50| 20 20 74 68 69 73 20 73 | 65 74 20 75 70 20 61 6e | this s|et up an|
|00002d60| 64 20 6f 72 69 65 6e 74 | 65 64 20 69 73 20 62 79 |d orient|ed is by|
|00002d70| 20 66 6c 61 67 0a 63 6f | 6d 62 69 6e 61 74 69 6f | flag.co|mbinatio|
|00002d80| 6e 73 2e 20 20 20 49 66 | 20 20 79 6f 75 20 77 69 |ns. If| you wi|
|00002d90| 73 68 65 64 20 74 6f 20 | 70 75 74 20 61 20 73 63 |shed to |put a sc|
|00002da0| 72 6f 6c 6c 62 61 72 20 | 69 6e 20 74 68 65 20 62 |rollbar |in the b|
|00002db0| 6f 74 74 6f 6d 20 62 6f | 72 64 65 72 0a 6f 66 20 |ottom bo|rder.of |
|00002dc0| 61 20 77 69 6e 64 6f 77 | 2c 20 74 68 65 6e 20 79 |a window|, then y|
|00002dd0| 6f 75 20 77 6f 75 6c 64 | 20 70 61 73 73 20 28 69 |ou would| pass (i|
|00002de0| 6e 20 66 6c 61 67 73 29 | 3a 0a 0a 20 20 20 20 20 |n flags)|:.. |
|00002df0| 20 20 20 20 20 20 20 20 | 20 20 20 46 6c 61 67 73 | | Flags|
|00002e00| 00 00 00 08 00 00 03 96 | 00 00 00 31 00 00 01 e8 |........|...1....|
|00002e10| 00 00 00 18 ff 37 e4 2a | 20 3d 20 28 48 4f 52 49 |.....7.*| = (HORI|
|00002e20| 5a 53 4c 49 44 45 52 20 | 7c 20 47 52 45 4c 42 4f |ZSLIDER || GRELBO|
|00002e30| 54 54 4f 4d 20 7c 20 47 | 52 45 4c 57 49 44 54 48 |TTOM | G|RELWIDTH|
|00002e40| 29 0a 0a 20 20 20 20 20 | 20 20 20 49 66 20 79 6f |).. | If yo|
|00002e50| 75 20 77 69 73 68 65 64 | 20 69 74 20 69 6e 20 74 |u wished| it in t|
|00002e60| 68 65 20 72 69 67 68 74 | 20 62 6f 72 64 65 72 3a |he right| border:|
|00002e70| 0a 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | |
|00002e80| 20 20 46 6c 61 67 73 20 | 3d 20 28 56 45 52 54 53 | Flags |= (VERTS|
|00002e90| 4c 49 44 45 52 20 7c 20 | 47 52 45 4c 52 49 47 48 |LIDER | |GRELRIGH|
|00002ea0| 54 20 7c 20 47 52 45 4c | 48 45 49 47 48 54 29 0a |T | GREL|HEIGHT).|
|00002eb0| 0a 20 20 20 20 20 20 20 | 20 54 68 65 20 20 69 64 |. | The id|
|00002ec0| 65 61 20 69 73 20 74 6f | 20 61 6c 6c 6f 77 20 79 |ea is to| allow y|
|00002ed0| 6f 75 20 74 6f 20 6d 61 | 6e 69 70 75 6c 61 74 65 |ou to ma|nipulate|
|00002ee0| 20 74 68 65 20 73 63 72 | 6f 6c 6c 62 61 72 20 61 | the scr|ollbar a|
|00002ef0| 73 20 74 68 6f 75 67 68 | 20 69 74 0a 77 65 72 65 |s though| it.were|
|00002f00| 20 20 61 20 20 73 69 6e | 67 6c 65 20 20 67 61 64 | a sin|gle gad|
|00002f10| 67 65 74 2c 20 6e 6f 74 | 20 74 68 72 65 65 2e 20 |get, not| three. |
|00002f20| 20 49 66 20 79 6f 75 20 | 70 61 73 73 20 63 6f 6e | If you |pass con|
|00002f30| 66 75 73 69 6e 67 20 66 | 6c 61 67 73 20 28 6c 69 |fusing f|lags (li|
|00002f40| 6b 65 0a 47 52 45 4c 42 | 4f 54 54 4f 4d 7c 47 52 |ke.GRELB|OTTOM|GR|
|00002f50| 45 4c 48 45 49 47 48 54 | 29 20 74 68 65 6e 20 69 |ELHEIGHT|) then i|
|00002f60| 74 20 69 73 20 75 6e 64 | 65 66 69 6e 65 64 20 77 |t is und|efined w|
|00002f70| 68 61 74 20 77 69 6c 6c | 20 68 61 70 70 65 6e 2e |hat will| happen.|
|00002f80| 0a 0a 20 20 20 20 20 20 | 20 20 49 66 20 61 6c 6c |.. | If all|
|00002f90| 20 79 6f 75 20 77 61 6e | 74 20 69 73 20 61 20 73 | you wan|t is a s|
|00002fa0| 69 6d 70 6c 65 20 73 63 | 72 6f 6c 6c 62 61 72 20 |imple sc|rollbar |
|00002fb0| 74 68 61 74 20 64 6f 65 | 73 6e 27 74 20 73 69 7a |that doe|sn't siz|
|00002fc0| 65 2c 20 74 68 65 6e 20 | 6a 75 73 74 0a 73 65 74 |e, then |just.set|
|00002fd0| 20 56 45 52 54 53 4c 49 | 44 45 52 20 6f 72 20 48 | VERTSLI|DER or H|
|00002fe0| 4f 52 49 5a 53 4c 49 44 | 45 52 2e 0a 0a 53 45 45 |ORIZSLID|ER...SEE|
|00002ff0| 0a 0a 0a 3b 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |...;----|--------|
|00003000| 00 00 00 08 00 00 03 96 | 00 00 00 32 00 00 01 e8 |........|...2....|
|00003010| 00 00 00 19 5d c0 62 51 | 2d 2d 2d 2d 2d 2d 2d 2d |....].bQ|--------|
|00003020| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003030| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003040| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003050| 0a 0a 4e 41 4d 45 0a 20 | 20 20 20 20 20 20 20 20 |..NAME. | |
|00003060| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 50 | | P|
|00003070| 75 72 67 65 46 69 6c 65 | 73 0a 53 59 4e 4f 50 53 |urgeFile|s.SYNOPS|
|00003080| 49 53 0a 20 20 20 20 20 | 20 20 20 50 75 72 67 65 |IS. | Purge|
|00003090| 46 69 6c 65 73 28 26 46 | 69 6c 65 52 65 71 75 65 |Files(&F|ileReque|
|000030a0| 73 74 65 72 53 74 72 75 | 63 74 75 72 65 29 0a 20 |sterStru|cture). |
|000030b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000030c0| 20 20 20 20 20 20 20 41 | 30 0a 44 45 53 43 52 49 | A|0.DESCRI|
|000030d0| 50 54 49 4f 4e 0a 20 20 | 20 20 20 20 20 20 43 6c |PTION. | Cl|
|000030e0| 65 61 72 20 20 75 70 20 | 20 61 6c 6c 20 20 6d 65 |ear up | all me|
|000030f0| 6d 6f 72 79 20 20 61 6e | 64 20 20 66 69 6c 65 20 |mory an|d file |
|00003100| 20 6c 6f 63 6b 73 20 20 | 61 6c 6c 6f 63 61 74 65 | locks |allocate|
|00003110| 64 20 20 62 79 20 20 74 | 68 65 20 20 66 69 6c 65 |d by t|he file|
|00003120| 0a 72 65 71 75 65 73 74 | 65 72 2e 20 20 20 54 68 |.request|er. Th|
|00003130| 69 73 20 20 72 6f 75 74 | 69 6e 65 20 6d 75 73 74 |is rout|ine must|
|00003140| 20 62 65 20 63 61 6c 6c | 65 64 20 62 65 66 6f 72 | be call|ed befor|
|00003150| 65 20 79 6f 75 72 20 70 | 72 6f 67 72 61 6d 20 65 |e your p|rogram e|
|00003160| 78 69 74 73 20 69 66 0a | 79 6f 75 20 20 75 73 65 |xits if.|you use|
|00003170| 20 20 74 68 65 20 20 66 | 69 6c 65 20 72 65 71 75 | the f|ile requ|
|00003180| 65 73 74 65 72 20 77 69 | 74 68 20 65 69 74 68 65 |ester wi|th eithe|
|00003190| 72 20 46 52 51 45 58 54 | 53 45 4c 45 43 54 4d 20 |r FRQEXT|SELECTM |
|000031a0| 62 69 74 20 73 65 74 20 | 6f 72 20 74 68 65 0a 46 |bit set |or the.F|
|000031b0| 52 51 43 41 43 48 49 4e | 47 4d 20 62 69 74 20 73 |RQCACHIN|GM bit s|
|000031c0| 65 74 2e 20 20 54 68 65 | 20 66 69 72 73 74 20 62 |et. The| first b|
|000031d0| 69 74 20 69 73 20 69 66 | 20 79 6f 75 20 77 61 6e |it is if| you wan|
|000031e0| 74 20 74 68 65 20 75 73 | 65 72 20 74 6f 20 62 65 |t the us|er to be|
|000031f0| 20 61 62 6c 65 0a 74 6f | 20 73 65 6c 65 63 74 20 | able.to| select |
|00003200| 00 00 00 08 00 00 03 96 | 00 00 00 33 00 00 01 e8 |........|...3....|
|00003210| 00 00 00 1a 5d 09 bb 3d | 6d 75 6c 74 69 70 6c 65 |....]..=|multiple|
|00003220| 20 66 69 6c 65 73 2e 20 | 20 54 68 65 20 66 69 6c | files. | The fil|
|00003230| 65 20 72 65 71 75 65 73 | 74 65 72 20 68 61 73 20 |e reques|ter has |
|00003240| 74 6f 20 61 6c 6c 6f 63 | 61 74 65 20 61 20 6c 69 |to alloc|ate a li|
|00003250| 6e 6b 65 64 0a 6c 69 73 | 74 20 20 6f 66 20 20 66 |nked.lis|t of f|
|00003260| 69 6c 65 20 20 6e 61 6d | 65 73 20 77 68 69 63 68 |ile nam|es which|
|00003270| 20 74 68 69 73 20 66 75 | 6e 63 74 69 6f 6e 20 77 | this fu|nction w|
|00003280| 69 6c 6c 20 70 75 72 67 | 65 2e 20 20 54 68 65 20 |ill purg|e. The |
|00003290| 46 52 51 43 41 43 48 49 | 4e 47 4d 0a 62 69 74 20 |FRQCACHI|NGM.bit |
|000032a0| 20 69 73 20 73 65 74 20 | 69 66 20 79 6f 75 20 77 | is set |if you w|
|000032b0| 61 6e 74 20 74 68 65 20 | 66 69 6c 65 20 72 65 71 |ant the |file req|
|000032c0| 75 65 73 74 65 72 20 74 | 6f 20 72 65 6d 65 6d 62 |uester t|o rememb|
|000032d0| 65 72 20 74 68 65 20 63 | 6f 6e 74 65 6e 74 73 20 |er the c|ontents |
|000032e0| 6f 66 0a 61 20 64 69 72 | 65 63 74 6f 72 79 20 62 |of.a dir|ectory b|
|000032f0| 65 74 77 65 65 6e 20 63 | 61 6c 6c 73 2e 0a 0a 20 |etween c|alls... |
|00003300| 20 20 20 20 20 20 20 54 | 68 69 73 20 20 72 6f 75 | T|his rou|
|00003310| 74 69 6e 65 20 63 61 6e | 20 62 65 20 63 61 6c 6c |tine can| be call|
|00003320| 65 64 20 61 6e 79 20 74 | 69 6d 65 20 79 6f 75 20 |ed any t|ime you |
|00003330| 77 61 6e 74 20 74 68 65 | 20 62 75 66 66 65 72 73 |want the| buffers|
|00003340| 20 61 6e 64 20 66 69 6c | 65 0a 6c 6f 63 6b 73 20 | and fil|e.locks |
|00003350| 70 75 72 67 65 2e 0a 0a | 52 45 54 55 52 4e 53 0a |purge...|RETURNS.|
|00003360| 20 20 20 20 20 20 20 20 | 54 68 69 73 20 72 6f 75 | |This rou|
|00003370| 74 69 6e 65 20 64 6f 65 | 73 20 6e 6f 74 20 72 65 |tine doe|s not re|
|00003380| 74 75 72 6e 20 61 6e 79 | 74 68 69 6e 67 2e 0a 0a |turn any|thing...|
|00003390| 53 45 45 0a 20 20 20 20 | 20 20 20 20 46 69 6c 65 |SEE. | File|
|000033a0| 52 65 71 75 65 73 74 0a | 42 55 47 53 0a 20 20 20 |Request.|BUGS. |
|000033b0| 20 20 20 20 20 4e 6f 6e | 65 20 6b 6e 6f 77 6e 2e | Non|e known.|
|000033c0| 0a 45 58 41 4d 50 4c 45 | 0a 0a 6d 61 69 6e 28 29 |.EXAMPLE|..main()|
|000033d0| 0a 20 20 20 20 20 20 20 | 20 7b 0a 20 20 20 20 20 |. | {. |
|000033e0| 20 20 20 46 69 6c 65 52 | 65 71 75 65 73 74 28 26 | FileR|equest(&|
|000033f0| 46 69 6c 65 52 65 71 75 | 65 73 74 65 72 53 74 72 |FileRequ|esterStr|
|00003400| 00 00 00 08 00 00 03 96 | 00 00 00 34 00 00 01 e8 |........|...4....|
|00003410| 00 00 00 1b 07 c2 2e 8d | 75 63 74 75 72 65 29 3b |........|ucture);|
|00003420| 0a 0a 20 20 20 20 20 20 | 20 20 2e 0a 20 20 20 20 |.. | .. |
|00003430| 20 20 20 20 2e 0a 20 20 | 20 20 20 20 20 20 2e 0a | .. | ..|
|00003440| 0a 20 20 20 20 20 20 20 | 20 50 75 72 67 65 46 69 |. | PurgeFi|
|00003450| 6c 65 73 28 26 46 69 6c | 65 52 65 71 75 65 73 74 |les(&Fil|eRequest|
|00003460| 65 72 53 74 72 75 63 74 | 75 72 65 29 3b 0a 20 20 |erStruct|ure);. |
|00003470| 20 20 20 20 20 20 7d 0a | 0a 0a 0a 3b 2d 2d 2d 2d | }.|...;----|
|00003480| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003490| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000034a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000034b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000034c0| 0a 0a 4e 41 4d 45 0a 20 | 20 20 20 20 20 20 20 20 |..NAME. | |
|000034d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 47 | | G|
|000034e0| 65 74 46 6f 6e 74 48 65 | 69 67 68 74 41 6e 64 57 |etFontHe|ightAndW|
|000034f0| 69 64 74 68 0a 53 59 4e | 4f 50 53 49 53 0a 0a 44 |idth.SYN|OPSIS..D|
|00003500| 45 53 43 52 49 50 54 49 | 4f 4e 0a 0a 20 20 20 20 |ESCRIPTI|ON.. |
|00003510| 20 20 20 20 20 20 20 20 | 20 20 20 20 54 68 69 73 | | This|
|00003520| 20 61 6c 6c 6f 77 73 20 | 79 6f 75 20 71 75 69 63 | allows |you quic|
|00003530| 6b 20 61 63 63 65 73 73 | 20 74 6f 20 74 68 65 20 |k access| to the |
|00003540| 66 6f 6e 74 20 61 74 74 | 72 69 62 75 74 65 73 20 |font att|ributes |
|00003550| 73 65 74 20 62 79 20 74 | 68 65 0a 75 73 65 72 20 |set by t|he.user |
|00003560| 20 69 6e 20 70 72 65 66 | 65 72 65 6e 63 65 73 2e | in pref|erences.|
|00003570| 20 20 54 68 65 20 66 6f | 6e 74 20 77 69 64 74 68 | The fo|nt width|
|00003580| 20 69 73 20 72 65 74 75 | 72 6e 65 64 20 69 6e 20 | is retu|rned in |
|00003590| 44 30 20 61 6e 64 20 74 | 68 65 20 68 65 69 67 68 |D0 and t|he heigh|
|000035a0| 74 0a 69 73 20 72 65 74 | 75 72 6e 65 64 20 69 6e |t.is ret|urned in|
|000035b0| 20 44 31 2e 0a 0a 52 45 | 54 55 52 4e 53 0a 53 45 | D1...RE|TURNS.SE|
|000035c0| 45 0a 42 55 47 53 0a 45 | 58 41 4d 50 4c 45 0a 0a |E.BUGS.E|XAMPLE..|
|000035d0| 0a 0a 3b 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |..;-----|--------|
|000035e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000035f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003600| 00 00 00 08 00 00 03 96 | 00 00 00 35 00 00 01 e8 |........|...5....|
|00003610| 00 00 00 1c a4 2c 1d cb | 2d 2d 2d 2d 2d 2d 2d 2d |.....,..|--------|
|00003620| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 0a |--------|-------.|
|00003630| 0a 4e 41 4d 45 0a 20 20 | 20 20 20 20 20 20 20 20 |.NAME. | |
|00003640| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 4c 69 | | Li|
|00003650| 6e 6b 47 61 64 67 65 74 | 0a 53 59 4e 4f 50 53 49 |nkGadget|.SYNOPSI|
|00003660| 53 0a 0a 4c 69 6e 6b 47 | 61 64 67 65 74 28 42 75 |S..LinkG|adget(Bu|
|00003670| 66 66 65 72 2c 53 74 72 | 69 6e 67 2c 6e 77 2c 20 |ffer,Str|ing,nw, |
|00003680| 58 2c 20 59 29 0a 20 20 | 20 20 20 20 20 20 20 20 |X, Y). | |
|00003690| 20 20 20 41 30 20 20 20 | 20 20 41 31 20 20 20 41 | A0 | A1 A|
|000036a0| 33 20 44 30 20 44 31 0a | 0a 73 74 72 75 63 74 20 |3 D0 D1.|.struct |
|000036b0| 20 47 61 64 67 65 74 42 | 6c 6f 63 6b 20 2a 42 75 | GadgetB|lock *Bu|
|000036c0| 66 66 65 72 3b 0a 63 68 | 61 72 20 20 20 20 2a 53 |ffer;.ch|ar *S|
|000036d0| 74 72 69 6e 67 3b 0a 73 | 74 72 75 63 74 20 20 4e |tring;.s|truct N|
|000036e0| 65 77 57 69 6e 64 6f 77 | 20 2a 6e 77 3b 0a 6c 6f |ewWindow| *nw;.lo|
|000036f0| 6e 67 20 20 20 20 58 2c | 59 3b 0a 0a 44 45 53 43 |ng X,|Y;..DESC|
|00003700| 52 49 50 54 49 4f 4e 0a | 0a 20 20 20 20 20 20 20 |RIPTION.|. |
|00003710| 20 54 68 69 73 20 20 69 | 73 20 20 61 63 74 75 61 | This i|s actua|
|00003720| 6c 6c 79 20 20 61 20 73 | 75 70 65 72 73 65 74 20 |lly a s|uperset |
|00003730| 6f 66 20 74 68 65 20 70 | 72 65 76 69 6f 75 73 20 |of the p|revious |
|00003740| 63 6f 6d 6d 61 6e 64 20 | 4d 61 6b 65 47 61 64 67 |command |MakeGadg|
|00003750| 65 74 2e 0a 57 68 61 74 | 20 20 74 68 69 73 20 20 |et..What| this |
|00003760| 64 6f 65 73 20 20 69 73 | 20 61 75 74 6f 6d 61 74 |does is| automat|
|00003770| 69 63 61 6c 6c 79 20 6c | 69 6e 6b 20 74 68 65 20 |ically l|ink the |
|00003780| 67 61 64 67 65 74 20 69 | 6e 74 6f 20 79 6f 75 72 |gadget i|nto your|
|00003790| 20 4e 65 77 57 69 6e 64 | 6f 77 0a 73 74 72 75 63 | NewWind|ow.struc|
|000037a0| 74 75 72 65 27 73 20 67 | 61 64 67 65 74 20 6c 69 |ture's g|adget li|
|000037b0| 73 74 2e 0a 0a 20 20 20 | 20 20 20 20 20 20 20 20 |st... | |
|000037c0| 20 20 20 20 20 4e 6f 20 | 72 65 67 69 73 74 65 72 | No |register|
|000037d0| 73 20 61 72 65 20 64 69 | 73 74 75 72 62 65 64 2e |s are di|sturbed.|
|000037e0| 0a 0a 53 45 45 0a 20 20 | 20 20 20 20 20 20 4d 61 |..SEE. | Ma|
|000037f0| 6b 65 47 61 64 67 65 74 | 0a 42 55 47 53 0a 20 20 |keGadget|.BUGS. |
|00003800| 00 00 00 08 00 00 03 96 | 00 00 00 36 00 00 01 e8 |........|...6....|
|00003810| 00 00 00 1d 22 7a be 49 | 20 20 20 20 20 20 6e 2f |...."z.I| n/|
|00003820| 61 0a 0a 0a 0a 3b 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |a....;--|--------|
|00003830| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003840| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003850| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003860| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 0a 0a 4e 41 4d 45 |--------|--..NAME|
|00003870| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00003880| 20 20 20 20 20 20 20 20 | 20 4c 69 6e 6b 53 74 72 | | LinkStr|
|00003890| 69 6e 67 47 61 64 67 65 | 74 0a 53 59 4e 4f 50 53 |ingGadge|t.SYNOPS|
|000038a0| 49 53 0a 4c 69 6e 6b 53 | 74 72 69 6e 67 47 61 64 |IS.LinkS|tringGad|
|000038b0| 67 65 74 28 42 75 66 66 | 65 72 2c 53 74 72 69 6e |get(Buff|er,Strin|
|000038c0| 67 42 75 66 2c 55 6e 64 | 6f 42 75 66 2c 6e 77 2c |gBuf,Und|oBuf,nw,|
|000038d0| 20 57 69 64 74 68 42 69 | 74 73 2c 4e 75 6d 43 68 | WidthBi|ts,NumCh|
|000038e0| 61 72 73 2c 20 58 2c 20 | 59 29 0a 20 20 20 20 20 |ars, X, |Y). |
|000038f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 41 30 | | A0|
|00003900| 20 20 20 20 20 41 31 20 | 20 20 20 20 20 20 20 41 | A1 | A|
|00003910| 32 20 20 20 20 41 33 20 | 20 20 20 20 44 30 20 20 |2 A3 | D0 |
|00003920| 20 20 20 20 20 44 31 20 | 20 20 20 20 44 32 20 44 | D1 | D2 D|
|00003930| 33 0a 0a 73 74 72 75 63 | 74 20 20 53 74 72 69 6e |3..struc|t Strin|
|00003940| 67 42 6c 6f 63 6b 20 2a | 42 75 66 66 65 72 3b 0a |gBlock *|Buffer;.|
|00003950| 63 68 61 72 20 20 20 20 | 2a 53 74 72 69 6e 67 42 |char |*StringB|
|00003960| 75 66 3b 0a 63 68 61 72 | 20 20 20 20 2a 55 6e 64 |uf;.char| *Und|
|00003970| 6f 42 75 66 3b 0a 73 74 | 72 75 63 74 20 20 4e 65 |oBuf;.st|ruct Ne|
|00003980| 77 57 69 6e 64 6f 77 20 | 2a 6e 77 3b 0a 6c 6f 6e |wWindow |*nw;.lon|
|00003990| 67 20 20 20 20 57 69 64 | 74 68 42 69 74 73 2c 4e |g Wid|thBits,N|
|000039a0| 75 6d 43 68 61 72 73 2c | 58 2c 59 3b 0a 0a 44 45 |umChars,|X,Y;..DE|
|000039b0| 53 43 52 49 50 54 49 4f | 4e 0a 0a 20 20 20 20 20 |SCRIPTIO|N.. |
|000039c0| 20 20 20 54 68 69 73 20 | 20 69 73 20 20 6e 75 6d | This | is num|
|000039d0| 62 65 72 20 32 20 69 6e | 20 74 68 65 20 4c 69 6e |ber 2 in| the Lin|
|000039e0| 6b 47 61 64 67 65 74 20 | 72 6f 75 74 69 6e 65 73 |kGadget |routines|
|000039f0| 2e 20 20 54 68 69 73 20 | 6f 6e 65 20 6f 62 76 69 |. This |one obvi|
|00003a00| 00 00 00 08 00 00 03 96 | 00 00 00 37 00 00 01 e8 |........|...7....|
|00003a10| 00 00 00 1e a9 99 54 db | 6f 75 73 6c 79 0a 6c 69 |......T.|ously.li|
|00003a20| 6e 6b 73 20 20 74 68 65 | 20 20 73 74 72 69 6e 67 |nks the| string|
|00003a30| 20 20 67 61 64 67 65 74 | 20 20 74 6f 20 74 68 65 | gadget| to the|
|00003a40| 20 77 69 6e 64 6f 77 27 | 73 20 67 61 64 67 65 74 | window'|s gadget|
|00003a50| 20 6c 69 73 74 2e 20 20 | 49 6e 20 66 61 63 74 2c | list. |In fact,|
|00003a60| 20 74 68 65 0a 6f 6e 6c | 79 20 20 64 69 66 66 65 | the.onl|y diffe|
|00003a70| 72 65 6e 63 65 20 20 62 | 65 74 77 65 65 6e 20 20 |rence b|etween |
|00003a80| 74 68 69 73 20 20 61 6e | 64 20 20 74 68 65 20 20 |this an|d the |
|00003a90| 4d 61 6b 65 53 74 72 69 | 6e 67 20 20 72 6f 75 74 |MakeStri|ng rout|
|00003aa0| 69 6e 65 20 20 69 73 20 | 74 68 65 0a 61 64 64 69 |ine is |the.addi|
|00003ab0| 74 69 6f 6e 20 6f 66 20 | 74 68 65 20 4e 65 77 57 |tion of |the NewW|
|00003ac0| 69 6e 64 6f 77 20 70 6f | 69 6e 74 65 72 2e 0a 0a |indow po|inter...|
|00003ad0| 53 45 45 0a 20 20 20 20 | 20 20 20 20 4d 61 6b 65 |SEE. | Make|
|00003ae0| 53 74 72 69 6e 67 47 61 | 64 67 65 74 0a 0a 0a 3b |StringGa|dget...;|
|00003af0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003b00| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003b10| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003b20| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003b30| 2d 2d 2d 2d 0a 0a 4e 41 | 4d 45 0a 20 20 20 20 20 |----..NA|ME. |
|00003b40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003b50| 20 20 20 4c 69 6e 6b 50 | 72 6f 70 47 61 64 67 65 | LinkP|ropGadge|
|00003b60| 74 0a 53 59 4e 4f 50 53 | 49 53 0a 0a 4c 69 6e 6b |t.SYNOPS|IS..Link|
|00003b70| 50 72 6f 70 47 61 64 67 | 65 74 28 42 75 66 66 65 |PropGadg|et(Buffe|
|00003b80| 72 2c 6e 77 2c 20 57 69 | 64 74 68 2c 20 48 65 69 |r,nw, Wi|dth, Hei|
|00003b90| 67 68 74 2c 20 46 6c 61 | 67 73 2c 20 4c 65 66 74 |ght, Fla|gs, Left|
|00003ba0| 45 64 67 65 2c 20 54 6f | 70 45 64 67 65 29 0a 20 |Edge, To|pEdge). |
|00003bb0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003bc0| 41 30 20 20 20 41 33 20 | 20 20 20 44 30 20 20 20 |A0 A3 | D0 |
|00003bd0| 20 20 44 31 20 20 20 20 | 20 44 32 20 20 20 20 20 | D1 | D2 |
|00003be0| 20 20 44 33 20 20 20 20 | 20 20 20 44 34 0a 0a 73 | D3 | D4..s|
|00003bf0| 74 72 75 63 74 20 20 50 | 72 6f 70 42 6c 6f 63 6b |truct P|ropBlock|
|00003c00| 00 00 00 08 00 00 03 96 | 00 00 00 38 00 00 01 e8 |........|...8....|
|00003c10| 00 00 00 1f 13 c8 9c 2b | 20 20 20 20 20 20 20 2a |.......+| *|
|00003c20| 42 75 66 66 65 72 3b 0a | 73 74 72 75 63 74 20 20 |Buffer;.|struct |
|00003c30| 4e 65 77 57 69 6e 64 6f | 77 20 20 20 20 20 20 20 |NewWindo|w |
|00003c40| 2a 6e 77 0a 6c 6f 6e 67 | 20 20 20 20 57 69 64 74 |*nw.long| Widt|
|00003c50| 68 2c 48 65 69 67 68 74 | 2c 46 6c 61 67 73 2c 4c |h,Height|,Flags,L|
|00003c60| 65 66 74 45 64 67 65 2c | 54 6f 70 45 64 67 65 3b |eftEdge,|TopEdge;|
|00003c70| 0a 0a 44 45 53 43 52 49 | 50 54 49 4f 4e 0a 0a 20 |..DESCRI|PTION.. |
|00003c80| 20 20 20 20 20 20 20 48 | 65 72 65 20 20 77 65 20 | H|ere we |
|00003c90| 20 68 61 76 65 20 61 20 | 73 75 70 65 72 73 65 74 | have a |superset|
|00003ca0| 20 66 6f 72 20 4d 61 6b | 65 50 72 6f 70 2e 20 20 | for Mak|eProp. |
|00003cb0| 49 74 20 77 6f 72 6b 73 | 20 65 78 61 63 74 6c 79 |It works| exactly|
|00003cc0| 20 74 68 65 20 73 61 6d | 65 0a 61 73 20 20 4d 61 | the sam|e.as Ma|
|00003cd0| 6b 65 50 72 6f 70 2c 20 | 20 65 78 63 65 70 74 20 |keProp, | except |
|00003ce0| 20 74 68 61 74 20 20 69 | 74 20 61 74 74 61 63 68 | that i|t attach|
|00003cf0| 65 73 20 74 68 65 20 67 | 61 64 67 65 74 20 74 6f |es the g|adget to|
|00003d00| 20 74 68 65 20 68 65 61 | 64 20 6f 66 20 74 68 65 | the hea|d of the|
|00003d10| 0a 6c 69 73 74 20 69 6e | 20 74 68 65 20 77 69 6e |.list in| the win|
|00003d20| 64 6f 77 2e 0a 0a 53 45 | 45 0a 20 20 20 20 20 20 |dow...SE|E. |
|00003d30| 20 20 4d 61 6b 65 50 72 | 6f 70 0a 0a 0a 3b 2d 2d | MakePr|op...;--|
|00003d40| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003d50| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003d60| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003d70| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003d80| 2d 2d 0a 0a 46 69 6c 65 | 52 65 71 75 65 73 74 65 |--..File|Requeste|
|00003d90| 72 0a 0a 4e 41 4d 45 0a | 20 20 20 20 20 20 20 20 |r..NAME.| |
|00003da0| 46 69 6c 65 52 65 71 75 | 65 73 74 65 72 20 20 2d |FileRequ|ester -|
|00003db0| 20 62 72 69 6e 67 20 75 | 70 20 61 20 66 69 6c 65 | bring u|p a file|
|00003dc0| 2f 66 6f 6e 74 20 72 65 | 71 75 65 73 74 65 72 2e |/font re|quester.|
|00003dd0| 0a 0a 53 59 4e 4f 50 53 | 49 53 0a 20 20 20 20 20 |..SYNOPS|IS. |
|00003de0| 20 20 20 73 75 63 63 65 | 73 73 20 3d 20 46 69 6c | succe|ss = Fil|
|00003df0| 65 52 65 71 75 65 73 74 | 65 72 28 26 46 69 6c 65 |eRequest|er(&File|
|00003e00| 00 00 00 08 00 00 03 96 | 00 00 00 39 00 00 01 e8 |........|...9....|
|00003e10| 00 00 00 20 14 b4 2b 0e | 52 65 71 75 65 73 74 65 |... ..+.|Requeste|
|00003e20| 72 53 74 72 75 63 74 75 | 72 65 29 0a 20 20 20 20 |rStructu|re). |
|00003e30| 20 20 20 20 20 20 44 30 | 20 20 20 20 20 20 20 20 | D0| |
|00003e40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003e50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003e60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 41 30 | | A0|
|00003e70| 0a 0a 46 55 4e 43 54 49 | 4f 4e 0a 20 20 20 20 20 |..FUNCTI|ON. |
|00003e80| 20 20 20 42 72 69 6e 67 | 20 20 75 70 20 20 61 20 | Bring| up a |
|00003e90| 20 66 75 6c 6c 79 20 20 | 69 6e 74 75 69 74 69 6f | fully |intuitio|
|00003ea0| 6e 69 7a 65 64 20 66 69 | 6c 65 2f 66 6f 6e 74 20 |nized fi|le/font |
|00003eb0| 72 65 71 75 65 73 74 65 | 72 20 28 61 63 74 75 61 |requeste|r (actua|
|00003ec0| 6c 6c 79 20 61 0a 77 69 | 6e 64 6f 77 29 20 61 6e |lly a.wi|ndow) an|
|00003ed0| 64 20 6c 65 74 20 74 68 | 65 20 75 73 65 72 20 73 |d let th|e user s|
|00003ee0| 65 6c 65 63 74 20 61 20 | 66 69 6c 65 2f 66 6f 6e |elect a |file/fon|
|00003ef0| 74 2e 0a 0a 49 4e 50 55 | 54 53 0a 20 20 20 20 20 |t...INPU|TS. |
|00003f00| 20 20 20 26 46 69 6c 65 | 52 65 71 75 65 73 74 65 | &File|Requeste|
|00003f10| 72 53 74 72 75 63 74 75 | 72 65 20 20 2d 20 20 70 |rStructu|re - p|
|00003f20| 6f 69 6e 74 65 72 20 20 | 74 6f 20 20 61 6e 20 20 |ointer |to an |
|00003f30| 69 6e 69 74 69 61 6c 69 | 7a 65 64 20 20 28 63 61 |initiali|zed (ca|
|00003f40| 6e 20 20 62 65 0a 69 6e | 69 74 69 61 6c 69 7a 65 |n be.in|itialize|
|00003f50| 64 20 6d 6f 73 74 6c 79 | 20 74 6f 20 7a 65 72 6f |d mostly| to zero|
|00003f60| 65 73 29 20 66 69 6c 65 | 20 72 65 71 75 65 73 74 |es) file| request|
|00003f70| 65 72 20 73 74 72 75 63 | 74 75 72 65 2e 0a 0a 52 |er struc|ture...R|
|00003f80| 45 53 55 4c 54 0a 20 20 | 20 20 20 20 20 20 52 65 |ESULT. | Re|
|00003f90| 74 75 72 6e 73 20 20 54 | 52 55 45 20 20 6f 72 20 |turns T|RUE or |
|00003fa0| 46 41 4c 53 45 20 74 6f | 20 73 61 79 20 77 68 65 |FALSE to| say whe|
|00003fb0| 74 68 65 72 20 74 68 65 | 20 75 73 65 72 20 73 65 |ther the| user se|
|00003fc0| 6c 65 63 74 65 64 20 61 | 20 66 69 6c 65 20 6f 72 |lected a| file or|
|00003fd0| 0a 6e 6f 74 2e 20 20 20 | 54 68 65 20 20 66 69 6c |.not. |The fil|
|00003fe0| 65 20 6e 61 6d 65 28 73 | 29 20 6f 72 20 66 6f 6e |e name(s|) or fon|
|00003ff0| 74 20 73 65 6c 65 63 74 | 65 64 20 61 72 65 20 74 |t select|ed are t|
|00004000| 00 00 00 08 00 00 03 96 | 00 00 00 3a 00 00 01 e8 |........|...:....|
|00004010| 00 00 00 21 37 9d 4d 51 | 68 65 6e 20 66 6f 75 6e |...!7.MQ|hen foun|
|00004020| 64 20 62 79 20 6c 6f 6f | 6b 69 6e 67 20 61 74 0a |d by loo|king at.|
|00004030| 74 68 65 20 66 69 6c 65 | 20 72 65 71 75 65 73 74 |the file| request|
|00004040| 65 72 20 73 74 72 75 63 | 74 75 72 65 20 77 68 6f |er struc|ture who|
|00004050| 73 65 20 61 64 64 72 65 | 73 73 20 77 61 73 20 70 |se addre|ss was p|
|00004060| 61 73 73 65 64 2e 0a 0a | 20 20 20 20 20 20 20 20 |assed...| |
|00004070| 46 6f 72 20 20 69 64 65 | 61 73 20 20 6f 6e 20 20 |For ide|as on |
|00004080| 63 75 73 74 6f 6d 69 7a | 69 6e 67 20 74 68 65 20 |customiz|ing the |
|00004090| 66 69 6c 65 20 72 65 71 | 75 65 73 74 65 72 20 66 |file req|uester f|
|000040a0| 6f 72 20 79 6f 75 72 20 | 70 61 72 74 69 63 75 6c |or your |particul|
|000040b0| 61 72 0a 73 79 73 74 65 | 6d 20 20 28 74 68 75 73 |ar.syste|m (thus|
|000040c0| 20 20 6f 76 65 72 72 69 | 64 69 6e 67 20 74 68 65 | overri|ding the|
|000040d0| 20 64 65 66 61 75 6c 74 | 73 20 75 73 65 64 20 62 | default|s used b|
|000040e0| 79 20 70 72 6f 67 72 61 | 6d 6d 65 72 73 20 77 68 |y progra|mmers wh|
|000040f0| 6f 20 75 73 65 20 74 68 | 65 0a 66 69 6c 65 20 72 |o use th|e.file r|
|00004100| 65 71 75 65 73 74 65 72 | 29 20 73 65 65 20 74 68 |equester|) see th|
|00004110| 65 20 63 75 73 74 6f 6d | 69 7a 65 66 69 6c 65 2e |e custom|izefile.|
|00004120| 61 73 6d 20 66 69 6c 65 | 2e 0a 0a 42 55 47 53 0a |asm file|...BUGS.|
|00004130| 20 20 20 20 20 20 20 20 | 50 72 6f 62 6c 65 6d 20 | |Problem |
|00004140| 20 77 69 74 68 20 20 61 | 6e 20 20 49 6e 74 75 69 | with a|n Intui|
|00004150| 74 69 6f 6e 20 62 75 67 | 20 74 68 61 74 20 6d 65 |tion bug| that me|
|00004160| 73 73 65 73 20 75 70 20 | 74 68 65 20 63 75 72 72 |sses up |the curr|
|00004170| 65 6e 74 20 61 63 74 69 | 76 65 0a 77 69 6e 64 6f |ent acti|ve.windo|
|00004180| 77 20 20 69 66 20 20 61 | 20 20 77 69 6e 64 6f 77 |w if a| window|
|00004190| 20 20 63 6c 6f 73 65 73 | 20 20 77 68 65 6e 20 6f | closes| when o|
|000041a0| 6e 65 20 6f 66 20 69 74 | 73 20 73 74 72 69 6e 67 |ne of it|s string|
|000041b0| 20 67 61 64 67 65 74 73 | 20 69 73 20 73 74 69 6c | gadgets| is stil|
|000041c0| 6c 0a 61 63 74 69 76 65 | 2e 20 20 20 54 68 69 73 |l.active|. This|
|000041d0| 20 62 75 67 20 73 68 6f | 77 20 75 70 20 69 66 20 | bug sho|w up if |
|000041e0| 79 6f 75 20 72 75 6e 20 | 74 68 65 20 66 69 6c 65 |you run |the file|
|000041f0| 20 72 65 71 75 65 73 74 | 65 72 20 73 74 72 61 69 | request|er strai|
|00004200| 00 00 00 08 00 00 03 96 | 00 00 00 3b 00 00 01 e8 |........|...;....|
|00004210| 00 00 00 22 cd d4 23 76 | 67 68 74 20 66 72 6f 6d |..."..#v|ght from|
|00004220| 0a 61 20 43 4c 49 20 77 | 69 6e 64 6f 77 20 61 6e |.a CLI w|indow an|
|00004230| 64 20 74 68 65 6e 20 65 | 78 69 74 20 69 74 20 77 |d then e|xit it w|
|00004240| 69 74 68 20 41 6d 69 67 | 61 2d 4c 2e 0a 20 20 20 |ith Amig|a-L.. |
|00004250| 20 20 20 20 20 49 20 68 | 61 76 65 20 68 65 61 72 | I h|ave hear|
|00004260| 64 20 74 68 61 74 20 69 | 74 20 72 65 73 65 74 73 |d that i|t resets|
|00004270| 20 73 6f 6d 65 20 77 69 | 6e 64 6f 77 20 66 6c 61 | some wi|ndow fla|
|00004280| 67 73 20 77 68 65 6e 20 | 72 75 6e 20 6f 6e 20 61 |gs when |run on a|
|00004290| 20 63 75 73 74 6f 6d 0a | 73 63 72 65 65 6e 2c 20 | custom.|screen, |
|000042a0| 20 62 75 74 20 49 20 62 | 65 6c 69 65 76 65 20 74 | but I b|elieve t|
|000042b0| 68 69 73 20 69 73 20 61 | 20 66 65 61 74 75 72 65 |his is a| feature|
|000042c0| 20 6f 66 20 49 6e 74 75 | 69 74 69 6f 6e 2c 20 6e | of Intu|ition, n|
|000042d0| 6f 74 20 6f 66 20 74 68 | 65 20 66 69 6c 65 0a 72 |ot of th|e file.r|
|000042e0| 65 71 75 65 73 74 65 72 | 2e 0a 0a 53 45 45 20 41 |equester|...SEE A|
|000042f0| 4c 53 4f 0a 20 20 20 20 | 20 20 20 20 50 75 72 67 |LSO. | Purg|
|00004300| 65 46 69 6c 65 73 0a 0a | 0a 20 20 20 20 20 20 20 |eFiles..|. |
|00004310| 20 54 68 65 20 20 66 69 | 6c 65 20 20 72 65 71 75 | The fi|le requ|
|00004320| 65 73 74 65 72 20 20 69 | 6e 20 20 74 68 65 20 20 |ester i|n the |
|00004330| 72 65 71 75 65 73 74 65 | 72 20 20 6c 69 62 72 61 |requeste|r libra|
|00004340| 72 79 20 20 61 6c 6c 6f | 77 73 20 74 6f 20 70 75 |ry allo|ws to pu|
|00004350| 74 20 61 0a 70 6f 77 65 | 72 66 75 6c 20 20 61 6e |t a.powe|rful an|
|00004360| 64 20 20 65 61 73 79 20 | 20 74 6f 20 20 75 73 65 |d easy | to use|
|00004370| 20 20 66 69 6c 65 20 72 | 65 71 75 65 73 74 65 72 | file r|equester|
|00004380| 20 69 6e 74 6f 20 79 6f | 75 72 20 70 72 6f 67 72 | into yo|ur progr|
|00004390| 61 6d 73 20 77 69 74 68 | 20 61 0a 6d 69 6e 69 6d |ams with| a.minim|
|000043a0| 75 6d 20 6f 66 20 77 6f | 72 6b 20 61 6e 64 20 61 |um of wo|rk and a|
|000043b0| 74 20 61 20 76 65 72 79 | 20 73 6d 61 6c 6c 20 65 |t a very| small e|
|000043c0| 78 70 65 6e 73 65 20 69 | 6e 20 70 72 6f 67 72 61 |xpense i|n progra|
|000043d0| 6d 20 73 69 7a 65 2e 20 | 20 54 68 65 20 66 69 6c |m size. | The fil|
|000043e0| 65 0a 72 65 71 75 65 73 | 74 65 72 20 20 77 61 73 |e.reques|ter was|
|000043f0| 20 20 64 65 73 69 67 6e | 65 64 20 20 74 6f 20 62 | design|ed to b|
|00004400| 00 00 00 08 00 00 03 96 | 00 00 00 3c 00 00 01 e8 |........|...<....|
|00004410| 00 00 00 23 0d 49 60 17 | 65 20 61 73 20 65 61 73 |...#.I`.|e as eas|
|00004420| 79 20 61 73 20 70 6f 73 | 73 69 62 6c 65 20 74 6f |y as pos|sible to|
|00004430| 20 63 61 6c 6c 2c 20 77 | 68 69 6c 65 20 6e 6f 74 | call, w|hile not|
|00004440| 0a 73 61 63 72 69 66 69 | 63 69 6e 67 20 70 6f 77 |.sacrifi|cing pow|
|00004450| 65 72 2e 0a 0a 20 20 20 | 20 20 20 20 20 54 6f 20 |er... | To |
|00004460| 20 67 65 74 20 20 74 68 | 65 20 20 66 69 6c 65 20 | get th|e file |
|00004470| 20 72 65 71 75 65 73 74 | 65 72 20 74 6f 20 63 6f | request|er to co|
|00004480| 6d 65 20 75 70 20 61 6c | 6c 20 79 6f 75 20 6e 65 |me up al|l you ne|
|00004490| 65 64 20 74 6f 20 64 6f | 20 28 61 66 74 65 72 0a |ed to do| (after.|
|000044a0| 6f 70 65 6e 69 6e 67 20 | 20 74 68 65 20 20 72 65 |opening | the re|
|000044b0| 71 75 65 73 74 65 72 20 | 20 6c 69 62 72 61 72 79 |quester | library|
|000044c0| 20 6f 66 20 63 6f 75 72 | 73 65 29 20 69 73 20 74 | of cour|se) is t|
|000044d0| 6f 20 61 6c 6c 6f 63 61 | 74 65 20 73 70 61 63 65 |o alloca|te space|
|000044e0| 20 66 6f 72 20 61 0a 46 | 69 6c 65 52 65 71 75 65 | for a.F|ileReque|
|000044f0| 73 74 65 72 20 20 73 74 | 72 75 63 74 75 72 65 20 |ster st|ructure |
|00004500| 20 61 6e 64 20 20 74 68 | 65 6e 20 20 63 61 6c 6c | and th|en call|
|00004510| 20 20 74 68 65 20 66 69 | 6c 65 20 72 65 71 75 65 | the fi|le reque|
|00004520| 73 74 65 72 20 77 69 74 | 68 20 74 68 65 0a 61 64 |ster wit|h the.ad|
|00004530| 64 72 65 73 73 20 20 6f | 66 20 20 74 68 69 73 20 |dress o|f this |
|00004540| 73 74 72 75 63 74 75 72 | 65 2c 20 77 69 74 68 20 |structur|e, with |
|00004550| 61 6c 6c 20 66 69 65 6c | 64 73 20 69 6e 69 74 69 |all fiel|ds initi|
|00004560| 61 6c 69 7a 65 64 20 74 | 6f 20 7a 65 72 6f 2c 20 |alized t|o zero, |
|00004570| 6c 69 6b 65 0a 74 68 69 | 73 3a 0a 0a 73 74 72 75 |like.thi|s:..stru|
|00004580| 63 74 20 46 69 6c 65 52 | 65 71 75 65 73 74 65 72 |ct FileR|equester|
|00004590| 20 4d 79 46 69 6c 65 52 | 65 71 53 74 72 75 63 74 | MyFileR|eqStruct|
|000045a0| 3b 0a 0a 73 75 63 63 65 | 73 73 20 3d 20 46 69 6c |;..succe|ss = Fil|
|000045b0| 65 52 65 71 75 65 73 74 | 65 72 28 26 4d 79 46 69 |eRequest|er(&MyFi|
|000045c0| 6c 65 52 65 71 53 74 72 | 75 63 74 29 3b 0a 0a 20 |leReqStr|uct);.. |
|000045d0| 20 20 20 20 20 20 20 54 | 68 65 20 66 75 6e 63 74 | T|he funct|
|000045e0| 69 6f 6e 20 77 69 6c 6c | 20 72 65 74 75 72 6e 20 |ion will| return |
|000045f0| 65 69 74 68 65 72 20 6f | 6e 65 20 6f 72 20 7a 65 |either o|ne or ze|
|00004600| 00 00 00 08 00 00 03 96 | 00 00 00 3d 00 00 01 e8 |........|...=....|
|00004610| 00 00 00 24 86 bf 91 09 | 72 6f 20 66 6f 72 20 73 |...$....|ro for s|
|00004620| 75 63 63 65 73 73 20 6f | 72 20 66 61 69 6c 75 72 |uccess o|r failur|
|00004630| 65 0a 72 65 73 70 65 63 | 74 69 76 65 6c 79 2e 0a |e.respec|tively..|
|00004640| 0a 20 20 20 20 20 20 20 | 20 59 6f 75 20 63 61 6e |. | You can|
|00004650| 20 73 70 65 63 69 66 79 | 20 77 68 61 74 20 73 63 | specify| what sc|
|00004660| 72 65 65 6e 20 74 68 65 | 20 66 69 6c 65 20 72 65 |reen the| file re|
|00004670| 71 75 65 73 74 65 72 20 | 73 68 6f 75 6c 64 20 61 |quester |should a|
|00004680| 70 70 65 61 72 20 6f 6e | 20 69 6e 0a 6f 6e 65 20 |ppear on| in.one |
|00004690| 20 6f 66 20 20 74 77 6f | 20 20 77 61 79 73 2e 20 | of two| ways. |
|000046a0| 20 49 66 20 79 6f 75 20 | 77 61 6e 74 20 69 74 20 | If you |want it |
|000046b0| 74 6f 20 61 70 70 65 61 | 72 20 6f 6e 20 61 20 63 |to appea|r on a c|
|000046c0| 75 73 74 6f 6d 20 73 63 | 72 65 65 6e 2c 20 74 68 |ustom sc|reen, th|
|000046d0| 65 6e 0a 74 68 65 20 20 | 62 65 73 74 20 20 77 61 |en.the |best wa|
|000046e0| 79 20 20 69 73 20 20 74 | 6f 20 20 73 65 74 20 20 |y is t|o set |
|000046f0| 74 68 65 20 20 70 72 5f | 57 69 6e 64 6f 77 50 74 |the pr_|WindowPt|
|00004700| 72 20 20 66 69 65 6c 64 | 20 20 69 6e 20 79 6f 75 |r field| in you|
|00004710| 72 20 70 72 6f 63 65 73 | 73 0a 73 74 72 75 63 74 |r proces|s.struct|
|00004720| 75 72 65 20 20 74 6f 20 | 20 70 6f 69 6e 74 20 61 |ure to | point a|
|00004730| 74 20 6f 6e 65 20 6f 66 | 20 74 68 65 20 77 69 6e |t one of| the win|
|00004740| 64 6f 77 73 20 6f 6e 20 | 79 6f 75 72 20 73 63 72 |dows on |your scr|
|00004750| 65 65 6e 20 28 74 68 69 | 73 20 73 68 6f 75 6c 64 |een (thi|s should|
|00004760| 0a 62 65 20 20 64 6f 6e | 65 20 61 6e 79 77 61 79 |.be don|e anyway|
|00004770| 2c 20 73 6f 20 74 68 61 | 74 20 44 4f 53 20 72 65 |, so tha|t DOS re|
|00004780| 71 75 65 73 74 65 72 73 | 20 61 70 70 65 61 72 20 |questers| appear |
|00004790| 6f 6e 20 79 6f 75 72 20 | 63 75 73 74 6f 6d 20 73 |on your |custom s|
|000047a0| 63 72 65 65 6e 29 2e 0a | 54 68 69 73 20 20 66 69 |creen)..|This fi|
|000047b0| 65 6c 64 20 20 69 73 20 | 6c 6f 6f 6b 65 64 20 61 |eld is |looked a|
|000047c0| 74 20 62 79 20 61 6c 6c | 20 66 75 6e 63 74 69 6f |t by all| functio|
|000047d0| 6e 73 20 69 6e 20 74 68 | 65 20 72 65 71 75 65 73 |ns in th|e reques|
|000047e0| 74 65 72 20 6c 69 62 72 | 61 72 79 20 73 6f 0a 74 |ter libr|ary so.t|
|000047f0| 68 69 73 20 20 77 61 79 | 20 20 69 73 20 74 68 65 |his way| is the|
|00004800| 00 00 00 08 00 00 03 96 | 00 00 00 3e 00 00 01 e8 |........|...>....|
|00004810| 00 00 00 25 ba 64 ad 8e | 20 73 69 6d 70 6c 65 73 |...%.d..| simples|
|00004820| 74 20 6d 65 74 68 6f 64 | 2e 20 20 54 68 65 20 6f |t method|. The o|
|00004830| 74 68 65 72 20 77 61 79 | 2c 20 77 68 69 63 68 20 |ther way|, which |
|00004840| 6f 76 65 72 72 69 64 65 | 73 20 74 68 65 0a 70 72 |override|s the.pr|
|00004850| 5f 57 69 6e 64 6f 77 50 | 74 72 20 20 66 69 65 6c |_WindowP|tr fiel|
|00004860| 64 20 20 69 73 20 74 6f | 20 69 6e 69 74 69 61 6c |d is to| initial|
|00004870| 69 7a 65 20 74 68 65 20 | 66 72 71 5f 57 69 6e 64 |ize the |frq_Wind|
|00004880| 6f 77 20 66 69 65 6c 64 | 20 74 6f 20 70 6f 69 6e |ow field| to poin|
|00004890| 74 20 61 74 0a 6f 6e 65 | 20 6f 66 20 79 6f 75 72 |t at.one| of your|
|000048a0| 20 77 69 6e 64 6f 77 73 | 2e 20 20 49 66 20 74 68 | windows|. If th|
|000048b0| 69 73 20 66 69 65 6c 64 | 20 69 73 20 6e 6f 6e 2d |is field| is non-|
|000048c0| 7a 65 72 6f 2c 20 69 74 | 20 69 73 20 75 73 65 64 |zero, it| is used|
|000048d0| 20 69 6e 73 74 65 61 64 | 20 6f 66 0a 74 68 65 20 | instead| of.the |
|000048e0| 70 72 5f 57 69 6e 64 6f | 77 50 74 72 20 66 69 65 |pr_Windo|wPtr fie|
|000048f0| 6c 64 20 6f 66 20 79 6f | 75 72 20 70 72 6f 63 65 |ld of yo|ur proce|
|00004900| 73 73 20 73 74 72 75 63 | 74 75 72 65 2e 20 20 49 |ss struc|ture. I|
|00004910| 6d 70 6f 72 74 61 6e 74 | 20 6e 6f 74 65 3a 20 20 |mportant| note: |
|00004920| 49 74 0a 69 73 20 20 56 | 45 52 59 20 20 69 6d 70 |It.is V|ERY imp|
|00004930| 6f 72 74 61 6e 74 20 20 | 74 68 61 74 20 79 6f 75 |ortant |that you|
|00004940| 20 72 65 73 65 74 20 74 | 68 65 20 70 72 5f 57 69 | reset t|he pr_Wi|
|00004950| 6e 64 6f 77 50 74 72 20 | 66 69 65 6c 64 20 62 61 |ndowPtr |field ba|
|00004960| 63 6b 20 74 6f 20 69 74 | 73 0a 6f 72 69 67 69 6e |ck to it|s.origin|
|00004970| 61 6c 20 20 76 61 6c 75 | 65 20 20 62 65 66 6f 72 |al valu|e befor|
|00004980| 65 20 20 79 6f 75 72 20 | 20 70 72 6f 67 72 61 6d |e your | program|
|00004990| 20 20 65 78 69 74 73 2e | 20 20 49 66 20 79 6f 75 | exits.| If you|
|000049a0| 20 64 6f 6e 27 74 2c 20 | 74 68 65 20 6e 65 78 74 | don't, |the next|
|000049b0| 0a 70 72 6f 67 72 61 6d | 20 72 75 6e 20 6d 61 79 |.program| run may|
|000049c0| 20 74 72 79 20 74 6f 20 | 6f 70 65 6e 20 61 20 72 | try to |open a r|
|000049d0| 65 71 75 65 73 74 65 72 | 20 77 69 6e 64 6f 77 20 |equester| window |
|000049e0| 6f 6e 20 61 20 6e 6f 77 | 20 63 6c 6f 73 65 64 20 |on a now| closed |
|000049f0| 73 63 72 65 65 6e 2e 0a | 0a 20 20 20 20 20 20 20 |screen..|. |
|00004a00| 00 00 00 08 00 00 03 96 | 00 00 00 3f 00 00 01 e8 |........|...?....|
|00004a10| 00 00 00 26 d7 db 32 5e | 20 54 68 65 20 20 66 69 |...&..2^| The fi|
|00004a20| 6c 65 20 20 72 65 71 75 | 65 73 74 65 72 20 20 77 |le requ|ester w|
|00004a30| 61 73 20 20 63 61 72 65 | 66 75 6c 6c 79 20 20 64 |as care|fully d|
|00004a40| 65 73 69 67 6e 65 64 20 | 73 6f 20 74 68 61 74 20 |esigned |so that |
|00004a50| 69 74 20 63 6f 75 6c 64 | 20 62 65 0a 63 61 6c 6c |it could| be.call|
|00004a60| 65 64 20 20 77 69 74 68 | 6f 75 74 20 20 68 61 76 |ed with|out hav|
|00004a70| 69 6e 67 20 20 74 6f 20 | 20 69 6e 69 74 69 61 6c |ing to | initial|
|00004a80| 69 7a 65 20 20 76 65 72 | 79 20 20 6d 61 6e 79 20 |ize ver|y many |
|00004a90| 20 66 69 65 6c 64 73 2e | 20 20 20 54 68 69 73 20 | fields.| This |
|00004aa0| 69 73 0a 64 65 6d 6f 6e | 73 74 72 61 74 65 64 20 |is.demon|strated |
|00004ab0| 20 62 79 20 20 73 65 65 | 69 6e 67 20 20 74 68 61 | by see|ing tha|
|00004ac0| 74 20 20 69 74 20 20 69 | 73 20 20 70 6f 73 73 69 |t it i|s possi|
|00004ad0| 62 6c 65 20 20 74 6f 20 | 20 63 61 6c 6c 20 20 69 |ble to | call i|
|00004ae0| 74 20 77 69 74 68 6f 75 | 74 0a 69 6e 69 74 69 61 |t withou|t.initia|
|00004af0| 6c 69 7a 69 6e 67 20 61 | 6e 79 20 66 69 65 6c 64 |lizing a|ny field|
|00004b00| 73 2e 20 20 54 68 65 72 | 65 20 61 72 65 20 61 20 |s. Ther|e are a |
|00004b10| 66 65 77 20 66 69 65 6c | 64 73 20 74 68 61 74 20 |few fiel|ds that |
|00004b20| 61 72 65 20 6e 65 63 65 | 73 73 61 72 79 20 74 6f |are nece|ssary to|
|00004b30| 0a 61 63 74 75 61 6c 6c | 79 20 20 67 65 74 20 20 |.actuall|y get |
|00004b40| 61 6e 79 20 20 75 73 65 | 20 20 6f 75 74 20 20 6f |any use| out o|
|00004b50| 66 20 20 69 74 2c 20 20 | 62 75 74 20 20 76 65 72 |f it, |but ver|
|00004b60| 79 20 20 76 69 65 77 2e | 20 20 54 68 6f 73 65 20 |y view.| Those |
|00004b70| 66 65 77 20 61 72 65 0a | 64 6f 63 75 6d 65 6e 74 |few are.|document|
|00004b80| 65 64 20 69 6e 20 74 68 | 65 20 66 6f 6c 6c 6f 77 |ed in th|e follow|
|00004b90| 69 6e 67 20 70 61 72 61 | 67 72 61 70 68 2e 0a 0a |ing para|graph...|
|00004ba0| 20 20 20 20 20 20 20 20 | 41 6c 74 68 6f 75 67 68 | |Although|
|00004bb0| 20 20 79 6f 75 20 63 61 | 6e 20 62 72 69 6e 67 20 | you ca|n bring |
|00004bc0| 74 68 65 20 66 69 6c 65 | 20 72 65 71 75 65 73 74 |the file| request|
|00004bd0| 65 72 20 75 70 20 77 69 | 74 68 6f 75 74 20 69 6e |er up wi|thout in|
|00004be0| 69 74 69 61 6c 69 7a 69 | 6e 67 0a 61 6e 79 20 20 |itializi|ng.any |
|00004bf0| 66 69 65 6c 64 73 20 74 | 68 65 72 65 20 61 72 65 |fields t|here are|
|00004c00| 00 00 00 08 00 00 03 96 | 00 00 00 40 00 00 01 e8 |........|...@....|
|00004c10| 00 00 00 27 25 b8 34 57 | 20 61 20 63 6f 75 70 6c |...'%.4W| a coupl|
|00004c20| 65 20 6f 66 20 66 69 65 | 6c 64 73 20 74 68 61 74 |e of fie|lds that|
|00004c30| 20 79 6f 75 20 77 69 6c | 6c 20 64 65 66 69 6e 69 | you wil|l defini|
|00004c40| 74 65 6c 79 20 77 61 6e | 74 0a 74 6f 20 20 69 6e |tely wan|t.to in|
|00004c50| 69 74 69 61 6c 69 7a 65 | 2e 20 20 20 54 68 65 20 |itialize|. The |
|00004c60| 20 66 69 6c 65 20 20 72 | 65 71 75 65 73 74 65 72 | file r|equester|
|00004c70| 20 69 73 6e 27 74 20 6d | 75 63 68 20 75 73 65 20 | isn't m|uch use |
|00004c80| 75 6e 6c 65 73 73 20 79 | 6f 75 20 67 65 74 20 61 |unless y|ou get a|
|00004c90| 0a 66 69 6c 65 20 20 6e | 61 6d 65 20 62 61 63 6b |.file n|ame back|
|00004ca0| 20 6f 75 74 20 6f 66 20 | 69 74 2c 20 61 6e 64 20 | out of |it, and |
|00004cb0| 66 6f 72 20 74 68 69 73 | 20 79 6f 75 20 6e 65 65 |for this| you nee|
|00004cc0| 64 20 74 6f 20 69 6e 69 | 74 69 61 6c 69 7a 65 20 |d to ini|tialize |
|00004cd0| 74 68 65 20 44 69 72 0a | 61 6e 64 20 20 46 69 6c |the Dir.|and Fil|
|00004ce0| 65 20 20 66 69 65 6c 64 | 73 2e 20 20 20 54 68 65 |e field|s. The|
|00004cf0| 73 65 20 74 77 6f 20 66 | 69 65 6c 64 73 20 73 68 |se two f|ields sh|
|00004d00| 6f 75 6c 64 20 70 6f 69 | 6e 74 20 74 6f 20 63 68 |ould poi|nt to ch|
|00004d10| 61 72 61 63 74 65 72 20 | 61 72 72 61 79 73 0a 74 |aracter |arrays.t|
|00004d20| 68 61 74 20 20 61 72 65 | 2c 20 20 72 65 73 70 65 |hat are|, respe|
|00004d30| 63 74 69 76 65 6c 79 2c | 20 20 44 53 49 5a 45 2b |ctively,| DSIZE+|
|00004d40| 31 20 20 61 6e 64 20 46 | 43 48 41 52 53 2b 31 20 |1 and F|CHARS+1 |
|00004d50| 62 79 74 65 73 20 6c 6f | 6e 67 2e 20 20 57 68 65 |bytes lo|ng. Whe|
|00004d60| 6e 20 74 68 65 0a 66 69 | 6c 65 20 20 72 65 71 75 |n the.fi|le requ|
|00004d70| 65 73 74 65 72 20 20 69 | 73 20 66 69 72 73 74 20 |ester i|s first |
|00004d80| 72 75 6e 20 74 68 65 20 | 66 69 6c 65 20 72 65 71 |run the |file req|
|00004d90| 75 65 73 74 65 72 20 6c | 6f 6f 6b 73 20 69 6e 20 |uester l|ooks in |
|00004da0| 74 68 65 73 65 20 61 72 | 72 61 79 73 0a 66 6f 72 |these ar|rays.for|
|00004db0| 20 20 74 68 65 20 20 64 | 65 66 61 75 6c 74 20 20 | the d|efault |
|00004dc0| 64 69 72 65 63 74 6f 72 | 79 20 20 61 6e 64 20 66 |director|y and f|
|00004dd0| 69 6c 65 20 6e 61 6d 65 | 73 20 61 6e 64 20 69 66 |ile name|s and if|
|00004de0| 20 74 68 65 20 75 73 65 | 72 20 73 65 6c 65 63 74 | the use|r select|
|00004df0| 73 20 61 0a 66 69 6c 65 | 20 20 6e 61 6d 65 20 20 |s a.file| name |
|00004e00| 00 00 00 08 00 00 03 96 | 00 00 00 41 00 00 01 e8 |........|...A....|
|00004e10| 00 00 00 28 0f 2d 5c ce | 74 68 65 20 20 64 69 72 |...(.-\.|the dir|
|00004e20| 65 63 74 6f 72 79 20 20 | 61 6e 64 20 20 66 69 6c |ectory |and fil|
|00004e30| 65 20 20 6e 61 6d 65 20 | 61 72 65 20 63 6f 70 69 |e name |are copi|
|00004e40| 65 64 20 62 61 63 6b 20 | 69 6e 74 6f 20 74 68 65 |ed back |into the|
|00004e50| 73 65 0a 61 72 72 61 79 | 73 2e 20 20 59 6f 75 20 |se.array|s. You |
|00004e60| 77 69 6c 6c 20 70 72 6f | 62 61 62 6c 79 20 77 61 |will pro|bably wa|
|00004e70| 6e 74 20 74 6f 20 69 6e | 69 74 69 61 6c 69 7a 65 |nt to in|itialize|
|00004e80| 20 74 68 65 20 54 69 74 | 6c 65 20 66 69 65 6c 64 | the Tit|le field|
|00004e90| 20 77 69 74 68 20 74 68 | 65 0a 6d 65 73 73 61 67 | with th|e.messag|
|00004ea0| 65 20 20 74 68 61 74 20 | 79 6f 75 20 77 61 6e 74 |e that |you want|
|00004eb0| 20 74 6f 20 68 61 76 65 | 20 61 70 70 65 61 72 20 | to have| appear |
|00004ec0| 61 74 20 74 68 65 20 74 | 6f 70 20 6f 66 20 74 68 |at the t|op of th|
|00004ed0| 65 20 66 69 6c 65 20 72 | 65 71 75 65 73 74 65 72 |e file r|equester|
|00004ee0| 0a 77 69 6e 64 6f 77 2e | 0a 0a 20 20 20 20 20 20 |.window.|.. |
|00004ef0| 20 20 49 66 20 20 79 6f | 75 20 69 6e 69 74 69 61 | If yo|u initia|
|00004f00| 6c 69 7a 65 20 74 68 65 | 20 50 61 74 68 4e 61 6d |lize the| PathNam|
|00004f10| 65 20 66 69 65 6c 64 20 | 28 69 74 20 73 68 6f 75 |e field |(it shou|
|00004f20| 6c 64 20 70 6f 69 6e 74 | 20 61 6e 20 61 72 72 61 |ld point| an arra|
|00004f30| 79 20 6f 66 0a 61 74 20 | 6c 65 61 73 74 20 44 53 |y of.at |least DS|
|00004f40| 49 5a 45 2b 46 43 48 41 | 52 53 2b 32 20 63 68 61 |IZE+FCHA|RS+2 cha|
|00004f50| 72 61 63 74 65 72 73 29 | 20 74 68 65 6e 20 77 68 |racters)| then wh|
|00004f60| 65 6e 20 74 68 65 20 75 | 73 65 72 20 73 65 6c 65 |en the u|ser sele|
|00004f70| 63 74 73 20 61 20 66 69 | 6c 65 2c 0a 74 68 65 20 |cts a fi|le,.the |
|00004f80| 63 6f 6d 70 6c 65 74 65 | 20 70 61 74 68 20 6e 61 |complete| path na|
|00004f90| 6d 65 20 77 69 6c 6c 20 | 62 65 20 70 75 74 20 69 |me will |be put i|
|00004fa0| 6e 74 6f 20 74 68 69 73 | 20 61 72 72 61 79 2e 0a |nto this| array..|
|00004fb0| 0a 20 20 20 20 20 20 20 | 20 54 68 65 20 57 69 6e |. | The Win|
|00004fc0| 64 6f 77 20 66 69 65 6c | 64 20 69 73 20 75 73 65 |dow fiel|d is use|
|00004fd0| 64 20 74 6f 20 73 70 65 | 63 69 66 79 20 77 68 61 |d to spe|cify wha|
|00004fe0| 74 20 77 69 6e 64 6f 77 | 20 74 68 65 20 66 69 6c |t window| the fil|
|00004ff0| 65 20 72 65 71 75 65 73 | 74 65 72 0a 69 73 20 61 |e reques|ter.is a|
|00005000| 00 00 00 08 00 00 03 96 | 00 00 00 42 00 00 01 e8 |........|...B....|
|00005010| 00 00 00 29 9f 9c ee 30 | 73 73 6f 63 69 61 74 65 |...)...0|ssociate|
|00005020| 64 20 77 69 74 68 2e 20 | 20 54 68 69 73 20 69 73 |d with. | This is|
|00005030| 20 75 73 65 64 20 74 6f | 20 67 65 74 20 74 68 65 | used to| get the|
|00005040| 20 66 69 6c 65 20 72 65 | 71 75 65 73 74 65 72 20 | file re|quester |
|00005050| 74 6f 20 73 68 6f 77 20 | 75 70 0a 6f 6e 20 20 61 |to show |up.on a|
|00005060| 20 20 63 75 73 74 6f 6d | 20 20 73 63 72 65 65 6e | custom| screen|
|00005070| 2e 20 20 20 47 65 6e 65 | 72 61 6c 6c 79 20 20 74 |. Gene|rally t|
|00005080| 68 69 73 20 20 66 69 65 | 6c 64 20 73 68 6f 75 6c |his fie|ld shoul|
|00005090| 64 20 62 65 20 75 6e 6e | 65 63 65 73 73 61 72 79 |d be unn|ecessary|
|000050a0| 2e 0a 54 68 65 72 65 20 | 20 69 73 20 61 20 76 61 |..There | is a va|
|000050b0| 72 69 61 62 6c 65 20 70 | 72 6f 76 69 64 65 64 20 |riable p|rovided |
|000050c0| 69 6e 20 61 20 70 72 6f | 63 65 73 73 20 73 74 72 |in a pro|cess str|
|000050d0| 75 63 74 75 72 65 20 77 | 68 69 63 68 20 69 73 20 |ucture w|hich is |
|000050e0| 75 73 65 64 20 66 6f 72 | 0a 74 68 69 73 20 70 75 |used for|.this pu|
|000050f0| 72 70 6f 73 65 2e 20 20 | 41 6e 79 20 70 72 6f 67 |rpose. |Any prog|
|00005100| 72 61 6d 20 74 68 61 74 | 20 6f 70 65 6e 73 20 61 |ram that| opens a|
|00005110| 20 63 75 73 74 6f 6d 20 | 73 63 72 65 65 6e 20 61 | custom |screen a|
|00005120| 6e 64 20 75 73 65 73 20 | 61 6e 79 20 44 4f 53 0a |nd uses |any DOS.|
|00005130| 66 75 6e 63 74 69 6f 6e | 73 20 20 73 68 6f 75 6c |function|s shoul|
|00005140| 64 20 73 65 74 20 74 68 | 65 20 70 72 5f 57 69 6e |d set th|e pr_Win|
|00005150| 64 6f 77 20 70 6f 69 6e | 74 65 72 20 69 6e 20 74 |dow poin|ter in t|
|00005160| 68 65 69 72 20 70 72 6f | 63 65 73 73 20 73 74 72 |heir pro|cess str|
|00005170| 75 63 74 75 72 65 0a 74 | 6f 20 20 61 20 20 70 6f |ucture.t|o a po|
|00005180| 69 6e 74 65 72 20 20 74 | 6f 20 74 68 65 69 72 20 |inter t|o their |
|00005190| 77 69 6e 64 6f 77 20 73 | 6f 20 74 68 61 74 20 44 |window s|o that D|
|000051a0| 4f 53 20 72 65 71 75 65 | 73 74 65 72 73 20 77 69 |OS reque|sters wi|
|000051b0| 6c 6c 20 73 68 6f 77 20 | 75 70 20 6f 6e 0a 74 68 |ll show |up on.th|
|000051c0| 65 69 72 20 20 63 75 73 | 74 6f 6d 20 20 73 63 72 |eir cus|tom scr|
|000051d0| 65 65 6e 2e 20 20 20 49 | 66 20 20 79 6f 75 20 64 |een. I|f you d|
|000051e0| 6f 20 74 68 69 73 2c 20 | 74 68 65 6e 20 74 68 65 |o this, |then the|
|000051f0| 20 66 69 6c 65 20 72 65 | 71 75 65 73 74 65 72 20 | file re|quester |
|00005200| 00 00 00 08 00 00 03 96 | 00 00 00 43 00 00 01 e8 |........|...C....|
|00005210| 00 00 00 2a cf 74 b8 60 | 77 69 6c 6c 0a 61 6c 73 |...*.t.`|will.als|
|00005220| 6f 20 20 73 68 6f 77 20 | 20 75 70 20 20 6f 6e 20 |o show | up on |
|00005230| 20 79 6f 75 72 20 63 75 | 73 74 6f 6d 20 73 63 72 | your cu|stom scr|
|00005240| 65 65 6e 2e 20 20 49 66 | 20 79 6f 75 20 61 72 65 |een. If| you are|
|00005250| 20 6e 6f 74 20 75 73 69 | 6e 67 20 61 20 63 75 73 | not usi|ng a cus|
|00005260| 74 6f 6d 0a 73 63 72 65 | 65 6e 20 20 74 68 65 6e |tom.scre|en then|
|00005270| 20 79 6f 75 20 64 6f 6e | 27 74 20 6e 65 65 64 20 | you don|'t need |
|00005280| 74 6f 20 73 65 74 20 74 | 68 65 20 70 72 5f 57 69 |to set t|he pr_Wi|
|00005290| 6e 64 6f 77 20 70 6f 69 | 6e 74 65 72 20 6f 72 20 |ndow poi|nter or |
|000052a0| 74 68 65 20 57 69 6e 64 | 6f 77 0a 66 69 65 6c 64 |the Wind|ow.field|
|000052b0| 20 20 69 6e 20 20 74 68 | 65 20 20 66 69 6c 65 20 | in th|e file |
|000052c0| 20 72 65 71 75 65 73 74 | 65 72 20 20 73 74 72 75 | request|er stru|
|000052d0| 63 74 75 72 65 2e 20 20 | 20 4e 6f 74 65 3a 20 20 |cture. | Note: |
|000052e0| 49 66 20 79 6f 75 20 64 | 6f 20 73 65 74 20 74 68 |If you d|o set th|
|000052f0| 65 0a 70 72 5f 57 69 6e | 64 6f 77 20 20 73 74 72 |e.pr_Win|dow str|
|00005300| 75 63 74 75 72 65 20 69 | 6e 20 74 68 65 20 70 72 |ucture i|n the pr|
|00005310| 6f 63 65 73 73 20 73 74 | 72 75 63 74 75 72 65 2c |ocess st|ructure,|
|00005320| 20 62 65 20 73 75 72 65 | 20 74 6f 20 72 65 74 75 | be sure| to retu|
|00005330| 72 6e 20 69 74 20 74 6f | 0a 69 74 73 20 6f 6c 64 |rn it to|.its old|
|00005340| 20 76 61 6c 75 65 20 62 | 65 66 6f 72 65 20 79 6f | value b|efore yo|
|00005350| 75 72 20 70 72 6f 67 72 | 61 6d 20 65 78 69 74 73 |ur progr|am exits|
|00005360| 2e 0a 0a 20 20 20 20 20 | 20 20 20 49 66 20 20 74 |... | If t|
|00005370| 68 65 20 20 65 78 74 65 | 6e 64 65 64 20 20 73 65 |he exte|nded se|
|00005380| 6c 65 63 74 20 20 62 69 | 74 20 20 69 73 20 73 65 |lect bi|t is se|
|00005390| 74 20 69 6e 20 74 68 65 | 20 46 6c 61 67 73 20 66 |t in the| Flags f|
|000053a0| 69 65 6c 64 20 74 68 65 | 6e 20 74 68 65 0a 4d 61 |ield the|n the.Ma|
|000053b0| 78 45 78 74 65 6e 64 65 | 64 53 65 6c 65 63 74 20 |xExtende|dSelect |
|000053c0| 20 66 69 65 6c 64 73 20 | 20 73 70 65 63 69 66 69 | fields | specifi|
|000053d0| 65 73 20 20 74 68 65 20 | 6d 61 78 69 6d 75 6d 20 |es the |maximum |
|000053e0| 6e 75 6d 62 65 72 20 6f | 66 20 66 69 6c 65 73 20 |number o|f files |
|000053f0| 74 68 61 74 0a 74 68 65 | 20 75 73 65 72 20 63 61 |that.the| user ca|
|00005400| 00 00 00 08 00 00 03 96 | 00 00 00 44 00 00 01 e8 |........|...D....|
|00005410| 00 00 00 2b 10 e5 5d 73 | 6e 20 73 65 6c 65 63 74 |...+..]s|n select|
|00005420| 2e 20 20 54 68 69 73 20 | 69 73 20 69 67 6e 6f 72 |. This |is ignor|
|00005430| 65 64 20 69 66 20 74 68 | 65 20 65 78 74 65 6e 64 |ed if th|e extend|
|00005440| 65 64 20 62 69 74 20 69 | 73 6e 27 74 20 73 65 74 |ed bit i|sn't set|
|00005450| 20 69 6e 0a 74 68 65 20 | 46 6c 61 67 73 20 66 69 | in.the |Flags fi|
|00005460| 65 6c 64 2e 0a 0a 20 20 | 20 20 20 20 20 20 6e 75 |eld... | nu|
|00005470| 6d 6c 69 6e 65 73 20 61 | 6e 64 20 6e 75 6d 63 6f |mlines a|nd numco|
|00005480| 6c 75 6d 6e 73 20 73 70 | 65 63 69 66 79 20 74 68 |lumns sp|ecify th|
|00005490| 65 20 6d 61 78 69 6d 75 | 6d 20 73 69 7a 65 20 74 |e maximu|m size t|
|000054a0| 68 61 74 20 74 68 65 20 | 66 69 6c 65 20 62 6f 78 |hat the |file box|
|000054b0| 0a 77 69 6c 6c 20 20 62 | 65 20 69 6e 20 63 68 61 |.will b|e in cha|
|000054c0| 72 61 63 74 65 72 73 2e | 20 20 49 66 20 74 68 65 |racters.| If the|
|000054d0| 20 73 79 73 74 65 6d 20 | 69 73 20 6c 6f 77 20 6f | system |is low o|
|000054e0| 6e 20 6d 65 6d 6f 72 79 | 2c 20 6f 72 20 74 68 65 |n memory|, or the|
|000054f0| 20 73 63 72 65 65 6e 0a | 69 73 20 20 74 6f 6f 20 | screen.|is too |
|00005500| 20 73 6d 61 6c 6c 2c 20 | 20 74 68 65 73 65 20 77 | small, | these w|
|00005510| 69 6c 6c 20 62 65 20 73 | 68 72 75 6e 6b 20 61 73 |ill be s|hrunk as|
|00005520| 20 6e 65 63 65 73 73 61 | 72 79 2e 20 20 64 65 76 | necessa|ry. dev|
|00005530| 63 6f 6c 75 6d 6e 73 20 | 69 73 20 74 68 65 0a 6e |columns |is the.n|
|00005540| 75 6d 62 65 72 20 6f 66 | 20 63 6f 6c 75 6d 6e 73 |umber of| columns|
|00005550| 20 6f 66 20 63 68 61 72 | 61 63 74 65 72 73 20 77 | of char|acters w|
|00005560| 69 64 65 20 74 68 61 74 | 20 74 68 65 20 64 65 76 |ide that| the dev|
|00005570| 69 63 65 20 62 6f 78 20 | 77 69 6c 6c 20 62 65 2e |ice box |will be.|
|00005580| 0a 0a 20 20 20 20 20 20 | 20 20 54 68 65 20 20 46 |.. | The F|
|00005590| 6c 61 67 73 20 66 69 65 | 6c 64 20 63 61 6e 20 63 |lags fie|ld can c|
|000055a0| 75 72 72 65 6e 74 6c 79 | 20 63 6f 6e 74 61 69 6e |urrently| contain|
|000055b0| 20 73 65 76 65 6e 20 64 | 69 66 66 65 72 65 6e 74 | seven d|ifferent|
|000055c0| 20 66 6c 61 67 73 2e 20 | 20 54 68 65 0a 66 69 72 | flags. | The.fir|
|000055d0| 73 74 20 20 66 6c 61 67 | 2c 20 20 46 52 51 53 48 |st flag|, FRQSH|
|000055e0| 4f 57 49 4e 46 4f 4d 2c | 20 20 73 70 65 63 69 66 |OWINFOM,| specif|
|000055f0| 69 65 73 20 20 77 68 65 | 74 68 65 72 20 20 6f 72 |ies whe|ther or|
|00005600| 00 00 00 08 00 00 03 96 | 00 00 00 45 00 00 01 e8 |........|...E....|
|00005610| 00 00 00 2c 2c c2 1b 16 | 20 6e 6f 74 20 27 2a 2e |...,,...| not '*.|
|00005620| 69 6e 66 6f 27 20 66 69 | 6c 65 73 0a 28 66 69 6c |info' fi|les.(fil|
|00005630| 65 73 20 20 63 6f 6e 74 | 61 69 6e 69 6e 67 20 69 |es cont|aining i|
|00005640| 6e 66 6f 72 6d 61 74 69 | 6f 6e 20 66 6f 72 20 69 |nformati|on for i|
|00005650| 63 6f 6e 73 29 20 73 68 | 6f 75 6c 64 20 62 65 20 |cons) sh|ould be |
|00005660| 66 69 6c 74 65 72 65 64 | 20 6f 75 74 2e 20 20 54 |filtered| out. T|
|00005670| 68 65 0a 64 65 66 61 75 | 6c 74 20 69 73 20 66 6f |he.defau|lt is fo|
|00005680| 72 20 74 68 65 6d 20 74 | 6f 20 62 65 20 66 69 6c |r them t|o be fil|
|00005690| 74 65 72 65 64 2e 0a 0a | 20 20 20 20 20 20 20 20 |tered...| |
|000056a0| 54 68 65 20 20 46 52 51 | 45 58 54 53 45 4c 45 43 |The FRQ|EXTSELEC|
|000056b0| 54 4d 20 20 66 6c 61 67 | 73 20 20 73 70 65 63 69 |TM flag|s speci|
|000056c0| 66 69 65 73 20 20 77 68 | 65 74 68 65 72 20 20 65 |fies wh|ether e|
|000056d0| 78 74 65 6e 64 65 64 20 | 20 73 65 6c 65 63 74 20 |xtended | select |
|000056e0| 69 73 0a 77 61 6e 74 65 | 64 2e 20 20 20 49 66 20 |is.wante|d. If |
|000056f0| 20 79 6f 75 20 20 73 65 | 74 20 74 68 69 73 20 66 | you se|t this f|
|00005700| 6c 61 67 20 74 68 65 6e | 20 79 6f 75 20 73 68 6f |lag then| you sho|
|00005710| 75 6c 64 20 70 72 6f 62 | 61 62 6c 79 20 61 6c 73 |uld prob|ably als|
|00005720| 6f 20 73 65 74 20 74 68 | 65 0a 4d 61 78 45 78 74 |o set th|e.MaxExt|
|00005730| 65 6e 64 65 64 53 65 6c | 65 63 74 20 20 66 69 65 |endedSel|ect fie|
|00005740| 6c 64 2e 20 20 20 49 66 | 20 20 79 6f 75 20 20 64 |ld. If| you d|
|00005750| 6f 6e 27 74 20 20 74 68 | 65 6e 20 74 68 65 20 6d |on't th|en the m|
|00005760| 61 78 69 6d 75 6d 20 6e | 75 6d 62 65 72 20 6f 66 |aximum n|umber of|
|00005770| 0a 66 69 6c 65 73 20 20 | 74 68 65 20 20 75 73 65 |.files |the use|
|00005780| 72 20 20 77 69 6c 6c 20 | 62 65 20 61 62 6c 65 20 |r will |be able |
|00005790| 74 6f 20 73 65 6c 65 63 | 74 20 77 69 6c 6c 20 62 |to selec|t will b|
|000057a0| 65 20 36 35 35 33 36 2c | 20 77 68 69 63 68 20 69 |e 65536,| which i|
|000057b0| 73 20 61 20 62 69 74 0a | 68 69 67 68 20 20 66 6f |s a bit.|high fo|
|000057c0| 72 20 20 6d 6f 73 74 20 | 20 70 75 72 70 6f 73 65 |r most | purpose|
|000057d0| 73 2e 20 20 4e 6f 74 65 | 3a 20 20 49 66 20 79 6f |s. Note|: If yo|
|000057e0| 75 20 75 73 65 20 74 68 | 69 73 20 62 69 74 20 74 |u use th|is bit t|
|000057f0| 68 65 6e 20 79 6f 75 20 | 5f 6d 75 73 74 5f 0a 63 |hen you |_must_.c|
|00005800| 00 00 00 08 00 00 03 96 | 00 00 00 46 00 00 01 e8 |........|...F....|
|00005810| 00 00 00 2d 90 95 13 4d | 61 6c 6c 20 20 50 75 72 |...-...M|all Pur|
|00005820| 67 65 46 69 6c 65 73 28 | 29 20 20 77 69 74 68 20 |geFiles(|) with |
|00005830| 20 74 68 65 20 20 61 64 | 64 72 65 73 73 20 6f 66 | the ad|dress of|
|00005840| 20 79 6f 75 72 20 46 69 | 6c 65 52 65 71 75 65 73 | your Fi|leReques|
|00005850| 74 65 72 20 73 74 72 75 | 63 74 75 72 65 0a 61 66 |ter stru|cture.af|
|00005860| 74 65 72 20 20 74 68 65 | 20 20 6c 61 73 74 20 74 |ter the| last t|
|00005870| 69 6d 65 20 79 6f 75 20 | 63 61 6c 6c 20 74 68 65 |ime you |call the|
|00005880| 20 66 69 6c 65 20 72 65 | 71 75 65 73 74 65 72 2c | file re|quester,|
|00005890| 20 69 6e 20 6f 72 64 65 | 72 20 74 6f 20 66 72 65 | in orde|r to fre|
|000058a0| 65 20 75 70 0a 61 6e 79 | 20 20 6d 65 6d 6f 72 79 |e up.any| memory|
|000058b0| 20 20 75 73 65 64 20 20 | 69 6e 20 20 74 68 65 20 | used |in the |
|000058c0| 20 65 78 74 65 6e 64 65 | 64 20 73 65 6c 65 63 74 | extende|d select|
|000058d0| 20 73 74 72 75 63 74 75 | 72 65 73 2e 20 20 57 68 | structu|res. Wh|
|000058e0| 65 6e 20 74 68 65 20 75 | 73 65 72 0a 73 65 6c 65 |en the u|ser.sele|
|000058f0| 63 74 73 20 20 6d 75 6c | 74 69 70 6c 65 20 66 69 |cts mul|tiple fi|
|00005900| 6c 65 73 2c 20 61 20 6c | 69 6e 6b 65 64 20 6c 69 |les, a l|inked li|
|00005910| 73 74 20 6f 66 20 74 68 | 65 20 66 69 6c 65 20 6e |st of th|e file n|
|00005920| 61 6d 65 73 20 73 65 6c | 65 63 74 65 64 20 28 6e |ames sel|ected (n|
|00005930| 6f 74 0a 69 6e 63 6c 75 | 64 69 6e 67 20 74 68 65 |ot.inclu|ding the|
|00005940| 20 64 69 72 65 63 74 6f | 72 79 20 6e 61 6d 65 29 | directo|ry name)|
|00005950| 20 77 69 6c 6c 20 61 70 | 70 65 61 72 20 69 6e 20 | will ap|pear in |
|00005960| 74 68 65 20 45 78 74 65 | 6e 64 65 64 53 65 6c 65 |the Exte|ndedSele|
|00005970| 63 74 20 66 69 65 6c 64 | 2e 0a 54 68 65 20 20 6c |ct field|..The l|
|00005980| 69 73 74 20 20 69 73 20 | 61 20 6c 69 6e 6b 65 64 |ist is |a linked|
|00005990| 20 6c 69 73 74 20 6f 66 | 20 45 53 53 74 72 75 63 | list of| ESStruc|
|000059a0| 74 75 72 65 73 2e 20 20 | 54 68 65 20 64 69 72 65 |tures. |The dire|
|000059b0| 63 74 6f 72 79 20 6e 61 | 6d 65 20 77 68 69 63 68 |ctory na|me which|
|000059c0| 0a 73 68 6f 75 6c 64 20 | 20 62 65 20 20 70 72 65 |.should | be pre|
|000059d0| 70 65 6e 64 65 64 20 20 | 74 6f 20 20 61 6c 6c 20 |pended |to all |
|000059e0| 6f 66 20 74 68 65 73 65 | 20 6e 61 6d 65 73 20 77 |of these| names w|
|000059f0| 69 6c 6c 20 61 70 70 65 | 61 72 20 69 6e 20 74 68 |ill appe|ar in th|
|00005a00| 00 00 00 08 00 00 03 96 | 00 00 00 47 00 00 01 e8 |........|...G....|
|00005a10| 00 00 00 2e 4a e8 c1 ff | 65 20 61 72 72 61 79 0a |....J...|e array.|
|00005a20| 70 6f 69 6e 74 65 64 20 | 74 6f 20 62 79 20 74 68 |pointed |to by th|
|00005a30| 65 20 44 69 72 20 66 69 | 65 6c 64 2e 0a 0a 20 20 |e Dir fi|eld... |
|00005a40| 20 20 20 20 20 20 54 68 | 65 20 20 46 52 51 43 41 | Th|e FRQCA|
|00005a50| 43 48 49 4e 47 4d 20 20 | 66 6c 61 67 20 20 73 70 |CHINGM |flag sp|
|00005a60| 65 63 69 66 69 65 73 20 | 20 77 68 65 74 68 65 72 |ecifies | whether|
|00005a70| 20 20 6f 72 20 6e 6f 74 | 20 64 69 72 65 63 74 6f | or not| directo|
|00005a80| 72 69 65 73 20 61 72 65 | 0a 63 61 63 68 65 64 20 |ries are|.cached |
|00005a90| 20 66 72 6f 6d 20 20 6f | 6e 65 20 20 63 61 6c 6c | from o|ne call|
|00005aa0| 20 20 74 6f 20 20 74 68 | 65 20 6e 65 78 74 2e 20 | to th|e next. |
|00005ab0| 20 54 68 69 73 20 69 73 | 20 61 20 76 65 72 79 20 | This is| a very |
|00005ac0| 68 61 6e 64 79 20 66 65 | 61 74 75 72 65 73 2c 0a |handy fe|atures,.|
|00005ad0| 65 73 70 65 63 69 61 6c | 6c 79 20 20 66 6f 72 20 |especial|ly for |
|00005ae0| 74 68 6f 73 65 20 77 68 | 6f 20 6c 61 63 6b 20 68 |those wh|o lack h|
|00005af0| 61 72 64 20 64 72 69 76 | 65 73 2e 20 20 48 6f 77 |ard driv|es. How|
|00005b00| 65 76 65 72 2c 20 69 66 | 20 74 68 69 73 20 66 65 |ever, if| this fe|
|00005b10| 61 74 75 72 65 73 0a 69 | 73 20 20 75 73 65 64 2c |atures.i|s used,|
|00005b20| 20 79 6f 75 20 5f 6d 75 | 73 74 5f 20 63 61 6c 6c | you _mu|st_ call|
|00005b30| 20 74 68 65 20 50 75 72 | 67 65 46 69 6c 65 73 28 | the Pur|geFiles(|
|00005b40| 29 20 72 6f 75 74 69 6e | 65 20 77 69 74 68 20 74 |) routin|e with t|
|00005b50| 68 65 20 61 64 64 72 65 | 73 73 20 6f 66 0a 79 6f |he addre|ss of.yo|
|00005b60| 75 72 20 20 46 69 6c 65 | 52 65 71 75 65 73 74 65 |ur File|Requeste|
|00005b70| 72 20 20 73 74 72 75 63 | 74 75 72 65 20 20 61 66 |r struc|ture af|
|00005b80| 74 65 72 20 20 74 68 65 | 20 6c 61 73 74 20 74 69 |ter the| last ti|
|00005b90| 6d 65 20 79 6f 75 20 63 | 61 6c 6c 20 74 68 65 20 |me you c|all the |
|00005ba0| 66 69 6c 65 0a 72 65 71 | 75 65 73 74 65 72 2c 20 |file.req|uester, |
|00005bb0| 69 6e 20 6f 72 64 65 72 | 20 74 6f 20 66 72 65 65 |in order| to free|
|00005bc0| 20 75 70 20 61 6e 79 20 | 6d 65 6d 6f 72 79 20 75 | up any |memory u|
|00005bd0| 73 65 64 20 69 6e 20 63 | 61 63 68 69 6e 67 2e 0a |sed in c|aching..|
|00005be0| 0a 20 20 20 20 20 20 20 | 20 41 73 20 20 77 65 6c |. | As wel|
|00005bf0| 6c 20 20 61 73 20 62 65 | 69 6e 67 20 61 20 66 69 |l as be|ing a fi|
|00005c00| 00 00 00 08 00 00 03 96 | 00 00 00 48 00 00 01 e8 |........|...H....|
|00005c10| 00 00 00 30 aa 61 50 4e | 6c 65 20 72 65 71 75 65 |...0.aPN|le reque|
|00005c20| 73 74 65 72 2c 20 74 68 | 69 73 20 72 6f 75 74 69 |ster, th|is routi|
|00005c30| 6e 65 20 63 61 6e 20 62 | 65 20 75 73 65 64 20 61 |ne can b|e used a|
|00005c40| 73 20 61 0a 66 6f 6e 74 | 20 72 65 71 75 65 73 74 |s a.font| request|
|00005c50| 65 72 20 74 6f 6f 2e 20 | 20 4a 75 73 74 20 73 65 |er too. | Just se|
|00005c60| 74 20 74 68 65 20 46 52 | 51 47 45 54 46 4f 4e 54 |t the FR|QGETFONT|
|00005c70| 53 4d 20 66 6c 61 67 73 | 20 74 6f 20 74 75 72 6e |SM flags| to turn|
|00005c80| 20 69 74 20 69 6e 74 6f | 20 61 0a 66 6f 6e 74 20 | it into| a.font |
|00005c90| 20 72 65 71 75 65 73 74 | 65 72 2e 20 20 20 59 6f | request|er. Yo|
|00005ca0| 75 20 20 73 68 6f 75 6c | 64 20 20 61 6c 73 6f 20 |u shoul|d also |
|00005cb0| 20 70 75 74 20 74 68 65 | 20 6e 61 6d 65 20 27 66 | put the| name 'f|
|00005cc0| 6f 6e 74 73 3a 27 20 69 | 6e 20 74 68 65 20 44 69 |onts:' i|n the Di|
|00005cd0| 72 0a 61 72 72 61 79 2e | 20 20 20 54 68 65 20 66 |r.array.| The f|
|00005ce0| 69 6c 65 2f 66 6f 6e 74 | 20 72 65 71 75 65 73 74 |ile/font| request|
|00005cf0| 65 72 20 77 69 6c 6c 20 | 72 65 74 75 72 6e 20 61 |er will |return a|
|00005d00| 20 6f 6e 65 20 6f 72 20 | 7a 65 72 6f 20 66 6f 72 | one or |zero for|
|00005d10| 20 73 75 63 63 65 73 73 | 0a 6f 72 20 20 66 61 69 | success|.or fai|
|00005d20| 6c 75 72 65 20 61 73 20 | 75 73 75 61 6c 2c 20 74 |lure as |usual, t|
|00005d30| 68 65 20 66 6f 6e 74 20 | 6e 61 6d 65 20 77 69 6c |he font |name wil|
|00005d40| 6c 20 62 65 20 72 65 74 | 75 72 6e 65 64 20 69 6e |l be ret|urned in|
|00005d50| 20 74 68 65 20 46 69 6c | 65 20 61 72 72 61 79 0a | the Fil|e array.|
|00005d60| 61 6e 64 20 20 74 68 65 | 20 20 66 6f 6e 74 20 20 |and the| font |
|00005d70| 73 69 7a 65 20 20 61 6e | 64 20 20 73 74 79 6c 65 |size an|d style|
|00005d80| 20 77 69 6c 6c 20 62 65 | 20 72 65 74 75 72 6e 65 | will be| returne|
|00005d90| 64 20 69 6e 20 74 68 65 | 20 46 6f 6e 74 59 53 69 |d in the| FontYSi|
|00005da0| 7a 65 20 61 6e 64 0a 46 | 6f 6e 74 53 74 79 6c 65 |ze and.F|ontStyle|
|00005db0| 20 20 66 69 65 6c 64 73 | 2e 20 20 20 4e 6f 74 65 | fields|. Note|
|00005dc0| 20 20 74 68 61 74 20 20 | 74 68 65 20 66 6f 6e 74 | that |the font|
|00005dd0| 20 72 65 71 75 65 73 74 | 65 72 20 61 6c 6c 6f 77 | request|er allow|
|00005de0| 73 20 74 68 65 20 75 73 | 65 72 20 74 6f 0a 63 68 |s the us|er to.ch|
|00005df0| 61 6e 67 65 20 20 74 68 | 65 20 20 64 69 72 65 63 |ange th|e direc|
|00005e00| 00 00 00 10 00 00 00 2f | 00 00 00 3b 00 00 00 00 |......./|...;....|
|00005e10| 00 00 00 00 ff ff ea 34 | 00 00 00 00 00 00 00 00 |.......4|........|
|00005e20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005e30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005e40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 6a |........|.......j|
|00005e50| 00 00 00 69 00 00 00 68 | 00 00 00 67 00 00 00 66 |...i...h|...g...f|
|00005e60| 00 00 00 65 00 00 00 64 | 00 00 00 63 00 00 00 62 |...e...d|...c...b|
|00005e70| 00 00 00 61 00 00 00 60 | 00 00 00 5f 00 00 00 5e |...a...`|..._...^|
|00005e80| 00 00 00 5d 00 00 00 5c | 00 00 00 5b 00 00 00 5a |...]...\|...[...Z|
|00005e90| 00 00 00 59 00 00 00 58 | 00 00 00 57 00 00 00 56 |...Y...X|...W...V|
|00005ea0| 00 00 00 55 00 00 00 54 | 00 00 00 53 00 00 00 52 |...U...T|...S...R|
|00005eb0| 00 00 00 51 00 00 00 50 | 00 00 00 4f 00 00 00 4e |...Q...P|...O...N|
|00005ec0| 00 00 00 4d 00 00 00 4c | 00 00 00 4b 00 00 00 4a |...M...L|...K...J|
|00005ed0| 00 00 00 49 00 00 00 48 | 00 00 00 47 00 00 00 46 |...I...H|...G...F|
|00005ee0| 00 00 00 45 00 00 00 44 | 00 00 00 43 00 00 00 42 |...E...D|...C...B|
|00005ef0| 00 00 00 41 00 00 00 40 | 00 00 00 3f 00 00 00 3e |...A...@|...?...>|
|00005f00| 00 00 00 3d 00 00 00 3c | 00 00 00 3b 00 00 00 3a |...=...<|...;...:|
|00005f10| 00 00 00 39 00 00 00 38 | 00 00 00 37 00 00 00 36 |...9...8|...7...6|
|00005f20| 00 00 00 35 00 00 00 34 | 00 00 00 33 00 00 00 32 |...5...4|...3...2|
|00005f30| 00 00 00 31 00 00 00 30 | 00 00 00 00 00 00 00 00 |...1...0|........|
|00005f40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005f50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005f80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005f90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005fa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005fb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ff0| 00 00 00 00 00 00 03 96 | 00 00 00 00 ff ff ff fd |........|........|
|00006000| 00 00 00 08 00 00 03 96 | 00 00 00 49 00 00 01 e8 |........|...I....|
|00006010| 00 00 00 31 1e 0f be 69 | 74 6f 72 79 20 20 77 68 |...1...i|tory wh|
|00006020| 65 72 65 20 20 74 68 65 | 20 20 66 6f 6e 74 73 20 |ere the| fonts |
|00006030| 61 72 65 20 72 65 61 64 | 20 66 72 6f 6d 2e 20 20 |are read| from. |
|00006040| 41 6c 74 68 6f 75 67 68 | 20 79 6f 75 0a 73 68 6f |Although| you.sho|
|00006050| 75 6c 64 20 20 70 75 74 | 20 20 27 66 6f 6e 74 73 |uld put| 'fonts|
|00006060| 3a 27 20 74 68 65 72 65 | 2c 20 79 6f 75 20 73 68 |:' there|, you sh|
|00006070| 6f 75 6c 64 20 61 6c 6c | 6f 77 20 66 6f 72 20 74 |ould all|ow for t|
|00006080| 68 65 20 70 6f 73 73 69 | 62 69 6c 69 74 79 20 74 |he possi|bility t|
|00006090| 68 61 74 0a 74 68 65 20 | 20 75 73 65 72 20 20 6d |hat.the | user m|
|000060a0| 69 67 68 74 20 20 63 68 | 61 6e 67 65 20 20 74 68 |ight ch|ange th|
|000060b0| 65 20 20 64 69 72 65 63 | 74 6f 72 79 2e 20 20 54 |e direc|tory. T|
|000060c0| 68 65 79 20 6d 69 67 68 | 74 2c 20 70 65 72 68 61 |hey migh|t, perha|
|000060d0| 70 73 2c 20 68 61 76 65 | 20 61 0a 73 65 70 61 72 |ps, have| a.separ|
|000060e0| 61 74 65 20 20 64 69 73 | 6b 20 20 66 75 6c 6c 20 |ate dis|k full |
|000060f0| 20 6f 66 20 20 66 6f 6e | 74 73 2e 20 20 20 54 68 | of fon|ts. Th|
|00006100| 65 20 73 69 6d 70 6c 65 | 73 74 20 77 61 79 20 74 |e simple|st way t|
|00006110| 6f 20 64 65 61 6c 20 77 | 69 74 68 20 66 6f 6e 74 |o deal w|ith font|
|00006120| 73 0a 63 6f 6d 69 6e 67 | 20 20 66 72 6f 6d 20 20 |s.coming| from |
|00006130| 64 69 66 66 65 72 65 6e | 74 20 20 64 69 72 65 63 |differen|t direc|
|00006140| 74 6f 72 69 65 73 2c 20 | 20 69 73 20 20 74 6f 20 |tories, | is to |
|00006150| 20 73 65 74 20 20 74 68 | 65 20 50 61 74 68 4e 61 | set th|e PathNa|
|00006160| 6d 65 20 66 69 65 6c 64 | 0a 69 6e 73 74 65 61 64 |me field|.instead|
|00006170| 20 6f 66 20 74 68 65 20 | 44 69 72 20 66 69 65 6c | of the |Dir fiel|
|00006180| 64 2e 20 20 59 6f 75 20 | 63 61 6e 20 74 68 65 6e |d. You |can then|
|00006190| 20 75 73 65 20 74 68 65 | 20 73 74 72 69 6e 67 20 | use the| string |
|000061a0| 69 6e 20 74 68 65 20 50 | 61 74 68 4e 61 6d 65 0a |in the P|athName.|
|000061b0| 66 69 65 6c 64 20 20 28 | 77 68 69 63 68 20 20 77 |field (|which w|
|000061c0| 69 6c 6c 20 20 63 6f 6e | 74 61 69 6e 20 20 74 68 |ill con|tain th|
|000061d0| 65 20 64 69 72 65 63 74 | 6f 72 79 20 61 6e 64 20 |e direct|ory and |
|000061e0| 66 6f 6e 74 20 6e 61 6d | 65 29 20 61 73 20 74 68 |font nam|e) as th|
|000061f0| 65 20 66 6f 6e 74 0a 6e | 61 6d 65 2e 20 20 20 49 |e font.n|ame. I|
|00006200| 00 00 00 08 00 00 03 96 | 00 00 00 4a 00 00 01 e8 |........|...J....|
|00006210| 00 00 00 32 00 e5 7d e9 | 66 20 20 79 6f 75 20 20 |...2..}.|f you |
|00006220| 64 6f 6e 27 74 20 20 64 | 6f 20 74 68 69 73 2c 20 |don't d|o this, |
|00006230| 74 68 65 6e 20 79 6f 75 | 20 68 61 76 65 20 74 6f |then you| have to|
|00006240| 20 63 6f 6e 63 61 74 65 | 6e 61 74 65 20 74 68 65 | concate|nate the|
|00006250| 20 66 6f 6e 74 0a 6e 61 | 6d 65 20 20 61 6e 64 20 | font.na|me and |
|00006260| 20 74 68 65 20 20 64 69 | 72 65 63 74 6f 72 79 20 | the di|rectory |
|00006270| 20 6e 61 6d 65 20 20 79 | 6f 75 72 73 65 6c 66 2e | name y|ourself.|
|00006280| 20 20 20 49 66 20 20 79 | 6f 75 20 20 75 73 65 20 | If y|ou use |
|00006290| 74 68 65 20 50 61 74 68 | 4e 61 6d 65 0a 76 61 72 |the Path|Name.var|
|000062a0| 69 61 62 6c 65 20 20 74 | 68 65 6e 20 20 69 74 20 |iable t|hen it |
|000062b0| 20 69 73 20 71 75 69 74 | 65 20 72 65 61 73 6f 6e | is quit|e reason|
|000062c0| 61 62 6c 65 20 74 6f 20 | 6c 65 61 76 65 20 74 68 |able to |leave th|
|000062d0| 65 20 46 69 6c 65 20 66 | 69 65 6c 64 20 62 6c 61 |e File f|ield bla|
|000062e0| 6e 6b 2c 0a 73 69 6e 63 | 65 20 20 61 6c 6c 20 20 |nk,.sinc|e all |
|000062f0| 74 68 65 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |the info|rmation |
|00006300| 79 6f 75 20 6e 65 65 64 | 20 63 61 6e 20 62 65 20 |you need| can be |
|00006310| 6f 62 74 61 69 6e 65 64 | 20 66 72 6f 6d 20 74 68 |obtained| from th|
|00006320| 65 20 50 61 74 68 4e 61 | 6d 65 0a 73 74 72 69 6e |e PathNa|me.strin|
|00006330| 67 2e 0a 0a 20 20 20 20 | 20 20 20 20 54 68 65 20 |g... | The |
|00006340| 20 46 52 51 49 4e 46 4f | 47 41 44 47 45 54 4d 20 | FRQINFO|GADGETM |
|00006350| 66 6c 61 67 20 73 70 65 | 63 69 66 69 65 73 20 77 |flag spe|cifies w|
|00006360| 68 65 74 68 65 72 20 6f | 72 20 6e 6f 74 20 61 20 |hether o|r not a |
|00006370| 68 69 64 65 2f 73 68 6f | 77 20 69 6e 66 6f 0a 67 |hide/sho|w info.g|
|00006380| 61 64 67 65 74 20 73 68 | 6f 75 6c 64 20 61 70 70 |adget sh|ould app|
|00006390| 65 61 72 20 6f 6e 20 74 | 68 65 20 66 69 6c 65 20 |ear on t|he file |
|000063a0| 72 65 71 75 65 73 74 65 | 72 2e 20 20 54 68 69 73 |requeste|r. This|
|000063b0| 20 6c 65 74 73 20 74 68 | 65 20 75 73 65 72 20 74 | lets th|e user t|
|000063c0| 6f 67 67 6c 65 0a 74 68 | 65 20 20 73 74 61 74 65 |oggle.th|e state|
|000063d0| 20 20 6f 66 20 20 74 68 | 65 20 20 46 52 51 53 48 | of th|e FRQSH|
|000063e0| 4f 57 49 4e 46 4f 4d 20 | 66 6c 61 67 20 74 6f 20 |OWINFOM |flag to |
|000063f0| 64 65 63 69 64 65 20 77 | 68 65 74 68 65 72 20 6f |decide w|hether o|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.