home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 5 / DATAFILE_PDCD5.iso / utilities / d / drwimp / DrWimp / Examples / !Blocks / !RunImage < prev    next >
Unknown  |  1997-05-31  |  4.5 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 1f c8 9b 20 22 3c | 44 72 57 69 6d 70 4c 69 |..... "<|DrWimpLi|
|00000020| 62 24 44 69 72 3e 2e 44 | 72 57 69 6d 70 22 0d 00 |b$Dir>.D|rWimp"..|
|00000030| 1e 05 3a 0d 00 28 15 61 | 70 70 6e 61 6d 65 24 3d |..:..(.a|ppname$=|
|00000040| 22 42 6c 6f 63 6b 73 22 | 0d 00 32 1b 76 65 72 24 |"Blocks"|..2.ver$|
|00000050| 3d 22 31 2e 30 30 20 28 | 30 37 2d 4a 75 6e 2d 39 |="1.00 (|07-Jun-9|
|00000060| 36 29 22 0d 00 3c 35 ee | 20 85 20 f2 77 69 6d 70 |6)"..<5.| . .wimp|
|00000070| 5f 65 72 72 6f 72 28 61 | 70 70 6e 61 6d 65 24 2c |_error(a|ppname$,|
|00000080| f6 24 2b 22 20 61 74 20 | 6c 69 6e 65 20 22 2b c3 |.$+" at |line "+.|
|00000090| 9e 2c 31 2c 31 29 3a e0 | 0d 00 46 04 0d 00 50 3d |.,1,1):.|..F...P=|
|000000a0| 20 20 f4 20 2a 2a 49 6e | 69 74 69 61 6c 69 73 65 | . **In|itialise|
|000000b0| 20 74 61 73 6b 20 61 6e | 64 20 6c 6f 61 64 20 69 | task an|d load i|
|000000c0| 6e 20 69 6e 66 6f 20 61 | 6e 64 20 6d 61 69 6e 20 |n info a|nd main |
|000000d0| 77 69 6e 64 6f 77 73 2a | 2a 0d 00 5a 32 74 61 73 |windows*|*..Z2tas|
|000000e0| 6b 25 3d a4 77 69 6d 70 | 5f 69 6e 69 74 69 61 6c |k%=.wimp|_initial|
|000000f0| 69 73 65 28 61 70 70 6e | 61 6d 65 24 2c 37 30 30 |ise(appn|ame$,700|
|00000100| 30 2c 37 30 30 30 2c 33 | 30 30 29 0d 00 64 3d 69 |0,7000,3|00)..d=i|
|00000110| 6e 66 6f 25 3d a4 77 69 | 6d 70 5f 6c 6f 61 64 77 |nfo%=.wi|mp_loadw|
|00000120| 69 6e 64 6f 77 28 22 3c | 42 6c 6f 63 6b 73 24 44 |indow("<|Blocks$D|
|00000130| 69 72 3e 2e 54 65 6d 70 | 6c 61 74 65 73 22 2c 22 |ir>.Temp|lates","|
|00000140| 69 6e 66 6f 22 2c 30 29 | 0d 00 6e 3d 6d 61 69 6e |info",0)|..n=main|
|00000150| 25 3d a4 77 69 6d 70 5f | 6c 6f 61 64 77 69 6e 64 |%=.wimp_|loadwind|
|00000160| 6f 77 28 22 3c 42 6c 6f | 63 6b 73 24 44 69 72 3e |ow("<Blo|cks$Dir>|
|00000170| 2e 54 65 6d 70 6c 61 74 | 65 73 22 2c 22 6d 61 69 |.Templat|es","mai|
|00000180| 6e 22 2c 30 29 0d 00 78 | 04 0d 00 82 32 20 20 f4 |n",0)..x|....2 .|
|00000190| 20 2a 2a 50 75 74 20 76 | 65 72 73 69 6f 6e 20 69 | **Put v|ersion i|
|000001a0| 6e 74 6f 20 69 63 6f 6e | 20 34 20 69 6e 20 69 6e |nto icon| 4 in in|
|000001b0| 66 6f 20 77 69 6e 64 6f | 77 2a 2a 0d 00 8c 23 f2 |fo windo|w**...#.|
|000001c0| 77 69 6d 70 5f 70 75 74 | 69 63 6f 6e 74 65 78 74 |wimp_put|icontext|
|000001d0| 28 69 6e 66 6f 25 2c 34 | 2c 76 65 72 24 29 0d 00 |(info%,4|,ver$)..|
|000001e0| 96 04 0d 00 a0 45 20 20 | f4 20 2a 2a 43 72 65 61 |.....E |. **Crea|
|000001f0| 74 65 20 69 63 6f 6e 62 | 61 72 20 69 63 6f 6e 2c |te iconb|ar icon,|
|00000200| 20 6f 6e 20 72 69 67 68 | 74 20 61 6e 64 20 77 69 | on righ|t and wi|
|00000210| 74 68 20 6e 6f 20 74 65 | 78 74 20 75 6e 64 65 72 |th no te|xt under|
|00000220| 6e 65 61 74 68 2a 2a 0d | 00 aa 29 62 61 72 25 3d |neath**.|..)bar%=|
|00000230| a4 77 69 6d 70 5f 69 63 | 6f 6e 62 61 72 28 22 21 |.wimp_ic|onbar("!|
|00000240| 22 2b 61 70 70 6e 61 6d | 65 24 2c 22 22 2c 31 29 |"+appnam|e$,"",1)|
|00000250| 0d 00 b4 04 0d 00 be 1f | 20 20 f4 20 2a 2a 43 72 |........| . **Cr|
|00000260| 65 61 74 65 20 69 63 6f | 6e 62 61 72 20 6d 65 6e |eate ico|nbar men|
|00000270| 75 2a 2a 0d 00 c8 36 62 | 61 72 6d 65 6e 75 25 3d |u**...6b|armenu%=|
|00000280| a4 77 69 6d 70 5f 63 72 | 65 61 74 65 6d 65 6e 75 |.wimp_cr|eatemenu|
|00000290| 28 61 70 70 6e 61 6d 65 | 24 2b 22 2f 49 6e 66 6f |(appname|$+"/Info|
|000002a0| 2f 51 75 69 74 22 2c 30 | 29 0d 00 d2 29 f2 77 69 |/Quit",0|)...).wi|
|000002b0| 6d 70 5f 61 74 74 61 63 | 68 73 75 62 6d 65 6e 75 |mp_attac|hsubmenu|
|000002c0| 28 62 61 72 6d 65 6e 75 | 25 2c 31 2c 69 6e 66 6f |(barmenu|%,1,info|
|000002d0| 25 29 0d 00 dc 04 0d 00 | e6 5e 20 20 f4 20 2a 2a |%)......|.^ . **|
|000002e0| 43 72 65 61 74 65 20 61 | 20 62 6c 6f 63 6b 20 62 |Create a| block b|
|000002f0| 69 67 20 65 6e 6f 75 67 | 68 20 74 6f 20 73 74 6f |ig enoug|h to sto|
|00000300| 72 65 20 32 30 20 73 74 | 72 69 6e 67 73 20 65 61 |re 20 st|rings ea|
|00000310| 63 68 20 63 61 6e 20 68 | 61 76 65 20 61 20 6d 61 |ch can h|ave a ma|
|00000320| 78 69 6d 75 6d 20 6c 65 | 6e 67 74 68 20 6f 66 20 |ximum le|ngth of |
|00000330| 31 30 2a 2a 0d 00 f0 31 | 20 20 f4 20 2a 2a 63 68 |10**...1| . **ch|
|00000340| 61 72 61 63 74 65 72 73 | 20 28 62 69 67 20 65 6e |aracters| (big en|
|00000350| 6f 75 67 68 20 66 6f 72 | 20 66 69 6c 65 6e 61 6d |ough for| filenam|
|00000360| 65 73 29 2a 2a 0d 00 fa | 23 62 6c 6f 63 6b 25 3d |es)**...|#block%=|
|00000370| a4 77 69 6d 70 5f 63 72 | 65 61 74 65 62 6c 6f 63 |.wimp_cr|eatebloc|
|00000380| 6b 28 32 30 2c 31 30 29 | 0d 01 04 04 0d 01 0e 58 |k(20,10)|.......X|
|00000390| 20 20 f4 20 2a 2a 52 65 | 63 6f 72 64 20 6d 61 78 | . **Re|cord max|
|000003a0| 69 6d 75 6d 20 6e 75 6d | 62 65 72 20 6f 66 20 66 |imum num|ber of f|
|000003b0| 69 6c 65 6e 61 6d 65 73 | 20 74 68 61 74 20 63 61 |ilenames| that ca|
|000003c0| 6e 20 62 65 20 73 74 6f | 72 65 64 20 61 6e 64 20 |n be sto|red and |
|000003d0| 74 68 65 20 63 75 72 72 | 65 6e 74 20 6e 75 6d 62 |the curr|ent numb|
|000003e0| 65 72 2a 2a 0d 01 18 29 | 20 20 f4 20 2a 2a 74 68 |er**...)| . **th|
|000003f0| 61 74 20 61 72 65 20 63 | 75 72 72 65 6e 74 6c 79 |at are c|urrently|
|00000400| 20 73 74 6f 72 65 64 20 | 28 30 29 2a 2a 0d 01 22 | stored |(0)**.."|
|00000410| 10 6d 61 78 66 69 6c 65 | 73 25 3d 32 30 0d 01 2c |.maxfile|s%=20..,|
|00000420| 11 74 6f 74 61 6c 66 69 | 6c 65 73 25 3d 30 0d 01 |.totalfi|les%=0..|
|00000430| 36 04 0d 01 40 28 20 20 | f4 20 2a 2a 50 6f 6c 6c |6...@( |. **Poll|
|00000440| 20 74 68 65 20 57 49 4d | 50 20 75 6e 74 69 6c 20 | the WIM|P until |
|00000450| 66 69 6e 69 73 68 65 64 | 2a 2a 0d 01 4a 0e f2 77 |finished|**..J..w|
|00000460| 69 6d 70 5f 70 6f 6c 6c | 0d 01 54 05 e0 0d 01 5e |imp_poll|..T....^|
|00000470| 05 3a 0d 01 68 43 dd 20 | f2 75 73 65 72 5f 72 65 |.:..hC. |.user_re|
|00000480| 64 72 61 77 28 77 69 6e | 64 6f 77 25 2c 6d 69 6e |draw(win|dow%,min|
|00000490| 78 25 2c 6d 69 6e 79 25 | 2c 6d 61 78 78 25 2c 6d |x%,miny%|,maxx%,m|
|000004a0| 61 78 79 25 2c 70 72 69 | 6e 74 69 6e 67 25 2c 70 |axy%,pri|nting%,p|
|000004b0| 61 67 65 25 29 0d 01 72 | 05 e1 0d 01 7c 05 3a 0d |age%)..r|....|.:.|
|000004c0| 01 86 3b dd 20 f2 75 73 | 65 72 5f 6d 6f 75 73 65 |..;. .us|er_mouse|
|000004d0| 63 6c 69 63 6b 28 77 69 | 6e 64 6f 77 25 2c 69 63 |click(wi|ndow%,ic|
|000004e0| 6f 6e 25 2c 62 75 74 74 | 6f 6e 25 2c 77 6f 72 6b |on%,butt|on%,work|
|000004f0| 78 25 2c 77 6f 72 6b 79 | 25 29 0d 01 90 04 0d 01 |x%,worky|%)......|
|00000500| 9a 4e 20 20 f4 20 2a 2a | 49 66 20 69 63 6f 6e 62 |.N . **|If iconb|
|00000510| 61 72 20 69 63 6f 6e 20 | 63 6c 69 63 6b 65 64 20 |ar icon |clicked |
|00000520| 6f 6e 20 61 6e 64 20 6e | 6f 20 66 69 6c 65 6e 61 |on and n|o filena|
|00000530| 6d 65 73 20 73 74 6f 72 | 65 64 20 74 68 65 6e 20 |mes stor|ed then |
|00000540| 67 69 76 65 20 65 72 72 | 6f 72 2a 2a 0d 01 a4 6d |give err|or**...m|
|00000550| e7 20 77 69 6e 64 6f 77 | 25 3d 62 61 72 25 20 80 |. window|%=bar% .|
|00000560| 20 74 6f 74 61 6c 66 69 | 6c 65 73 25 3d 30 20 f2 | totalfi|les%=0 .|
|00000570| 77 69 6d 70 5f 65 72 72 | 6f 72 28 61 70 70 6e 61 |wimp_err|or(appna|
|00000580| 6d 65 24 2c 22 44 72 6f | 70 20 73 6f 6d 65 20 66 |me$,"Dro|p some f|
|00000590| 69 6c 65 73 20 6f 6e 74 | 6f 20 74 68 65 20 69 63 |iles ont|o the ic|
|000005a0| 6f 6e 62 61 72 20 69 63 | 6f 6e 20 66 69 72 73 74 |onbar ic|on first|
|000005b0| 2e 22 2c 31 2c 31 29 3a | e1 0d 01 ae 04 0d 01 b8 |.",1,1):|........|
|000005c0| 48 20 20 f4 20 2a 2a 49 | 66 20 69 63 6f 6e 62 61 |H . **I|f iconba|
|000005d0| 72 20 69 63 6f 6e 20 63 | 6c 69 63 6b 65 64 20 6f |r icon c|licked o|
|000005e0| 6e 20 61 6e 64 20 73 6f | 6d 65 20 66 69 6c 65 6e |n and so|me filen|
|000005f0| 61 6d 65 73 20 73 74 6f | 72 65 64 20 74 68 65 6e |ames sto|red then|
|00000600| 2e 2e 2e 2a 2a 0d 01 c2 | 14 e7 20 77 69 6e 64 6f |...**...|.. windo|
|00000610| 77 25 3d 62 61 72 25 20 | 8c 0d 01 cc 04 0d 01 d6 |w%=bar% |........|
|00000620| 5e 20 20 20 20 f4 20 2a | 2a 53 65 74 20 63 75 72 |^ . *|*Set cur|
|00000630| 72 65 6e 74 20 70 6f 73 | 69 74 69 6f 6e 20 74 6f |rent pos|ition to|
|00000640| 20 74 68 65 20 66 69 72 | 73 74 20 66 69 6c 65 6e | the fir|st filen|
|00000650| 61 6d 65 2c 20 72 65 74 | 72 69 65 76 65 20 66 69 |ame, ret|rieve fi|
|00000660| 6c 65 6e 61 6d 65 20 66 | 72 6f 6d 20 62 6c 6f 63 |lename f|rom bloc|
|00000670| 6b 20 61 6e 64 20 70 75 | 74 2a 2a 0d 01 e0 59 20 |k and pu|t**...Y |
|00000680| 20 20 20 f4 20 2a 2a 69 | 6e 74 6f 20 69 63 6f 6e | . **i|nto icon|
|00000690| 20 30 20 69 6e 20 6d 61 | 69 6e 20 77 69 6e 64 6f | 0 in ma|in windo|
|000006a0| 77 2e 20 4f 70 65 6e 20 | 6d 61 69 6e 20 77 69 6e |w. Open |main win|
|000006b0| 64 6f 77 20 69 6e 20 63 | 65 6e 74 72 65 20 6f 66 |dow in c|entre of|
|000006c0| 20 73 63 72 65 65 6e 20 | 61 6e 64 20 61 74 20 74 | screen |and at t|
|000006d0| 6f 70 2a 2a 0d 01 ea 11 | 20 20 70 6f 73 69 74 69 |op**....| positi|
|000006e0| 6f 6e 25 3d 31 0d 01 f4 | 2d 20 20 66 24 3d a4 77 |on%=1...|- f$=.w|
|000006f0| 69 6d 70 5f 67 65 74 66 | 72 6f 6d 62 6c 6f 63 6b |imp_getf|romblock|
|00000700| 28 62 6c 6f 63 6b 25 2c | 70 6f 73 69 74 69 6f 6e |(block%,|position|
|00000710| 25 29 0d 01 fe 23 20 20 | f2 77 69 6d 70 5f 70 75 |%)...# |.wimp_pu|
|00000720| 74 69 63 6f 6e 74 65 78 | 74 28 6d 61 69 6e 25 2c |ticontex|t(main%,|
|00000730| 30 2c 66 24 29 0d 02 08 | 22 20 20 f2 77 69 6d 70 |0,f$)...|" .wimp|
|00000740| 5f 6f 70 65 6e 77 69 6e | 64 6f 77 28 6d 61 69 6e |_openwin|dow(main|
|00000750| 25 2c 31 2c 2d 31 29 0d | 02 12 05 cd 0d 02 1c 04 |%,1,-1).|........|
|00000760| 0d 02 26 38 20 20 f4 20 | 2a 2a 49 66 20 75 70 20 |..&8 . |**If up |
|00000770| 69 63 6f 6e 20 69 6e 20 | 6d 61 69 6e 20 77 69 6e |icon in |main win|
|00000780| 64 6f 77 20 63 6c 69 63 | 6b 65 64 20 6f 6e 20 74 |dow clic|ked on t|
|00000790| 68 65 6e 2e 2e 2e 2a 2a | 0d 02 30 1f e7 20 77 69 |hen...**|..0.. wi|
|000007a0| 6e 64 6f 77 25 3d 6d 61 | 69 6e 25 20 80 20 69 63 |ndow%=ma|in% . ic|
|000007b0| 6f 6e 25 3d 31 20 8c 0d | 02 3a 04 0d 02 44 57 20 |on%=1 ..|.:...DW |
|000007c0| 20 20 20 f4 20 2a 2a 4d | 6f 76 65 20 74 6f 20 6e | . **M|ove to n|
|000007d0| 65 78 74 20 66 69 6c 65 | 6e 61 6d 65 20 28 69 66 |ext file|name (if|
|000007e0| 20 74 68 65 72 65 20 69 | 73 20 6f 6e 65 29 2c 20 | there i|s one), |
|000007f0| 72 65 74 72 69 65 76 65 | 20 66 69 6c 65 6e 61 6d |retrieve| filenam|
|00000800| 65 20 66 72 6f 6d 20 62 | 6c 6f 63 6b 20 61 6e 64 |e from b|lock and|
|00000810| 2a 2a 0d 02 4e 22 20 20 | 20 20 f4 20 2a 2a 70 75 |**..N" | . **pu|
|00000820| 74 20 69 6e 74 6f 20 6d | 61 69 6e 20 77 69 6e 64 |t into m|ain wind|
|00000830| 6f 77 2a 2a 0d 02 58 12 | 20 20 70 6f 73 69 74 69 |ow**..X.| positi|
|00000840| 6f 6e 25 2b 3d 31 0d 02 | 62 33 20 20 e7 20 70 6f |on%+=1..|b3 . po|
|00000850| 73 69 74 69 6f 6e 25 3e | 74 6f 74 61 6c 66 69 6c |sition%>|totalfil|
|00000860| 65 73 25 20 70 6f 73 69 | 74 69 6f 6e 25 3d 74 6f |es% posi|tion%=to|
|00000870| 74 61 6c 66 69 6c 65 73 | 25 0d 02 6c 2d 20 20 66 |talfiles|%..l- f|
|00000880| 24 3d a4 77 69 6d 70 5f | 67 65 74 66 72 6f 6d 62 |$=.wimp_|getfromb|
|00000890| 6c 6f 63 6b 28 62 6c 6f | 63 6b 25 2c 70 6f 73 69 |lock(blo|ck%,posi|
|000008a0| 74 69 6f 6e 25 29 0d 02 | 76 23 20 20 f2 77 69 6d |tion%)..|v# .wim|
|000008b0| 70 5f 70 75 74 69 63 6f | 6e 74 65 78 74 28 6d 61 |p_putico|ntext(ma|
|000008c0| 69 6e 25 2c 30 2c 66 24 | 29 0d 02 80 05 cd 0d 02 |in%,0,f$|).......|
|000008d0| 8a 04 0d 02 94 3a 20 20 | f4 20 2a 2a 49 66 20 64 |.....: |. **If d|
|000008e0| 6f 77 6e 20 69 63 6f 6e | 20 69 6e 20 6d 61 69 6e |own icon| in main|
|000008f0| 20 77 69 6e 64 6f 77 20 | 63 6c 69 63 6b 65 64 20 | window |clicked |
|00000900| 6f 6e 20 74 68 65 6e 2e | 2e 2e 2a 2a 0d 02 9e 1f |on then.|..**....|
|00000910| e7 20 77 69 6e 64 6f 77 | 25 3d 6d 61 69 6e 25 20 |. window|%=main% |
|00000920| 80 20 69 63 6f 6e 25 3d | 32 20 8c 0d 02 a8 04 0d |. icon%=|2 ......|
|00000930| 02 b2 5b 20 20 20 20 f4 | 20 2a 2a 4d 6f 76 65 20 |..[ .| **Move |
|00000940| 74 6f 20 70 72 65 76 69 | 6f 75 73 20 66 69 6c 65 |to previ|ous file|
|00000950| 6e 61 6d 65 20 28 69 66 | 20 74 68 65 72 65 20 69 |name (if| there i|
|00000960| 73 20 6f 6e 65 29 2c 20 | 72 65 74 72 69 65 76 65 |s one), |retrieve|
|00000970| 20 66 69 6c 65 6e 61 6d | 65 20 66 72 6f 6d 20 62 | filenam|e from b|
|00000980| 6c 6f 63 6b 20 61 6e 64 | 2a 2a 0d 02 bc 22 20 20 |lock and|**..." |
|00000990| 20 20 f4 20 2a 2a 70 75 | 74 20 69 6e 74 6f 20 6d | . **pu|t into m|
|000009a0| 61 69 6e 20 77 69 6e 64 | 6f 77 2a 2a 0d 02 c6 12 |ain wind|ow**....|
|000009b0| 20 20 70 6f 73 69 74 69 | 6f 6e 25 2d 3d 31 0d 02 | positi|on%-=1..|
|000009c0| d0 1f 20 20 e7 20 70 6f | 73 69 74 69 6f 6e 25 3c |.. . po|sition%<|
|000009d0| 31 20 70 6f 73 69 74 69 | 6f 6e 25 3d 31 0d 02 da |1 positi|on%=1...|
|000009e0| 2d 20 20 66 24 3d a4 77 | 69 6d 70 5f 67 65 74 66 |- f$=.w|imp_getf|
|000009f0| 72 6f 6d 62 6c 6f 63 6b | 28 62 6c 6f 63 6b 25 2c |romblock|(block%,|
|00000a00| 70 6f 73 69 74 69 6f 6e | 25 29 0d 02 e4 23 20 20 |position|%)...# |
|00000a10| f2 77 69 6d 70 5f 70 75 | 74 69 63 6f 6e 74 65 78 |.wimp_pu|ticontex|
|00000a20| 74 28 6d 61 69 6e 25 2c | 30 2c 66 24 29 0d 02 ee |t(main%,|0,f$)...|
|00000a30| 05 cd 0d 02 f8 05 e1 0d | 03 02 05 3a 0d 03 0c 1f |........|...:....|
|00000a40| dd 20 a4 75 73 65 72 5f | 6d 65 6e 75 28 77 69 6e |. .user_|menu(win|
|00000a50| 64 6f 77 25 2c 69 63 6f | 6e 25 29 0d 03 16 04 0d |dow%,ico|n%).....|
|00000a60| 03 20 2f 20 20 f4 20 2a | 2a 41 74 74 61 63 68 20 |. / . *|*Attach |
|00000a70| 69 63 6f 6e 62 61 72 20 | 6d 65 6e 75 20 74 6f 20 |iconbar |menu to |
|00000a80| 69 63 6f 6e 62 61 72 20 | 69 63 6f 6e 2a 2a 0d 03 |iconbar |icon**..|
|00000a90| 2a 1c e7 20 77 69 6e 64 | 6f 77 25 3d 62 61 72 25 |*.. wind|ow%=bar%|
|00000aa0| 20 3d 62 61 72 6d 65 6e | 75 25 0d 03 34 06 3d 30 | =barmen|u%..4.=0|
|00000ab0| 0d 03 3e 05 3a 0d 03 48 | 2c dd 20 f2 75 73 65 72 |..>.:..H|,. .user|
|00000ac0| 5f 6f 70 65 6e 77 69 6e | 64 6f 77 28 77 69 6e 64 |_openwin|dow(wind|
|00000ad0| 6f 77 25 2c 78 25 2c 79 | 25 2c 73 74 61 63 6b 25 |ow%,x%,y|%,stack%|
|00000ae0| 29 0d 03 52 05 e1 0d 03 | 5c 05 3a 0d 03 66 20 dd |)..R....|\.:..f .|
|00000af0| 20 f2 75 73 65 72 5f 63 | 6c 6f 73 65 77 69 6e 64 | .user_c|losewind|
|00000b00| 6f 77 28 77 69 6e 64 6f | 77 25 29 0d 03 70 05 e1 |ow(windo|w%)..p..|
|00000b10| 0d 03 7a 05 3a 0d 03 84 | 27 dd 20 a4 75 73 65 72 |..z.:...|'. .user|
|00000b20| 5f 6b 65 79 70 72 65 73 | 73 28 77 69 6e 64 6f 77 |_keypres|s(window|
|00000b30| 25 2c 69 63 6f 6e 25 2c | 6b 65 79 29 0d 03 8e 06 |%,icon%,|key)....|
|00000b40| 3d 30 0d 03 98 05 3a 0d | 03 a2 26 dd 20 f2 75 73 |=0....:.|..&. .us|
|00000b50| 65 72 5f 6d 65 6e 75 73 | 65 6c 65 63 74 69 6f 6e |er_menus|election|
|00000b60| 28 6d 65 6e 75 25 2c 69 | 74 65 6d 25 29 0d 03 ac |(menu%,i|tem%)...|
|00000b70| 04 0d 03 b6 5d 20 20 f4 | 20 2a 2a 49 66 20 69 74 |....] .| **If it|
|00000b80| 65 6d 20 32 20 28 51 75 | 69 74 29 20 63 68 6f 73 |em 2 (Qu|it) chos|
|00000b90| 65 6e 20 66 72 6f 6d 20 | 69 63 6f 6e 62 61 72 20 |en from |iconbar |
|00000ba0| 6d 65 6e 75 20 74 68 65 | 6e 20 73 65 74 20 66 69 |menu the|n set fi|
|00000bb0| 6e 69 73 68 65 64 25 20 | 74 6f 20 54 52 55 45 20 |nished% |to TRUE |
|00000bc0| 73 6f 20 61 70 70 20 71 | 75 69 74 73 2a 2a 0d 03 |so app q|uits**..|
|00000bd0| c0 2a e7 20 6d 65 6e 75 | 25 3d 62 61 72 6d 65 6e |.*. menu|%=barmen|
|00000be0| 75 25 20 80 20 69 74 65 | 6d 25 3d 32 20 66 69 6e |u% . ite|m%=2 fin|
|00000bf0| 69 73 68 65 64 25 3d b9 | 0d 03 ca 05 e1 0d 03 d4 |ished%=.|........|
|00000c00| 05 3a 0d 03 de 21 dd 20 | a4 75 73 65 72 5f 73 61 |.:...!. |.user_sa|
|00000c10| 76 65 66 69 6c 65 74 79 | 70 65 28 77 69 6e 64 6f |vefilety|pe(windo|
|00000c20| 77 25 29 0d 03 e8 07 3d | 22 22 0d 03 f2 05 3a 0d |w%)....=|""....:.|
|00000c30| 03 fc 34 dd 20 f2 75 73 | 65 72 5f 73 61 76 65 69 |..4. .us|er_savei|
|00000c40| 63 6f 6e 28 77 69 6e 64 | 6f 77 25 2c f8 20 64 72 |con(wind|ow%,. dr|
|00000c50| 61 67 25 2c f8 20 77 72 | 69 74 65 25 2c f8 20 6f |ag%,. wr|ite%,. o|
|00000c60| 6b 25 29 0d 04 06 05 e1 | 0d 04 10 05 3a 0d 04 1a |k%).....|....:...|
|00000c70| 23 dd 20 a4 75 73 65 72 | 5f 73 61 76 65 64 61 74 |#. .user|_savedat|
|00000c80| 61 28 70 61 74 68 24 2c | 77 69 6e 64 6f 77 25 29 |a(path$,|window%)|
|00000c90| 0d 04 24 06 3d 31 0d 04 | 2e 05 3a 0d 04 38 1f dd |..$.=1..|..:..8..|
|00000ca0| 20 a4 75 73 65 72 5f 68 | 65 6c 70 28 77 69 6e 64 | .user_h|elp(wind|
|00000cb0| 6f 77 25 2c 69 63 6f 6e | 25 29 0d 04 42 07 3d 22 |ow%,icon|%)..B.="|
|00000cc0| 22 0d 04 4c 05 3a 0d 04 | 56 3e dd 20 a4 75 73 65 |"..L.:..|V>. .use|
|00000cd0| 72 5f 6c 6f 61 64 64 61 | 74 61 28 70 61 74 68 24 |r_loadda|ta(path$|
|00000ce0| 2c 77 69 6e 64 6f 77 25 | 2c 69 63 6f 6e 25 2c 66 |,window%|,icon%,f|
|00000cf0| 74 79 70 65 24 2c 77 6f | 72 6b 78 25 2c 77 6f 72 |type$,wo|rkx%,wor|
|00000d00| 6b 79 25 29 0d 04 60 04 | 0d 04 6a 56 20 20 f4 20 |ky%)..`.|..jV . |
|00000d10| 2a 2a 49 66 20 69 74 65 | 6d 20 62 65 69 6e 67 20 |**If ite|m being |
|00000d20| 64 72 6f 70 70 65 64 20 | 6f 6e 20 69 63 6f 6e 62 |dropped |on iconb|
|00000d30| 61 72 20 69 63 6f 6e 20 | 6f 72 20 6d 61 69 6e 20 |ar icon |or main |
|00000d40| 77 69 6e 64 6f 77 20 69 | 73 20 6e 6f 74 20 61 6e |window i|s not an|
|00000d50| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 2a 2a 0d 04 | applica|tion**..|
|00000d60| 74 20 20 20 f4 20 2a 2a | 6f 72 20 64 69 72 65 63 |t . **|or direc|
|00000d70| 74 6f 72 79 20 74 68 65 | 6e 2e 2e 2e 2a 2a 0d 04 |tory the|n...**..|
|00000d80| 7e 27 e7 20 66 74 79 70 | 65 24 3c 3e 22 31 30 30 |~'. ftyp|e$<>"100|
|00000d90| 30 22 20 80 20 66 74 79 | 70 65 24 3c 3e 22 32 30 |0" . fty|pe$<>"20|
|00000da0| 30 30 22 20 8c 0d 04 88 | 04 0d 04 92 46 20 20 20 |00" ....|....F |
|00000db0| 20 f4 20 2a 2a 67 65 74 | 20 6c 65 61 66 6e 61 6d | . **get| leafnam|
|00000dc0| 65 2c 20 69 6e 63 72 65 | 6d 65 6e 74 20 74 6f 74 |e, incre|ment tot|
|00000dd0| 61 6c 20 6e 75 6d 62 65 | 72 20 6f 66 20 66 69 6c |al numbe|r of fil|
|00000de0| 65 6e 61 6d 65 73 20 73 | 74 6f 72 65 64 2a 2a 0d |enames s|tored**.|
|00000df0| 04 9c 24 20 20 6c 65 61 | 66 24 3d a4 77 69 6d 70 |..$ lea|f$=.wimp|
|00000e00| 5f 67 65 74 6c 65 61 66 | 6e 61 6d 65 28 70 61 74 |_getleaf|name(pat|
|00000e10| 68 24 29 0d 04 a6 14 20 | 20 74 6f 74 61 6c 66 69 |h$).... | totalfi|
|00000e20| 6c 65 73 25 2b 3d 31 0d | 04 b0 04 0d 04 ba 1f 20 |les%+=1.|....... |
|00000e30| 20 e7 20 74 6f 74 61 6c | 66 69 6c 65 73 25 3e 6d | . total|files%>m|
|00000e40| 61 78 66 69 6c 65 73 25 | 20 8c 0d 04 c4 04 0d 04 |axfiles%| .......|
|00000e50| ce 53 20 20 20 20 20 20 | f4 20 2a 2a 49 66 20 74 |.S |. **If t|
|00000e60| 6f 74 61 6c 20 69 73 20 | 6e 6f 77 20 6d 6f 72 65 |otal is |now more|
|00000e70| 20 74 68 61 74 20 74 68 | 65 20 6d 61 78 69 6d 75 | that th|e maximu|
|00000e80| 6d 20 28 77 68 69 63 68 | 20 69 73 20 32 30 29 20 |m (which| is 20) |
|00000e90| 74 68 65 6e 20 67 69 76 | 65 20 65 72 72 6f 72 2a |then giv|e error*|
|00000ea0| 2a 0d 04 d8 1d 20 20 20 | 20 74 6f 74 61 6c 66 69 |*.... | totalfi|
|00000eb0| 6c 65 73 25 3d 6d 61 78 | 66 69 6c 65 73 25 0d 04 |les%=max|files%..|
|00000ec0| e2 50 20 20 20 20 f2 77 | 69 6d 70 5f 65 72 72 6f |.P .w|imp_erro|
|00000ed0| 72 28 61 70 70 6e 61 6d | 65 24 2c 22 59 6f 75 20 |r(appnam|e$,"You |
|00000ee0| 63 61 6e 20 6f 6e 6c 79 | 20 73 74 6f 72 65 20 22 |can only| store "|
|00000ef0| 2b c3 6d 61 78 66 69 6c | 65 73 25 2b 22 20 66 69 |+.maxfil|es%+" fi|
|00000f00| 6c 65 6e 61 6d 65 73 2e | 22 2c 31 2c 31 29 0d 04 |lenames.|",1,1)..|
|00000f10| ec 07 20 20 cc 0d 04 f6 | 04 0d 05 00 4f 20 20 20 |.. ....|....O |
|00000f20| 20 20 20 f4 20 2a 2a 49 | 66 20 74 6f 74 61 6c 20 | . **I|f total |
|00000f30| 6c 65 73 73 20 74 68 61 | 6e 20 6f 72 20 65 71 75 |less tha|n or equ|
|00000f40| 61 6c 20 74 6f 20 6d 61 | 78 69 6d 75 6d 20 28 32 |al to ma|ximum (2|
|00000f50| 30 29 20 74 68 65 6e 20 | 73 74 6f 72 65 20 69 6e |0) then |store in|
|00000f60| 20 62 6c 6f 63 6b 2a 2a | 0d 05 0a 32 20 20 20 20 | block**|...2 |
|00000f70| f2 77 69 6d 70 5f 70 75 | 74 69 6e 62 6c 6f 63 6b |.wimp_pu|tinblock|
|00000f80| 28 62 6c 6f 63 6b 25 2c | 6c 65 61 66 24 2c 74 6f |(block%,|leaf$,to|
|00000f90| 74 61 6c 66 69 6c 65 73 | 25 29 0d 05 14 07 20 20 |talfiles|%).... |
|00000fa0| cd 0d 05 1e 05 cc 0d 05 | 28 08 20 20 ef 37 0d 05 |........|(. .7..|
|00000fb0| 32 05 cd 0d 05 3c 06 3d | 30 0d 05 46 05 3a 0d 05 |2....<.=|0..F.:..|
|00000fc0| 50 23 dd 20 f2 75 73 65 | 72 5f 65 6e 74 65 72 69 |P#. .use|r_enteri|
|00000fd0| 6e 67 77 69 6e 64 6f 77 | 28 77 69 6e 64 6f 77 25 |ngwindow|(window%|
|00000fe0| 29 0d 05 5a 05 e1 0d 05 | 64 05 3a 0d 05 6e 22 dd |)..Z....|d.:..n".|
|00000ff0| 20 f2 75 73 65 72 5f 6c | 65 61 76 69 6e 67 77 69 | .user_l|eavingwi|
|00001000| 6e 64 6f 77 28 77 69 6e | 64 6f 77 25 29 0d 05 78 |ndow(win|dow%)..x|
|00001010| 05 e1 0d 05 82 05 3a 0d | 05 8c 19 dd 20 a4 75 73 |......:.|.... .us|
|00001020| 65 72 5f 70 61 6e 65 28 | 77 69 6e 64 6f 77 25 29 |er_pane(|window%)|
|00001030| 0d 05 96 07 3d 2d 31 0d | 05 a0 05 3a 0d 05 aa 10 |....=-1.|...:....|
|00001040| dd 20 f2 75 73 65 72 5f | 6e 75 6c 6c 0d 05 b4 05 |. .user_|null....|
|00001050| e1 0d 05 be 05 3a 0d 05 | c8 21 dd 20 f2 75 73 65 |.....:..|.!. .use|
|00001060| 72 5f 6d 65 6e 75 6f 70 | 65 6e 28 6d 65 6e 75 25 |r_menuop|en(menu%|
|00001070| 2c 69 63 6f 6e 25 29 0d | 05 d2 05 e1 0d 05 dc 05 |,icon%).|........|
|00001080| 3a 0d 05 e6 25 dd 20 a4 | 75 73 65 72 5f 73 6c 69 |:...%. .|user_sli|
|00001090| 64 65 72 62 61 63 6b 28 | 77 69 6e 64 6f 77 25 2c |derback(|window%,|
|000010a0| 69 63 6f 6e 25 29 0d 05 | f0 07 3d 2d 31 0d 05 fa |icon%)..|..=-1...|
|000010b0| 05 3a 0d 06 04 21 dd 20 | a4 75 73 65 72 5f 73 6c |.:...!. |.user_sl|
|000010c0| 69 64 65 72 28 77 69 6e | 64 6f 77 25 2c 69 63 6f |ider(win|dow%,ico|
|000010d0| 6e 25 29 0d 06 0e 07 3d | 2d 31 0d 06 18 05 3a 0d |n%)....=|-1....:.|
|000010e0| 06 22 2d dd 20 f2 75 73 | 65 72 5f 73 6c 69 64 65 |."-. .us|er_slide|
|000010f0| 72 76 61 6c 75 65 28 77 | 69 6e 64 6f 77 25 2c 69 |rvalue(w|indow%,i|
|00001100| 63 6f 6e 25 2c 70 63 65 | 6e 74 25 29 0d 06 2c 05 |con%,pce|nt%)..,.|
|00001110| e1 0d 06 36 05 3a 0d 06 | 40 16 dd 20 f2 75 73 65 |...6.:..|@.. .use|
|00001120| 72 5f 6d 6f 64 65 63 68 | 61 6e 67 65 0d 06 4a 05 |r_modech|ange..J.|
|00001130| e1 0d 06 54 05 3a 0d 06 | 5e 21 dd 20 a4 75 73 65 |...T.:..|^!. .use|
|00001140| 72 5f 6d 65 6e 75 68 65 | 6c 70 28 6d 65 6e 75 25 |r_menuhe|lp(menu%|
|00001150| 2c 69 74 65 6d 25 29 0d | 06 68 07 3d 22 22 0d 06 |,item%).|.h.=""..|
|00001160| 72 05 3a 0d 06 7c 18 dd | 20 f2 75 73 65 72 5f 64 |r.:..|..| .user_d|
|00001170| 65 63 6c 61 72 65 66 6f | 6e 74 73 0d 06 86 05 e1 |eclarefo|nts.....|
|00001180| 0d 06 90 05 3a 0d 06 9a | 30 dd 20 f2 75 73 65 72 |....:...|0. .user|
|00001190| 5f 70 72 69 6e 74 28 6d | 69 6e 78 25 2c 6d 69 6e |_print(m|inx%,min|
|000011a0| 79 25 2c 6d 61 78 78 25 | 2c 6d 61 78 79 25 2c 70 |y%,maxx%|,maxy%,p|
|000011b0| 61 67 65 25 29 0d 06 a4 | 05 e1 0d 06 ae 05 3a 0d |age%)...|......:.|
|000011c0| 06 b8 34 dd 20 a4 75 73 | 65 72 5f 70 72 69 6e 74 |..4. .us|er_print|
|000011d0| 69 6e 67 28 63 6f 70 79 | 25 2c 70 61 67 65 25 2c |ing(copy|%,page%,|
|000011e0| 74 6f 74 70 61 67 65 73 | 25 2c 70 61 67 65 70 6f |totpages|%,pagepo|
|000011f0| 73 25 29 0d 06 c2 06 3d | 30 0d 06 cc 05 3a 0d 06 |s%)....=|0....:..|
|00001200| d6 19 dd 20 f2 75 73 65 | 72 5f 70 72 69 6e 74 65 |... .use|r_printe|
|00001210| 72 63 68 61 6e 67 65 0d | 06 e0 05 e1 0d ff |rchange.|...... |
+--------+-------------------------+-------------------------+--------+--------+