Home » Archimedes archive » Acorn User » AU 1998-10.adf » Regulars » StarInfo/Cole/!PCSetType/!Runimage

StarInfo/Cole/!PCSetType/!Runimage

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Archimedes archive » Acorn User » AU 1998-10.adf » Regulars
Filename: StarInfo/Cole/!PCSetType/!Runimage
Read OK:
File size: 1511 bytes
Load address: 0000
Exec address: 0000
File contents
   10ON ERROR :ON ERROR OFF:MODE 0:PRINT REPORT$;" at line ";ERL:END
   20quit%=FALSE
   30PROCinit
   40REPEAT
   41SYS "Hourglass_On"
   50PROCpoll
   51SYS "Hourglass_Off"
   60UNTIL quit%=TRUE
   70SYS "Wimp_CloseDown"
   80END
   90:
  100DEFPROCinit
  110indlen%=2500
  120DIM block% 1024*1,menu% 120,indblock% indlen%
  130app$="PC Set Type"
  140SYS "Wimp_Initialise",200,&4B534154,app$ TO ,thandle%
  150ON ERROR : PROCerror(REPORT$+" at line "+STR$ERL)
  160iconbar%=FNcreate_icon(-1,0,0,80,100,&300A,"!pcsettype",0,0,0)
  170
  180PROCopentemplates("<PCType$Dir>.templates",indblock%,indlen%,block%)
  190info%=FNreadtemplate("Info")
  200progress%=FNreadtemplate("Progress")
  210SYS "Wimp_CloseTemplate"
  220PROCsetupmenu(menu%)
  230
  240files%=FNreadindirecticon(progress%,2)
  250cdir%=FNreadindirecticon(progress%,4)
  260abort%=FALSE
  270ENDPROC
  280
  290DATA "PC Type",2,0,info%,"Info",&80,-1,"Quit"
  300:
  310DEFPROCpoll
  311SYS "Hourglass_Off"
  320SYS "Wimp_Poll",0,block% TO reason%
  321SYS "Hourglass_On"
  330CASE reason% OF
  340WHEN 2:SYS "Wimp_OpenWindow",,block%
  350WHEN 3:SYS "Wimp_CloseWindow",,block%
  360WHEN 6:PROCclick(block%!8,block%!12,block%!16)
  370WHEN 9:IF !block%=1 THEN quit%=TRUE
  380WHEN 17,18 :CASE block%!16 OF
  390                    WHEN 0:quit%=TRUE
  400                    WHEN 3:PROCtrythis(block%!40,FNstring(block%+44))
  410            ENDCASE
  420ENDCASE
  430ENDPROC
  440:
  450DEFFNstring(a%)
  460LOCAL a$
  470a$=""
  480WHILE ?a%>13
  490a$+=CHR$(?a%)
  500a%+=1
  510ENDWHILE
  520=a$
  530:
  540DEFPROCclick(but%,win%,icon%)
  550IF but%=2 THEN PROCshowmenu(menu%,!block%-64,FNiconbarmenuheight(menu%)):ENDPROC
  560IF win%=progress% AND icon%=3 THEN abort%=TRUE:ENDPROC
  570IF win%<0 THEN ok%=FNreport("Please drag your PC Partition (or directory) to this application to (recursively) set all files in it to type DOS.",0)
  580ENDPROC
  590:
  600REM FNiconbarmenuheight(menu%)  - Finds height of iconbar menus
  610DEFFNiconbarmenuheight(menu%)
  620LOCAL high%
  630high%=96
  640loop%=-1:REPEAT:loop%+=1
  650IF (!(menu%+(loop%*24)+28) AND %10)=%10 THEN high%+=24
  660high%+=44
  670UNTIL (!(menu%+(loop%*24)+28) AND %10000000)=%10000000
  680=high%
  690:
  700REM FNreport(err$,flag%)   - Opens non multitasking error box with specified buttons. Returns the error click.
  710DEFFNreport(err$,flag%)
  720!block%=255
  730name$=app$
  740IF flag% AND 16 THEN name$="Message from "+name$
  750$(block%+4)=err$+CHR$0
  760SYS "Wimp_ReportError",block%,flag%,name$ TO ,errclick%
  770=errclick%
  780
  790REM PROCerror   - To be called when an error occures
  800DEFPROCerror(a$)
  810end%=FNreport(a$,%10)
  820SYS "Wimp_CloseDown"
  830END
  840:
  850DEFPROCopentemplates(filename$,Imaintempind%,Itemplimit%,Iwindowstore%)
  860maintempind%=Imaintempind%:templimit%=Itemplimit%:windowstore%=Iwindowstore%
  870SYS "Wimp_OpenTemplate",,filename$
  880pointer%=maintempind%:next%=0
  890ENDPROC
  900
  910REM   FNreadtemplate(winname$)   - Reads a window definition off the template file.
  920DEFFNreadtemplate(winname$)
  930LOCAL name%
  940DIM name% 11
  950$name%=winname$
  960SYS "Wimp_LoadTemplate",,windowstore%,pointer%,maintempind%+templimit%,-1,name%,next% TO ,,pointer%,,,,next%
  970IF next%=0 THEN PROCerror("Window definition not found in Template (Identifier="+$name%+").")
  980SYS "Wimp_CreateWindow",,windowstore% TO windowhandle%
  990=windowhandle%
 1000:
 1010REM FNcreate_icon     - Guess
 1020DEFFNcreate_icon(whan%,ix%,iy%,iw%,ih%,flag%,text$,prt1%,prt2%,ptr3%)
 1030!block%=whan%
 1040block%!4=ix%
 1050block%!8=iy%
 1060block%!12=ix%+iw%
 1070block%!16=iy%+ih%
 1080block%!20=flag%
 1090IF prt1%=0 AND prt2%=0 AND ptr3%=0 THEN
 1100$(block%+24)=text$
 1110ELSE
 1120block%!24=prt1%
 1130block%!28=prt2%
 1140block%!32=ptr3%
 1150ENDIF
 1160SYS "Wimp_CreateIcon",,block% TO ihandle%
 1170=ihandle%
 1180
 1190REM PROCsetupmenu(menu%)    - Initialises a Menu Dim (in menu%) Must have Data RESTORED to before calling proc.
 1200DEFPROCsetupmenu(menu%)
 1210LOCAL title$,num%,width%,ptr%,item$
 1220READ title$,num%:$menu%=title$
 1230width%=(LEN(title$)-1)*16
 1240menu%!12=&00070207:menu%!20=44:menu%!24=0
 1250ptr%=menu%+28:FOR i%=1 TO num%
 1260READ mflags%,subptr%,item$
 1270!ptr%=mflags%:ptr%!4=subptr%
 1280ptr%!8=&7000021:$(ptr%+12)=item$
 1290a%=(LEN(item$)+1)*16
 1300IF a%>width% width%=a%
 1310ptr%+=24:NEXT
 1320menu%!16=width%
 1330ENDPROC
 1340:
 1350DEFFNreadindirecticon(windoh%,iconh%)
 1360!block%=windoh%
 1370block%!4=iconh%
 1380SYS "Wimp_GetIconState",,block%
 1390=block%!28
 1400:
 1410DEFPROCredrawicon(winh%,iconh%)
 1420block%!0=winh%
 1430block%!4=iconh%
 1440block%!8=0
 1450block%!12=0
 1460SYS "Wimp_SetIconState",,block%
 1470ENDPROC
 1480:
 1490REM PROCshowmenu     - Opens specified menu at place required.
 1500DEFPROCshowmenu(menu%,mx%,my%)
 1510SYS "Wimp_CreateMenu",,menu%,mx%,my%
 1520ENDPROC
 1530:
 1540DEFPROCtrythis(type%,fname$)
 1550IF type%<>&FC8 AND type%<&1000 THEN ok%=FNreport("Nope, try dragging a PC partition to me. "+STR$~type%,0):ENDPROC
 1551IF type%>&fff THEN
 1552      ok%=FNreport("Are you sure you want to settype all the files in this directory to DOS?",3)
 1553      IF ok%=2 THEN ENDPROC
 1554      ENDIF
 1560nfiles%=0
 1570abort%=FALSE
 1580$files%=STR$(nfiles%)+" files"
 1590block%!0=progress%
 1600SYS "Wimp_GetWindowState",,block%
 1610block%!24=-1
 1620SYS "Wimp_OpenWindow",,block%
 1630PROCchangealltodos(fname$)
 1640block%!0=progress%
 1650SYS "Wimp_CloseWindow",,block%
 1660ENDPROC
 1670:
 1680DEFPROCchangealltodos(dir$)
 1690LOCAL n%,r%,name$ :REM Number read through so far.
 1700n%=0
 1710$cdir%=dir$
 1720PROCredrawicon(progress%,4)
 1730PROCpoll
 1740REPEAT
 1750SYS &0C,10,dir$,block%,1,n%,500,"*" TO ,,,r%,n%
 1760IF r%<>0 THEN
 1770          name$="."+FNstring(block%+20)
 1780          IF block%!16=2 THEN
 1790            PROCchangealltodos(dir$+name$)
 1800              $cdir%=dir$
 1810              PROCredrawicon(progress%,4)
 1820              PROCpoll
 1840            ELSE
 1850            SYS &08,18,dir$+name$,&fe4
 1860            nfiles%+=1
 1870            ENDIF
 1880          ENDIF
 1890UNTIL r%=0 OR abort%=TRUE OR quit%=TRUE
 1900$files%=STR$(nfiles%)+" files"
 1910PROCredrawicon(progress%,2)
 1920ENDPROC
 1930
 1940
 1950
 1960
