Home » Archimedes archive » Acorn User » AU 1994-08.adf » !WimpTools_WimpTools » !TempPrint/!RunImage
!TempPrint/!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 1994-08.adf » !WimpTools_WimpTools |
Filename: | !TempPrint/!RunImage |
Read OK: | ✔ |
File size: | 2931 bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
10REM >!RunImage 20REM LEN Matt Lewis 1994 30REM 40ON ERROR ERROR EXT ERR,REPORT$+" : Internal Error Code ("+STR$(ERL/10)+")" 50 60DIM _errblk% &100 70 80SYS "OS_GetEnv" TO _comline$,_heap% 90 100FOR i%=0 TO 1 110 _comline$=FNcommandleaf(_comline$) 120NEXT i% 130_taskname$="TempPrint" 140_taskpath$="<TempPrint$Dir>" 150_comline$=FNcommandleaf(_comline$) 160_comline$=LEFT$(_comline$,INSTR(_comline$," ")-1) 170 180SYS "XOS_SWINumberFromString",,"WSWimpTools_0" TO ;v% 190IF (v% AND 1) THEN 200 ERROR 0,"Wimp Tools module is not loaded" 210ENDIF 220 230SYS "Wimp_Initialise",200,&4B534154,_taskname$,0 TO ,_taskhandle% 240SYS "Wimp_SlotSize",-1,-1 TO slotsize% 250 260DIM _b% &100 270PROCloadtemplates("<TempPrint$Dir>.Templates",1) 280PROCmakemenus 290 300SYS "WSWimpTools_TaskIcon",-1,0,"!"+_taskname$ TO _taskicon% 310 320ON ERROR PROCwimp_error(_taskname$,_taskhandle%) 330_doquit%=FALSE 340REPEAT 350 SYS "Wimp_Poll",,_b% TO _pollevent% 360 CASE _pollevent% OF 370 WHEN 0: 380 WHEN 1: 390 WHEN 2:SYS "Wimp_OpenWindow",,_b% 400 WHEN 3:SYS "Wimp_CloseWindow",,_b% 410 WHEN 4: 420 WHEN 5: 430 WHEN 6:PROCbuttons(!_b%,_b%!4,_b%!8,_b%!12,_b%!16) 440 WHEN 7:PROCdragbox(_b%) 450 WHEN 8:PROCkeypressed(!_b%,_b%!4,_b%!8,_b%!12,_b%!20,_b%!24) 460 WHEN 9:PROCmenuchoice(_b%) 470 WHEN 17,18:PROCmessage(_b%) 480 WHEN 19: 490 ENDCASE 500UNTIL _doquit% 510SYS "Wimp_CloseDown",_taskhandle%,&4B534154 520END 530 540DEF PROCwimp_error(name$,task%) 550 LOCAL r%,t% 560 !_errblk%=ERR 570 IF ERR<>1 THEN 580 t%=3 590 $(_errblk%+4)=REPORT$+"/"+STR$ERL+CHR$(0) 600 ELSE 610 t%=1 620 $(_errblk%+4)=REPORT$+CHR$(0) 630 ENDIF 640 SYS "Wimp_ReportError",_errblk%,t%,name$ TO ,r% 650 IF r%=2 THEN 660 SYS "Wimp_CloseDown",_taskhandle%,&4B534154 670 END 680 ENDIF 690ENDPROC 700 710DEF FNcommandleaf(a$) 720 LOCAL ptr% 730 a$=MID$(a$,INSTR(a$," ")) 740 ptr%=1 750 WHILE MID$(a$,ptr%,1)=" " 760 ptr%+=1 770 ENDWHILE 780=MID$(a$,ptr%) 790 800DEF PROCextwimpslot(s%) 810 LOCAL ss%,ns% 820 SYS "Wimp_SlotSize",-1,-1 TO ss% 830 SYS "Wimp_SlotSize",ss%+s%,-1 840 SYS "Wimp_SlotSize",-1,-1 TO ns% 850 IF ns%<(ss%+s%) THEN 860 ERROR 1,"Not enough memory. Try quitting another application!" 870 ENDIF 880ENDPROC 890 900DEF PROCloadtemplates(f$,s%) 910 LOCAL n%,w%,i% 920 DIM w% &400 930 DIM i% &400 940 SYS "Wimp_OpenTemplate",,f$ 950 SYS "Wimp_LoadTemplate",,w%,i%,i%+&400,-1,"info",0 TO ,n%,i% 960 SYS "Wimp_CreateWindow",,w% TO _info% 970 SYS "Wimp_LoadTemplate",,w%,i%,i%+&400,-1,"save",0 TO ,n%,i% 980 SYS "Wimp_CreateWindow",,w% TO _save% 990 SYS "Wimp_CloseTemplate" 1000ENDPROC 1010 1020DEF PROCmakemenus 1030 LOCAL b%,i% 1040 DIM b% &100 1050 DIM i% &100 1060 _iconbarmenu%=b% 1070 SYS "WSWimpTools_MakeMenu",b%,i%,140,"#TempPrint,Info,Quit" TO b%,i% 1080 SYS "WSWimpTools_AttachSubMenu",_iconbarmenu%,0,_info% 1090ENDPROC 1100 1110DEF PROCmessage(pb%) 1120 LOCAL err$ 1130 CASE pb%!16 OF 1140 WHEN 0: 1150 _doquit%=TRUE 1160 WHEN 1: 1170 WHEN 2: 1180 SYS "WSWimpTools_GetText",pb%+44 TO outfile$ 1190 PROCconvert_template_file(filename$,outfile$) 1200 SYS "WSWimpTools_SendLoad",outfile$,pb% 1210 SYS "WSWimpTools_CloseWindow",_save% 1220 WHEN 3 1230 IF pb%!40=&FEC 1240 SYS "WSWimpTools_GetText",pb%+44 TO filename$ 1250 SYS "WSWimpTools_PopOpenWindow",_save% 1260 SYS "WSWimpTools_GetIconText",_save%,1 TO a$ 1270 SYS "Wimp_SetCaretPosition",_save%,1,,,-1,LEN(a$) 1280 ENDIF 1290 WHEN 4: 1300 WHEN &502: 1310 PROChelp(_b%) 1320 WHEN &80144: 1330 IF !pb%=20 THEN 1340 ERROR 1,"Print manager is busy!" 1350 ELSE 1360 SYS "WSWimpTools_GetText",pb%+24 TO err$ 1370 ERROR pb%!20,err$ 1380 ENDIF 1390 WHEN &80145: 1400 IF pb%!40=&FEC THEN 1410 printtask%=pb%!4 1420 SYS "WSWimpTools_GetText",pb%+44 TO filename$ 1430 PROCconvert_template_file(filename$,"<Printer$Temp>") 1440 pb%!12=pb%!8 1450 pb%!16=&80146 1460 SYS "Wimp_SendMessage",17,pb%,printtask% 1470 ENDIF 1480 ENDCASE 1490ENDPROC 1500 1510DEF PROChelp(pb%) 1520 LOCAL h$,help% 1530 help%=pb%!4 1540 CASE pb%!32 OF 1550 WHEN -2: 1560 h$="This is the !TempPrint icon.|MDrag a templates file to this icon to convert it to text.|MDrag a templates file the printer manager icon to print it.|M"+CHR$0 1570 WHEN _info%: 1580 h$="This window shows information about this application."+CHR$0 1590 WHEN _save%: 1600 CASE pb%!36 OF 1610 WHEN 0: 1620 h$="Press select or adjust to save the text file."+CHR$0 1630 WHEN 1: 1640 h$="Enter the file name for the text file in this icon.|MPress RETURN to save the file."+CHR$0 1650 WHEN 2: 1660 h$="Drag this icon to a directory display to save the text file."+CHR$0 1670 ENDCASE 1680 ENDCASE 1690 pb%!12=pb%!8 1700 pb%!16=&503 1710 $(pb%+20)=h$ 1720 !pb%=(23+LEN(h$))AND&FFFFFFFC 1730 SYS "Wimp_SendMessage",17,pb%,help% 1740ENDPROC 1750 1760DEF PROCdragbox(pb%) 1770 LOCAL outfile$ 1780 IF dragasprite% THEN SYS "DragASprite_Stop" 1790 SYS "WSWimpTools_GetIconText",_save%,1 TO outfile$ 1800 SYS "WSWimpTools_GetLeaf",outfile$ TO ,outfile$ 1810 SYS "WSWimpTools_SendSave",,pb%,&FFF,outfile$,&2000 1820ENDPROC 1830 1840DEF PROCquicksave(window%) 1850 LOCAL outfile$ 1860 SYS "WSWimpTools_GetIconText",window%,1 TO outfile$ 1870 IF INSTR(outfile$,".")=0 THEN 1880 ERROR 1,"Please drag the file icon to a directory display to save!" 1890 ELSE 1900 PROCconvert_template_file(filename$,outfile$) 1910 SYS "WSWimpTools_CloseWindow",_save% 1920 ENDIF 1930ENDPROC 1940 1950DEF PROCbuttons(mousex%,mousey%,buttons%,window%,icon%) 1960 CASE window% OF 1970 WHEN -2: 1980 PROCclick_iconbar(buttons%,icon%) 1990 WHEN _save%: 2000 PROCclick_save(buttons%,icon%) 2010 ENDCASE 2020ENDPROC 2030 2040DEF PROCkeypressed(window%,icon%,caret_x%,caret_y%,caret_pos%,key%) 2050 IF key%=&1B THEN 2060 SYS "WSWimpTools_CloseWindow",window% 2070 ELSE 2080 CASE window% OF 2090 WHEN _save%: 2100 IF key%=13 THEN 2110 PROCquicksave(window%) 2120 ENDIF 2130 OTHERWISE: 2140 SYS "Wimp_ProcessKey",key% 2150 ENDCASE 2160 ENDIF 2170ENDPROC 2180 2190DEF PROCmenuchoice(pb%) 2200 CASE _menu% OF 2210 WHEN _iconbarmenu%: 2220 CASE !pb% OF 2230 WHEN 1: 2240 _doquit%=TRUE 2250 ENDCASE 2260 ENDCASE 2270ENDPROC 2280 2290DEF PROCclick_iconbar(buttons%,icon%) 2300 CASE buttons% OF 2310 WHEN 2: 2320 SYS "WSWimpTools_IconBarMenu",_iconbarmenu% 2330 _menu%=_iconbarmenu% 2340 ENDCASE 2350ENDPROC 2360 2370DEF PROCclick_save(buttons%,icon%) 2380 CASE buttons% OF 2390 WHEN 1,4: 2400 IF icon%=0 THEN PROCquicksave(_save%) 2410 WHEN &10,&40: 2420 IF icon%=2 THEN SYS "WSWimpTools_StartDrag",_save%,2,1 TO dragasprite% 2430 ENDCASE 2440ENDPROC 2450 2460DEF FNalign(a$) 2470=LEFT$(a$+STRING$(30," "),30)+": " 2480 2490DEF FNget_icon_text(p%) 2500 LOCAL i%,a$ 2510 WHILE (p%?i%)>31 AND i%<13 2520 a$=a$+CHR$(p%?i%) 2530 i%+=1 2540 ENDWHILE 2550=a$ 2560 2570DEF PROCicon_text(f%,flags%,wp%,p%) 2580 LOCAL a$ 2590 IF (flags% AND &100)=0 THEN 2600 IF (flags% AND 2) THEN 2610 BPUT#f%,FNalign("Sprite name")+FNget_icon_text(p%) 2620 ELSE 2630 BPUT#f%,FNalign("Icon text")+FNget_icon_text(p%) 2640 ENDIF 2650 ELSE 2660 SYS "WSWimpTools_GetText",wp%+!p% TO a$ 2670 IF (flags% AND 2) THEN 2680 BPUT#f%,FNalign("Sprite name")+a$ 2690 ELSE 2700 BPUT#f%,FNalign("Text")+a$ 2710 ENDIF 2720 IF (p%!4)<>-1 THEN 2730 SYS "WSWimpTools_GetText",wp%+p%!4 TO a$ 2740 BPUT#f%,FNalign("Validation string")+a$ 2750 ENDIF 2760 BPUT#f%,FNalign("Buffer size")+STR$(p%!8) 2770 ENDIF 2780ENDPROC 2790 2800DEF PROCconvert_template_file(filename$,outfile$) 2810 LOCAL s%,p%,i%,j%,n%,wp%,ni%,id% 2820 SYS "Hourglass_On" 2830 SYS "OS_File",5,filename$ TO ,,,,s% 2840 PROCextwimpslot(s%) 2850 templates%=_heap% 2860 SYS "OS_File",255,filename$,templates% 2870 p%=templates%+16 2880 nooftemplates%=0 2890 WHILE (p%!i%)<>0 2900 i%+=24 2910 nooftemplates%+=1 2920 ENDWHILE 2930 f%=OPENOUT(outfile$) 2940 BPUT#f%,"Contents of file : "+filename$ 2950 BPUT#f%,"" 2960 BPUT#f%,STRING$(77,"-") 2970 BPUT#f%,"" 2980 IF nooftemplates%=1 THEN 2990 BPUT#f%,FNalign("Contains")+STR$nooftemplates%+" window" 3000 ELSE 3010 BPUT#f%,FNalign("Contains")+STR$nooftemplates%+" windows" 3020 ENDIF 3030 FOR i%=0 TO nooftemplates%-1 3040 IF i%=0 THEN 3050 BPUT#f%,FNalign("Window names")+$(p%+12+i%*24) 3060 ELSE 3070 BPUT#f%,STRING$(30," ")+": "+$(p%+12+i%*24) 3080 ENDIF 3090 NEXT i% 3100 FOR i%=0 TO nooftemplates%-1 3110 BPUT#f%,"" 3120 BPUT#f%,STRING$(77,"-") 3130 BPUT#f%,"" 3140 BPUT#f%,FNalign("Window info for")+$(p%+12+i%*24) 3150 BPUT#f%,"" 3160 wp%=templates%+p%!(i%*24) 3170 BPUT#f%,FNalign("Visible area - min X")+STR$(!wp%) 3180 BPUT#f%,FNalign("Visible area - min Y")+STR$(wp%!4) 3190 BPUT#f%,FNalign("Visible area - max X")+STR$(wp%!8) 3200 BPUT#f%,FNalign("Visible area - max Y")+STR$(wp%!12) 3210 BPUT#f%,FNalign("Scroll X offset")+STR$(wp%!16) 3220 BPUT#f%,FNalign("Scroll Y offset")+STR$(wp%!20) 3230 BPUT#f%,FNalign("Open behind window")+STR$(wp%!24) 3240 BPUT#f%,FNalign("Window flags")+"&"+STR$~(wp%!28) 3250 IF wp%?32=255 THEN 3260 BPUT#f%,FNalign("Title foreground colour")+"Window has no frame" 3270 ELSE 3280 BPUT#f%,FNalign("Title foreground colour")+STR$(wp%?32) 3290 ENDIF 3300 BPUT#f%,FNalign("Title background colour")+STR$(wp%?33) 3310 BPUT#f%,FNalign("Work area foreground colour")+STR$(wp%?34) 3320 IF wp%?35=255 THEN 3330 BPUT#f%,FNalign("Work area background colour")+"Work area is transparent" 3340 ELSE 3350 BPUT#f%,FNalign("Work area background colour")+STR$(wp%?35) 3360 ENDIF 3370 BPUT#f%,FNalign("Scroll bar outer colour")+STR$(wp%?36) 3380 BPUT#f%,FNalign("Scroll bar inner colour")+STR$(wp%?37) 3390 BPUT#f%,FNalign("Title highlight colour")+STR$(wp%?38) 3400 BPUT#f%,FNalign("Visible area - min X")+STR$(wp%!40) 3410 BPUT#f%,FNalign("Visible area - min Y")+STR$(wp%!44) 3420 BPUT#f%,FNalign("Visible area - max X")+STR$(wp%!48) 3430 BPUT#f%,FNalign("Visible area - max Y")+STR$(wp%!52) 3440 BPUT#f%,FNalign("Title bar flags")+"&"+STR$~(wp%!56) 3450 BPUT#f%,FNalign("Work area flags")+"&"+STR$~(wp%!60) 3460 BPUT#f%,FNalign("Sprite area pointer")+STR$(wp%!64) 3470 BPUT#f%,FNalign("Minimum width of window")+STR$(256*(wp%?69)+(wp%?68)) 3480 BPUT#f%,FNalign("Minimum height of window")+STR$(256*(wp%?71)+(wp%?70)) 3490 PROCicon_text(f%,wp%!56,wp%,wp%+72) 3500 BPUT#f%,FNalign("Number of icons")+STR$(wp%!84) 3510 BPUT#f%,"" 3520 ni%=wp%!84 3530 id%=wp%+88 3540 IF ni%>0 THEN 3550 FOR j%=0 TO ni%-1 3560 BPUT#f%,FNalign("Icon number")+STR$j% 3570 BPUT#f%,FNalign("Minimum X coordinate")+STR$(!id%) 3580 BPUT#f%,FNalign("Minimum Y coordinate")+STR$(id%!4) 3590 BPUT#f%,FNalign("Maximum X coordinate")+STR$(id%!8) 3600 BPUT#f%,FNalign("Maximum Y coordinate")+STR$(id%!12) 3610 BPUT#f%,FNalign("Icon flags")+"&"+STR$~(id%!16) 3620 PROCicon_text(f%,id%!16,wp%,id%+20) 3630 BPUT#f%,"" 3640 id%+=32 3650 NEXT j% 3660 ENDIF 3670 NEXT i% 3680 CLOSE#f% 3690 SYS "Hourglass_Off" 3700 SYS "OS_File",18,outfile$,&FFF 3710 SYS "Wimp_SlotSize",slotsize%,-1 3720ENDPROC
� >!RunImage � � Matt Lewis 1994 � (7� � � � �,�$+" : Internal Error Code ("+�(�/10)+")" 2 <� _errblk% &100 F P%ș "OS_GetEnv" � _comline$,_heap% Z d� i%=0 � 1 n( _comline$=�commandleaf(_comline$) x� i% �_taskname$="TempPrint" � _taskpath$="<TempPrint$Dir>" �%_comline$=�commandleaf(_comline$) �+_comline$=�_comline$,�_comline$," ")-1) � �7ș "XOS_SWINumberFromString",,"WSWimpTools_0" � ;v% �� (v% � 1) � �, � 0,"Wimp Tools module is not loaded" �� � �Cș "Wimp_Initialise",200,&4B534154,_taskname$,0 � ,_taskhandle% �(ș "Wimp_SlotSize",-1,-1 � slotsize% � � _b% &100 1�loadtemplates("<TempPrint$Dir>.Templates",1) �makemenus " ,>ș "WSWimpTools_TaskIcon",-1,0,"!"+_taskname$ � _taskicon% 6 @,� � �wimp_error(_taskname$,_taskhandle%) J_doquit%=� T� ^( ș "Wimp_Poll",,_b% � _pollevent% h Ȏ _pollevent% � r � 0: | � 1: �' � 2:ș "Wimp_OpenWindow",,_b% �( � 3:ș "Wimp_CloseWindow",,_b% � � 4: � � 5: �6 � 6:�buttons(!_b%,_b%!4,_b%!8,_b%!12,_b%!16) � � 7:�dragbox(_b%) �@ � 8:�keypressed(!_b%,_b%!4,_b%!8,_b%!12,_b%!20,_b%!24) � � 9:�menuchoice(_b%) � � 17,18:�message(_b%) � � 19: � � �� _doquit% �.ș "Wimp_CloseDown",_taskhandle%,&4B534154 � � �wimp_error(name$,task%) & � r%,t% 0 !_errblk%=� : � �<>1 � D t%=3 N& $(_errblk%+4)=�$+"/"+Þ+�(0) X � b t%=1 l $(_errblk%+4)=�$+�(0) v � �4 ș "Wimp_ReportError",_errblk%,t%,name$ � ,r% � � r%=2 � �4 ș "Wimp_CloseDown",_taskhandle%,&4B534154 � � � � �� � �� �commandleaf(a$) � � ptr% � a$=�a$,�a$," ")) � ptr%=1 � ȕ �a$,ptr%,1)=" " � ptr%+=1 � =�a$,ptr%) � �extwimpslot(s%) * � ss%,ns% 4% ș "Wimp_SlotSize",-1,-1 � ss% ># ș "Wimp_SlotSize",ss%+s%,-1 H% ș "Wimp_SlotSize",-1,-1 � ns% R � ns%<(ss%+s%) � \E � 1,"Not enough memory. Try quitting another application!" f � p� z �� �loadtemplates(f$,s%) � � n%,w%,i% � � w% &400 � � i% &400 �! ș "Wimp_OpenTemplate",,f$ �A ș "Wimp_LoadTemplate",,w%,i%,i%+&400,-1,"info",0 � ,n%,i% �* ș "Wimp_CreateWindow",,w% � _info% �A ș "Wimp_LoadTemplate",,w%,i%,i%+&400,-1,"save",0 � ,n%,i% �* ș "Wimp_CreateWindow",,w% � _save% � ș "Wimp_CloseTemplate" �� � �� �makemenus � b%,i% � b% &100 � i% &100 $ _iconbarmenu%=b% .I ș "WSWimpTools_MakeMenu",b%,i%,140,"#TempPrint,Info,Quit" � b%,i% 8< ș "WSWimpTools_AttachSubMenu",_iconbarmenu%,0,_info% B� L V� �message(pb%) ` � err$ j Ȏ pb%!16 � t � 0: ~ _doquit%=� � � 1: � � 2: �7 ș "WSWimpTools_GetText",pb%+44 � outfile$ �7 �convert_template_file(filename$,outfile$) �3 ș "WSWimpTools_SendLoad",outfile$,pb% �0 ș "WSWimpTools_CloseWindow",_save% � � 3 � � pb%!40=&FEC �; ș "WSWimpTools_GetText",pb%+44 � filename$ �5 ș "WSWimpTools_PopOpenWindow",_save% �: ș "WSWimpTools_GetIconText",_save%,1 � a$ �> ș "Wimp_SetCaretPosition",_save%,1,,,-1,�(a$) � � 4: � &502: �help(_b%) ( � &80144: 2 � !pb%=20 � <, � 1,"Print manager is busy!" F � P6 ș "WSWimpTools_GetText",pb%+24 � err$ Z � pb%!20,err$ d � n � &80145: x � pb%!40=&FEC � � printtask%=pb%!4 �; ș "WSWimpTools_GetText",pb%+44 � filename$ �B �convert_template_file(filename$,"<Printer$Temp>") � pb%!12=pb%!8 � pb%!16=&80146 �7 ș "Wimp_SendMessage",17,pb%,printtask% � � � � �� � �� �help(pb%) � � h$,help% � help%=pb%!4 Ȏ pb%!32 � � -2: � h$="This is the !TempPrint icon.|MDrag a templates file to this icon to convert it to text.|MDrag a templates file the printer manager icon to print it.|M"+�0 " � _info%: ,J h$="This window shows information about this application."+�0 6 � _save%: @ Ȏ pb%!36 � J � 0: TE h$="Press select or adjust to save the text file."+�0 ^ � 1: hk h$="Enter the file name for the text file in this icon.|MPress RETURN to save the file."+�0 r � 2: |T h$="Drag this icon to a directory display to save the text file."+�0 � � � � � pb%!12=pb%!8 � pb%!16=&503 � $(pb%+20)=h$ � !pb%=(23+�(h$))�&FFFFFFFC �) ș "Wimp_SendMessage",17,pb%,help% �� � �� �dragbox(pb%) � � outfile$ �- � dragasprite% � ș "DragASprite_Stop" �7 ș "WSWimpTools_GetIconText",_save%,1 � outfile$ 4 ș "WSWimpTools_GetLeaf",outfile$ � ,outfile$ 9 ș "WSWimpTools_SendSave",,pb%,&FFF,outfile$,&2000 � & 0� �quicksave(window%) : � outfile$ D8 ș "WSWimpTools_GetIconText",window%,1 � outfile$ N � �outfile$,".")=0 � XI � 1,"Please drag the file icon to a directory display to save!" b � l4 �convert_template_file(filename$,outfile$) v- ș "WSWimpTools_CloseWindow",_save% � � �� � �6� �buttons(mousex%,mousey%,buttons%,window%,icon%) � Ȏ window% � � � -2: �( �click_iconbar(buttons%,icon%) � � _save%: �% �click_save(buttons%,icon%) � � �� � �B� �keypressed(window%,icon%,caret_x%,caret_y%,caret_pos%,key%) � key%=&1B � . ș "WSWimpTools_CloseWindow",window% � Ȏ window% � * � _save%: 4 � key%=13 � ># �quicksave(window%) H � R : \& ș "Wimp_ProcessKey",key% f � p � z� � �� �menuchoice(pb%) � Ȏ _menu% � � � _iconbarmenu%: � Ȏ !pb% � � � 1: � _doquit%=� � � � � �� � �$� �click_iconbar(buttons%,icon%) � Ȏ buttons% � � 2: 4 ș "WSWimpTools_IconBarMenu",_iconbarmenu% _menu%=_iconbarmenu% $ � .� 8 B!� �click_save(buttons%,icon%) L Ȏ buttons% � V � 1,4: `( � icon%=0 � �quicksave(_save%) j � &10,&40: tJ � icon%=2 � ș "WSWimpTools_StartDrag",_save%,2,1 � dragasprite% ~ � �� � �� �align(a$) �=�a$+�30," "),30)+": " � �� �get_icon_text(p%) � � i%,a$ � ȕ (p%?i%)>31 � i%<13 � a$=a$+�(p%?i%) � i%+=1 � � �=a$ "� �icon_text(f%,flags%,wp%,p%) � a$ � (flags% � &100)=0 � ( � (flags% � 2) � 2: �#f%,�align("Sprite name")+�get_icon_text(p%) < � F8 �#f%,�align("Icon text")+�get_icon_text(p%) P � Z � d/ ș "WSWimpTools_GetText",wp%+!p% � a$ n � (flags% � 2) � x* �#f%,�align("Sprite name")+a$ � � �# �#f%,�align("Text")+a$ � � � � (p%!4)<>-1 � �3 ș "WSWimpTools_GetText",wp%+p%!4 � a$ �0 �#f%,�align("Validation string")+a$ � � �, �#f%,�align("Buffer size")+�(p%!8) � � �� � �0� �convert_template_file(filename$,outfile$) �# � s%,p%,i%,j%,n%,wp%,ni%,id% ș "Hourglass_On" ( ș "OS_File",5,filename$ � ,,,,s% �extwimpslot(s%) " templates%=_heap% ,, ș "OS_File",255,filename$,templates% 6 p%=templates%+16 @ nooftemplates%=0 J ȕ (p%!i%)<>0 T i%+=24 ^ nooftemplates%+=1 h � r f%=�(outfile$) |+ �#f%,"Contents of file : "+filename$ � �#f%,"" � �#f%,�77,"-") � �#f%,"" � � nooftemplates%=1 � �; �#f%,�align("Contains")+�nooftemplates%+" window" � � �< �#f%,�align("Contains")+�nooftemplates%+" windows" � � � � i%=0 � nooftemplates%-1 � � i%=0 � �7 �#f%,�align("Window names")+$(p%+12+i%*24) � � �. �#f%,�30," ")+": "+$(p%+12+i%*24) � � i% � i%=0 � nooftemplates%-1 & �#f%,"" 0 �#f%,�77,"-") : �#f%,"" D7 �#f%,�align("Window info for")+$(p%+12+i%*24) N �#f%,"" X# wp%=templates%+p%!(i%*24) b5 �#f%,�align("Visible area - min X")+�(!wp%) l6 �#f%,�align("Visible area - min Y")+�(wp%!4) v6 �#f%,�align("Visible area - max X")+�(wp%!8) �7 �#f%,�align("Visible area - max Y")+�(wp%!12) �2 �#f%,�align("Scroll X offset")+�(wp%!16) �2 �#f%,�align("Scroll Y offset")+�(wp%!20) �5 �#f%,�align("Open behind window")+�(wp%!24) �4 �#f%,�align("Window flags")+"&"+�~(wp%!28) � � wp%?32=255 � �I �#f%,�align("Title foreground colour")+"Window has no frame" � � �= �#f%,�align("Title foreground colour")+�(wp%?32) � � �: �#f%,�align("Title background colour")+�(wp%?33) �> �#f%,�align("Work area foreground colour")+�(wp%?34) � � wp%?35=255 � R �#f%,�align("Work area background colour")+"Work area is transparent" � A �#f%,�align("Work area background colour")+�(wp%?35) � *: �#f%,�align("Scroll bar outer colour")+�(wp%?36) 4: �#f%,�align("Scroll bar inner colour")+�(wp%?37) >9 �#f%,�align("Title highlight colour")+�(wp%?38) H7 �#f%,�align("Visible area - min X")+�(wp%!40) R7 �#f%,�align("Visible area - min Y")+�(wp%!44) \7 �#f%,�align("Visible area - max X")+�(wp%!48) f7 �#f%,�align("Visible area - max Y")+�(wp%!52) p7 �#f%,�align("Title bar flags")+"&"+�~(wp%!56) z7 �#f%,�align("Work area flags")+"&"+�~(wp%!60) �6 �#f%,�align("Sprite area pointer")+�(wp%!64) �I �#f%,�align("Minimum width of window")+�(256*(wp%?69)+(wp%?68)) �J �#f%,�align("Minimum height of window")+�(256*(wp%?71)+(wp%?70)) �* �icon_text(f%,wp%!56,wp%,wp%+72) �2 �#f%,�align("Number of icons")+�(wp%!84) � �#f%,"" � ni%=wp%!84 � id%=wp%+88 � � ni%>0 � � � j%=0 � ni%-1 �. �#f%,�align("Icon number")+�j% �; �#f%,�align("Minimum X coordinate")+�(!id%) �< �#f%,�align("Minimum Y coordinate")+�(id%!4) < �#f%,�align("Maximum X coordinate")+�(id%!8) = �#f%,�align("Maximum Y coordinate")+�(id%!12) 8 �#f%,�align("Icon flags")+"&"+�~(id%!16) $0 �icon_text(f%,id%!16,wp%,id%+20) . �#f%,"" 8 id%+=32 B � j% L � V � i% ` �#f% j ș "Hourglass_Off" t$ ș "OS_File",18,outfile$,&FFF ~& ș "Wimp_SlotSize",slotsize%,-1 �� �
00000000 0d 00 0a 10 f4 20 3e 21 52 75 6e 49 6d 61 67 65 |..... >!RunImage| 00000010 0d 00 14 17 f4 20 a9 20 4d 61 74 74 20 4c 65 77 |..... . Matt Lew| 00000020 69 73 20 31 39 39 34 0d 00 1e 05 f4 0d 00 28 37 |is 1994.......(7| 00000030 ee 20 85 20 85 20 a2 20 9f 2c f6 24 2b 22 20 3a |. . . . .,.$+" :| 00000040 20 49 6e 74 65 72 6e 61 6c 20 45 72 72 6f 72 20 | Internal Error | 00000050 43 6f 64 65 20 28 22 2b c3 28 9e 2f 31 30 29 2b |Code ("+.(./10)+| 00000060 22 29 22 0d 00 32 04 0d 00 3c 13 de 20 5f 65 72 |")"..2...<.. _er| 00000070 72 62 6c 6b 25 20 26 31 30 30 0d 00 46 04 0d 00 |rblk% &100..F...| 00000080 50 25 c8 99 20 22 4f 53 5f 47 65 74 45 6e 76 22 |P%.. "OS_GetEnv"| 00000090 20 b8 20 5f 63 6f 6d 6c 69 6e 65 24 2c 5f 68 65 | . _comline$,_he| 000000a0 61 70 25 0d 00 5a 04 0d 00 64 0e e3 20 69 25 3d |ap%..Z...d.. i%=| 000000b0 30 20 b8 20 31 0d 00 6e 28 20 20 20 5f 63 6f 6d |0 . 1..n( _com| 000000c0 6c 69 6e 65 24 3d a4 63 6f 6d 6d 61 6e 64 6c 65 |line$=.commandle| 000000d0 61 66 28 5f 63 6f 6d 6c 69 6e 65 24 29 0d 00 78 |af(_comline$)..x| 000000e0 08 ed 20 69 25 0d 00 82 1a 5f 74 61 73 6b 6e 61 |.. i%...._taskna| 000000f0 6d 65 24 3d 22 54 65 6d 70 50 72 69 6e 74 22 0d |me$="TempPrint".| 00000100 00 8c 20 5f 74 61 73 6b 70 61 74 68 24 3d 22 3c |.. _taskpath$="<| 00000110 54 65 6d 70 50 72 69 6e 74 24 44 69 72 3e 22 0d |TempPrint$Dir>".| 00000120 00 96 25 5f 63 6f 6d 6c 69 6e 65 24 3d a4 63 6f |..%_comline$=.co| 00000130 6d 6d 61 6e 64 6c 65 61 66 28 5f 63 6f 6d 6c 69 |mmandleaf(_comli| 00000140 6e 65 24 29 0d 00 a0 2b 5f 63 6f 6d 6c 69 6e 65 |ne$)...+_comline| 00000150 24 3d c0 5f 63 6f 6d 6c 69 6e 65 24 2c a7 5f 63 |$=._comline$,._c| 00000160 6f 6d 6c 69 6e 65 24 2c 22 20 22 29 2d 31 29 0d |omline$," ")-1).| 00000170 00 aa 04 0d 00 b4 37 c8 99 20 22 58 4f 53 5f 53 |......7.. "XOS_S| 00000180 57 49 4e 75 6d 62 65 72 46 72 6f 6d 53 74 72 69 |WINumberFromStri| 00000190 6e 67 22 2c 2c 22 57 53 57 69 6d 70 54 6f 6f 6c |ng",,"WSWimpTool| 000001a0 73 5f 30 22 20 b8 20 3b 76 25 0d 00 be 10 e7 20 |s_0" . ;v%..... | 000001b0 28 76 25 20 80 20 31 29 20 8c 0d 00 c8 2c 20 20 |(v% . 1) ...., | 000001c0 20 85 20 30 2c 22 57 69 6d 70 20 54 6f 6f 6c 73 | . 0,"Wimp Tools| 000001d0 20 6d 6f 64 75 6c 65 20 69 73 20 6e 6f 74 20 6c | module is not l| 000001e0 6f 61 64 65 64 22 0d 00 d2 05 cd 0d 00 dc 04 0d |oaded"..........| 000001f0 00 e6 43 c8 99 20 22 57 69 6d 70 5f 49 6e 69 74 |..C.. "Wimp_Init| 00000200 69 61 6c 69 73 65 22 2c 32 30 30 2c 26 34 42 35 |ialise",200,&4B5| 00000210 33 34 31 35 34 2c 5f 74 61 73 6b 6e 61 6d 65 24 |34154,_taskname$| 00000220 2c 30 20 b8 20 2c 5f 74 61 73 6b 68 61 6e 64 6c |,0 . ,_taskhandl| 00000230 65 25 0d 00 f0 28 c8 99 20 22 57 69 6d 70 5f 53 |e%...(.. "Wimp_S| 00000240 6c 6f 74 53 69 7a 65 22 2c 2d 31 2c 2d 31 20 b8 |lotSize",-1,-1 .| 00000250 20 73 6c 6f 74 73 69 7a 65 25 0d 00 fa 04 0d 01 | slotsize%......| 00000260 04 0e de 20 5f 62 25 20 26 31 30 30 0d 01 0e 31 |... _b% &100...1| 00000270 f2 6c 6f 61 64 74 65 6d 70 6c 61 74 65 73 28 22 |.loadtemplates("| 00000280 3c 54 65 6d 70 50 72 69 6e 74 24 44 69 72 3e 2e |<TempPrint$Dir>.| 00000290 54 65 6d 70 6c 61 74 65 73 22 2c 31 29 0d 01 18 |Templates",1)...| 000002a0 0e f2 6d 61 6b 65 6d 65 6e 75 73 0d 01 22 04 0d |..makemenus.."..| 000002b0 01 2c 3e c8 99 20 22 57 53 57 69 6d 70 54 6f 6f |.,>.. "WSWimpToo| 000002c0 6c 73 5f 54 61 73 6b 49 63 6f 6e 22 2c 2d 31 2c |ls_TaskIcon",-1,| 000002d0 30 2c 22 21 22 2b 5f 74 61 73 6b 6e 61 6d 65 24 |0,"!"+_taskname$| 000002e0 20 b8 20 5f 74 61 73 6b 69 63 6f 6e 25 0d 01 36 | . _taskicon%..6| 000002f0 04 0d 01 40 2c ee 20 85 20 f2 77 69 6d 70 5f 65 |...@,. . .wimp_e| 00000300 72 72 6f 72 28 5f 74 61 73 6b 6e 61 6d 65 24 2c |rror(_taskname$,| 00000310 5f 74 61 73 6b 68 61 6e 64 6c 65 25 29 0d 01 4a |_taskhandle%)..J| 00000320 0e 5f 64 6f 71 75 69 74 25 3d a3 0d 01 54 05 f5 |._doquit%=...T..| 00000330 0d 01 5e 28 20 20 20 c8 99 20 22 57 69 6d 70 5f |..^( .. "Wimp_| 00000340 50 6f 6c 6c 22 2c 2c 5f 62 25 20 b8 20 5f 70 6f |Poll",,_b% . _po| 00000350 6c 6c 65 76 65 6e 74 25 0d 01 68 17 20 20 20 c8 |llevent%..h. .| 00000360 8e 20 5f 70 6f 6c 6c 65 76 65 6e 74 25 20 ca 0d |. _pollevent% ..| 00000370 01 72 0e 20 20 20 20 20 20 c9 20 30 3a 0d 01 7c |.r. . 0:..|| 00000380 0e 20 20 20 20 20 20 c9 20 31 3a 0d 01 86 27 20 |. . 1:...' | 00000390 20 20 20 20 20 c9 20 32 3a c8 99 20 22 57 69 6d | . 2:.. "Wim| 000003a0 70 5f 4f 70 65 6e 57 69 6e 64 6f 77 22 2c 2c 5f |p_OpenWindow",,_| 000003b0 62 25 0d 01 90 28 20 20 20 20 20 20 c9 20 33 3a |b%...( . 3:| 000003c0 c8 99 20 22 57 69 6d 70 5f 43 6c 6f 73 65 57 69 |.. "Wimp_CloseWi| 000003d0 6e 64 6f 77 22 2c 2c 5f 62 25 0d 01 9a 0e 20 20 |ndow",,_b%.... | 000003e0 20 20 20 20 c9 20 34 3a 0d 01 a4 0e 20 20 20 20 | . 4:.... | 000003f0 20 20 c9 20 35 3a 0d 01 ae 36 20 20 20 20 20 20 | . 5:...6 | 00000400 c9 20 36 3a f2 62 75 74 74 6f 6e 73 28 21 5f 62 |. 6:.buttons(!_b| 00000410 25 2c 5f 62 25 21 34 2c 5f 62 25 21 38 2c 5f 62 |%,_b%!4,_b%!8,_b| 00000420 25 21 31 32 2c 5f 62 25 21 31 36 29 0d 01 b8 1b |%!12,_b%!16)....| 00000430 20 20 20 20 20 20 c9 20 37 3a f2 64 72 61 67 62 | . 7:.dragb| 00000440 6f 78 28 5f 62 25 29 0d 01 c2 40 20 20 20 20 20 |ox(_b%)...@ | 00000450 20 c9 20 38 3a f2 6b 65 79 70 72 65 73 73 65 64 | . 8:.keypressed| 00000460 28 21 5f 62 25 2c 5f 62 25 21 34 2c 5f 62 25 21 |(!_b%,_b%!4,_b%!| 00000470 38 2c 5f 62 25 21 31 32 2c 5f 62 25 21 32 30 2c |8,_b%!12,_b%!20,| 00000480 5f 62 25 21 32 34 29 0d 01 cc 1e 20 20 20 20 20 |_b%!24).... | 00000490 20 c9 20 39 3a f2 6d 65 6e 75 63 68 6f 69 63 65 | . 9:.menuchoice| 000004a0 28 5f 62 25 29 0d 01 d6 1f 20 20 20 20 20 20 c9 |(_b%).... .| 000004b0 20 31 37 2c 31 38 3a f2 6d 65 73 73 61 67 65 28 | 17,18:.message(| 000004c0 5f 62 25 29 0d 01 e0 0f 20 20 20 20 20 20 c9 20 |_b%).... . | 000004d0 31 39 3a 0d 01 ea 08 20 20 20 cb 0d 01 f4 0e fd |19:.... ......| 000004e0 20 5f 64 6f 71 75 69 74 25 0d 01 fe 2e c8 99 20 | _doquit%...... | 000004f0 22 57 69 6d 70 5f 43 6c 6f 73 65 44 6f 77 6e 22 |"Wimp_CloseDown"| 00000500 2c 5f 74 61 73 6b 68 61 6e 64 6c 65 25 2c 26 34 |,_taskhandle%,&4| 00000510 42 35 33 34 31 35 34 0d 02 08 05 e0 0d 02 12 04 |B534154.........| 00000520 0d 02 1c 1e dd 20 f2 77 69 6d 70 5f 65 72 72 6f |..... .wimp_erro| 00000530 72 28 6e 61 6d 65 24 2c 74 61 73 6b 25 29 0d 02 |r(name$,task%)..| 00000540 26 0e 20 20 20 ea 20 72 25 2c 74 25 0d 02 30 12 |&. . r%,t%..0.| 00000550 20 20 20 21 5f 65 72 72 62 6c 6b 25 3d 9f 0d 02 | !_errblk%=...| 00000560 3a 0f 20 20 20 e7 20 9f 3c 3e 31 20 8c 0d 02 44 |:. . .<>1 ...D| 00000570 0e 20 20 20 20 20 20 74 25 3d 33 0d 02 4e 26 20 |. t%=3..N& | 00000580 20 20 20 20 20 24 28 5f 65 72 72 62 6c 6b 25 2b | $(_errblk%+| 00000590 34 29 3d f6 24 2b 22 2f 22 2b c3 9e 2b bd 28 30 |4)=.$+"/"+..+.(0| 000005a0 29 0d 02 58 08 20 20 20 cc 0d 02 62 0e 20 20 20 |)..X. ...b. | 000005b0 20 20 20 74 25 3d 31 0d 02 6c 1f 20 20 20 20 20 | t%=1..l. | 000005c0 20 24 28 5f 65 72 72 62 6c 6b 25 2b 34 29 3d f6 | $(_errblk%+4)=.| 000005d0 24 2b bd 28 30 29 0d 02 76 08 20 20 20 cd 0d 02 |$+.(0)..v. ...| 000005e0 80 34 20 20 20 c8 99 20 22 57 69 6d 70 5f 52 65 |.4 .. "Wimp_Re| 000005f0 70 6f 72 74 45 72 72 6f 72 22 2c 5f 65 72 72 62 |portError",_errb| 00000600 6c 6b 25 2c 74 25 2c 6e 61 6d 65 24 20 b8 20 2c |lk%,t%,name$ . ,| 00000610 72 25 0d 02 8a 0f 20 20 20 e7 20 72 25 3d 32 20 |r%.... . r%=2 | 00000620 8c 0d 02 94 34 20 20 20 20 20 20 c8 99 20 22 57 |....4 .. "W| 00000630 69 6d 70 5f 43 6c 6f 73 65 44 6f 77 6e 22 2c 5f |imp_CloseDown",_| 00000640 74 61 73 6b 68 61 6e 64 6c 65 25 2c 26 34 42 35 |taskhandle%,&4B5| 00000650 33 34 31 35 34 0d 02 9e 0b 20 20 20 20 20 20 e0 |34154.... .| 00000660 0d 02 a8 08 20 20 20 cd 0d 02 b2 05 e1 0d 02 bc |.... .........| 00000670 04 0d 02 c6 16 dd 20 a4 63 6f 6d 6d 61 6e 64 6c |...... .commandl| 00000680 65 61 66 28 61 24 29 0d 02 d0 0d 20 20 20 ea 20 |eaf(a$).... . | 00000690 70 74 72 25 0d 02 da 17 20 20 20 61 24 3d c1 61 |ptr%.... a$=.a| 000006a0 24 2c a7 61 24 2c 22 20 22 29 29 0d 02 e4 0d 20 |$,.a$," ")).... | 000006b0 20 20 70 74 72 25 3d 31 0d 02 ee 19 20 20 20 c8 | ptr%=1.... .| 000006c0 95 20 c1 61 24 2c 70 74 72 25 2c 31 29 3d 22 20 |. .a$,ptr%,1)=" | 000006d0 22 0d 02 f8 11 20 20 20 20 20 20 70 74 72 25 2b |".... ptr%+| 000006e0 3d 31 0d 03 02 08 20 20 20 ce 0d 03 0c 0e 3d c1 |=1.... .....=.| 000006f0 61 24 2c 70 74 72 25 29 0d 03 16 04 0d 03 20 16 |a$,ptr%)...... .| 00000700 dd 20 f2 65 78 74 77 69 6d 70 73 6c 6f 74 28 73 |. .extwimpslot(s| 00000710 25 29 0d 03 2a 10 20 20 20 ea 20 73 73 25 2c 6e |%)..*. . ss%,n| 00000720 73 25 0d 03 34 25 20 20 20 c8 99 20 22 57 69 6d |s%..4% .. "Wim| 00000730 70 5f 53 6c 6f 74 53 69 7a 65 22 2c 2d 31 2c 2d |p_SlotSize",-1,-| 00000740 31 20 b8 20 73 73 25 0d 03 3e 23 20 20 20 c8 99 |1 . ss%..># ..| 00000750 20 22 57 69 6d 70 5f 53 6c 6f 74 53 69 7a 65 22 | "Wimp_SlotSize"| 00000760 2c 73 73 25 2b 73 25 2c 2d 31 0d 03 48 25 20 20 |,ss%+s%,-1..H% | 00000770 20 c8 99 20 22 57 69 6d 70 5f 53 6c 6f 74 53 69 | .. "Wimp_SlotSi| 00000780 7a 65 22 2c 2d 31 2c 2d 31 20 b8 20 6e 73 25 0d |ze",-1,-1 . ns%.| 00000790 03 52 17 20 20 20 e7 20 6e 73 25 3c 28 73 73 25 |.R. . ns%<(ss%| 000007a0 2b 73 25 29 20 8c 0d 03 5c 45 20 20 20 20 20 20 |+s%) ...\E | 000007b0 85 20 31 2c 22 4e 6f 74 20 65 6e 6f 75 67 68 20 |. 1,"Not enough | 000007c0 6d 65 6d 6f 72 79 2e 20 20 54 72 79 20 71 75 69 |memory. Try qui| 000007d0 74 74 69 6e 67 20 61 6e 6f 74 68 65 72 20 61 70 |tting another ap| 000007e0 70 6c 69 63 61 74 69 6f 6e 21 22 0d 03 66 08 20 |plication!"..f. | 000007f0 20 20 cd 0d 03 70 05 e1 0d 03 7a 04 0d 03 84 1b | ...p....z.....| 00000800 dd 20 f2 6c 6f 61 64 74 65 6d 70 6c 61 74 65 73 |. .loadtemplates| 00000810 28 66 24 2c 73 25 29 0d 03 8e 11 20 20 20 ea 20 |(f$,s%).... . | 00000820 6e 25 2c 77 25 2c 69 25 0d 03 98 10 20 20 20 de |n%,w%,i%.... .| 00000830 20 77 25 20 26 34 30 30 0d 03 a2 10 20 20 20 de | w% &400.... .| 00000840 20 69 25 20 26 34 30 30 0d 03 ac 21 20 20 20 c8 | i% &400...! .| 00000850 99 20 22 57 69 6d 70 5f 4f 70 65 6e 54 65 6d 70 |. "Wimp_OpenTemp| 00000860 6c 61 74 65 22 2c 2c 66 24 0d 03 b6 41 20 20 20 |late",,f$...A | 00000870 c8 99 20 22 57 69 6d 70 5f 4c 6f 61 64 54 65 6d |.. "Wimp_LoadTem| 00000880 70 6c 61 74 65 22 2c 2c 77 25 2c 69 25 2c 69 25 |plate",,w%,i%,i%| 00000890 2b 26 34 30 30 2c 2d 31 2c 22 69 6e 66 6f 22 2c |+&400,-1,"info",| 000008a0 30 20 b8 20 2c 6e 25 2c 69 25 0d 03 c0 2a 20 20 |0 . ,n%,i%...* | 000008b0 20 c8 99 20 22 57 69 6d 70 5f 43 72 65 61 74 65 | .. "Wimp_Create| 000008c0 57 69 6e 64 6f 77 22 2c 2c 77 25 20 b8 20 5f 69 |Window",,w% . _i| 000008d0 6e 66 6f 25 0d 03 ca 41 20 20 20 c8 99 20 22 57 |nfo%...A .. "W| 000008e0 69 6d 70 5f 4c 6f 61 64 54 65 6d 70 6c 61 74 65 |imp_LoadTemplate| 000008f0 22 2c 2c 77 25 2c 69 25 2c 69 25 2b 26 34 30 30 |",,w%,i%,i%+&400| 00000900 2c 2d 31 2c 22 73 61 76 65 22 2c 30 20 b8 20 2c |,-1,"save",0 . ,| 00000910 6e 25 2c 69 25 0d 03 d4 2a 20 20 20 c8 99 20 22 |n%,i%...* .. "| 00000920 57 69 6d 70 5f 43 72 65 61 74 65 57 69 6e 64 6f |Wimp_CreateWindo| 00000930 77 22 2c 2c 77 25 20 b8 20 5f 73 61 76 65 25 0d |w",,w% . _save%.| 00000940 03 de 1e 20 20 20 c8 99 20 22 57 69 6d 70 5f 43 |... .. "Wimp_C| 00000950 6c 6f 73 65 54 65 6d 70 6c 61 74 65 22 0d 03 e8 |loseTemplate"...| 00000960 05 e1 0d 03 f2 04 0d 03 fc 10 dd 20 f2 6d 61 6b |........... .mak| 00000970 65 6d 65 6e 75 73 0d 04 06 0e 20 20 20 ea 20 62 |emenus.... . b| 00000980 25 2c 69 25 0d 04 10 10 20 20 20 de 20 62 25 20 |%,i%.... . b% | 00000990 26 31 30 30 0d 04 1a 10 20 20 20 de 20 69 25 20 |&100.... . i% | 000009a0 26 31 30 30 0d 04 24 17 20 20 20 5f 69 63 6f 6e |&100..$. _icon| 000009b0 62 61 72 6d 65 6e 75 25 3d 62 25 0d 04 2e 49 20 |barmenu%=b%...I | 000009c0 20 20 c8 99 20 22 57 53 57 69 6d 70 54 6f 6f 6c | .. "WSWimpTool| 000009d0 73 5f 4d 61 6b 65 4d 65 6e 75 22 2c 62 25 2c 69 |s_MakeMenu",b%,i| 000009e0 25 2c 31 34 30 2c 22 23 54 65 6d 70 50 72 69 6e |%,140,"#TempPrin| 000009f0 74 2c 49 6e 66 6f 2c 51 75 69 74 22 20 b8 20 62 |t,Info,Quit" . b| 00000a00 25 2c 69 25 0d 04 38 3c 20 20 20 c8 99 20 22 57 |%,i%..8< .. "W| 00000a10 53 57 69 6d 70 54 6f 6f 6c 73 5f 41 74 74 61 63 |SWimpTools_Attac| 00000a20 68 53 75 62 4d 65 6e 75 22 2c 5f 69 63 6f 6e 62 |hSubMenu",_iconb| 00000a30 61 72 6d 65 6e 75 25 2c 30 2c 5f 69 6e 66 6f 25 |armenu%,0,_info%| 00000a40 0d 04 42 05 e1 0d 04 4c 04 0d 04 56 13 dd 20 f2 |..B....L...V.. .| 00000a50 6d 65 73 73 61 67 65 28 70 62 25 29 0d 04 60 0d |message(pb%)..`.| 00000a60 20 20 20 ea 20 65 72 72 24 0d 04 6a 12 20 20 20 | . err$..j. | 00000a70 c8 8e 20 70 62 25 21 31 36 20 ca 0d 04 74 0e 20 |.. pb%!16 ...t. | 00000a80 20 20 20 20 20 c9 20 30 3a 0d 04 7e 17 20 20 20 | . 0:..~. | 00000a90 20 20 20 20 20 20 5f 64 6f 71 75 69 74 25 3d b9 | _doquit%=.| 00000aa0 0d 04 88 0e 20 20 20 20 20 20 c9 20 31 3a 0d 04 |.... . 1:..| 00000ab0 92 0e 20 20 20 20 20 20 c9 20 32 3a 0d 04 9c 37 |.. . 2:...7| 00000ac0 20 20 20 20 20 20 20 20 20 c8 99 20 22 57 53 57 | .. "WSW| 00000ad0 69 6d 70 54 6f 6f 6c 73 5f 47 65 74 54 65 78 74 |impTools_GetText| 00000ae0 22 2c 70 62 25 2b 34 34 20 b8 20 6f 75 74 66 69 |",pb%+44 . outfi| 00000af0 6c 65 24 0d 04 a6 37 20 20 20 20 20 20 20 20 20 |le$...7 | 00000b00 f2 63 6f 6e 76 65 72 74 5f 74 65 6d 70 6c 61 74 |.convert_templat| 00000b10 65 5f 66 69 6c 65 28 66 69 6c 65 6e 61 6d 65 24 |e_file(filename$| 00000b20 2c 6f 75 74 66 69 6c 65 24 29 0d 04 b0 33 20 20 |,outfile$)...3 | 00000b30 20 20 20 20 20 20 20 c8 99 20 22 57 53 57 69 6d | .. "WSWim| 00000b40 70 54 6f 6f 6c 73 5f 53 65 6e 64 4c 6f 61 64 22 |pTools_SendLoad"| 00000b50 2c 6f 75 74 66 69 6c 65 24 2c 70 62 25 0d 04 ba |,outfile$,pb%...| 00000b60 30 20 20 20 20 20 20 20 20 20 c8 99 20 22 57 53 |0 .. "WS| 00000b70 57 69 6d 70 54 6f 6f 6c 73 5f 43 6c 6f 73 65 57 |WimpTools_CloseW| 00000b80 69 6e 64 6f 77 22 2c 5f 73 61 76 65 25 0d 04 c4 |indow",_save%...| 00000b90 0d 20 20 20 20 20 20 c9 20 33 0d 04 ce 1a 20 20 |. . 3.... | 00000ba0 20 20 20 20 20 20 20 e7 20 70 62 25 21 34 30 3d | . pb%!40=| 00000bb0 26 46 45 43 0d 04 d8 3b 20 20 20 20 20 20 20 20 |&FEC...; | 00000bc0 20 20 20 20 c8 99 20 22 57 53 57 69 6d 70 54 6f | .. "WSWimpTo| 00000bd0 6f 6c 73 5f 47 65 74 54 65 78 74 22 2c 70 62 25 |ols_GetText",pb%| 00000be0 2b 34 34 20 b8 20 66 69 6c 65 6e 61 6d 65 24 0d |+44 . filename$.| 00000bf0 04 e2 35 20 20 20 20 20 20 20 20 20 20 20 20 c8 |..5 .| 00000c00 99 20 22 57 53 57 69 6d 70 54 6f 6f 6c 73 5f 50 |. "WSWimpTools_P| 00000c10 6f 70 4f 70 65 6e 57 69 6e 64 6f 77 22 2c 5f 73 |opOpenWindow",_s| 00000c20 61 76 65 25 0d 04 ec 3a 20 20 20 20 20 20 20 20 |ave%...: | 00000c30 20 20 20 20 c8 99 20 22 57 53 57 69 6d 70 54 6f | .. "WSWimpTo| 00000c40 6f 6c 73 5f 47 65 74 49 63 6f 6e 54 65 78 74 22 |ols_GetIconText"| 00000c50 2c 5f 73 61 76 65 25 2c 31 20 b8 20 61 24 0d 04 |,_save%,1 . a$..| 00000c60 f6 3e 20 20 20 20 20 20 20 20 20 20 20 20 c8 99 |.> ..| 00000c70 20 22 57 69 6d 70 5f 53 65 74 43 61 72 65 74 50 | "Wimp_SetCaretP| 00000c80 6f 73 69 74 69 6f 6e 22 2c 5f 73 61 76 65 25 2c |osition",_save%,| 00000c90 31 2c 2c 2c 2d 31 2c a9 28 61 24 29 0d 05 00 0e |1,,,-1,.(a$)....| 00000ca0 20 20 20 20 20 20 20 20 20 cd 0d 05 0a 0e 20 20 | ..... | 00000cb0 20 20 20 20 c9 20 34 3a 0d 05 14 11 20 20 20 20 | . 4:.... | 00000cc0 20 20 c9 20 26 35 30 32 3a 0d 05 1e 17 20 20 20 | . &502:.... | 00000cd0 20 20 20 20 20 20 f2 68 65 6c 70 28 5f 62 25 29 | .help(_b%)| 00000ce0 0d 05 28 13 20 20 20 20 20 20 c9 20 26 38 30 31 |..(. . &801| 00000cf0 34 34 3a 0d 05 32 18 20 20 20 20 20 20 20 20 20 |44:..2. | 00000d00 e7 20 21 70 62 25 3d 32 30 20 8c 0d 05 3c 2c 20 |. !pb%=20 ...<, | 00000d10 20 20 20 20 20 20 20 20 20 20 20 85 20 31 2c 22 | . 1,"| 00000d20 50 72 69 6e 74 20 6d 61 6e 61 67 65 72 20 69 73 |Print manager is| 00000d30 20 62 75 73 79 21 22 0d 05 46 0e 20 20 20 20 20 | busy!"..F. | 00000d40 20 20 20 20 cc 0d 05 50 36 20 20 20 20 20 20 20 | ...P6 | 00000d50 20 20 20 20 20 c8 99 20 22 57 53 57 69 6d 70 54 | .. "WSWimpT| 00000d60 6f 6f 6c 73 5f 47 65 74 54 65 78 74 22 2c 70 62 |ools_GetText",pb| 00000d70 25 2b 32 34 20 b8 20 65 72 72 24 0d 05 5a 1d 20 |%+24 . err$..Z. | 00000d80 20 20 20 20 20 20 20 20 20 20 20 85 20 70 62 25 | . pb%| 00000d90 21 32 30 2c 65 72 72 24 0d 05 64 0e 20 20 20 20 |!20,err$..d. | 00000da0 20 20 20 20 20 cd 0d 05 6e 13 20 20 20 20 20 20 | ...n. | 00000db0 c9 20 26 38 30 31 34 35 3a 0d 05 78 1c 20 20 20 |. &80145:..x. | 00000dc0 20 20 20 20 20 20 e7 20 70 62 25 21 34 30 3d 26 | . pb%!40=&| 00000dd0 46 45 43 20 8c 0d 05 82 20 20 20 20 20 20 20 20 |FEC .... | 00000de0 20 20 20 20 20 70 72 69 6e 74 74 61 73 6b 25 3d | printtask%=| 00000df0 70 62 25 21 34 0d 05 8c 3b 20 20 20 20 20 20 20 |pb%!4...; | 00000e00 20 20 20 20 20 c8 99 20 22 57 53 57 69 6d 70 54 | .. "WSWimpT| 00000e10 6f 6f 6c 73 5f 47 65 74 54 65 78 74 22 2c 70 62 |ools_GetText",pb| 00000e20 25 2b 34 34 20 b8 20 66 69 6c 65 6e 61 6d 65 24 |%+44 . filename$| 00000e30 0d 05 96 42 20 20 20 20 20 20 20 20 20 20 20 20 |...B | 00000e40 f2 63 6f 6e 76 65 72 74 5f 74 65 6d 70 6c 61 74 |.convert_templat| 00000e50 65 5f 66 69 6c 65 28 66 69 6c 65 6e 61 6d 65 24 |e_file(filename$| 00000e60 2c 22 3c 50 72 69 6e 74 65 72 24 54 65 6d 70 3e |,"<Printer$Temp>| 00000e70 22 29 0d 05 a0 1c 20 20 20 20 20 20 20 20 20 20 |").... | 00000e80 20 20 70 62 25 21 31 32 3d 70 62 25 21 38 0d 05 | pb%!12=pb%!8..| 00000e90 aa 1d 20 20 20 20 20 20 20 20 20 20 20 20 70 62 |.. pb| 00000ea0 25 21 31 36 3d 26 38 30 31 34 36 0d 05 b4 37 20 |%!16=&80146...7 | 00000eb0 20 20 20 20 20 20 20 20 20 20 20 c8 99 20 22 57 | .. "W| 00000ec0 69 6d 70 5f 53 65 6e 64 4d 65 73 73 61 67 65 22 |imp_SendMessage"| 00000ed0 2c 31 37 2c 70 62 25 2c 70 72 69 6e 74 74 61 73 |,17,pb%,printtas| 00000ee0 6b 25 0d 05 be 0e 20 20 20 20 20 20 20 20 20 cd |k%.... .| 00000ef0 0d 05 c8 08 20 20 20 cb 0d 05 d2 05 e1 0d 05 dc |.... .........| 00000f00 04 0d 05 e6 10 dd 20 f2 68 65 6c 70 28 70 62 25 |...... .help(pb%| 00000f10 29 0d 05 f0 11 20 20 20 ea 20 68 24 2c 68 65 6c |).... . h$,hel| 00000f20 70 25 0d 05 fa 12 20 20 20 68 65 6c 70 25 3d 70 |p%.... help%=p| 00000f30 62 25 21 34 0d 06 04 12 20 20 20 c8 8e 20 70 62 |b%!4.... .. pb| 00000f40 25 21 33 32 20 ca 0d 06 0e 0f 20 20 20 20 20 20 |%!32 ..... | 00000f50 c9 20 2d 32 3a 0d 06 18 ab 20 20 20 20 20 20 20 |. -2:.... | 00000f60 20 20 68 24 3d 22 54 68 69 73 20 69 73 20 74 68 | h$="This is th| 00000f70 65 20 21 54 65 6d 70 50 72 69 6e 74 20 69 63 6f |e !TempPrint ico| 00000f80 6e 2e 7c 4d 44 72 61 67 20 61 20 74 65 6d 70 6c |n.|MDrag a templ| 00000f90 61 74 65 73 20 66 69 6c 65 20 74 6f 20 74 68 69 |ates file to thi| 00000fa0 73 20 69 63 6f 6e 20 74 6f 20 63 6f 6e 76 65 72 |s icon to conver| 00000fb0 74 20 69 74 20 74 6f 20 74 65 78 74 2e 7c 4d 44 |t it to text.|MD| 00000fc0 72 61 67 20 61 20 74 65 6d 70 6c 61 74 65 73 20 |rag a templates | 00000fd0 66 69 6c 65 20 74 68 65 20 70 72 69 6e 74 65 72 |file the printer| 00000fe0 20 6d 61 6e 61 67 65 72 20 69 63 6f 6e 20 74 6f | manager icon to| 00000ff0 20 70 72 69 6e 74 20 69 74 2e 7c 4d 22 2b bd 30 | print it.|M"+.0| 00001000 0d 06 22 13 20 20 20 20 20 20 c9 20 5f 69 6e 66 |..". . _inf| 00001010 6f 25 3a 0d 06 2c 4a 20 20 20 20 20 20 20 20 20 |o%:..,J | 00001020 68 24 3d 22 54 68 69 73 20 77 69 6e 64 6f 77 20 |h$="This window | 00001030 73 68 6f 77 73 20 69 6e 66 6f 72 6d 61 74 69 6f |shows informatio| 00001040 6e 20 61 62 6f 75 74 20 74 68 69 73 20 61 70 70 |n about this app| 00001050 6c 69 63 61 74 69 6f 6e 2e 22 2b bd 30 0d 06 36 |lication."+.0..6| 00001060 13 20 20 20 20 20 20 c9 20 5f 73 61 76 65 25 3a |. . _save%:| 00001070 0d 06 40 15 20 20 20 20 20 20 c8 8e 20 70 62 25 |..@. .. pb%| 00001080 21 33 36 20 ca 0d 06 4a 11 20 20 20 20 20 20 20 |!36 ...J. | 00001090 20 20 c9 20 30 3a 0d 06 54 45 20 20 20 20 20 20 | . 0:..TE | 000010a0 20 20 20 20 20 20 68 24 3d 22 50 72 65 73 73 20 | h$="Press | 000010b0 73 65 6c 65 63 74 20 6f 72 20 61 64 6a 75 73 74 |select or adjust| 000010c0 20 74 6f 20 73 61 76 65 20 74 68 65 20 74 65 78 | to save the tex| 000010d0 74 20 66 69 6c 65 2e 22 2b bd 30 0d 06 5e 11 20 |t file."+.0..^. | 000010e0 20 20 20 20 20 20 20 20 c9 20 31 3a 0d 06 68 6b | . 1:..hk| 000010f0 20 20 20 20 20 20 20 20 20 20 20 20 68 24 3d 22 | h$="| 00001100 45 6e 74 65 72 20 74 68 65 20 66 69 6c 65 20 6e |Enter the file n| 00001110 61 6d 65 20 66 6f 72 20 74 68 65 20 74 65 78 74 |ame for the text| 00001120 20 66 69 6c 65 20 69 6e 20 74 68 69 73 20 69 63 | file in this ic| 00001130 6f 6e 2e 7c 4d 50 72 65 73 73 20 52 45 54 55 52 |on.|MPress RETUR| 00001140 4e 20 74 6f 20 73 61 76 65 20 74 68 65 20 66 69 |N to save the fi| 00001150 6c 65 2e 22 2b bd 30 0d 06 72 11 20 20 20 20 20 |le."+.0..r. | 00001160 20 20 20 20 c9 20 32 3a 0d 06 7c 54 20 20 20 20 | . 2:..|T | 00001170 20 20 20 20 20 20 20 20 68 24 3d 22 44 72 61 67 | h$="Drag| 00001180 20 74 68 69 73 20 69 63 6f 6e 20 74 6f 20 61 20 | this icon to a | 00001190 64 69 72 65 63 74 6f 72 79 20 64 69 73 70 6c 61 |directory displa| 000011a0 79 20 74 6f 20 73 61 76 65 20 74 68 65 20 74 65 |y to save the te| 000011b0 78 74 20 66 69 6c 65 2e 22 2b bd 30 0d 06 86 0b |xt file."+.0....| 000011c0 20 20 20 20 20 20 cb 0d 06 90 08 20 20 20 cb 0d | ..... ..| 000011d0 06 9a 13 20 20 20 70 62 25 21 31 32 3d 70 62 25 |... pb%!12=pb%| 000011e0 21 38 0d 06 a4 12 20 20 20 70 62 25 21 31 36 3d |!8.... pb%!16=| 000011f0 26 35 30 33 0d 06 ae 13 20 20 20 24 28 70 62 25 |&503.... $(pb%| 00001200 2b 32 30 29 3d 68 24 0d 06 b8 20 20 20 20 21 70 |+20)=h$... !p| 00001210 62 25 3d 28 32 33 2b a9 28 68 24 29 29 80 26 46 |b%=(23+.(h$)).&F| 00001220 46 46 46 46 46 46 43 0d 06 c2 29 20 20 20 c8 99 |FFFFFFC...) ..| 00001230 20 22 57 69 6d 70 5f 53 65 6e 64 4d 65 73 73 61 | "Wimp_SendMessa| 00001240 67 65 22 2c 31 37 2c 70 62 25 2c 68 65 6c 70 25 |ge",17,pb%,help%| 00001250 0d 06 cc 05 e1 0d 06 d6 04 0d 06 e0 13 dd 20 f2 |.............. .| 00001260 64 72 61 67 62 6f 78 28 70 62 25 29 0d 06 ea 11 |dragbox(pb%)....| 00001270 20 20 20 ea 20 6f 75 74 66 69 6c 65 24 0d 06 f4 | . outfile$...| 00001280 2d 20 20 20 e7 20 64 72 61 67 61 73 70 72 69 74 |- . dragasprit| 00001290 65 25 20 8c 20 c8 99 20 22 44 72 61 67 41 53 70 |e% . .. "DragASp| 000012a0 72 69 74 65 5f 53 74 6f 70 22 0d 06 fe 37 20 20 |rite_Stop"...7 | 000012b0 20 c8 99 20 22 57 53 57 69 6d 70 54 6f 6f 6c 73 | .. "WSWimpTools| 000012c0 5f 47 65 74 49 63 6f 6e 54 65 78 74 22 2c 5f 73 |_GetIconText",_s| 000012d0 61 76 65 25 2c 31 20 b8 20 6f 75 74 66 69 6c 65 |ave%,1 . outfile| 000012e0 24 0d 07 08 34 20 20 20 c8 99 20 22 57 53 57 69 |$...4 .. "WSWi| 000012f0 6d 70 54 6f 6f 6c 73 5f 47 65 74 4c 65 61 66 22 |mpTools_GetLeaf"| 00001300 2c 6f 75 74 66 69 6c 65 24 20 b8 20 2c 6f 75 74 |,outfile$ . ,out| 00001310 66 69 6c 65 24 0d 07 12 39 20 20 20 c8 99 20 22 |file$...9 .. "| 00001320 57 53 57 69 6d 70 54 6f 6f 6c 73 5f 53 65 6e 64 |WSWimpTools_Send| 00001330 53 61 76 65 22 2c 2c 70 62 25 2c 26 46 46 46 2c |Save",,pb%,&FFF,| 00001340 6f 75 74 66 69 6c 65 24 2c 26 32 30 30 30 0d 07 |outfile$,&2000..| 00001350 1c 05 e1 0d 07 26 04 0d 07 30 19 dd 20 f2 71 75 |.....&...0.. .qu| 00001360 69 63 6b 73 61 76 65 28 77 69 6e 64 6f 77 25 29 |icksave(window%)| 00001370 0d 07 3a 11 20 20 20 ea 20 6f 75 74 66 69 6c 65 |..:. . outfile| 00001380 24 0d 07 44 38 20 20 20 c8 99 20 22 57 53 57 69 |$..D8 .. "WSWi| 00001390 6d 70 54 6f 6f 6c 73 5f 47 65 74 49 63 6f 6e 54 |mpTools_GetIconT| 000013a0 65 78 74 22 2c 77 69 6e 64 6f 77 25 2c 31 20 b8 |ext",window%,1 .| 000013b0 20 6f 75 74 66 69 6c 65 24 0d 07 4e 1b 20 20 20 | outfile$..N. | 000013c0 e7 20 a7 6f 75 74 66 69 6c 65 24 2c 22 2e 22 29 |. .outfile$,".")| 000013d0 3d 30 20 8c 0d 07 58 49 20 20 20 20 20 20 85 20 |=0 ...XI . | 000013e0 31 2c 22 50 6c 65 61 73 65 20 64 72 61 67 20 74 |1,"Please drag t| 000013f0 68 65 20 66 69 6c 65 20 69 63 6f 6e 20 74 6f 20 |he file icon to | 00001400 61 20 64 69 72 65 63 74 6f 72 79 20 64 69 73 70 |a directory disp| 00001410 6c 61 79 20 74 6f 20 73 61 76 65 21 22 0d 07 62 |lay to save!"..b| 00001420 08 20 20 20 cc 0d 07 6c 34 20 20 20 20 20 20 f2 |. ...l4 .| 00001430 63 6f 6e 76 65 72 74 5f 74 65 6d 70 6c 61 74 65 |convert_template| 00001440 5f 66 69 6c 65 28 66 69 6c 65 6e 61 6d 65 24 2c |_file(filename$,| 00001450 6f 75 74 66 69 6c 65 24 29 0d 07 76 2d 20 20 20 |outfile$)..v- | 00001460 20 20 20 c8 99 20 22 57 53 57 69 6d 70 54 6f 6f | .. "WSWimpToo| 00001470 6c 73 5f 43 6c 6f 73 65 57 69 6e 64 6f 77 22 2c |ls_CloseWindow",| 00001480 5f 73 61 76 65 25 0d 07 80 08 20 20 20 cd 0d 07 |_save%.... ...| 00001490 8a 05 e1 0d 07 94 04 0d 07 9e 36 dd 20 f2 62 75 |..........6. .bu| 000014a0 74 74 6f 6e 73 28 6d 6f 75 73 65 78 25 2c 6d 6f |ttons(mousex%,mo| 000014b0 75 73 65 79 25 2c 62 75 74 74 6f 6e 73 25 2c 77 |usey%,buttons%,w| 000014c0 69 6e 64 6f 77 25 2c 69 63 6f 6e 25 29 0d 07 a8 |indow%,icon%)...| 000014d0 13 20 20 20 c8 8e 20 77 69 6e 64 6f 77 25 20 ca |. .. window% .| 000014e0 0d 07 b2 0f 20 20 20 20 20 20 c9 20 2d 32 3a 0d |.... . -2:.| 000014f0 07 bc 28 20 20 20 20 20 20 f2 63 6c 69 63 6b 5f |..( .click_| 00001500 69 63 6f 6e 62 61 72 28 62 75 74 74 6f 6e 73 25 |iconbar(buttons%| 00001510 2c 69 63 6f 6e 25 29 0d 07 c6 13 20 20 20 20 20 |,icon%).... | 00001520 20 c9 20 5f 73 61 76 65 25 3a 0d 07 d0 25 20 20 | . _save%:...% | 00001530 20 20 20 20 f2 63 6c 69 63 6b 5f 73 61 76 65 28 | .click_save(| 00001540 62 75 74 74 6f 6e 73 25 2c 69 63 6f 6e 25 29 0d |buttons%,icon%).| 00001550 07 da 08 20 20 20 cb 0d 07 e4 05 e1 0d 07 ee 04 |... ..........| 00001560 0d 07 f8 42 dd 20 f2 6b 65 79 70 72 65 73 73 65 |...B. .keypresse| 00001570 64 28 77 69 6e 64 6f 77 25 2c 69 63 6f 6e 25 2c |d(window%,icon%,| 00001580 63 61 72 65 74 5f 78 25 2c 63 61 72 65 74 5f 79 |caret_x%,caret_y| 00001590 25 2c 63 61 72 65 74 5f 70 6f 73 25 2c 6b 65 79 |%,caret_pos%,key| 000015a0 25 29 0d 08 02 13 20 20 20 e7 20 6b 65 79 25 3d |%).... . key%=| 000015b0 26 31 42 20 8c 0d 08 0c 2e 20 20 20 20 20 20 c8 |&1B ..... .| 000015c0 99 20 22 57 53 57 69 6d 70 54 6f 6f 6c 73 5f 43 |. "WSWimpTools_C| 000015d0 6c 6f 73 65 57 69 6e 64 6f 77 22 2c 77 69 6e 64 |loseWindow",wind| 000015e0 6f 77 25 0d 08 16 08 20 20 20 cc 0d 08 20 16 20 |ow%.... ... . | 000015f0 20 20 20 20 20 c8 8e 20 77 69 6e 64 6f 77 25 20 | .. window% | 00001600 ca 0d 08 2a 16 20 20 20 20 20 20 20 20 20 c9 20 |...*. . | 00001610 5f 73 61 76 65 25 3a 0d 08 34 18 20 20 20 20 20 |_save%:..4. | 00001620 20 20 20 20 e7 20 6b 65 79 25 3d 31 33 20 8c 0d | . key%=13 ..| 00001630 08 3e 23 20 20 20 20 20 20 20 20 20 20 20 20 f2 |.># .| 00001640 71 75 69 63 6b 73 61 76 65 28 77 69 6e 64 6f 77 |quicksave(window| 00001650 25 29 0d 08 48 0e 20 20 20 20 20 20 20 20 20 cd |%)..H. .| 00001660 0d 08 52 0f 20 20 20 20 20 20 20 20 20 7f 3a 0d |..R. .:.| 00001670 08 5c 26 20 20 20 20 20 20 20 20 20 c8 99 20 22 |.\& .. "| 00001680 57 69 6d 70 5f 50 72 6f 63 65 73 73 4b 65 79 22 |Wimp_ProcessKey"| 00001690 2c 6b 65 79 25 0d 08 66 0a 20 20 20 20 20 cb 0d |,key%..f. ..| 000016a0 08 70 08 20 20 20 cd 0d 08 7a 05 e1 0d 08 84 04 |.p. ...z......| 000016b0 0d 08 8e 16 dd 20 f2 6d 65 6e 75 63 68 6f 69 63 |..... .menuchoic| 000016c0 65 28 70 62 25 29 0d 08 98 12 20 20 20 c8 8e 20 |e(pb%).... .. | 000016d0 5f 6d 65 6e 75 25 20 ca 0d 08 a2 1a 20 20 20 20 |_menu% ..... | 000016e0 20 20 c9 20 5f 69 63 6f 6e 62 61 72 6d 65 6e 75 | . _iconbarmenu| 000016f0 25 3a 0d 08 ac 13 20 20 20 20 20 20 c8 8e 20 21 |%:.... .. !| 00001700 70 62 25 20 ca 0d 08 b6 11 20 20 20 20 20 20 20 |pb% ..... | 00001710 20 20 c9 20 31 3a 0d 08 c0 17 20 20 20 20 20 20 | . 1:.... | 00001720 20 20 20 5f 64 6f 71 75 69 74 25 3d b9 0d 08 ca | _doquit%=....| 00001730 0b 20 20 20 20 20 20 cb 0d 08 d4 08 20 20 20 cb |. ..... .| 00001740 0d 08 de 05 e1 0d 08 e8 04 0d 08 f2 24 dd 20 f2 |............$. .| 00001750 63 6c 69 63 6b 5f 69 63 6f 6e 62 61 72 28 62 75 |click_iconbar(bu| 00001760 74 74 6f 6e 73 25 2c 69 63 6f 6e 25 29 0d 08 fc |ttons%,icon%)...| 00001770 14 20 20 20 c8 8e 20 62 75 74 74 6f 6e 73 25 20 |. .. buttons% | 00001780 ca 0d 09 06 0e 20 20 20 20 20 20 c9 20 32 3a 0d |..... . 2:.| 00001790 09 10 34 20 20 20 20 20 20 c8 99 20 22 57 53 57 |..4 .. "WSW| 000017a0 69 6d 70 54 6f 6f 6c 73 5f 49 63 6f 6e 42 61 72 |impTools_IconBar| 000017b0 4d 65 6e 75 22 2c 5f 69 63 6f 6e 62 61 72 6d 65 |Menu",_iconbarme| 000017c0 6e 75 25 0d 09 1a 1e 20 20 20 20 20 20 5f 6d 65 |nu%.... _me| 000017d0 6e 75 25 3d 5f 69 63 6f 6e 62 61 72 6d 65 6e 75 |nu%=_iconbarmenu| 000017e0 25 0d 09 24 08 20 20 20 cb 0d 09 2e 05 e1 0d 09 |%..$. ........| 000017f0 38 04 0d 09 42 21 dd 20 f2 63 6c 69 63 6b 5f 73 |8...B!. .click_s| 00001800 61 76 65 28 62 75 74 74 6f 6e 73 25 2c 69 63 6f |ave(buttons%,ico| 00001810 6e 25 29 0d 09 4c 14 20 20 20 c8 8e 20 62 75 74 |n%)..L. .. but| 00001820 74 6f 6e 73 25 20 ca 0d 09 56 10 20 20 20 20 20 |tons% ...V. | 00001830 20 c9 20 31 2c 34 3a 0d 09 60 28 20 20 20 20 20 | . 1,4:..`( | 00001840 20 e7 20 69 63 6f 6e 25 3d 30 20 8c 20 f2 71 75 | . icon%=0 . .qu| 00001850 69 63 6b 73 61 76 65 28 5f 73 61 76 65 25 29 0d |icksave(_save%).| 00001860 09 6a 14 20 20 20 20 20 20 c9 20 26 31 30 2c 26 |.j. . &10,&| 00001870 34 30 3a 0d 09 74 4a 20 20 20 20 20 20 e7 20 69 |40:..tJ . i| 00001880 63 6f 6e 25 3d 32 20 8c 20 c8 99 20 22 57 53 57 |con%=2 . .. "WSW| 00001890 69 6d 70 54 6f 6f 6c 73 5f 53 74 61 72 74 44 72 |impTools_StartDr| 000018a0 61 67 22 2c 5f 73 61 76 65 25 2c 32 2c 31 20 b8 |ag",_save%,2,1 .| 000018b0 20 64 72 61 67 61 73 70 72 69 74 65 25 0d 09 7e | dragasprite%..~| 000018c0 08 20 20 20 cb 0d 09 88 05 e1 0d 09 92 04 0d 09 |. ............| 000018d0 9c 10 dd 20 a4 61 6c 69 67 6e 28 61 24 29 0d 09 |... .align(a$)..| 000018e0 a6 1a 3d c0 61 24 2b c4 33 30 2c 22 20 22 29 2c |..=.a$+.30," "),| 000018f0 33 30 29 2b 22 3a 20 22 0d 09 b0 04 0d 09 ba 18 |30)+": "........| 00001900 dd 20 a4 67 65 74 5f 69 63 6f 6e 5f 74 65 78 74 |. .get_icon_text| 00001910 28 70 25 29 0d 09 c4 0e 20 20 20 ea 20 69 25 2c |(p%).... . i%,| 00001920 61 24 0d 09 ce 1c 20 20 20 c8 95 20 28 70 25 3f |a$.... .. (p%?| 00001930 69 25 29 3e 33 31 20 80 20 69 25 3c 31 33 0d 09 |i%)>31 . i%<13..| 00001940 d8 18 20 20 20 20 20 20 61 24 3d 61 24 2b bd 28 |.. a$=a$+.(| 00001950 70 25 3f 69 25 29 0d 09 e2 0f 20 20 20 20 20 20 |p%?i%).... | 00001960 69 25 2b 3d 31 0d 09 ec 08 20 20 20 ce 0d 09 f6 |i%+=1.... ....| 00001970 07 3d 61 24 0d 0a 00 04 0d 0a 0a 22 dd 20 f2 69 |.=a$.......". .i| 00001980 63 6f 6e 5f 74 65 78 74 28 66 25 2c 66 6c 61 67 |con_text(f%,flag| 00001990 73 25 2c 77 70 25 2c 70 25 29 0d 0a 14 0b 20 20 |s%,wp%,p%).... | 000019a0 20 ea 20 61 24 0d 0a 1e 1c 20 20 20 e7 20 28 66 | . a$.... . (f| 000019b0 6c 61 67 73 25 20 80 20 26 31 30 30 29 3d 30 20 |lags% . &100)=0 | 000019c0 8c 0d 0a 28 1a 20 20 20 20 20 20 e7 20 28 66 6c |...(. . (fl| 000019d0 61 67 73 25 20 80 20 32 29 20 8c 0d 0a 32 3a 20 |ags% . 2) ...2: | 000019e0 20 20 20 20 20 20 20 20 d5 23 66 25 2c a4 61 6c | .#f%,.al| 000019f0 69 67 6e 28 22 53 70 72 69 74 65 20 6e 61 6d 65 |ign("Sprite name| 00001a00 22 29 2b a4 67 65 74 5f 69 63 6f 6e 5f 74 65 78 |")+.get_icon_tex| 00001a10 74 28 70 25 29 0d 0a 3c 0b 20 20 20 20 20 20 cc |t(p%)..<. .| 00001a20 0d 0a 46 38 20 20 20 20 20 20 20 20 20 d5 23 66 |..F8 .#f| 00001a30 25 2c a4 61 6c 69 67 6e 28 22 49 63 6f 6e 20 74 |%,.align("Icon t| 00001a40 65 78 74 22 29 2b a4 67 65 74 5f 69 63 6f 6e 5f |ext")+.get_icon_| 00001a50 74 65 78 74 28 70 25 29 0d 0a 50 0b 20 20 20 20 |text(p%)..P. | 00001a60 20 20 cd 0d 0a 5a 08 20 20 20 cc 0d 0a 64 2f 20 | ...Z. ...d/ | 00001a70 20 20 20 20 20 c8 99 20 22 57 53 57 69 6d 70 54 | .. "WSWimpT| 00001a80 6f 6f 6c 73 5f 47 65 74 54 65 78 74 22 2c 77 70 |ools_GetText",wp| 00001a90 25 2b 21 70 25 20 b8 20 61 24 0d 0a 6e 1a 20 20 |%+!p% . a$..n. | 00001aa0 20 20 20 20 e7 20 28 66 6c 61 67 73 25 20 80 20 | . (flags% . | 00001ab0 32 29 20 8c 0d 0a 78 2a 20 20 20 20 20 20 20 20 |2) ...x* | 00001ac0 20 d5 23 66 25 2c a4 61 6c 69 67 6e 28 22 53 70 | .#f%,.align("Sp| 00001ad0 72 69 74 65 20 6e 61 6d 65 22 29 2b 61 24 0d 0a |rite name")+a$..| 00001ae0 82 0b 20 20 20 20 20 20 cc 0d 0a 8c 23 20 20 20 |.. ....# | 00001af0 20 20 20 20 20 20 d5 23 66 25 2c a4 61 6c 69 67 | .#f%,.alig| 00001b00 6e 28 22 54 65 78 74 22 29 2b 61 24 0d 0a 96 0b |n("Text")+a$....| 00001b10 20 20 20 20 20 20 cd 0d 0a a0 19 20 20 20 20 20 | ..... | 00001b20 20 e7 20 28 70 25 21 34 29 3c 3e 2d 31 20 20 8c | . (p%!4)<>-1 .| 00001b30 0d 0a aa 33 20 20 20 20 20 20 20 20 20 c8 99 20 |...3 .. | 00001b40 22 57 53 57 69 6d 70 54 6f 6f 6c 73 5f 47 65 74 |"WSWimpTools_Get| 00001b50 54 65 78 74 22 2c 77 70 25 2b 70 25 21 34 20 b8 |Text",wp%+p%!4 .| 00001b60 20 61 24 0d 0a b4 30 20 20 20 20 20 20 20 20 20 | a$...0 | 00001b70 d5 23 66 25 2c a4 61 6c 69 67 6e 28 22 56 61 6c |.#f%,.align("Val| 00001b80 69 64 61 74 69 6f 6e 20 73 74 72 69 6e 67 22 29 |idation string")| 00001b90 2b 61 24 0d 0a be 0b 20 20 20 20 20 20 cd 0d 0a |+a$.... ...| 00001ba0 c8 2c 20 20 20 20 20 20 d5 23 66 25 2c a4 61 6c |., .#f%,.al| 00001bb0 69 67 6e 28 22 42 75 66 66 65 72 20 73 69 7a 65 |ign("Buffer size| 00001bc0 22 29 2b c3 28 70 25 21 38 29 0d 0a d2 08 20 20 |")+.(p%!8).... | 00001bd0 20 cd 0d 0a dc 05 e1 0d 0a e6 04 0d 0a f0 30 dd | .............0.| 00001be0 20 f2 63 6f 6e 76 65 72 74 5f 74 65 6d 70 6c 61 | .convert_templa| 00001bf0 74 65 5f 66 69 6c 65 28 66 69 6c 65 6e 61 6d 65 |te_file(filename| 00001c00 24 2c 6f 75 74 66 69 6c 65 24 29 0d 0a fa 23 20 |$,outfile$)...# | 00001c10 20 20 ea 20 73 25 2c 70 25 2c 69 25 2c 6a 25 2c | . s%,p%,i%,j%,| 00001c20 6e 25 2c 77 70 25 2c 6e 69 25 2c 69 64 25 0d 0b |n%,wp%,ni%,id%..| 00001c30 04 18 20 20 20 c8 99 20 22 48 6f 75 72 67 6c 61 |.. .. "Hourgla| 00001c40 73 73 5f 4f 6e 22 0d 0b 0e 28 20 20 20 c8 99 20 |ss_On"...( .. | 00001c50 22 4f 53 5f 46 69 6c 65 22 2c 35 2c 66 69 6c 65 |"OS_File",5,file| 00001c60 6e 61 6d 65 24 20 b8 20 2c 2c 2c 2c 73 25 0d 0b |name$ . ,,,,s%..| 00001c70 18 17 20 20 20 f2 65 78 74 77 69 6d 70 73 6c 6f |.. .extwimpslo| 00001c80 74 28 73 25 29 0d 0b 22 18 20 20 20 74 65 6d 70 |t(s%)..". temp| 00001c90 6c 61 74 65 73 25 3d 5f 68 65 61 70 25 0d 0b 2c |lates%=_heap%..,| 00001ca0 2c 20 20 20 c8 99 20 22 4f 53 5f 46 69 6c 65 22 |, .. "OS_File"| 00001cb0 2c 32 35 35 2c 66 69 6c 65 6e 61 6d 65 24 2c 74 |,255,filename$,t| 00001cc0 65 6d 70 6c 61 74 65 73 25 0d 0b 36 17 20 20 20 |emplates%..6. | 00001cd0 70 25 3d 74 65 6d 70 6c 61 74 65 73 25 2b 31 36 |p%=templates%+16| 00001ce0 0d 0b 40 17 20 20 20 6e 6f 6f 66 74 65 6d 70 6c |..@. nooftempl| 00001cf0 61 74 65 73 25 3d 30 0d 0b 4a 14 20 20 20 c8 95 |ates%=0..J. ..| 00001d00 20 28 70 25 21 69 25 29 3c 3e 30 0d 0b 54 10 20 | (p%!i%)<>0..T. | 00001d10 20 20 20 20 20 69 25 2b 3d 32 34 0d 0b 5e 1b 20 | i%+=24..^. | 00001d20 20 20 20 20 20 6e 6f 6f 66 74 65 6d 70 6c 61 74 | nooftemplat| 00001d30 65 73 25 2b 3d 31 0d 0b 68 08 20 20 20 ce 0d 0b |es%+=1..h. ...| 00001d40 72 15 20 20 20 66 25 3d ae 28 6f 75 74 66 69 6c |r. f%=.(outfil| 00001d50 65 24 29 0d 0b 7c 2b 20 20 20 d5 23 66 25 2c 22 |e$)..|+ .#f%,"| 00001d60 43 6f 6e 74 65 6e 74 73 20 6f 66 20 66 69 6c 65 |Contents of file| 00001d70 20 3a 20 22 2b 66 69 6c 65 6e 61 6d 65 24 0d 0b | : "+filename$..| 00001d80 86 0e 20 20 20 d5 23 66 25 2c 22 22 0d 0b 90 14 |.. .#f%,""....| 00001d90 20 20 20 d5 23 66 25 2c c4 37 37 2c 22 2d 22 29 | .#f%,.77,"-")| 00001da0 0d 0b 9a 0e 20 20 20 d5 23 66 25 2c 22 22 0d 0b |.... .#f%,""..| 00001db0 a4 1b 20 20 20 e7 20 6e 6f 6f 66 74 65 6d 70 6c |.. . nooftempl| 00001dc0 61 74 65 73 25 3d 31 20 8c 0d 0b ae 3b 20 20 20 |ates%=1 ....; | 00001dd0 20 20 20 d5 23 66 25 2c a4 61 6c 69 67 6e 28 22 | .#f%,.align("| 00001de0 43 6f 6e 74 61 69 6e 73 22 29 2b c3 6e 6f 6f 66 |Contains")+.noof| 00001df0 74 65 6d 70 6c 61 74 65 73 25 2b 22 20 77 69 6e |templates%+" win| 00001e00 64 6f 77 22 0d 0b b8 08 20 20 20 cc 0d 0b c2 3c |dow".... ....<| 00001e10 20 20 20 20 20 20 d5 23 66 25 2c a4 61 6c 69 67 | .#f%,.alig| 00001e20 6e 28 22 43 6f 6e 74 61 69 6e 73 22 29 2b c3 6e |n("Contains")+.n| 00001e30 6f 6f 66 74 65 6d 70 6c 61 74 65 73 25 2b 22 20 |ooftemplates%+" | 00001e40 77 69 6e 64 6f 77 73 22 0d 0b cc 08 20 20 20 cd |windows".... .| 00001e50 0d 0b d6 20 20 20 20 e3 20 69 25 3d 30 20 b8 20 |... . i%=0 . | 00001e60 6e 6f 6f 66 74 65 6d 70 6c 61 74 65 73 25 2d 31 |nooftemplates%-1| 00001e70 0d 0b e0 12 20 20 20 20 20 20 e7 20 69 25 3d 30 |.... . i%=0| 00001e80 20 8c 0d 0b ea 37 20 20 20 20 20 20 20 20 20 d5 | ....7 .| 00001e90 23 66 25 2c a4 61 6c 69 67 6e 28 22 57 69 6e 64 |#f%,.align("Wind| 00001ea0 6f 77 20 6e 61 6d 65 73 22 29 2b 24 28 70 25 2b |ow names")+$(p%+| 00001eb0 31 32 2b 69 25 2a 32 34 29 0d 0b f4 0b 20 20 20 |12+i%*24).... | 00001ec0 20 20 20 cc 0d 0b fe 2e 20 20 20 20 20 20 20 20 | ..... | 00001ed0 20 d5 23 66 25 2c c4 33 30 2c 22 20 22 29 2b 22 | .#f%,.30," ")+"| 00001ee0 3a 20 22 2b 24 28 70 25 2b 31 32 2b 69 25 2a 32 |: "+$(p%+12+i%*2| 00001ef0 34 29 0d 0c 08 0b 20 20 20 20 20 20 cd 0d 0c 12 |4).... ....| 00001f00 0b 20 20 20 ed 20 69 25 0d 0c 1c 20 20 20 20 e3 |. . i%... .| 00001f10 20 69 25 3d 30 20 b8 20 6e 6f 6f 66 74 65 6d 70 | i%=0 . nooftemp| 00001f20 6c 61 74 65 73 25 2d 31 0d 0c 26 11 20 20 20 20 |lates%-1..&. | 00001f30 20 20 d5 23 66 25 2c 22 22 0d 0c 30 17 20 20 20 | .#f%,""..0. | 00001f40 20 20 20 d5 23 66 25 2c c4 37 37 2c 22 2d 22 29 | .#f%,.77,"-")| 00001f50 0d 0c 3a 11 20 20 20 20 20 20 d5 23 66 25 2c 22 |..:. .#f%,"| 00001f60 22 0d 0c 44 37 20 20 20 20 20 20 d5 23 66 25 2c |"..D7 .#f%,| 00001f70 a4 61 6c 69 67 6e 28 22 57 69 6e 64 6f 77 20 69 |.align("Window i| 00001f80 6e 66 6f 20 66 6f 72 22 29 2b 24 28 70 25 2b 31 |nfo for")+$(p%+1| 00001f90 32 2b 69 25 2a 32 34 29 0d 0c 4e 11 20 20 20 20 |2+i%*24)..N. | 00001fa0 20 20 d5 23 66 25 2c 22 22 0d 0c 58 23 20 20 20 | .#f%,""..X# | 00001fb0 20 20 20 77 70 25 3d 74 65 6d 70 6c 61 74 65 73 | wp%=templates| 00001fc0 25 2b 70 25 21 28 69 25 2a 32 34 29 0d 0c 62 35 |%+p%!(i%*24)..b5| 00001fd0 20 20 20 20 20 20 d5 23 66 25 2c a4 61 6c 69 67 | .#f%,.alig| 00001fe0 6e 28 22 56 69 73 69 62 6c 65 20 61 72 65 61 20 |n("Visible area | 00001ff0 2d 20 6d 69 6e 20 58 22 29 2b c3 28 21 77 70 25 |- min X")+.(!wp%| 00002000 29 0d 0c 6c 36 20 20 20 20 20 20 d5 23 66 25 2c |)..l6 .#f%,| 00002010 a4 61 6c 69 67 6e 28 22 56 69 73 69 62 6c 65 20 |.align("Visible | 00002020 61 72 65 61 20 2d 20 6d 69 6e 20 59 22 29 2b c3 |area - min Y")+.| 00002030 28 77 70 25 21 34 29 0d 0c 76 36 20 20 20 20 20 |(wp%!4)..v6 | 00002040 20 d5 23 66 25 2c a4 61 6c 69 67 6e 28 22 56 69 | .#f%,.align("Vi| 00002050 73 69 62 6c 65 20 61 72 65 61 20 2d 20 6d 61 78 |sible area - max| 00002060 20 58 22 29 2b c3 28 77 70 25 21 38 29 0d 0c 80 | X")+.(wp%!8)...| 00002070 37 20 20 20 20 20 20 d5 23 66 25 2c a4 61 6c 69 |7 .#f%,.ali| 00002080 67 6e 28 22 56 69 73 69 62 6c 65 20 61 72 65 61 |gn("Visible area| 00002090 20 2d 20 6d 61 78 20 59 22 29 2b c3 28 77 70 25 | - max Y")+.(wp%| 000020a0 21 31 32 29 0d 0c 8a 32 20 20 20 20 20 20 d5 23 |!12)...2 .#| 000020b0 66 25 2c a4 61 6c 69 67 6e 28 22 53 63 72 6f 6c |f%,.align("Scrol| 000020c0 6c 20 58 20 6f 66 66 73 65 74 22 29 2b c3 28 77 |l X offset")+.(w| 000020d0 70 25 21 31 36 29 0d 0c 94 32 20 20 20 20 20 20 |p%!16)...2 | 000020e0 d5 23 66 25 2c a4 61 6c 69 67 6e 28 22 53 63 72 |.#f%,.align("Scr| 000020f0 6f 6c 6c 20 59 20 6f 66 66 73 65 74 22 29 2b c3 |oll Y offset")+.| 00002100 28 77 70 25 21 32 30 29 0d 0c 9e 35 20 20 20 20 |(wp%!20)...5 | 00002110 20 20 d5 23 66 25 2c a4 61 6c 69 67 6e 28 22 4f | .#f%,.align("O| 00002120 70 65 6e 20 62 65 68 69 6e 64 20 77 69 6e 64 6f |pen behind windo| 00002130 77 22 29 2b c3 28 77 70 25 21 32 34 29 0d 0c a8 |w")+.(wp%!24)...| 00002140 34 20 20 20 20 20 20 d5 23 66 25 2c a4 61 6c 69 |4 .#f%,.ali| 00002150 67 6e 28 22 57 69 6e 64 6f 77 20 66 6c 61 67 73 |gn("Window flags| 00002160 22 29 2b 22 26 22 2b c3 7e 28 77 70 25 21 32 38 |")+"&"+.~(wp%!28| 00002170 29 0d 0c b2 18 20 20 20 20 20 20 e7 20 77 70 25 |).... . wp%| 00002180 3f 33 32 3d 32 35 35 20 8c 0d 0c bc 49 20 20 20 |?32=255 ....I | 00002190 20 20 20 20 20 20 d5 23 66 25 2c a4 61 6c 69 67 | .#f%,.alig| 000021a0 6e 28 22 54 69 74 6c 65 20 66 6f 72 65 67 72 6f |n("Title foregro| 000021b0 75 6e 64 20 63 6f 6c 6f 75 72 22 29 2b 22 57 69 |und colour")+"Wi| 000021c0 6e 64 6f 77 20 68 61 73 20 6e 6f 20 66 72 61 6d |ndow has no fram| 000021d0 65 22 0d 0c c6 0b 20 20 20 20 20 20 cc 0d 0c d0 |e".... ....| 000021e0 3d 20 20 20 20 20 20 20 20 20 d5 23 66 25 2c a4 |= .#f%,.| 000021f0 61 6c 69 67 6e 28 22 54 69 74 6c 65 20 66 6f 72 |align("Title for| 00002200 65 67 72 6f 75 6e 64 20 63 6f 6c 6f 75 72 22 29 |eground colour")| 00002210 2b c3 28 77 70 25 3f 33 32 29 0d 0c da 0b 20 20 |+.(wp%?32).... | 00002220 20 20 20 20 cd 0d 0c e4 3a 20 20 20 20 20 20 d5 | ....: .| 00002230 23 66 25 2c a4 61 6c 69 67 6e 28 22 54 69 74 6c |#f%,.align("Titl| 00002240 65 20 62 61 63 6b 67 72 6f 75 6e 64 20 63 6f 6c |e background col| 00002250 6f 75 72 22 29 2b c3 28 77 70 25 3f 33 33 29 0d |our")+.(wp%?33).| 00002260 0c ee 3e 20 20 20 20 20 20 d5 23 66 25 2c a4 61 |..> .#f%,.a| 00002270 6c 69 67 6e 28 22 57 6f 72 6b 20 61 72 65 61 20 |lign("Work area | 00002280 66 6f 72 65 67 72 6f 75 6e 64 20 63 6f 6c 6f 75 |foreground colou| 00002290 72 22 29 2b c3 28 77 70 25 3f 33 34 29 0d 0c f8 |r")+.(wp%?34)...| 000022a0 18 20 20 20 20 20 20 e7 20 77 70 25 3f 33 35 3d |. . wp%?35=| 000022b0 32 35 35 20 8c 0d 0d 02 52 20 20 20 20 20 20 20 |255 ....R | 000022c0 20 20 d5 23 66 25 2c a4 61 6c 69 67 6e 28 22 57 | .#f%,.align("W| 000022d0 6f 72 6b 20 61 72 65 61 20 62 61 63 6b 67 72 6f |ork area backgro| 000022e0 75 6e 64 20 63 6f 6c 6f 75 72 22 29 2b 22 57 6f |und colour")+"Wo| 000022f0 72 6b 20 61 72 65 61 20 69 73 20 74 72 61 6e 73 |rk area is trans| 00002300 70 61 72 65 6e 74 22 0d 0d 0c 0b 20 20 20 20 20 |parent".... | 00002310 20 cc 0d 0d 16 41 20 20 20 20 20 20 20 20 20 d5 | ....A .| 00002320 23 66 25 2c a4 61 6c 69 67 6e 28 22 57 6f 72 6b |#f%,.align("Work| 00002330 20 61 72 65 61 20 62 61 63 6b 67 72 6f 75 6e 64 | area background| 00002340 20 63 6f 6c 6f 75 72 22 29 2b c3 28 77 70 25 3f | colour")+.(wp%?| 00002350 33 35 29 0d 0d 20 0b 20 20 20 20 20 20 cd 0d 0d |35).. . ...| 00002360 2a 3a 20 20 20 20 20 20 d5 23 66 25 2c a4 61 6c |*: .#f%,.al| 00002370 69 67 6e 28 22 53 63 72 6f 6c 6c 20 62 61 72 20 |ign("Scroll bar | 00002380 6f 75 74 65 72 20 63 6f 6c 6f 75 72 22 29 2b c3 |outer colour")+.| 00002390 28 77 70 25 3f 33 36 29 0d 0d 34 3a 20 20 20 20 |(wp%?36)..4: | 000023a0 20 20 d5 23 66 25 2c a4 61 6c 69 67 6e 28 22 53 | .#f%,.align("S| 000023b0 63 72 6f 6c 6c 20 62 61 72 20 69 6e 6e 65 72 20 |croll bar inner | 000023c0 63 6f 6c 6f 75 72 22 29 2b c3 28 77 70 25 3f 33 |colour")+.(wp%?3| 000023d0 37 29 0d 0d 3e 39 20 20 20 20 20 20 d5 23 66 25 |7)..>9 .#f%| 000023e0 2c a4 61 6c 69 67 6e 28 22 54 69 74 6c 65 20 68 |,.align("Title h| 000023f0 69 67 68 6c 69 67 68 74 20 63 6f 6c 6f 75 72 22 |ighlight colour"| 00002400 29 2b c3 28 77 70 25 3f 33 38 29 0d 0d 48 37 20 |)+.(wp%?38)..H7 | 00002410 20 20 20 20 20 d5 23 66 25 2c a4 61 6c 69 67 6e | .#f%,.align| 00002420 28 22 56 69 73 69 62 6c 65 20 61 72 65 61 20 2d |("Visible area -| 00002430 20 6d 69 6e 20 58 22 29 2b c3 28 77 70 25 21 34 | min X")+.(wp%!4| 00002440 30 29 0d 0d 52 37 20 20 20 20 20 20 d5 23 66 25 |0)..R7 .#f%| 00002450 2c a4 61 6c 69 67 6e 28 22 56 69 73 69 62 6c 65 |,.align("Visible| 00002460 20 61 72 65 61 20 2d 20 6d 69 6e 20 59 22 29 2b | area - min Y")+| 00002470 c3 28 77 70 25 21 34 34 29 0d 0d 5c 37 20 20 20 |.(wp%!44)..\7 | 00002480 20 20 20 d5 23 66 25 2c a4 61 6c 69 67 6e 28 22 | .#f%,.align("| 00002490 56 69 73 69 62 6c 65 20 61 72 65 61 20 2d 20 6d |Visible area - m| 000024a0 61 78 20 58 22 29 2b c3 28 77 70 25 21 34 38 29 |ax X")+.(wp%!48)| 000024b0 0d 0d 66 37 20 20 20 20 20 20 d5 23 66 25 2c a4 |..f7 .#f%,.| 000024c0 61 6c 69 67 6e 28 22 56 69 73 69 62 6c 65 20 61 |align("Visible a| 000024d0 72 65 61 20 2d 20 6d 61 78 20 59 22 29 2b c3 28 |rea - max Y")+.(| 000024e0 77 70 25 21 35 32 29 0d 0d 70 37 20 20 20 20 20 |wp%!52)..p7 | 000024f0 20 d5 23 66 25 2c a4 61 6c 69 67 6e 28 22 54 69 | .#f%,.align("Ti| 00002500 74 6c 65 20 62 61 72 20 66 6c 61 67 73 22 29 2b |tle bar flags")+| 00002510 22 26 22 2b c3 7e 28 77 70 25 21 35 36 29 0d 0d |"&"+.~(wp%!56)..| 00002520 7a 37 20 20 20 20 20 20 d5 23 66 25 2c a4 61 6c |z7 .#f%,.al| 00002530 69 67 6e 28 22 57 6f 72 6b 20 61 72 65 61 20 66 |ign("Work area f| 00002540 6c 61 67 73 22 29 2b 22 26 22 2b c3 7e 28 77 70 |lags")+"&"+.~(wp| 00002550 25 21 36 30 29 0d 0d 84 36 20 20 20 20 20 20 d5 |%!60)...6 .| 00002560 23 66 25 2c a4 61 6c 69 67 6e 28 22 53 70 72 69 |#f%,.align("Spri| 00002570 74 65 20 61 72 65 61 20 70 6f 69 6e 74 65 72 22 |te area pointer"| 00002580 29 2b c3 28 77 70 25 21 36 34 29 0d 0d 8e 49 20 |)+.(wp%!64)...I | 00002590 20 20 20 20 20 d5 23 66 25 2c a4 61 6c 69 67 6e | .#f%,.align| 000025a0 28 22 4d 69 6e 69 6d 75 6d 20 77 69 64 74 68 20 |("Minimum width | 000025b0 6f 66 20 77 69 6e 64 6f 77 22 29 2b c3 28 32 35 |of window")+.(25| 000025c0 36 2a 28 77 70 25 3f 36 39 29 2b 28 77 70 25 3f |6*(wp%?69)+(wp%?| 000025d0 36 38 29 29 0d 0d 98 4a 20 20 20 20 20 20 d5 23 |68))...J .#| 000025e0 66 25 2c a4 61 6c 69 67 6e 28 22 4d 69 6e 69 6d |f%,.align("Minim| 000025f0 75 6d 20 68 65 69 67 68 74 20 6f 66 20 77 69 6e |um height of win| 00002600 64 6f 77 22 29 2b c3 28 32 35 36 2a 28 77 70 25 |dow")+.(256*(wp%| 00002610 3f 37 31 29 2b 28 77 70 25 3f 37 30 29 29 0d 0d |?71)+(wp%?70))..| 00002620 a2 2a 20 20 20 20 20 20 f2 69 63 6f 6e 5f 74 65 |.* .icon_te| 00002630 78 74 28 66 25 2c 77 70 25 21 35 36 2c 77 70 25 |xt(f%,wp%!56,wp%| 00002640 2c 77 70 25 2b 37 32 29 0d 0d ac 32 20 20 20 20 |,wp%+72)...2 | 00002650 20 20 d5 23 66 25 2c a4 61 6c 69 67 6e 28 22 4e | .#f%,.align("N| 00002660 75 6d 62 65 72 20 6f 66 20 69 63 6f 6e 73 22 29 |umber of icons")| 00002670 2b c3 28 77 70 25 21 38 34 29 0d 0d b6 11 20 20 |+.(wp%!84).... | 00002680 20 20 20 20 d5 23 66 25 2c 22 22 0d 0d c0 14 20 | .#f%,"".... | 00002690 20 20 20 20 20 6e 69 25 3d 77 70 25 21 38 34 0d | ni%=wp%!84.| 000026a0 0d ca 14 20 20 20 20 20 20 69 64 25 3d 77 70 25 |... id%=wp%| 000026b0 2b 38 38 0d 0d d4 13 20 20 20 20 20 20 e7 20 6e |+88.... . n| 000026c0 69 25 3e 30 20 8c 0d 0d de 1b 20 20 20 20 20 20 |i%>0 ..... | 000026d0 20 20 20 e3 20 6a 25 3d 30 20 b8 20 6e 69 25 2d | . j%=0 . ni%-| 000026e0 31 0d 0d e8 2e 20 20 20 20 20 20 20 20 20 20 20 |1.... | 000026f0 20 d5 23 66 25 2c a4 61 6c 69 67 6e 28 22 49 63 | .#f%,.align("Ic| 00002700 6f 6e 20 6e 75 6d 62 65 72 22 29 2b c3 6a 25 0d |on number")+.j%.| 00002710 0d f2 3b 20 20 20 20 20 20 20 20 20 20 20 20 d5 |..; .| 00002720 23 66 25 2c a4 61 6c 69 67 6e 28 22 4d 69 6e 69 |#f%,.align("Mini| 00002730 6d 75 6d 20 58 20 63 6f 6f 72 64 69 6e 61 74 65 |mum X coordinate| 00002740 22 29 2b c3 28 21 69 64 25 29 0d 0d fc 3c 20 20 |")+.(!id%)...< | 00002750 20 20 20 20 20 20 20 20 20 20 d5 23 66 25 2c a4 | .#f%,.| 00002760 61 6c 69 67 6e 28 22 4d 69 6e 69 6d 75 6d 20 59 |align("Minimum Y| 00002770 20 63 6f 6f 72 64 69 6e 61 74 65 22 29 2b c3 28 | coordinate")+.(| 00002780 69 64 25 21 34 29 0d 0e 06 3c 20 20 20 20 20 20 |id%!4)...< | 00002790 20 20 20 20 20 20 d5 23 66 25 2c a4 61 6c 69 67 | .#f%,.alig| 000027a0 6e 28 22 4d 61 78 69 6d 75 6d 20 58 20 63 6f 6f |n("Maximum X coo| 000027b0 72 64 69 6e 61 74 65 22 29 2b c3 28 69 64 25 21 |rdinate")+.(id%!| 000027c0 38 29 0d 0e 10 3d 20 20 20 20 20 20 20 20 20 20 |8)...= | 000027d0 20 20 d5 23 66 25 2c a4 61 6c 69 67 6e 28 22 4d | .#f%,.align("M| 000027e0 61 78 69 6d 75 6d 20 59 20 63 6f 6f 72 64 69 6e |aximum Y coordin| 000027f0 61 74 65 22 29 2b c3 28 69 64 25 21 31 32 29 0d |ate")+.(id%!12).| 00002800 0e 1a 38 20 20 20 20 20 20 20 20 20 20 20 20 d5 |..8 .| 00002810 23 66 25 2c a4 61 6c 69 67 6e 28 22 49 63 6f 6e |#f%,.align("Icon| 00002820 20 66 6c 61 67 73 22 29 2b 22 26 22 2b c3 7e 28 | flags")+"&"+.~(| 00002830 69 64 25 21 31 36 29 0d 0e 24 30 20 20 20 20 20 |id%!16)..$0 | 00002840 20 20 20 20 20 20 20 f2 69 63 6f 6e 5f 74 65 78 | .icon_tex| 00002850 74 28 66 25 2c 69 64 25 21 31 36 2c 77 70 25 2c |t(f%,id%!16,wp%,| 00002860 69 64 25 2b 32 30 29 0d 0e 2e 17 20 20 20 20 20 |id%+20).... | 00002870 20 20 20 20 20 20 20 d5 23 66 25 2c 22 22 0d 0e | .#f%,""..| 00002880 38 17 20 20 20 20 20 20 20 20 20 20 20 20 69 64 |8. id| 00002890 25 2b 3d 33 32 0d 0e 42 11 20 20 20 20 20 20 20 |%+=32..B. | 000028a0 20 20 ed 20 6a 25 0d 0e 4c 0b 20 20 20 20 20 20 | . j%..L. | 000028b0 cd 0d 0e 56 0b 20 20 20 ed 20 69 25 0d 0e 60 0b |...V. . i%..`.| 000028c0 20 20 20 d9 23 66 25 0d 0e 6a 19 20 20 20 c8 99 | .#f%..j. ..| 000028d0 20 22 48 6f 75 72 67 6c 61 73 73 5f 4f 66 66 22 | "Hourglass_Off"| 000028e0 0d 0e 74 24 20 20 20 c8 99 20 22 4f 53 5f 46 69 |..t$ .. "OS_Fi| 000028f0 6c 65 22 2c 31 38 2c 6f 75 74 66 69 6c 65 24 2c |le",18,outfile$,| 00002900 26 46 46 46 0d 0e 7e 26 20 20 20 c8 99 20 22 57 |&FFF..~& .. "W| 00002910 69 6d 70 5f 53 6c 6f 74 53 69 7a 65 22 2c 73 6c |imp_SlotSize",sl| 00002920 6f 74 73 69 7a 65 25 2c 2d 31 0d 0e 88 05 e1 0d |otsize%,-1......| 00002930 ff |.| 00002931