home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 5 / DATAFILE_PDCD5.iso / utilities / d / drwimp / DrWimp / Examples / !DrawDisp / !RunImage < prev    next >
Unknown  |  1997-05-31  |  5.8 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


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

ConfidenceProgramDetectionMatch TypeSupport
100% file data default
100% xdgMime image/x-tga default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 0d 00 0a 0f f4 3e 21 52 | 75 6e 49 6d 61 67 65 0d |.....>!R|unImage.|
|00000010| 00 14 04 0d 00 1e 58 20 | 20 f4 20 2a 2a 54 68 69 |......X | . **Thi|
|00000020| 73 20 65 78 61 6d 70 6c | 65 20 64 65 6d 6f 6e 73 |s exampl|e demons|
|00000030| 74 72 61 74 65 73 20 68 | 6f 77 20 74 6f 20 6c 6f |trates h|ow to lo|
|00000040| 61 64 20 69 6e 20 61 20 | 64 72 61 77 66 69 6c 65 |ad in a |drawfile|
|00000050| 20 61 6e 64 20 72 65 6e | 64 65 72 20 69 74 20 69 | and ren|der it i|
|00000060| 6e 20 61 20 77 69 6e 64 | 6f 77 2c 0d 00 28 4c 20 |n a wind|ow,..(L |
|00000070| 20 f4 20 2a 2a 72 65 73 | 69 7a 69 6e 67 20 74 68 | . **res|izing th|
|00000080| 65 20 77 69 6e 64 6f 77 | 20 74 6f 20 61 6e 20 61 |e window| to an a|
|00000090| 70 70 72 6f 70 72 69 61 | 74 65 20 73 69 7a 65 20 |ppropria|te size |
|000000a0| 66 6f 72 20 74 68 65 20 | 64 72 61 77 66 69 6c 65 |for the |drawfile|
|000000b0| 20 66 69 72 73 74 2e 0d | 00 32 04 0d 00 3c 1f c8 | first..|.2...<..|
|000000c0| 9b 20 22 3c 44 72 57 69 | 6d 70 4c 69 62 24 44 69 |. "<DrWi|mpLib$Di|
|000000d0| 72 3e 2e 44 72 57 69 6d | 70 22 0d 00 46 05 3a 0d |r>.DrWim|p"..F.:.|
|000000e0| 00 50 1d 61 70 70 6e 61 | 6d 65 24 3d 22 44 72 61 |.P.appna|me$="Dra|
|000000f0| 77 20 44 69 73 70 6c 61 | 79 65 72 22 0d 00 5a 35 |w Displa|yer"..Z5|
|00000100| ee 20 85 20 f2 77 69 6d | 70 5f 65 72 72 6f 72 28 |. . .wim|p_error(|
|00000110| 61 70 70 6e 61 6d 65 24 | 2c f6 24 2b 22 20 61 74 |appname$|,.$+" at|
|00000120| 20 6c 69 6e 65 20 22 2b | c3 9e 2c 31 2c 31 29 3a | line "+|..,1,1):|
|00000130| e0 0d 00 64 04 0d 00 6e | 59 20 20 f4 20 2a 2a 72 |...d...n|Y . **r|
|00000140| 65 67 69 73 74 65 72 20 | 74 68 65 20 74 61 73 6b |egister |the task|
|00000150| 2c 20 67 69 76 69 6e 67 | 20 74 68 65 20 61 70 70 |, giving| the app|
|00000160| 6c 69 63 61 74 69 6f 6e | 20 6e 61 6d 65 2c 20 73 |lication| name, s|
|00000170| 69 7a 65 20 69 6e 20 62 | 79 74 65 73 20 66 6f 72 |ize in b|ytes for|
|00000180| 20 74 77 6f 20 62 6c 6f | 63 6b 73 20 6f 66 0d 00 | two blo|cks of..|
|00000190| 78 5d 20 20 f4 20 2a 2a | 6d 65 6d 6f 72 79 20 61 |x] . **|memory a|
|000001a0| 6e 64 20 74 68 65 20 6d | 69 6e 69 6d 75 6d 20 76 |nd the m|inimum v|
|000001b0| 65 72 73 69 6f 6e 20 6f | 66 20 52 49 53 43 20 4f |ersion o|f RISC O|
|000001c0| 53 20 74 68 61 74 20 74 | 68 69 73 20 61 70 70 20 |S that t|his app |
|000001d0| 69 73 20 61 6c 6c 6f 77 | 65 64 20 74 6f 20 72 75 |is allow|ed to ru|
|000001e0| 6e 20 6f 6e 20 78 20 31 | 30 30 2e 0d 00 82 32 74 |n on x 1|00....2t|
|000001f0| 61 73 6b 25 3d a4 77 69 | 6d 70 5f 69 6e 69 74 69 |ask%=.wi|mp_initi|
|00000200| 61 6c 69 73 65 28 61 70 | 70 6e 61 6d 65 24 2c 37 |alise(ap|pname$,7|
|00000210| 30 30 30 2c 37 30 30 30 | 2c 33 30 30 29 0d 00 8c |000,7000|,300)...|
|00000220| 04 0d 00 96 54 20 20 f4 | 20 2a 2a 6c 6f 61 64 20 |....T .| **load |
|00000230| 69 6e 20 74 77 6f 20 63 | 6f 70 69 65 73 20 6f 66 |in two c|opies of|
|00000240| 20 74 68 65 20 6d 61 69 | 6e 20 77 69 6e 64 6f 77 | the mai|n window|
|00000250| 20 66 72 6f 6d 20 66 69 | 6c 65 20 22 54 65 6d 70 | from fi|le "Temp|
|00000260| 6c 61 74 65 73 22 20 69 | 6e 20 61 70 70 6c 69 63 |lates" i|n applic|
|00000270| 61 74 69 6f 6e 0d 00 a0 | 35 20 20 f4 20 2a 2a 64 |ation...|5 . **d|
|00000280| 69 72 65 63 74 6f 72 79 | 20 67 69 76 69 6e 67 20 |irectory| giving |
|00000290| 64 69 66 66 65 72 65 6e | 74 20 68 61 64 6c 65 73 |differen|t hadles|
|000002a0| 20 66 6f 72 20 65 61 63 | 68 2e 0d 00 aa 40 6d 61 | for eac|h....@ma|
|000002b0| 69 6e 31 25 3d a4 77 69 | 6d 70 5f 6c 6f 61 64 77 |in1%=.wi|mp_loadw|
|000002c0| 69 6e 64 6f 77 28 22 3c | 44 72 61 77 44 69 73 70 |indow("<|DrawDisp|
|000002d0| 24 44 69 72 3e 2e 54 65 | 6d 70 6c 61 74 65 73 22 |$Dir>.Te|mplates"|
|000002e0| 2c 22 6d 61 69 6e 22 2c | 30 29 0d 00 b4 40 6d 61 |,"main",|0)...@ma|
|000002f0| 69 6e 32 25 3d a4 77 69 | 6d 70 5f 6c 6f 61 64 77 |in2%=.wi|mp_loadw|
|00000300| 69 6e 64 6f 77 28 22 3c | 44 72 61 77 44 69 73 70 |indow("<|DrawDisp|
|00000310| 24 44 69 72 3e 2e 54 65 | 6d 70 6c 61 74 65 73 22 |$Dir>.Te|mplates"|
|00000320| 2c 22 6d 61 69 6e 22 2c | 30 29 0d 00 be 04 0d 00 |,"main",|0)......|
|00000330| c8 4c 20 20 f4 20 2a 2a | 63 61 6c 6c 20 66 75 6e |.L . **|call fun|
|00000340| 63 74 69 6f 6e 20 74 6f | 20 6c 6f 61 64 20 69 6e |ction to| load in|
|00000350| 20 64 72 61 77 66 69 6c | 65 73 2c 20 67 69 76 69 | drawfil|es, givi|
|00000360| 6e 67 20 66 69 6c 65 6e | 61 6d 65 73 20 6f 66 20 |ng filen|ames of |
|00000370| 64 72 61 77 66 69 6c 65 | 73 2e 0d 00 d2 56 20 20 |drawfile|s....V |
|00000380| f4 20 2a 2a 54 68 65 20 | 66 75 6e 63 74 69 6f 6e |. **The |function|
|00000390| 20 69 73 20 6e 6f 74 20 | 73 74 61 6e 64 61 72 64 | is not |standard|
|000003a0| 2c 20 62 75 74 20 49 20 | 68 61 76 65 20 75 73 65 |, but I |have use|
|000003b0| 64 20 69 74 20 73 6f 20 | 61 6c 6c 20 74 68 65 20 |d it so |all the |
|000003c0| 6c 6f 61 64 69 6e 67 20 | 62 69 74 73 20 63 61 6e |loading |bits can|
|000003d0| 0d 00 dc 57 20 20 f4 20 | 2a 2a 62 65 20 70 75 74 |...W . |**be put|
|000003e0| 20 73 65 70 65 72 61 74 | 65 6c 79 20 73 6f 20 79 | seperat|ely so y|
|000003f0| 6f 75 20 63 61 6e 20 73 | 65 65 20 65 78 61 63 74 |ou can s|ee exact|
|00000400| 6c 79 20 77 68 61 74 20 | 69 73 20 6e 65 65 64 65 |ly what |is neede|
|00000410| 64 20 74 6f 20 6c 6f 61 | 64 20 69 6e 20 64 72 61 |d to loa|d in dra|
|00000420| 77 66 69 6c 65 73 2e 0d | 00 e6 49 f2 6c 6f 61 64 |wfiles..|..I.load|
|00000430| 64 72 61 77 66 69 6c 65 | 73 28 22 3c 44 72 61 77 |drawfile|s("<Draw|
|00000440| 44 69 73 70 24 44 69 72 | 3e 2e 44 72 61 77 46 69 |Disp$Dir|>.DrawFi|
|00000450| 6c 65 31 22 2c 22 3c 44 | 72 61 77 44 69 73 70 24 |le1","<D|rawDisp$|
|00000460| 44 69 72 3e 2e 44 72 61 | 77 46 69 6c 65 32 22 29 |Dir>.Dra|wFile2")|
|00000470| 0d 00 f0 04 0d 00 fa 47 | 20 20 f4 20 2a 2a 67 65 |.......G| . **ge|
|00000480| 74 20 77 69 64 74 68 20 | 61 6e 64 20 68 65 69 67 |t width |and heig|
|00000490| 68 74 20 69 6e 20 4f 53 | 20 63 6f 2d 6f 72 64 69 |ht in OS| co-ordi|
|000004a0| 6e 61 74 65 73 20 6f 66 | 20 74 68 65 20 66 69 72 |nates of| the fir|
|000004b0| 73 74 20 64 72 61 77 66 | 69 6c 65 0d 01 04 2e 20 |st drawf|ile.... |
|000004c0| 20 f4 20 2a 2a 28 68 61 | 6e 64 6c 65 20 6f 66 20 | . **(ha|ndle of |
|000004d0| 64 72 61 77 66 69 6c 65 | 20 69 73 20 64 66 69 6c |drawfile| is dfil|
|000004e0| 65 68 61 6e 25 28 31 29 | 29 0d 01 0e 2d 77 69 64 |ehan%(1)|)...-wid|
|000004f0| 74 68 25 3d a4 77 69 6d | 70 5f 67 65 74 64 66 69 |th%=.wim|p_getdfi|
|00000500| 6c 65 73 69 7a 65 28 64 | 66 69 6c 65 68 61 6e 25 |lesize(d|filehan%|
|00000510| 28 31 29 2c 30 29 0d 01 | 18 2e 68 65 69 67 68 74 |(1),0)..|..height|
|00000520| 25 3d a4 77 69 6d 70 5f | 67 65 74 64 66 69 6c 65 |%=.wimp_|getdfile|
|00000530| 73 69 7a 65 28 64 66 69 | 6c 65 68 61 6e 25 28 31 |size(dfi|lehan%(1|
|00000540| 29 2c 31 29 0d 01 22 04 | 0d 01 2c 4f 20 20 f4 20 |),1)..".|..,O . |
|00000550| 2a 2a 72 65 73 69 7a 65 | 20 6d 61 69 6e 20 77 69 |**resize| main wi|
|00000560| 6e 64 6f 77 20 74 6f 20 | 74 68 65 20 73 69 7a 65 |ndow to |the size|
|00000570| 20 6f 66 20 74 68 65 20 | 64 72 61 77 66 69 6c 65 | of the |drawfile|
|00000580| 20 70 6c 75 73 20 31 30 | 30 20 6f 6e 20 65 61 63 | plus 10|0 on eac|
|00000590| 68 20 73 69 64 65 2e 0d | 01 36 35 f2 77 69 6d 70 |h side..|.65.wimp|
|000005a0| 5f 72 65 73 69 7a 65 77 | 69 6e 64 6f 77 28 6d 61 |_resizew|indow(ma|
|000005b0| 69 6e 31 25 2c 77 69 64 | 74 68 25 2b 31 30 30 2c |in1%,wid|th%+100,|
|000005c0| 68 65 69 67 68 74 25 2b | 31 30 30 29 0d 01 40 04 |height%+|100)..@.|
|000005d0| 0d 01 4a 4f 20 20 f4 20 | 2a 2a 6f 70 65 6e 20 6d |..JO . |**open m|
|000005e0| 61 69 6e 20 77 69 6e 64 | 6f 77 20 69 6e 20 63 65 |ain wind|ow in ce|
|000005f0| 6e 74 72 65 20 6f 66 20 | 73 63 72 65 65 6e 2c 20 |ntre of |screen, |
|00000600| 61 74 20 74 68 65 20 74 | 6f 70 20 6f 66 20 74 68 |at the t|op of th|
|00000610| 65 20 77 69 6e 64 6f 77 | 20 73 74 61 63 6b 2e 0d |e window| stack..|
|00000620| 01 54 21 f2 77 69 6d 70 | 5f 6f 70 65 6e 77 69 6e |.T!.wimp|_openwin|
|00000630| 64 6f 77 28 6d 61 69 6e | 31 25 2c 31 2c 2d 31 29 |dow(main|1%,1,-1)|
|00000640| 0d 01 5e 10 6d 61 69 6e | 31 6f 70 65 6e 25 3d 31 |..^.main|1open%=1|
|00000650| 0d 01 68 04 0d 01 72 3b | 20 20 f4 20 2a 2a 72 65 |..h...r;| . **re|
|00000660| 70 65 61 74 20 66 6f 72 | 20 74 68 65 20 73 65 63 |peat for| the sec|
|00000670| 6f 6e 64 20 77 69 6e 64 | 6f 77 20 61 6e 64 20 73 |ond wind|ow and s|
|00000680| 65 63 6f 6e 64 20 64 72 | 61 77 66 69 6c 65 2e 0d |econd dr|awfile..|
|00000690| 01 7c 2d 77 69 64 74 68 | 25 3d a4 77 69 6d 70 5f |.|-width|%=.wimp_|
|000006a0| 67 65 74 64 66 69 6c 65 | 73 69 7a 65 28 64 66 69 |getdfile|size(dfi|
|000006b0| 6c 65 68 61 6e 25 28 32 | 29 2c 30 29 0d 01 86 2e |lehan%(2|),0)....|
|000006c0| 68 65 69 67 68 74 25 3d | a4 77 69 6d 70 5f 67 65 |height%=|.wimp_ge|
|000006d0| 74 64 66 69 6c 65 73 69 | 7a 65 28 64 66 69 6c 65 |tdfilesi|ze(dfile|
|000006e0| 68 61 6e 25 28 32 29 2c | 31 29 0d 01 90 35 f2 77 |han%(2),|1)...5.w|
|000006f0| 69 6d 70 5f 72 65 73 69 | 7a 65 77 69 6e 64 6f 77 |imp_resi|zewindow|
|00000700| 28 6d 61 69 6e 32 25 2c | 77 69 64 74 68 25 2b 31 |(main2%,|width%+1|
|00000710| 30 30 2c 68 65 69 67 68 | 74 25 2b 31 30 30 29 0d |00,heigh|t%+100).|
|00000720| 01 9a 21 f2 77 69 6d 70 | 5f 6f 70 65 6e 77 69 6e |..!.wimp|_openwin|
|00000730| 64 6f 77 28 6d 61 69 6e | 32 25 2c 31 2c 2d 31 29 |dow(main|2%,1,-1)|
|00000740| 0d 01 a4 10 6d 61 69 6e | 32 6f 70 65 6e 25 3d 31 |....main|2open%=1|
|00000750| 0d 01 ae 04 0d 01 b8 21 | 20 20 f4 20 2a 2a 70 6f |.......!| . **po|
|00000760| 6c 6c 20 74 68 65 20 77 | 69 6d 70 20 74 68 65 6e |ll the w|imp then|
|00000770| 20 65 6e 64 2e 0d 01 c2 | 0e f2 77 69 6d 70 5f 70 | end....|..wimp_p|
|00000780| 6f 6c 6c 0d 01 cc 05 e0 | 0d 01 d6 05 3a 0d 01 e0 |oll.....|....:...|
|00000790| 43 dd 20 f2 75 73 65 72 | 5f 72 65 64 72 61 77 28 |C. .user|_redraw(|
|000007a0| 77 69 6e 64 6f 77 25 2c | 6d 69 6e 78 25 2c 6d 69 |window%,|minx%,mi|
|000007b0| 6e 79 25 2c 6d 61 78 78 | 25 2c 6d 61 78 79 25 2c |ny%,maxx|%,maxy%,|
|000007c0| 70 72 69 6e 74 69 6e 67 | 25 2c 70 61 67 65 25 29 |printing|%,page%)|
|000007d0| 0d 01 ea 04 0d 01 f4 58 | 20 20 f4 20 2a 2a 69 66 |.......X| . **if|
|000007e0| 20 6d 61 69 6e 20 77 69 | 6e 64 6f 77 20 6e 65 65 | main wi|ndow nee|
|000007f0| 64 73 20 72 65 64 72 61 | 77 69 6e 67 20 74 68 65 |ds redra|wing the|
|00000800| 6e 20 77 65 20 6e 65 65 | 64 20 74 6f 20 6c 6f 6f |n we nee|d to loo|
|00000810| 6b 20 61 74 20 74 68 65 | 20 72 65 63 74 61 6e 67 |k at the| rectang|
|00000820| 6c 65 20 74 6f 20 72 65 | 64 72 61 77 0d 01 fe 5a |le to re|draw...Z|
|00000830| 20 20 f4 20 2a 2a 61 6e | 64 20 64 72 61 77 20 74 | . **an|d draw t|
|00000840| 68 65 20 62 69 74 20 6f | 66 20 74 68 65 20 64 72 |he bit o|f the dr|
|00000850| 61 77 66 69 6c 65 20 69 | 6e 20 74 68 65 20 63 6f |awfile i|n the co|
|00000860| 72 72 65 63 74 20 70 6c | 61 63 65 2e 20 4d 61 69 |rrect pl|ace. Mai|
|00000870| 6e 20 77 69 6e 64 6f 77 | 20 6d 75 73 74 20 68 61 |n window| must ha|
|00000880| 76 65 20 69 74 73 0d 02 | 08 40 20 20 f4 20 2a 2a |ve its..|.@ . **|
|00000890| 61 75 74 6f 2d 72 65 64 | 72 61 77 20 66 6c 61 67 |auto-red|raw flag|
|000008a0| 20 75 6e 73 65 74 20 66 | 6f 72 20 74 68 69 73 20 | unset f|or this |
|000008b0| 66 75 6e 63 74 69 6f 6e | 20 74 6f 20 62 65 20 63 |function| to be c|
|000008c0| 61 6c 6c 65 64 2e 0d 02 | 12 04 0d 02 1c 59 20 20 |alled...|.....Y |
|000008d0| f4 20 2a 2a 72 65 6e 64 | 65 72 20 74 68 65 20 64 |. **rend|er the d|
|000008e0| 72 61 77 66 69 6c 65 20 | 35 30 20 69 6e 20 66 72 |rawfile |50 in fr|
|000008f0| 6f 6d 20 74 68 65 20 6c | 65 66 74 20 61 6e 64 20 |om the l|eft and |
|00000900| 35 30 20 64 6f 77 6e 20 | 66 72 6f 6d 20 74 68 65 |50 down |from the|
|00000910| 20 74 6f 70 20 28 61 73 | 20 74 68 65 20 77 69 6e | top (as| the win|
|00000920| 64 6f 77 0d 02 26 5b 20 | 20 f4 20 2a 2a 69 73 20 |dow..&[ | . **is |
|00000930| 31 30 30 20 62 69 67 67 | 65 72 20 74 68 61 6e 20 |100 bigg|er than |
|00000940| 74 68 65 20 64 72 61 77 | 66 69 6c 65 20 6f 6e 20 |the draw|file on |
|00000950| 62 6f 74 68 20 73 69 64 | 65 73 2c 20 74 68 69 73 |both sid|es, this|
|00000960| 20 77 69 6c 6c 20 63 65 | 6e 74 72 65 20 74 68 65 | will ce|ntre the|
|00000970| 20 64 72 61 77 66 69 6c | 65 20 77 69 74 68 0d 02 | drawfil|e with..|
|00000980| 30 56 20 20 f4 20 2a 2a | 35 30 20 61 72 6f 75 6e |0V . **|50 aroun|
|00000990| 64 20 74 68 65 20 65 64 | 67 65 73 29 2c 20 70 61 |d the ed|ges), pa|
|000009a0| 73 73 69 6e 67 20 74 68 | 65 20 72 65 63 74 61 6e |ssing th|e rectan|
|000009b0| 67 6c 65 20 74 68 61 74 | 20 74 68 65 20 77 69 6d |gle that| the wim|
|000009c0| 70 20 77 61 6e 74 73 20 | 75 73 20 74 6f 20 72 65 |p wants |us to re|
|000009d0| 64 72 61 77 0d 02 3a 3f | 20 20 f4 20 2a 2a 61 6c |draw..:?| . **al|
|000009e0| 6f 6e 67 20 77 69 74 68 | 20 74 68 65 20 77 69 6e |ong with| the win|
|000009f0| 64 6f 77 20 68 61 6e 64 | 6c 65 20 61 6e 64 20 74 |dow hand|le and t|
|00000a00| 68 65 20 64 72 61 77 66 | 69 6c 65 20 68 61 6e 64 |he drawf|ile hand|
|00000a10| 6c 65 2e 0d 02 44 16 e7 | 20 77 69 6e 64 6f 77 25 |le...D..| window%|
|00000a20| 3d 6d 61 69 6e 31 25 20 | 8c 0d 02 4e 30 20 20 68 |=main1% |...N0 h|
|00000a30| 65 69 67 68 74 25 3d a4 | 77 69 6d 70 5f 67 65 74 |eight%=.|wimp_get|
|00000a40| 64 66 69 6c 65 73 69 7a | 65 28 64 66 69 6c 65 68 |dfilesiz|e(dfileh|
|00000a50| 61 6e 25 28 31 29 2c 31 | 29 0d 02 58 54 20 20 f2 |an%(1),1|)..XT .|
|00000a60| 77 69 6d 70 5f 72 65 6e | 64 65 72 77 69 6e 64 6f |wimp_ren|derwindo|
|00000a70| 77 28 6d 61 69 6e 31 25 | 2c 64 66 69 6c 65 68 61 |w(main1%|,dfileha|
|00000a80| 6e 25 28 31 29 2c 35 30 | 2c 2d 35 30 2d 68 65 69 |n%(1),50|,-50-hei|
|00000a90| 67 68 74 25 2c 6d 69 6e | 78 25 2c 6d 69 6e 79 25 |ght%,min|x%,miny%|
|00000aa0| 2c 6d 61 78 78 25 2c 6d | 61 78 79 25 29 0d 02 62 |,maxx%,m|axy%)..b|
|00000ab0| 05 cd 0d 02 6c 04 0d 02 | 76 35 20 20 f4 20 2a 2a |....l...|v5 . **|
|00000ac0| 73 61 6d 65 20 66 6f 72 | 20 73 65 63 6f 6e 64 20 |same for| second |
|00000ad0| 77 69 6e 64 6f 77 20 61 | 6e 64 20 73 65 63 6f 6e |window a|nd secon|
|00000ae0| 64 20 64 72 61 77 66 69 | 6c 65 2e 0d 02 80 16 e7 |d drawfi|le......|
|00000af0| 20 77 69 6e 64 6f 77 25 | 3d 6d 61 69 6e 32 25 20 | window%|=main2% |
|00000b00| 8c 0d 02 8a 30 20 20 68 | 65 69 67 68 74 25 3d a4 |....0 h|eight%=.|
|00000b10| 77 69 6d 70 5f 67 65 74 | 64 66 69 6c 65 73 69 7a |wimp_get|dfilesiz|
|00000b20| 65 28 64 66 69 6c 65 68 | 61 6e 25 28 32 29 2c 31 |e(dfileh|an%(2),1|
|00000b30| 29 0d 02 94 54 20 20 f2 | 77 69 6d 70 5f 72 65 6e |)...T .|wimp_ren|
|00000b40| 64 65 72 77 69 6e 64 6f | 77 28 6d 61 69 6e 32 25 |derwindo|w(main2%|
|00000b50| 2c 64 66 69 6c 65 68 61 | 6e 25 28 32 29 2c 35 30 |,dfileha|n%(2),50|
|00000b60| 2c 2d 35 30 2d 68 65 69 | 67 68 74 25 2c 6d 69 6e |,-50-hei|ght%,min|
|00000b70| 78 25 2c 6d 69 6e 79 25 | 2c 6d 61 78 78 25 2c 6d |x%,miny%|,maxx%,m|
|00000b80| 61 78 79 25 29 0d 02 9e | 05 cd 0d 02 a8 04 0d 02 |axy%)...|........|
|00000b90| b2 05 e1 0d 02 bc 05 3a | 0d 02 c6 3b dd 20 f2 75 |.......:|...;. .u|
|00000ba0| 73 65 72 5f 6d 6f 75 73 | 65 63 6c 69 63 6b 28 77 |ser_mous|eclick(w|
|00000bb0| 69 6e 64 6f 77 25 2c 69 | 63 6f 6e 25 2c 62 75 74 |indow%,i|con%,but|
|00000bc0| 74 6f 6e 25 2c 77 6f 72 | 6b 78 25 2c 77 6f 72 6b |ton%,wor|kx%,work|
|00000bd0| 79 25 29 0d 02 d0 05 e1 | 0d 02 da 05 3a 0d 02 e4 |y%).....|....:...|
|00000be0| 1f dd 20 a4 75 73 65 72 | 5f 6d 65 6e 75 28 77 69 |.. .user|_menu(wi|
|00000bf0| 6e 64 6f 77 25 2c 69 63 | 6f 6e 25 29 0d 02 ee 06 |ndow%,ic|on%)....|
|00000c00| 3d 30 0d 02 f8 05 3a 0d | 03 02 2c dd 20 f2 75 73 |=0....:.|..,. .us|
|00000c10| 65 72 5f 6f 70 65 6e 77 | 69 6e 64 6f 77 28 77 69 |er_openw|indow(wi|
|00000c20| 6e 64 6f 77 25 2c 78 25 | 2c 79 25 2c 73 74 61 63 |ndow%,x%|,y%,stac|
|00000c30| 6b 25 29 0d 03 0c 05 e1 | 0d 03 16 05 3a 0d 03 20 |k%).....|....:.. |
|00000c40| 20 dd 20 f2 75 73 65 72 | 5f 63 6c 6f 73 65 77 69 | . .user|_closewi|
|00000c50| 6e 64 6f 77 28 77 69 6e | 64 6f 77 25 29 0d 03 2a |ndow(win|dow%)..*|
|00000c60| 04 0d 03 34 5b 20 20 f4 | 20 2a 2a 69 66 20 66 69 |...4[ .| **if fi|
|00000c70| 72 73 74 20 6d 61 69 6e | 20 77 69 6e 64 6f 77 20 |rst main| window |
|00000c80| 69 73 20 62 65 69 6e 67 | 20 63 6c 6f 73 65 64 20 |is being| closed |
|00000c90| 74 68 65 6e 20 63 6c 65 | 61 72 20 66 6c 61 67 20 |then cle|ar flag |
|00000ca0| 28 6d 61 69 6e 31 6f 70 | 65 6e 25 29 20 74 6f 20 |(main1op|en%) to |
|00000cb0| 30 2e 20 49 66 20 73 65 | 63 6f 6e 64 0d 03 3e 5b |0. If se|cond..>[|
|00000cc0| 20 20 f4 20 2a 2a 77 69 | 6e 64 6f 77 20 69 73 20 | . **wi|ndow is |
|00000cd0| 62 65 69 6e 67 20 63 6c | 6f 73 65 64 20 74 68 65 |being cl|osed the|
|00000ce0| 6e 20 63 6c 65 61 72 20 | 61 20 66 6c 61 67 20 66 |n clear |a flag f|
|00000cf0| 6f 72 20 69 74 2e 20 49 | 66 20 62 6f 74 68 20 77 |or it. I|f both w|
|00000d00| 69 6e 64 6f 77 73 20 68 | 61 76 65 20 62 65 65 6e |indows h|ave been|
|00000d10| 20 63 6c 6f 73 65 64 0d | 03 48 4d 20 20 f4 20 2a | closed.|.HM . *|
|00000d20| 2a 74 68 65 20 73 65 74 | 20 66 69 6e 69 73 68 65 |*the set| finishe|
|00000d30| 64 25 20 74 6f 20 54 52 | 55 45 20 73 6f 20 61 70 |d% to TR|UE so ap|
|00000d40| 70 6c 69 63 61 74 69 6f | 6e 20 71 75 69 74 73 20 |plicatio|n quits |
|00000d50| 61 74 20 66 69 72 73 74 | 20 6f 70 70 6f 74 75 6e |at first| oppotun|
|00000d60| 69 74 79 2e 0d 03 52 21 | e7 20 77 69 6e 64 6f 77 |ity...R!|. window|
|00000d70| 25 3d 6d 61 69 6e 31 25 | 20 6d 61 69 6e 31 6f 70 |%=main1%| main1op|
|00000d80| 65 6e 25 3d 30 0d 03 5c | 21 e7 20 77 69 6e 64 6f |en%=0..\|!. windo|
|00000d90| 77 25 3d 6d 61 69 6e 32 | 25 20 6d 61 69 6e 32 6f |w%=main2|% main2o|
|00000da0| 70 65 6e 25 3d 30 0d 03 | 66 2d e7 20 6d 61 69 6e |pen%=0..|f-. main|
|00000db0| 31 6f 70 65 6e 25 3d 30 | 20 80 20 6d 61 69 6e 32 |1open%=0| . main2|
|00000dc0| 6f 70 65 6e 25 3d 30 20 | 66 69 6e 69 73 68 65 64 |open%=0 |finished|
|00000dd0| 25 3d b9 0d 03 70 05 e1 | 0d 03 7a 05 3a 0d 03 84 |%=...p..|..z.:...|
|00000de0| 27 dd 20 a4 75 73 65 72 | 5f 6b 65 79 70 72 65 73 |'. .user|_keypres|
|00000df0| 73 28 77 69 6e 64 6f 77 | 25 2c 69 63 6f 6e 25 2c |s(window|%,icon%,|
|00000e00| 6b 65 79 29 0d 03 8e 06 | 3d 30 0d 03 98 05 3a 0d |key)....|=0....:.|
|00000e10| 03 a2 26 dd 20 f2 75 73 | 65 72 5f 6d 65 6e 75 73 |..&. .us|er_menus|
|00000e20| 65 6c 65 63 74 69 6f 6e | 28 6d 65 6e 75 25 2c 69 |election|(menu%,i|
|00000e30| 74 65 6d 25 29 0d 03 ac | 05 e1 0d 03 b6 05 3a 0d |tem%)...|......:.|
|00000e40| 03 c0 21 dd 20 a4 75 73 | 65 72 5f 73 61 76 65 66 |..!. .us|er_savef|
|00000e50| 69 6c 65 74 79 70 65 28 | 77 69 6e 64 6f 77 25 29 |iletype(|window%)|
|00000e60| 0d 03 ca 07 3d 22 22 0d | 03 d4 05 3a 0d 03 de 34 |....="".|...:...4|
|00000e70| dd 20 f2 75 73 65 72 5f | 73 61 76 65 69 63 6f 6e |. .user_|saveicon|
|00000e80| 28 77 69 6e 64 6f 77 25 | 2c f8 20 64 72 61 67 25 |(window%|,. drag%|
|00000e90| 2c f8 20 77 72 69 74 65 | 25 2c f8 20 6f 6b 25 29 |,. write|%,. ok%)|
|00000ea0| 0d 03 e8 05 e1 0d 03 f2 | 05 3a 0d 03 fc 23 dd 20 |........|.:...#. |
|00000eb0| a4 75 73 65 72 5f 73 61 | 76 65 64 61 74 61 28 70 |.user_sa|vedata(p|
|00000ec0| 61 74 68 24 2c 77 69 6e | 64 6f 77 25 29 0d 04 06 |ath$,win|dow%)...|
|00000ed0| 06 3d 30 0d 04 10 05 3a | 0d 04 1a 1f dd 20 a4 75 |.=0....:|..... .u|
|00000ee0| 73 65 72 5f 68 65 6c 70 | 28 77 69 6e 64 6f 77 25 |ser_help|(window%|
|00000ef0| 2c 69 63 6f 6e 25 29 0d | 04 24 07 3d 22 22 0d 04 |,icon%).|.$.=""..|
|00000f00| 2e 05 3a 0d 04 38 3e dd | 20 a4 75 73 65 72 5f 6c |..:..8>.| .user_l|
|00000f10| 6f 61 64 64 61 74 61 28 | 70 61 74 68 24 2c 77 69 |oaddata(|path$,wi|
|00000f20| 6e 64 6f 77 25 2c 69 63 | 6f 6e 25 2c 66 74 79 70 |ndow%,ic|on%,ftyp|
|00000f30| 65 24 2c 77 6f 72 6b 78 | 25 2c 77 6f 72 6b 79 25 |e$,workx|%,worky%|
|00000f40| 29 0d 04 42 06 3d 30 0d | 04 4c 05 3a 0d 04 56 23 |)..B.=0.|.L.:..V#|
|00000f50| dd 20 f2 75 73 65 72 5f | 65 6e 74 65 72 69 6e 67 |. .user_|entering|
|00000f60| 77 69 6e 64 6f 77 28 77 | 69 6e 64 6f 77 25 29 0d |window(w|indow%).|
|00000f70| 04 60 05 e1 0d 04 6a 05 | 3a 0d 04 74 22 dd 20 f2 |.`....j.|:..t". .|
|00000f80| 75 73 65 72 5f 6c 65 61 | 76 69 6e 67 77 69 6e 64 |user_lea|vingwind|
|00000f90| 6f 77 28 77 69 6e 64 6f | 77 25 29 0d 04 7e 05 e1 |ow(windo|w%)..~..|
|00000fa0| 0d 04 88 05 3a 0d 04 92 | 19 dd 20 a4 75 73 65 72 |....:...|.. .user|
|00000fb0| 5f 70 61 6e 65 28 77 69 | 6e 64 6f 77 25 29 0d 04 |_pane(wi|ndow%)..|
|00000fc0| 9c 07 3d 2d 31 0d 04 a6 | 05 3a 0d 04 b0 10 dd 20 |..=-1...|.:..... |
|00000fd0| f2 75 73 65 72 5f 6e 75 | 6c 6c 0d 04 ba 05 e1 0d |.user_nu|ll......|
|00000fe0| 04 c4 05 3a 0d 04 ce 21 | dd 20 f2 75 73 65 72 5f |...:...!|. .user_|
|00000ff0| 6d 65 6e 75 6f 70 65 6e | 28 6d 65 6e 75 25 2c 69 |menuopen|(menu%,i|
|00001000| 63 6f 6e 25 29 0d 04 d8 | 05 e1 0d 04 e2 05 3a 0d |con%)...|......:.|
|00001010| 04 ec 25 dd 20 a4 75 73 | 65 72 5f 73 6c 69 64 65 |..%. .us|er_slide|
|00001020| 72 62 61 63 6b 28 77 69 | 6e 64 6f 77 25 2c 69 63 |rback(wi|ndow%,ic|
|00001030| 6f 6e 25 29 0d 04 f6 07 | 3d 2d 31 0d 05 00 05 3a |on%)....|=-1....:|
|00001040| 0d 05 0a 21 dd 20 a4 75 | 73 65 72 5f 73 6c 69 64 |...!. .u|ser_slid|
|00001050| 65 72 28 77 69 6e 64 6f | 77 25 2c 69 63 6f 6e 25 |er(windo|w%,icon%|
|00001060| 29 0d 05 14 07 3d 2d 31 | 0d 05 1e 05 3a 0d 05 28 |)....=-1|....:..(|
|00001070| 2d dd 20 f2 75 73 65 72 | 5f 73 6c 69 64 65 72 76 |-. .user|_sliderv|
|00001080| 61 6c 75 65 28 77 69 6e | 64 6f 77 25 2c 69 63 6f |alue(win|dow%,ico|
|00001090| 6e 25 2c 70 63 65 6e 74 | 25 29 0d 05 32 05 e1 0d |n%,pcent|%)..2...|
|000010a0| 05 3c 05 3a 0d 05 46 23 | dd 20 f2 6c 6f 61 64 64 |.<.:..F#|. .loadd|
|000010b0| 72 61 77 66 69 6c 65 73 | 28 70 61 74 68 31 24 2c |rawfiles|(path1$,|
|000010c0| 70 61 74 68 32 24 29 0d | 05 50 04 0d 05 5a 55 20 |path2$).|.P...ZU |
|000010d0| 20 f4 20 2a 2a 74 68 69 | 73 20 66 75 6e 63 74 69 | . **thi|s functi|
|000010e0| 6f 6e 20 6c 6f 61 64 73 | 20 69 6e 20 74 68 65 20 |on loads| in the |
|000010f0| 64 72 61 77 66 69 6c 65 | 73 20 69 6e 20 74 68 65 |drawfile|s in the|
|00001100| 20 66 69 6c 65 20 70 61 | 74 68 31 24 20 61 6e 64 | file pa|th1$ and|
|00001110| 20 70 61 74 68 32 24 20 | 61 6e 64 20 70 75 74 73 | path2$ |and puts|
|00001120| 0d 05 64 65 20 20 f4 20 | 2a 2a 68 61 6e 64 6c 65 |..de . |**handle|
|00001130| 73 20 74 6f 20 74 68 65 | 6e 20 69 6e 20 74 68 65 |s to the|n in the|
|00001140| 20 61 72 72 61 79 20 64 | 66 69 6c 65 68 61 6e 25 | array d|filehan%|
|00001150| 2c 20 77 68 69 63 68 20 | 63 61 6e 20 74 68 65 6e |, which |can then|
|00001160| 20 62 65 20 70 61 73 73 | 65 64 20 74 6f 20 6f 74 | be pass|ed to ot|
|00001170| 68 65 72 20 44 72 57 69 | 6d 70 20 66 75 6e 63 74 |her DrWi|mp funct|
|00001180| 69 6f 6e 73 2e 0d 05 6e | 04 0d 05 78 43 20 20 f4 |ions...n|...xC .|
|00001190| 20 2a 2a 67 65 74 20 44 | 72 57 69 6d 70 20 74 6f | **get D|rWimp to|
|000011a0| 20 73 65 74 20 75 70 20 | 74 68 65 20 6e 65 63 65 | set up |the nece|
|000011b0| 73 73 61 72 79 20 62 6c | 6f 63 6b 73 2c 20 76 61 |ssary bl|ocks, va|
|000011c0| 72 69 61 62 6c 65 73 20 | 65 74 63 2e 0d 05 82 14 |riables |etc.....|
|000011d0| f2 77 69 6d 70 5f 69 6e | 69 74 64 66 69 6c 65 73 |.wimp_in|itdfiles|
|000011e0| 0d 05 8c 04 0d 05 96 65 | 20 20 f4 20 2a 2a 77 6f |.......e| . **wo|
|000011f0| 72 6b 20 6f 75 74 20 73 | 69 7a 65 20 6f 66 20 6d |rk out s|ize of m|
|00001200| 65 6d 6f 72 79 20 6e 65 | 65 64 65 64 20 74 6f 20 |emory ne|eded to |
|00001210| 73 74 6f 72 65 20 74 68 | 65 20 64 72 61 77 66 69 |store th|e drawfi|
|00001220| 6c 65 73 2e 20 2a 4e 65 | 76 65 72 2a 20 64 6f 20 |les. *Ne|ver* do |
|00001230| 74 68 69 73 20 79 6f 75 | 72 73 65 6c 66 20 75 73 |this you|rself us|
|00001240| 69 6e 67 20 6f 74 68 65 | 72 0d 05 a0 5d 20 20 f4 |ing othe|r...] .|
|00001250| 20 2a 2a 6d 65 74 68 6f | 64 73 20 61 73 20 74 68 | **metho|ds as th|
|00001260| 69 73 20 66 75 6e 63 74 | 69 6f 6e 20 61 64 64 73 |is funct|ion adds|
|00001270| 20 73 6f 6d 65 20 6d 6f | 72 65 20 6f 6e 74 6f 20 | some mo|re onto |
|00001280| 74 68 65 20 65 6e 64 20 | 74 6f 20 69 6e 63 6c 75 |the end |to inclu|
|00001290| 64 65 20 61 20 76 69 74 | 61 6c 20 74 65 72 6d 69 |de a vit|al termi|
|000012a0| 6e 61 74 6f 72 2e 0d 05 | aa 0b 73 69 7a 65 25 3d |nator...|..size%=|
|000012b0| 30 0d 05 b4 24 73 69 7a | 65 25 2b 3d a4 77 69 6d |0...$siz|e%+=.wim|
|000012c0| 70 5f 6d 65 61 73 75 72 | 65 66 69 6c 65 28 70 61 |p_measur|efile(pa|
|000012d0| 74 68 31 24 29 0d 05 be | 24 73 69 7a 65 25 2b 3d |th1$)...|$size%+=|
|000012e0| a4 77 69 6d 70 5f 6d 65 | 61 73 75 72 65 66 69 6c |.wimp_me|asurefil|
|000012f0| 65 28 70 61 74 68 32 24 | 29 0d 05 c8 04 0d 05 d2 |e(path2$|).......|
|00001300| 45 20 20 f4 20 2a 2a 72 | 65 73 65 72 76 65 20 61 |E . **r|eserve a|
|00001310| 20 62 6c 6f 63 6b 20 6f | 66 20 6d 65 6d 6f 72 79 | block o|f memory|
|00001320| 20 62 69 67 20 65 6e 6f | 75 67 68 20 74 6f 20 68 | big eno|ugh to h|
|00001330| 6f 6c 64 20 74 68 65 20 | 64 72 61 77 66 69 6c 65 |old the |drawfile|
|00001340| 73 2e 0d 05 dc 16 de 20 | 64 72 61 77 66 69 6c 65 |s...... |drawfile|
|00001350| 73 25 20 73 69 7a 65 25 | 0d 05 e6 04 0d 05 f0 61 |s% size%|.......a|
|00001360| 20 20 f4 20 2a 2a 63 72 | 65 61 74 65 20 61 72 72 | . **cr|eate arr|
|00001370| 61 79 20 74 6f 20 68 6f | 6c 64 20 74 77 6f 20 68 |ay to ho|ld two h|
|00001380| 61 6e 64 6c 65 73 2e 20 | 28 63 6f 75 6c 64 20 75 |andles. |(could u|
|00001390| 73 65 20 30 20 61 6e 64 | 20 31 20 69 6e 73 74 65 |se 0 and| 1 inste|
|000013a0| 61 64 20 6f 66 20 31 20 | 61 6e 64 20 32 20 62 75 |ad of 1 |and 2 bu|
|000013b0| 74 20 69 74 20 77 6f 6e | 27 74 20 62 65 0d 05 fa |t it won|'t be...|
|000013c0| 4b 20 20 f4 20 2a 2a 61 | 73 20 63 6c 65 61 72 29 |K . **a|s clear)|
|000013d0| 2e 20 48 61 6e 64 6c 65 | 20 66 6f 72 20 66 69 72 |. Handle| for fir|
|000013e0| 73 74 20 64 72 61 77 66 | 69 6c 65 20 69 73 20 73 |st drawf|ile is s|
|000013f0| 74 61 72 74 20 6f 66 20 | 62 6c 6f 63 6b 20 6f 66 |tart of |block of|
|00001400| 20 6d 65 6d 6f 72 79 2e | 0d 06 04 12 de 20 64 66 | memory.|..... df|
|00001410| 69 6c 65 68 61 6e 25 28 | 32 29 0d 06 0e 1b 64 66 |ilehan%(|2)....df|
|00001420| 69 6c 65 68 61 6e 25 28 | 31 29 3d 64 72 61 77 66 |ilehan%(|1)=drawf|
|00001430| 69 6c 65 73 25 0d 06 18 | 04 0d 06 22 5f 20 20 f4 |iles%...|..."_ .|
|00001440| 20 2a 2a 6c 6f 61 64 20 | 69 6e 20 64 72 61 77 66 | **load |in drawf|
|00001450| 69 6c 65 73 20 69 6e 74 | 6f 20 74 68 65 20 62 6c |iles int|o the bl|
|00001460| 6f 63 6b 2e 20 2a 4e 65 | 76 65 72 2a 20 6c 6f 61 |ock. *Ne|ver* loa|
|00001470| 64 20 69 6e 20 64 72 61 | 77 66 69 6c 65 73 20 75 |d in dra|wfiles u|
|00001480| 73 69 6e 67 20 61 6e 79 | 20 6f 74 68 65 72 20 6d |sing any| other m|
|00001490| 65 74 68 6f 64 20 61 73 | 0d 06 2c 2d 20 20 f4 20 |ethod as|..,- . |
|000014a0| 2a 2a 61 20 76 69 74 61 | 6c 20 74 65 72 6d 69 6e |**a vita|l termin|
|000014b0| 61 74 6f 72 20 68 61 73 | 20 74 6f 20 62 65 20 61 |ator has| to be a|
|000014c0| 64 64 65 64 2e 0d 06 36 | 5b 20 20 f4 20 2a 2a 52 |dded...6|[ . **R|
|000014d0| 65 74 75 72 6e 65 64 20 | 69 73 20 74 68 65 20 6e |eturned |is the n|
|000014e0| 65 78 74 20 66 72 65 65 | 20 6c 6f 63 61 74 69 6f |ext free| locatio|
|000014f0| 6e 20 69 6e 20 74 68 65 | 20 62 6c 6f 63 6b 2e 20 |n in the| block. |
|00001500| 54 68 65 20 72 65 74 75 | 72 6e 65 64 20 76 61 6c |The retu|rned val|
|00001510| 75 65 20 6f 6e 20 74 68 | 65 20 73 65 63 6f 6e 64 |ue on th|e second|
|00001520| 0d 06 40 60 20 20 f4 20 | 2a 2a 63 61 6c 6c 20 77 |..@` . |**call w|
|00001530| 6f 75 6c 64 20 62 65 20 | 74 68 65 20 68 61 6e 64 |ould be |the hand|
|00001540| 6c 65 20 74 6f 20 61 20 | 74 68 69 72 64 20 64 72 |le to a |third dr|
|00001550| 61 77 66 69 6c 65 20 62 | 75 74 20 61 73 20 74 68 |awfile b|ut as th|
|00001560| 65 72 65 20 69 73 20 6f | 6e 6c 79 20 74 77 6f 20 |ere is o|nly two |
|00001570| 69 6e 20 74 68 69 73 20 | 65 78 61 6d 70 6c 65 2c |in this |example,|
|00001580| 0d 06 4a 3a 20 20 f4 20 | 2a 2a 69 74 20 69 73 20 |..J: . |**it is |
|00001590| 70 75 74 20 69 6e 74 6f | 20 61 6e 20 61 72 62 69 |put into| an arbi|
|000015a0| 74 61 72 79 20 76 61 72 | 69 61 62 6c 65 20 61 6e |tary var|iable an|
|000015b0| 64 20 69 67 6e 6f 72 65 | 64 2e 0d 06 54 35 64 66 |d ignore|d...T5df|
|000015c0| 69 6c 65 68 61 6e 25 28 | 32 29 3d a4 77 69 6d 70 |ilehan%(|2)=.wimp|
|000015d0| 5f 6c 6f 61 64 64 66 69 | 6c 65 28 70 61 74 68 31 |_loaddfi|le(path1|
|000015e0| 24 2c 64 66 69 6c 65 68 | 61 6e 25 28 31 29 29 0d |$,dfileh|an%(1)).|
|000015f0| 06 5e 2b 64 25 3d a4 77 | 69 6d 70 5f 6c 6f 61 64 |.^+d%=.w|imp_load|
|00001600| 64 66 69 6c 65 28 70 61 | 74 68 32 24 2c 64 66 69 |dfile(pa|th2$,dfi|
|00001610| 6c 65 68 61 6e 25 28 32 | 29 29 0d 06 68 05 e1 0d |lehan%(2|))..h...|
|00001620| 06 72 05 3a 0d 06 7c 16 | dd 20 f2 75 73 65 72 5f |.r.:..|.|. .user_|
|00001630| 6d 6f 64 65 63 68 61 6e | 67 65 0d 06 86 05 e1 0d |modechan|ge......|
|00001640| 06 90 05 3a 0d 06 9a 21 | dd 20 a4 75 73 65 72 5f |...:...!|. .user_|
|00001650| 6d 65 6e 75 68 65 6c 70 | 28 6d 65 6e 75 25 2c 69 |menuhelp|(menu%,i|
|00001660| 74 65 6d 25 29 0d 06 a4 | 07 3d 22 22 0d 06 ae 05 |tem%)...|.=""....|
|00001670| 3a 0d 06 b8 18 dd 20 f2 | 75 73 65 72 5f 64 65 63 |:..... .|user_dec|
|00001680| 6c 61 72 65 66 6f 6e 74 | 73 0d 06 c2 05 e1 0d 06 |larefont|s.......|
|00001690| cc 05 3a 0d 06 d6 30 dd | 20 f2 75 73 65 72 5f 70 |..:...0.| .user_p|
|000016a0| 72 69 6e 74 28 6d 69 6e | 78 25 2c 6d 69 6e 79 25 |rint(min|x%,miny%|
|000016b0| 2c 6d 61 78 78 25 2c 6d | 61 78 79 25 2c 70 61 67 |,maxx%,m|axy%,pag|
|000016c0| 65 25 29 0d 06 e0 05 e1 | 0d 06 ea 05 3a 0d 06 f4 |e%).....|....:...|
|000016d0| 34 dd 20 a4 75 73 65 72 | 5f 70 72 69 6e 74 69 6e |4. .user|_printin|
|000016e0| 67 28 63 6f 70 79 25 2c | 70 61 67 65 25 2c 74 6f |g(copy%,|page%,to|
|000016f0| 74 70 61 67 65 73 25 2c | 70 61 67 65 70 6f 73 25 |tpages%,|pagepos%|
|00001700| 29 0d 06 fe 06 3d 30 0d | 07 08 05 3a 0d 07 12 19 |)....=0.|...:....|
|00001710| dd 20 f2 75 73 65 72 5f | 70 72 69 6e 74 65 72 63 |. .user_|printerc|
|00001720| 68 61 6e 67 65 0d 07 1c | 05 e1 0d ff |hange...|.... |
+--------+-------------------------+-------------------------+--------+--------+