'� � :� � �:� 0:� �$;" at line ";�:�
quit%=�
	�init
(�
)ș "Hourglass_On"
2	�poll
3ș "Hourglass_Off"
<
� quit%=�
Fș "Wimp_CloseDown"
P�
Z:
d
��init
nindlen%=2500
x/� block% 1024*1,menu% 120,indblock% indlen%
�app$="PC Set Type"
�7ș "Wimp_Initialise",200,&4B534154,app$ � ,thandle%
�#� � : �error(�$+" at line "+Þ)
�Aiconbar%=�create_icon(-1,0,0,80,100,&300A,"!pcsettype",0,0,0)
�
�E�opentemplates("<PCType$Dir>.templates",indblock%,indlen%,block%)
�info%=�readtemplate("Info")
�'progress%=�readtemplate("Progress")
�ș "Wimp_CloseTemplate"
��setupmenu(menu%)
�
�)files%=�readindirecticon(progress%,2)
�(cdir%=�readindirecticon(progress%,4)
abort%=�
�

".� "PC Type",2,0,info%,"Info",&80,-1,"Quit"
,:
6
��poll
7ș "Hourglass_Off"
@%ș "Wimp_Poll",0,block% � reason%
Aș "Hourglass_On"
JȎ reason% �
T$� 2:ș "Wimp_OpenWindow",,block%
^%� 3:ș "Wimp_CloseWindow",,block%
h,� 6:�click(block%!8,block%!12,block%!16)
r� 9:� !block%=1 � quit%=�
|� 17,18 :Ȏ block%!16 �
�#                    � 0:quit%=�
�B                    � 3:�trythis(block%!40,�string(block%+44))
�            �
��
��
�:
�ݤstring(a%)
�� a$
�	a$=""
�
ȕ ?a%>13
�a$+=�(?a%)
�	a%+=1
��
=a$
:
��click(but%,win%,icon%)
&F� but%=2 � �showmenu(menu%,!block%-64,�iconbarmenuheight(menu%)):�
0+� win%=progress% � icon%=3 � abort%=�:�
:�� win%<0 � ok%=�report("Please drag your PC Partition (or directory) to this application to (recursively) set all files in it to type DOS.",0)
D�
N:
XA� FNiconbarmenuheight(menu%)  - Finds height of iconbar menus
bݤiconbarmenuheight(menu%)
l� high%
vhigh%=96
�loop%=-1:�:loop%+=1
�4� (!(menu%+(loop%*24)+28) � %10)=%10 � high%+=24
�
high%+=44
�4� (!(menu%+(loop%*24)+28) � %10000000)=%10000000
�
=high%
�:
�p� FNreport(err$,flag%)   - Opens non multitasking error box with specified buttons. Returns the error click.
�ݤreport(err$,flag%)
�!block%=255
�name$=app$
�.� flag% � 16 � name$="Message from "+name$
�$(block%+4)=err$+�0
�9ș "Wimp_ReportError",block%,flag%,name$ � ,errclick%
=errclick%

6� PROCerror   - To be called when an error occures
 ��error(a$)
*end%=�report(a$,%10)
4ș "Wimp_CloseDown"
>�
H:
RF��opentemplates(filename$,Imaintempind%,Itemplimit%,Iwindowstore%)
\Pmaintempind%=Imaintempind%:templimit%=Itemplimit%:windowstore%=Iwindowstore%
f%ș "Wimp_OpenTemplate",,filename$
p!pointer%=maintempind%:next%=0
z�
�
�U�   FNreadtemplate(winname$)   - Reads a window definition off the template file.
�ݤreadtemplate(winname$)
�� name%
�� name% 11
�$name%=winname$
�nș "Wimp_LoadTemplate",,windowstore%,pointer%,maintempind%+templimit%,-1,name%,next% � ,,pointer%,,,,next%
�Z� next%=0 � �error("Window definition not found in Template (Identifier="+$name%+").")
�8ș "Wimp_CreateWindow",,windowstore% � windowhandle%
�=windowhandle%
�:
�� FNcreate_icon     - Guess
�Fݤcreate_icon(whan%,ix%,iy%,iw%,ih%,flag%,text$,prt1%,prt2%,ptr3%)
!block%=whan%
block%!4=ix%
block%!8=iy%
$block%!12=ix%+iw%
.block%!16=iy%+ih%
8block%!20=flag%
B#� prt1%=0 � prt2%=0 � ptr3%=0 �
L$(block%+24)=text$
V�
`block%!24=prt1%
jblock%!28=prt2%
tblock%!32=ptr3%
~�
�+ș "Wimp_CreateIcon",,block% � ihandle%
�
=ihandle%
�
�q� PROCsetupmenu(menu%)    - Initialises a Menu Dim (in menu%) Must have Data RESTORED to before calling proc.
���setupmenu(menu%)
�#� title$,num%,width%,ptr%,item$
�� title$,num%:$menu%=title$
�width%=(�(title$)-1)*16
�-menu%!12=&00070207:menu%!20=44:menu%!24=0
�ptr%=menu%+28:� i%=1 � num%
�� mflags%,subptr%,item$
� !ptr%=mflags%:ptr%!4=subptr%
$ptr%!8=&7000021:$(ptr%+12)=item$

a%=(�(item$)+1)*16
� a%>width% width%=a%
ptr%+=24:�
(menu%!16=width%
2�
<:
F&ݤreadindirecticon(windoh%,iconh%)
P!block%=windoh%
Zblock%!4=iconh%
d"ș "Wimp_GetIconState",,block%
n=block%!28
x:
���redrawicon(winh%,iconh%)
�block%!0=winh%
�block%!4=iconh%
�block%!8=0
�block%!12=0
�"ș "Wimp_SetIconState",,block%
��
�:
�@� PROCshowmenu     - Opens specified menu at place required.
���showmenu(menu%,mx%,my%)
�'ș "Wimp_CreateMenu",,menu%,mx%,my%
��
�:
��trythis(type%,fname$)
f� type%<>&FC8 � type%<&1000 � ok%=�report("Nope, try dragging a PC partition to me. "+�~type%,0):�
� type%>&fff �
c      ok%=�report("Are you sure you want to settype all the files in this directory to DOS?",3)
      � ok%=2 � �
      �

nfiles%=0
"abort%=�
,$files%=�(nfiles%)+" files"
6block%!0=progress%
@$ș "Wimp_GetWindowState",,block%
Jblock%!24=-1
T ș "Wimp_OpenWindow",,block%
^�changealltodos(fname$)
hblock%!0=progress%
r!ș "Wimp_CloseWindow",,block%
|�
�:
���changealltodos(dir$)
�0� n%,r%,name$ :� Number read through so far.
�n%=0
�$cdir%=dir$
��redrawicon(progress%,4)
�	�poll
��
�1ș &0C,10,dir$,block%,1,n%,500,"*" � ,,,r%,n%
�
� r%<>0 �
�*          name$="."+�string(block%+20)
�          � block%!16=2 �
�+            �changealltodos(dir$+name$)
              $cdir%=dir$
*              �redrawicon(progress%,4)
              �poll
0            �
:)            ș &08,18,dir$+name$,&fe4
D            nfiles%+=1
N            �
X          �
b� r%=0 � abort%=� � quit%=�
l$files%=�(nfiles%)+" files"
v�redrawicon(progress%,2)
��
�
�
�
�
�
00000000  0d 00 0a 27 ee 20 85 20  3a ee 20 85 20 87 3a eb  |...'. . :. . .:.|
00000010  20 30 3a f1 20 f6 24 3b  22 20 61 74 20 6c 69 6e  | 0:. .$;" at lin|
00000020  65 20 22 3b 9e 3a e0 0d  00 14 0b 71 75 69 74 25  |e ";.:.....quit%|
00000030  3d a3 0d 00 1e 09 f2 69  6e 69 74 0d 00 28 05 f5  |=......init..(..|
00000040  0d 00 29 15 c8 99 20 22  48 6f 75 72 67 6c 61 73  |..)... "Hourglas|
00000050  73 5f 4f 6e 22 0d 00 32  09 f2 70 6f 6c 6c 0d 00  |s_On"..2..poll..|
00000060  33 16 c8 99 20 22 48 6f  75 72 67 6c 61 73 73 5f  |3... "Hourglass_|
00000070  4f 66 66 22 0d 00 3c 0d  fd 20 71 75 69 74 25 3d  |Off"..<.. quit%=|
00000080  b9 0d 00 46 17 c8 99 20  22 57 69 6d 70 5f 43 6c  |...F... "Wimp_Cl|
00000090  6f 73 65 44 6f 77 6e 22  0d 00 50 05 e0 0d 00 5a  |oseDown"..P....Z|
000000a0  05 3a 0d 00 64 0a dd f2  69 6e 69 74 0d 00 6e 10  |.:..d...init..n.|
000000b0  69 6e 64 6c 65 6e 25 3d  32 35 30 30 0d 00 78 2f  |indlen%=2500..x/|
000000c0  de 20 62 6c 6f 63 6b 25  20 31 30 32 34 2a 31 2c  |. block% 1024*1,|
000000d0  6d 65 6e 75 25 20 31 32  30 2c 69 6e 64 62 6c 6f  |menu% 120,indblo|
000000e0  63 6b 25 20 69 6e 64 6c  65 6e 25 0d 00 82 16 61  |ck% indlen%....a|
000000f0  70 70 24 3d 22 50 43 20  53 65 74 20 54 79 70 65  |pp$="PC Set Type|
00000100  22 0d 00 8c 37 c8 99 20  22 57 69 6d 70 5f 49 6e  |"...7.. "Wimp_In|
00000110  69 74 69 61 6c 69 73 65  22 2c 32 30 30 2c 26 34  |itialise",200,&4|
00000120  42 35 33 34 31 35 34 2c  61 70 70 24 20 b8 20 2c  |B534154,app$ . ,|
00000130  74 68 61 6e 64 6c 65 25  0d 00 96 23 ee 20 85 20  |thandle%...#. . |
00000140  3a 20 f2 65 72 72 6f 72  28 f6 24 2b 22 20 61 74  |: .error(.$+" at|
00000150  20 6c 69 6e 65 20 22 2b  c3 9e 29 0d 00 a0 41 69  | line "+..)...Ai|
00000160  63 6f 6e 62 61 72 25 3d  a4 63 72 65 61 74 65 5f  |conbar%=.create_|
00000170  69 63 6f 6e 28 2d 31 2c  30 2c 30 2c 38 30 2c 31  |icon(-1,0,0,80,1|
00000180  30 30 2c 26 33 30 30 41  2c 22 21 70 63 73 65 74  |00,&300A,"!pcset|
00000190  74 79 70 65 22 2c 30 2c  30 2c 30 29 0d 00 aa 04  |type",0,0,0)....|
000001a0  0d 00 b4 45 f2 6f 70 65  6e 74 65 6d 70 6c 61 74  |...E.opentemplat|
000001b0  65 73 28 22 3c 50 43 54  79 70 65 24 44 69 72 3e  |es("<PCType$Dir>|
000001c0  2e 74 65 6d 70 6c 61 74  65 73 22 2c 69 6e 64 62  |.templates",indb|
000001d0  6c 6f 63 6b 25 2c 69 6e  64 6c 65 6e 25 2c 62 6c  |lock%,indlen%,bl|
000001e0  6f 63 6b 25 29 0d 00 be  1f 69 6e 66 6f 25 3d a4  |ock%)....info%=.|
000001f0  72 65 61 64 74 65 6d 70  6c 61 74 65 28 22 49 6e  |readtemplate("In|
00000200  66 6f 22 29 0d 00 c8 27  70 72 6f 67 72 65 73 73  |fo")...'progress|
00000210  25 3d a4 72 65 61 64 74  65 6d 70 6c 61 74 65 28  |%=.readtemplate(|
00000220  22 50 72 6f 67 72 65 73  73 22 29 0d 00 d2 1b c8  |"Progress").....|
00000230  99 20 22 57 69 6d 70 5f  43 6c 6f 73 65 54 65 6d  |. "Wimp_CloseTem|
00000240  70 6c 61 74 65 22 0d 00  dc 15 f2 73 65 74 75 70  |plate".....setup|
00000250  6d 65 6e 75 28 6d 65 6e  75 25 29 0d 00 e6 04 0d  |menu(menu%).....|
00000260  00 f0 29 66 69 6c 65 73  25 3d a4 72 65 61 64 69  |..)files%=.readi|
00000270  6e 64 69 72 65 63 74 69  63 6f 6e 28 70 72 6f 67  |ndirecticon(prog|
00000280  72 65 73 73 25 2c 32 29  0d 00 fa 28 63 64 69 72  |ress%,2)...(cdir|
00000290  25 3d a4 72 65 61 64 69  6e 64 69 72 65 63 74 69  |%=.readindirecti|
000002a0  63 6f 6e 28 70 72 6f 67  72 65 73 73 25 2c 34 29  |con(progress%,4)|
000002b0  0d 01 04 0c 61 62 6f 72  74 25 3d a3 0d 01 0e 05  |....abort%=.....|
000002c0  e1 0d 01 18 04 0d 01 22  2e dc 20 22 50 43 20 54  |.......".. "PC T|
000002d0  79 70 65 22 2c 32 2c 30  2c 69 6e 66 6f 25 2c 22  |ype",2,0,info%,"|
000002e0  49 6e 66 6f 22 2c 26 38  30 2c 2d 31 2c 22 51 75  |Info",&80,-1,"Qu|
000002f0  69 74 22 0d 01 2c 05 3a  0d 01 36 0a dd f2 70 6f  |it"..,.:..6...po|
00000300  6c 6c 0d 01 37 16 c8 99  20 22 48 6f 75 72 67 6c  |ll..7... "Hourgl|
00000310  61 73 73 5f 4f 66 66 22  0d 01 40 25 c8 99 20 22  |ass_Off"..@%.. "|
00000320  57 69 6d 70 5f 50 6f 6c  6c 22 2c 30 2c 62 6c 6f  |Wimp_Poll",0,blo|
00000330  63 6b 25 20 b8 20 72 65  61 73 6f 6e 25 0d 01 41  |ck% . reason%..A|
00000340  15 c8 99 20 22 48 6f 75  72 67 6c 61 73 73 5f 4f  |... "Hourglass_O|
00000350  6e 22 0d 01 4a 10 c8 8e  20 72 65 61 73 6f 6e 25  |n"..J... reason%|
00000360  20 ca 0d 01 54 24 c9 20  32 3a c8 99 20 22 57 69  | ...T$. 2:.. "Wi|
00000370  6d 70 5f 4f 70 65 6e 57  69 6e 64 6f 77 22 2c 2c  |mp_OpenWindow",,|
00000380  62 6c 6f 63 6b 25 0d 01  5e 25 c9 20 33 3a c8 99  |block%..^%. 3:..|
00000390  20 22 57 69 6d 70 5f 43  6c 6f 73 65 57 69 6e 64  | "Wimp_CloseWind|
000003a0  6f 77 22 2c 2c 62 6c 6f  63 6b 25 0d 01 68 2c c9  |ow",,block%..h,.|
000003b0  20 36 3a f2 63 6c 69 63  6b 28 62 6c 6f 63 6b 25  | 6:.click(block%|
000003c0  21 38 2c 62 6c 6f 63 6b  25 21 31 32 2c 62 6c 6f  |!8,block%!12,blo|
000003d0  63 6b 25 21 31 36 29 0d  01 72 1d c9 20 39 3a e7  |ck%!16)..r.. 9:.|
000003e0  20 21 62 6c 6f 63 6b 25  3d 31 20 8c 20 71 75 69  | !block%=1 . qui|
000003f0  74 25 3d b9 0d 01 7c 1b  c9 20 31 37 2c 31 38 20  |t%=...|.. 17,18 |
00000400  3a c8 8e 20 62 6c 6f 63  6b 25 21 31 36 20 ca 0d  |:.. block%!16 ..|
00000410  01 86 23 20 20 20 20 20  20 20 20 20 20 20 20 20  |..#             |
00000420  20 20 20 20 20 20 20 c9  20 30 3a 71 75 69 74 25  |       . 0:quit%|
00000430  3d b9 0d 01 90 42 20 20  20 20 20 20 20 20 20 20  |=....B          |
00000440  20 20 20 20 20 20 20 20  20 20 c9 20 33 3a f2 74  |          . 3:.t|
00000450  72 79 74 68 69 73 28 62  6c 6f 63 6b 25 21 34 30  |rythis(block%!40|
00000460  2c a4 73 74 72 69 6e 67  28 62 6c 6f 63 6b 25 2b  |,.string(block%+|
00000470  34 34 29 29 0d 01 9a 11  20 20 20 20 20 20 20 20  |44))....        |
00000480  20 20 20 20 cb 0d 01 a4  05 cb 0d 01 ae 05 e1 0d  |    ............|
00000490  01 b8 05 3a 0d 01 c2 10  dd a4 73 74 72 69 6e 67  |...:......string|
000004a0  28 61 25 29 0d 01 cc 08  ea 20 61 24 0d 01 d6 09  |(a%)..... a$....|
000004b0  61 24 3d 22 22 0d 01 e0  0d c8 95 20 3f 61 25 3e  |a$=""...... ?a%>|
000004c0  31 33 0d 01 ea 0e 61 24  2b 3d bd 28 3f 61 25 29  |13....a$+=.(?a%)|
000004d0  0d 01 f4 09 61 25 2b 3d  31 0d 01 fe 05 ce 0d 02  |....a%+=1.......|
000004e0  08 07 3d 61 24 0d 02 12  05 3a 0d 02 1c 1c dd f2  |..=a$....:......|
000004f0  63 6c 69 63 6b 28 62 75  74 25 2c 77 69 6e 25 2c  |click(but%,win%,|
00000500  69 63 6f 6e 25 29 0d 02  26 46 e7 20 62 75 74 25  |icon%)..&F. but%|
00000510  3d 32 20 8c 20 f2 73 68  6f 77 6d 65 6e 75 28 6d  |=2 . .showmenu(m|
00000520  65 6e 75 25 2c 21 62 6c  6f 63 6b 25 2d 36 34 2c  |enu%,!block%-64,|
00000530  a4 69 63 6f 6e 62 61 72  6d 65 6e 75 68 65 69 67  |.iconbarmenuheig|
00000540  68 74 28 6d 65 6e 75 25  29 29 3a e1 0d 02 30 2b  |ht(menu%)):...0+|
00000550  e7 20 77 69 6e 25 3d 70  72 6f 67 72 65 73 73 25  |. win%=progress%|
00000560  20 80 20 69 63 6f 6e 25  3d 33 20 8c 20 61 62 6f  | . icon%=3 . abo|
00000570  72 74 25 3d b9 3a e1 0d  02 3a 92 e7 20 77 69 6e  |rt%=.:...:.. win|
00000580  25 3c 30 20 8c 20 6f 6b  25 3d a4 72 65 70 6f 72  |%<0 . ok%=.repor|
00000590  74 28 22 50 6c 65 61 73  65 20 64 72 61 67 20 79  |t("Please drag y|
000005a0  6f 75 72 20 50 43 20 50  61 72 74 69 74 69 6f 6e  |our PC Partition|
000005b0  20 28 6f 72 20 64 69 72  65 63 74 6f 72 79 29 20  | (or directory) |
000005c0  74 6f 20 74 68 69 73 20  61 70 70 6c 69 63 61 74  |to this applicat|
000005d0  69 6f 6e 20 74 6f 20 28  72 65 63 75 72 73 69 76  |ion to (recursiv|
000005e0  65 6c 79 29 20 73 65 74  20 61 6c 6c 20 66 69 6c  |ely) set all fil|
000005f0  65 73 20 69 6e 20 69 74  20 74 6f 20 74 79 70 65  |es in it to type|
00000600  20 44 4f 53 2e 22 2c 30  29 0d 02 44 05 e1 0d 02  | DOS.",0)..D....|
00000610  4e 05 3a 0d 02 58 41 f4  20 46 4e 69 63 6f 6e 62  |N.:..XA. FNiconb|
00000620  61 72 6d 65 6e 75 68 65  69 67 68 74 28 6d 65 6e  |armenuheight(men|
00000630  75 25 29 20 20 2d 20 46  69 6e 64 73 20 68 65 69  |u%)  - Finds hei|
00000640  67 68 74 20 6f 66 20 69  63 6f 6e 62 61 72 20 6d  |ght of iconbar m|
00000650  65 6e 75 73 0d 02 62 1e  dd a4 69 63 6f 6e 62 61  |enus..b...iconba|
00000660  72 6d 65 6e 75 68 65 69  67 68 74 28 6d 65 6e 75  |rmenuheight(menu|
00000670  25 29 0d 02 6c 0b ea 20  68 69 67 68 25 0d 02 76  |%)..l.. high%..v|
00000680  0c 68 69 67 68 25 3d 39  36 0d 02 80 17 6c 6f 6f  |.high%=96....loo|
00000690  70 25 3d 2d 31 3a f5 3a  6c 6f 6f 70 25 2b 3d 31  |p%=-1:.:loop%+=1|
000006a0  0d 02 8a 34 e7 20 28 21  28 6d 65 6e 75 25 2b 28  |...4. (!(menu%+(|
000006b0  6c 6f 6f 70 25 2a 32 34  29 2b 32 38 29 20 80 20  |loop%*24)+28) . |
000006c0  25 31 30 29 3d 25 31 30  20 8c 20 68 69 67 68 25  |%10)=%10 . high%|
000006d0  2b 3d 32 34 0d 02 94 0d  68 69 67 68 25 2b 3d 34  |+=24....high%+=4|
000006e0  34 0d 02 9e 34 fd 20 28  21 28 6d 65 6e 75 25 2b  |4...4. (!(menu%+|
000006f0  28 6c 6f 6f 70 25 2a 32  34 29 2b 32 38 29 20 80  |(loop%*24)+28) .|
00000700  20 25 31 30 30 30 30 30  30 30 29 3d 25 31 30 30  | %10000000)=%100|
00000710  30 30 30 30 30 0d 02 a8  0a 3d 68 69 67 68 25 0d  |00000....=high%.|
00000720  02 b2 05 3a 0d 02 bc 70  f4 20 46 4e 72 65 70 6f  |...:...p. FNrepo|
00000730  72 74 28 65 72 72 24 2c  66 6c 61 67 25 29 20 20  |rt(err$,flag%)  |
00000740  20 2d 20 4f 70 65 6e 73  20 6e 6f 6e 20 6d 75 6c  | - Opens non mul|
00000750  74 69 74 61 73 6b 69 6e  67 20 65 72 72 6f 72 20  |titasking error |
00000760  62 6f 78 20 77 69 74 68  20 73 70 65 63 69 66 69  |box with specifi|
00000770  65 64 20 62 75 74 74 6f  6e 73 2e 20 52 65 74 75  |ed buttons. Retu|
00000780  72 6e 73 20 74 68 65 20  65 72 72 6f 72 20 63 6c  |rns the error cl|
00000790  69 63 6b 2e 0d 02 c6 18  dd a4 72 65 70 6f 72 74  |ick.......report|
000007a0  28 65 72 72 24 2c 66 6c  61 67 25 29 0d 02 d0 0f  |(err$,flag%)....|
000007b0  21 62 6c 6f 63 6b 25 3d  32 35 35 0d 02 da 0e 6e  |!block%=255....n|
000007c0  61 6d 65 24 3d 61 70 70  24 0d 02 e4 2e e7 20 66  |ame$=app$..... f|
000007d0  6c 61 67 25 20 80 20 31  36 20 8c 20 6e 61 6d 65  |lag% . 16 . name|
000007e0  24 3d 22 4d 65 73 73 61  67 65 20 66 72 6f 6d 20  |$="Message from |
000007f0  22 2b 6e 61 6d 65 24 0d  02 ee 17 24 28 62 6c 6f  |"+name$....$(blo|
00000800  63 6b 25 2b 34 29 3d 65  72 72 24 2b bd 30 0d 02  |ck%+4)=err$+.0..|
00000810  f8 39 c8 99 20 22 57 69  6d 70 5f 52 65 70 6f 72  |.9.. "Wimp_Repor|
00000820  74 45 72 72 6f 72 22 2c  62 6c 6f 63 6b 25 2c 66  |tError",block%,f|
00000830  6c 61 67 25 2c 6e 61 6d  65 24 20 b8 20 2c 65 72  |lag%,name$ . ,er|
00000840  72 63 6c 69 63 6b 25 0d  03 02 0e 3d 65 72 72 63  |rclick%....=errc|
00000850  6c 69 63 6b 25 0d 03 0c  04 0d 03 16 36 f4 20 50  |lick%.......6. P|
00000860  52 4f 43 65 72 72 6f 72  20 20 20 2d 20 54 6f 20  |ROCerror   - To |
00000870  62 65 20 63 61 6c 6c 65  64 20 77 68 65 6e 20 61  |be called when a|
00000880  6e 20 65 72 72 6f 72 20  6f 63 63 75 72 65 73 0d  |n error occures.|
00000890  03 20 0f dd f2 65 72 72  6f 72 28 61 24 29 0d 03  |. ...error(a$)..|
000008a0  2a 18 65 6e 64 25 3d a4  72 65 70 6f 72 74 28 61  |*.end%=.report(a|
000008b0  24 2c 25 31 30 29 0d 03  34 17 c8 99 20 22 57 69  |$,%10)..4... "Wi|
000008c0  6d 70 5f 43 6c 6f 73 65  44 6f 77 6e 22 0d 03 3e  |mp_CloseDown"..>|
000008d0  05 e0 0d 03 48 05 3a 0d  03 52 46 dd f2 6f 70 65  |....H.:..RF..ope|
000008e0  6e 74 65 6d 70 6c 61 74  65 73 28 66 69 6c 65 6e  |ntemplates(filen|
000008f0  61 6d 65 24 2c 49 6d 61  69 6e 74 65 6d 70 69 6e  |ame$,Imaintempin|
00000900  64 25 2c 49 74 65 6d 70  6c 69 6d 69 74 25 2c 49  |d%,Itemplimit%,I|
00000910  77 69 6e 64 6f 77 73 74  6f 72 65 25 29 0d 03 5c  |windowstore%)..\|
00000920  50 6d 61 69 6e 74 65 6d  70 69 6e 64 25 3d 49 6d  |Pmaintempind%=Im|
00000930  61 69 6e 74 65 6d 70 69  6e 64 25 3a 74 65 6d 70  |aintempind%:temp|
00000940  6c 69 6d 69 74 25 3d 49  74 65 6d 70 6c 69 6d 69  |limit%=Itemplimi|
00000950  74 25 3a 77 69 6e 64 6f  77 73 74 6f 72 65 25 3d  |t%:windowstore%=|
00000960  49 77 69 6e 64 6f 77 73  74 6f 72 65 25 0d 03 66  |Iwindowstore%..f|
00000970  25 c8 99 20 22 57 69 6d  70 5f 4f 70 65 6e 54 65  |%.. "Wimp_OpenTe|
00000980  6d 70 6c 61 74 65 22 2c  2c 66 69 6c 65 6e 61 6d  |mplate",,filenam|
00000990  65 24 0d 03 70 21 70 6f  69 6e 74 65 72 25 3d 6d  |e$..p!pointer%=m|
000009a0  61 69 6e 74 65 6d 70 69  6e 64 25 3a 6e 65 78 74  |aintempind%:next|
000009b0  25 3d 30 0d 03 7a 05 e1  0d 03 84 04 0d 03 8e 55  |%=0..z.........U|
000009c0  f4 20 20 20 46 4e 72 65  61 64 74 65 6d 70 6c 61  |.   FNreadtempla|
000009d0  74 65 28 77 69 6e 6e 61  6d 65 24 29 20 20 20 2d  |te(winname$)   -|
000009e0  20 52 65 61 64 73 20 61  20 77 69 6e 64 6f 77 20  | Reads a window |
000009f0  64 65 66 69 6e 69 74 69  6f 6e 20 6f 66 66 20 74  |definition off t|
00000a00  68 65 20 74 65 6d 70 6c  61 74 65 20 66 69 6c 65  |he template file|
00000a10  2e 0d 03 98 1c dd a4 72  65 61 64 74 65 6d 70 6c  |.......readtempl|
00000a20  61 74 65 28 77 69 6e 6e  61 6d 65 24 29 0d 03 a2  |ate(winname$)...|
00000a30  0b ea 20 6e 61 6d 65 25  0d 03 ac 0e de 20 6e 61  |.. name%..... na|
00000a40  6d 65 25 20 31 31 0d 03  b6 13 24 6e 61 6d 65 25  |me% 11....$name%|
00000a50  3d 77 69 6e 6e 61 6d 65  24 0d 03 c0 6e c8 99 20  |=winname$...n.. |
00000a60  22 57 69 6d 70 5f 4c 6f  61 64 54 65 6d 70 6c 61  |"Wimp_LoadTempla|
00000a70  74 65 22 2c 2c 77 69 6e  64 6f 77 73 74 6f 72 65  |te",,windowstore|
00000a80  25 2c 70 6f 69 6e 74 65  72 25 2c 6d 61 69 6e 74  |%,pointer%,maint|
00000a90  65 6d 70 69 6e 64 25 2b  74 65 6d 70 6c 69 6d 69  |empind%+templimi|
00000aa0  74 25 2c 2d 31 2c 6e 61  6d 65 25 2c 6e 65 78 74  |t%,-1,name%,next|
00000ab0  25 20 b8 20 2c 2c 70 6f  69 6e 74 65 72 25 2c 2c  |% . ,,pointer%,,|
00000ac0  2c 2c 6e 65 78 74 25 0d  03 ca 5a e7 20 6e 65 78  |,,next%...Z. nex|
00000ad0  74 25 3d 30 20 8c 20 f2  65 72 72 6f 72 28 22 57  |t%=0 . .error("W|
00000ae0  69 6e 64 6f 77 20 64 65  66 69 6e 69 74 69 6f 6e  |indow definition|
00000af0  20 6e 6f 74 20 66 6f 75  6e 64 20 69 6e 20 54 65  | not found in Te|
00000b00  6d 70 6c 61 74 65 20 28  49 64 65 6e 74 69 66 69  |mplate (Identifi|
00000b10  65 72 3d 22 2b 24 6e 61  6d 65 25 2b 22 29 2e 22  |er="+$name%+")."|
00000b20  29 0d 03 d4 38 c8 99 20  22 57 69 6d 70 5f 43 72  |)...8.. "Wimp_Cr|
00000b30  65 61 74 65 57 69 6e 64  6f 77 22 2c 2c 77 69 6e  |eateWindow",,win|
00000b40  64 6f 77 73 74 6f 72 65  25 20 b8 20 77 69 6e 64  |dowstore% . wind|
00000b50  6f 77 68 61 6e 64 6c 65  25 0d 03 de 12 3d 77 69  |owhandle%....=wi|
00000b60  6e 64 6f 77 68 61 6e 64  6c 65 25 0d 03 e8 05 3a  |ndowhandle%....:|
00000b70  0d 03 f2 1f f4 20 46 4e  63 72 65 61 74 65 5f 69  |..... FNcreate_i|
00000b80  63 6f 6e 20 20 20 20 20  2d 20 47 75 65 73 73 0d  |con     - Guess.|
00000b90  03 fc 46 dd a4 63 72 65  61 74 65 5f 69 63 6f 6e  |..F..create_icon|
00000ba0  28 77 68 61 6e 25 2c 69  78 25 2c 69 79 25 2c 69  |(whan%,ix%,iy%,i|
00000bb0  77 25 2c 69 68 25 2c 66  6c 61 67 25 2c 74 65 78  |w%,ih%,flag%,tex|
00000bc0  74 24 2c 70 72 74 31 25  2c 70 72 74 32 25 2c 70  |t$,prt1%,prt2%,p|
00000bd0  74 72 33 25 29 0d 04 06  11 21 62 6c 6f 63 6b 25  |tr3%)....!block%|
00000be0  3d 77 68 61 6e 25 0d 04  10 10 62 6c 6f 63 6b 25  |=whan%....block%|
00000bf0  21 34 3d 69 78 25 0d 04  1a 10 62 6c 6f 63 6b 25  |!4=ix%....block%|
00000c00  21 38 3d 69 79 25 0d 04  24 15 62 6c 6f 63 6b 25  |!8=iy%..$.block%|
00000c10  21 31 32 3d 69 78 25 2b  69 77 25 0d 04 2e 15 62  |!12=ix%+iw%....b|
00000c20  6c 6f 63 6b 25 21 31 36  3d 69 79 25 2b 69 68 25  |lock%!16=iy%+ih%|
00000c30  0d 04 38 13 62 6c 6f 63  6b 25 21 32 30 3d 66 6c  |..8.block%!20=fl|
00000c40  61 67 25 0d 04 42 23 e7  20 70 72 74 31 25 3d 30  |ag%..B#. prt1%=0|
00000c50  20 80 20 70 72 74 32 25  3d 30 20 80 20 70 74 72  | . prt2%=0 . ptr|
00000c60  33 25 3d 30 20 8c 0d 04  4c 16 24 28 62 6c 6f 63  |3%=0 ...L.$(bloc|
00000c70  6b 25 2b 32 34 29 3d 74  65 78 74 24 0d 04 56 05  |k%+24)=text$..V.|
00000c80  cc 0d 04 60 13 62 6c 6f  63 6b 25 21 32 34 3d 70  |...`.block%!24=p|
00000c90  72 74 31 25 0d 04 6a 13  62 6c 6f 63 6b 25 21 32  |rt1%..j.block%!2|
00000ca0  38 3d 70 72 74 32 25 0d  04 74 13 62 6c 6f 63 6b  |8=prt2%..t.block|
00000cb0  25 21 33 32 3d 70 74 72  33 25 0d 04 7e 05 cd 0d  |%!32=ptr3%..~...|
00000cc0  04 88 2b c8 99 20 22 57  69 6d 70 5f 43 72 65 61  |..+.. "Wimp_Crea|
00000cd0  74 65 49 63 6f 6e 22 2c  2c 62 6c 6f 63 6b 25 20  |teIcon",,block% |
00000ce0  b8 20 69 68 61 6e 64 6c  65 25 0d 04 92 0d 3d 69  |. ihandle%....=i|
00000cf0  68 61 6e 64 6c 65 25 0d  04 9c 04 0d 04 a6 71 f4  |handle%.......q.|
00000d00  20 50 52 4f 43 73 65 74  75 70 6d 65 6e 75 28 6d  | PROCsetupmenu(m|
00000d10  65 6e 75 25 29 20 20 20  20 2d 20 49 6e 69 74 69  |enu%)    - Initi|
00000d20  61 6c 69 73 65 73 20 61  20 4d 65 6e 75 20 44 69  |alises a Menu Di|
00000d30  6d 20 28 69 6e 20 6d 65  6e 75 25 29 20 4d 75 73  |m (in menu%) Mus|
00000d40  74 20 68 61 76 65 20 44  61 74 61 20 52 45 53 54  |t have Data REST|
00000d50  4f 52 45 44 20 74 6f 20  62 65 66 6f 72 65 20 63  |ORED to before c|
00000d60  61 6c 6c 69 6e 67 20 70  72 6f 63 2e 0d 04 b0 16  |alling proc.....|
00000d70  dd f2 73 65 74 75 70 6d  65 6e 75 28 6d 65 6e 75  |..setupmenu(menu|
00000d80  25 29 0d 04 ba 23 ea 20  74 69 74 6c 65 24 2c 6e  |%)...#. title$,n|
00000d90  75 6d 25 2c 77 69 64 74  68 25 2c 70 74 72 25 2c  |um%,width%,ptr%,|
00000da0  69 74 65 6d 24 0d 04 c4  1f f3 20 74 69 74 6c 65  |item$..... title|
00000db0  24 2c 6e 75 6d 25 3a 24  6d 65 6e 75 25 3d 74 69  |$,num%:$menu%=ti|
00000dc0  74 6c 65 24 0d 04 ce 1b  77 69 64 74 68 25 3d 28  |tle$....width%=(|
00000dd0  a9 28 74 69 74 6c 65 24  29 2d 31 29 2a 31 36 0d  |.(title$)-1)*16.|
00000de0  04 d8 2d 6d 65 6e 75 25  21 31 32 3d 26 30 30 30  |..-menu%!12=&000|
00000df0  37 30 32 30 37 3a 6d 65  6e 75 25 21 32 30 3d 34  |70207:menu%!20=4|
00000e00  34 3a 6d 65 6e 75 25 21  32 34 3d 30 0d 04 e2 1f  |4:menu%!24=0....|
00000e10  70 74 72 25 3d 6d 65 6e  75 25 2b 32 38 3a e3 20  |ptr%=menu%+28:. |
00000e20  69 25 3d 31 20 b8 20 6e  75 6d 25 0d 04 ec 1b f3  |i%=1 . num%.....|
00000e30  20 6d 66 6c 61 67 73 25  2c 73 75 62 70 74 72 25  | mflags%,subptr%|
00000e40  2c 69 74 65 6d 24 0d 04  f6 20 21 70 74 72 25 3d  |,item$... !ptr%=|
00000e50  6d 66 6c 61 67 73 25 3a  70 74 72 25 21 34 3d 73  |mflags%:ptr%!4=s|
00000e60  75 62 70 74 72 25 0d 05  00 24 70 74 72 25 21 38  |ubptr%...$ptr%!8|
00000e70  3d 26 37 30 30 30 30 32  31 3a 24 28 70 74 72 25  |=&7000021:$(ptr%|
00000e80  2b 31 32 29 3d 69 74 65  6d 24 0d 05 0a 16 61 25  |+12)=item$....a%|
00000e90  3d 28 a9 28 69 74 65 6d  24 29 2b 31 29 2a 31 36  |=(.(item$)+1)*16|
00000ea0  0d 05 14 19 e7 20 61 25  3e 77 69 64 74 68 25 20  |..... a%>width% |
00000eb0  77 69 64 74 68 25 3d 61  25 0d 05 1e 0e 70 74 72  |width%=a%....ptr|
00000ec0  25 2b 3d 32 34 3a ed 0d  05 28 13 6d 65 6e 75 25  |%+=24:...(.menu%|
00000ed0  21 31 36 3d 77 69 64 74  68 25 0d 05 32 05 e1 0d  |!16=width%..2...|
00000ee0  05 3c 05 3a 0d 05 46 26  dd a4 72 65 61 64 69 6e  |.<.:..F&..readin|
00000ef0  64 69 72 65 63 74 69 63  6f 6e 28 77 69 6e 64 6f  |directicon(windo|
00000f00  68 25 2c 69 63 6f 6e 68  25 29 0d 05 50 13 21 62  |h%,iconh%)..P.!b|
00000f10  6c 6f 63 6b 25 3d 77 69  6e 64 6f 68 25 0d 05 5a  |lock%=windoh%..Z|
00000f20  13 62 6c 6f 63 6b 25 21  34 3d 69 63 6f 6e 68 25  |.block%!4=iconh%|
00000f30  0d 05 64 22 c8 99 20 22  57 69 6d 70 5f 47 65 74  |..d".. "Wimp_Get|
00000f40  49 63 6f 6e 53 74 61 74  65 22 2c 2c 62 6c 6f 63  |IconState",,bloc|
00000f50  6b 25 0d 05 6e 0e 3d 62  6c 6f 63 6b 25 21 32 38  |k%..n.=block%!28|
00000f60  0d 05 78 05 3a 0d 05 82  1e dd f2 72 65 64 72 61  |..x.:......redra|
00000f70  77 69 63 6f 6e 28 77 69  6e 68 25 2c 69 63 6f 6e  |wicon(winh%,icon|
00000f80  68 25 29 0d 05 8c 12 62  6c 6f 63 6b 25 21 30 3d  |h%)....block%!0=|
00000f90  77 69 6e 68 25 0d 05 96  13 62 6c 6f 63 6b 25 21  |winh%....block%!|
00000fa0  34 3d 69 63 6f 6e 68 25  0d 05 a0 0e 62 6c 6f 63  |4=iconh%....bloc|
00000fb0  6b 25 21 38 3d 30 0d 05  aa 0f 62 6c 6f 63 6b 25  |k%!8=0....block%|
00000fc0  21 31 32 3d 30 0d 05 b4  22 c8 99 20 22 57 69 6d  |!12=0...".. "Wim|
00000fd0  70 5f 53 65 74 49 63 6f  6e 53 74 61 74 65 22 2c  |p_SetIconState",|
00000fe0  2c 62 6c 6f 63 6b 25 0d  05 be 05 e1 0d 05 c8 05  |,block%.........|
00000ff0  3a 0d 05 d2 40 f4 20 50  52 4f 43 73 68 6f 77 6d  |:...@. PROCshowm|
00001000  65 6e 75 20 20 20 20 20  2d 20 4f 70 65 6e 73 20  |enu     - Opens |
00001010  73 70 65 63 69 66 69 65  64 20 6d 65 6e 75 20 61  |specified menu a|
00001020  74 20 70 6c 61 63 65 20  72 65 71 75 69 72 65 64  |t place required|
00001030  2e 0d 05 dc 1d dd f2 73  68 6f 77 6d 65 6e 75 28  |.......showmenu(|
00001040  6d 65 6e 75 25 2c 6d 78  25 2c 6d 79 25 29 0d 05  |menu%,mx%,my%)..|
00001050  e6 27 c8 99 20 22 57 69  6d 70 5f 43 72 65 61 74  |.'.. "Wimp_Creat|
00001060  65 4d 65 6e 75 22 2c 2c  6d 65 6e 75 25 2c 6d 78  |eMenu",,menu%,mx|
00001070  25 2c 6d 79 25 0d 05 f0  05 e1 0d 05 fa 05 3a 0d  |%,my%.........:.|
00001080  06 04 1b dd f2 74 72 79  74 68 69 73 28 74 79 70  |.....trythis(typ|
00001090  65 25 2c 66 6e 61 6d 65  24 29 0d 06 0e 66 e7 20  |e%,fname$)...f. |
000010a0  74 79 70 65 25 3c 3e 26  46 43 38 20 80 20 74 79  |type%<>&FC8 . ty|
000010b0  70 65 25 3c 26 31 30 30  30 20 8c 20 6f 6b 25 3d  |pe%<&1000 . ok%=|
000010c0  a4 72 65 70 6f 72 74 28  22 4e 6f 70 65 2c 20 74  |.report("Nope, t|
000010d0  72 79 20 64 72 61 67 67  69 6e 67 20 61 20 50 43  |ry dragging a PC|
000010e0  20 70 61 72 74 69 74 69  6f 6e 20 74 6f 20 6d 65  | partition to me|
000010f0  2e 20 22 2b c3 7e 74 79  70 65 25 2c 30 29 3a e1  |. "+.~type%,0):.|
00001100  0d 06 0f 12 e7 20 74 79  70 65 25 3e 26 66 66 66  |..... type%>&fff|
00001110  20 8c 0d 06 10 63 20 20  20 20 20 20 6f 6b 25 3d  | ....c      ok%=|
00001120  a4 72 65 70 6f 72 74 28  22 41 72 65 20 79 6f 75  |.report("Are you|
00001130  20 73 75 72 65 20 79 6f  75 20 77 61 6e 74 20 74  | sure you want t|
00001140  6f 20 73 65 74 74 79 70  65 20 61 6c 6c 20 74 68  |o settype all th|
00001150  65 20 66 69 6c 65 73 20  69 6e 20 74 68 69 73 20  |e files in this |
00001160  64 69 72 65 63 74 6f 72  79 20 74 6f 20 44 4f 53  |directory to DOS|
00001170  3f 22 2c 33 29 0d 06 11  15 20 20 20 20 20 20 e7  |?",3)....      .|
00001180  20 6f 6b 25 3d 32 20 8c  20 e1 0d 06 12 0b 20 20  | ok%=2 . .....  |
00001190  20 20 20 20 cd 0d 06 18  0d 6e 66 69 6c 65 73 25  |    .....nfiles%|
000011a0  3d 30 0d 06 22 0c 61 62  6f 72 74 25 3d a3 0d 06  |=0..".abort%=...|
000011b0  2c 1f 24 66 69 6c 65 73  25 3d c3 28 6e 66 69 6c  |,.$files%=.(nfil|
000011c0  65 73 25 29 2b 22 20 66  69 6c 65 73 22 0d 06 36  |es%)+" files"..6|
000011d0  16 62 6c 6f 63 6b 25 21  30 3d 70 72 6f 67 72 65  |.block%!0=progre|
000011e0  73 73 25 0d 06 40 24 c8  99 20 22 57 69 6d 70 5f  |ss%..@$.. "Wimp_|
000011f0  47 65 74 57 69 6e 64 6f  77 53 74 61 74 65 22 2c  |GetWindowState",|
00001200  2c 62 6c 6f 63 6b 25 0d  06 4a 10 62 6c 6f 63 6b  |,block%..J.block|
00001210  25 21 32 34 3d 2d 31 0d  06 54 20 c8 99 20 22 57  |%!24=-1..T .. "W|
00001220  69 6d 70 5f 4f 70 65 6e  57 69 6e 64 6f 77 22 2c  |imp_OpenWindow",|
00001230  2c 62 6c 6f 63 6b 25 0d  06 5e 1b f2 63 68 61 6e  |,block%..^..chan|
00001240  67 65 61 6c 6c 74 6f 64  6f 73 28 66 6e 61 6d 65  |gealltodos(fname|
00001250  24 29 0d 06 68 16 62 6c  6f 63 6b 25 21 30 3d 70  |$)..h.block%!0=p|
00001260  72 6f 67 72 65 73 73 25  0d 06 72 21 c8 99 20 22  |rogress%..r!.. "|
00001270  57 69 6d 70 5f 43 6c 6f  73 65 57 69 6e 64 6f 77  |Wimp_CloseWindow|
00001280  22 2c 2c 62 6c 6f 63 6b  25 0d 06 7c 05 e1 0d 06  |",,block%..|....|
00001290  86 05 3a 0d 06 90 1a dd  f2 63 68 61 6e 67 65 61  |..:......changea|
000012a0  6c 6c 74 6f 64 6f 73 28  64 69 72 24 29 0d 06 9a  |lltodos(dir$)...|
000012b0  30 ea 20 6e 25 2c 72 25  2c 6e 61 6d 65 24 20 3a  |0. n%,r%,name$ :|
000012c0  f4 20 4e 75 6d 62 65 72  20 72 65 61 64 20 74 68  |. Number read th|
000012d0  72 6f 75 67 68 20 73 6f  20 66 61 72 2e 0d 06 a4  |rough so far....|
000012e0  08 6e 25 3d 30 0d 06 ae  0f 24 63 64 69 72 25 3d  |.n%=0....$cdir%=|
000012f0  64 69 72 24 0d 06 b8 1c  f2 72 65 64 72 61 77 69  |dir$.....redrawi|
00001300  63 6f 6e 28 70 72 6f 67  72 65 73 73 25 2c 34 29  |con(progress%,4)|
00001310  0d 06 c2 09 f2 70 6f 6c  6c 0d 06 cc 05 f5 0d 06  |.....poll.......|
00001320  d6 31 c8 99 20 26 30 43  2c 31 30 2c 64 69 72 24  |.1.. &0C,10,dir$|
00001330  2c 62 6c 6f 63 6b 25 2c  31 2c 6e 25 2c 35 30 30  |,block%,1,n%,500|
00001340  2c 22 2a 22 20 b8 20 2c  2c 2c 72 25 2c 6e 25 0d  |,"*" . ,,,r%,n%.|
00001350  06 e0 0d e7 20 72 25 3c  3e 30 20 8c 0d 06 ea 2a  |.... r%<>0 ....*|
00001360  20 20 20 20 20 20 20 20  20 20 6e 61 6d 65 24 3d  |          name$=|
00001370  22 2e 22 2b a4 73 74 72  69 6e 67 28 62 6c 6f 63  |"."+.string(bloc|
00001380  6b 25 2b 32 30 29 0d 06  f4 1d 20 20 20 20 20 20  |k%+20)....      |
00001390  20 20 20 20 e7 20 62 6c  6f 63 6b 25 21 31 36 3d  |    . block%!16=|
000013a0  32 20 8c 0d 06 fe 2b 20  20 20 20 20 20 20 20 20  |2 ....+         |
000013b0  20 20 20 f2 63 68 61 6e  67 65 61 6c 6c 74 6f 64  |   .changealltod|
000013c0  6f 73 28 64 69 72 24 2b  6e 61 6d 65 24 29 0d 07  |os(dir$+name$)..|
000013d0  08 1d 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |..              |
000013e0  24 63 64 69 72 25 3d 64  69 72 24 0d 07 12 2a 20  |$cdir%=dir$...* |
000013f0  20 20 20 20 20 20 20 20  20 20 20 20 20 f2 72 65  |             .re|
00001400  64 72 61 77 69 63 6f 6e  28 70 72 6f 67 72 65 73  |drawicon(progres|
00001410  73 25 2c 34 29 0d 07 1c  17 20 20 20 20 20 20 20  |s%,4)....       |
00001420  20 20 20 20 20 20 20 f2  70 6f 6c 6c 0d 07 30 11  |       .poll..0.|
00001430  20 20 20 20 20 20 20 20  20 20 20 20 cc 0d 07 3a  |            ...:|
00001440  29 20 20 20 20 20 20 20  20 20 20 20 20 c8 99 20  |)            .. |
00001450  26 30 38 2c 31 38 2c 64  69 72 24 2b 6e 61 6d 65  |&08,18,dir$+name|
00001460  24 2c 26 66 65 34 0d 07  44 1a 20 20 20 20 20 20  |$,&fe4..D.      |
00001470  20 20 20 20 20 20 6e 66  69 6c 65 73 25 2b 3d 31  |      nfiles%+=1|
00001480  0d 07 4e 11 20 20 20 20  20 20 20 20 20 20 20 20  |..N.            |
00001490  cd 0d 07 58 0f 20 20 20  20 20 20 20 20 20 20 cd  |...X.          .|
000014a0  0d 07 62 1f fd 20 72 25  3d 30 20 84 20 61 62 6f  |..b.. r%=0 . abo|
000014b0  72 74 25 3d b9 20 84 20  71 75 69 74 25 3d b9 0d  |rt%=. . quit%=..|
000014c0  07 6c 1f 24 66 69 6c 65  73 25 3d c3 28 6e 66 69  |.l.$files%=.(nfi|
000014d0  6c 65 73 25 29 2b 22 20  66 69 6c 65 73 22 0d 07  |les%)+" files"..|
000014e0  76 1c f2 72 65 64 72 61  77 69 63 6f 6e 28 70 72  |v..redrawicon(pr|
000014f0  6f 67 72 65 73 73 25 2c  32 29 0d 07 80 05 e1 0d  |ogress%,2)......|
00001500  07 8a 04 0d 07 94 04 0d  07 9e 04 0d 07 a8 04 0d  |................|
00001510  ff                                                |.|
00001511