Home » Archimedes archive » Archimedes World » AW-1993-06.adf » AWJune93 » !AWJune93/Goodies/Budget/!Budget/!RunImage

!AWJune93/Goodies/Budget/!Budget/!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 » Archimedes World » AW-1993-06.adf » AWJune93
Filename: !AWJune93/Goodies/Budget/!Budget/!RunImage
Read OK:
File size: 61BB bytes
Load address: 0000
Exec address: 0000
File contents
   10REM>!RunImage
   20
   30PROCGet_commandlinefile
   40PROCWimp_Initialise
   50PROCSet_Initial_Variables
   60PROCCreate_Windows("<Budget$Dir>.Templates")
   70PROCBar_Icon
   80ON ERROR PROCerror
   90PROCWimp_Poll
  100PROCClose_Down
  110END
  120:
  130DEF PROCGet_commandlinefile
  140SYS "OS_GetEnv" TO command$
  150p=INSTR(command$,"""",INSTR(command$,"""")+1)
  160command$=MID$(command$,p+1)
  170WHILE LEFT$(command$,1)=" ":command$ = MID$(command$,2):ENDWHILE
  180ENDPROC
  190:
  200DEF PROCWimp_Initialise
  210DIM wimp% 1024
  220$wimp%="TASK"
  230SYS "Wimp_Initialise",200,!wimp%,"Budget" TO ,task%
  240ENDPROC
  250:
  260DEF PROCSet_Initial_Variables
  270out_ptr%  =0  :in_ptr%  = 0  :out%   = 0  :in%     =1  :out_ptr% =0
  280maintime% =0  :entries% =20  :items% =50  :in_ptr% =0  :red%=11
  290i_sel%=FALSE:b_sel%=FALSE    :black% = 7  :windowtype%=out%
  300inout_open%=FALSE:break_open%=FALSE:version$="1.01 (6 Mar 93)"
  310fin%          =FALSE:template_mem%=2300    :filetype%         =&00A
  320DIM template_store% template_mem%,menu% 512,p% 255
  330currentfile$="Budget":iptr%=template_store%:iend%=iptr%+template_mem%
  340DIM time$(5)
  350DIM bf%(entries%)                    :REM breakdown option flag
  360DIM oh$(entries%)                    :REM Outgoings individual headings
  370DIM oa%(entries%)                    :REM Outgoings individual amount
  380DIM ot%(entries%)                    :REM Outgoings individual timescale
  390DIM ba%(entries%,items%)             :REM Outgoings breakdown amount
  400DIM bi$(entries%,items%)             :REM Outgoings breakdown items
  410DIM brk_ptr%(entries%)               :REM Outgoings breakdown item pointer
  420DIM oya%(entries%)                   :REM Outgoings individual year amount
  430DIM ih$(entries%)                    :REM Income individual title
  440DIM ia%(entries%)                    :REM Income individual amount
  450DIM it%(entries%)                    :REM Income individual timescale
  460DIM iya%(entries%)                   :REM Income individual year amount
  470time$()="Weekly","Fortnightly","Fourweekly","Monthly","Quarterly","Yearly"
  480bf%()=FALSE:breaktitle$="Breakdown of "
  490@%=&20209
  500ENDPROC
  510:
  520DEF PROCCreate_Windows(file$)
  530SYS "Wimp_OpenTemplate",,file$
  540info%=FNCreate_Window("progInfo")
  550main%=FNCreate_Window("Main")
  560inout%=FNCreate_Window("inout")
  570break%=FNCreate_Window("out_break")
  580pane%=FNCreate_Window("pane")
  590save%=FNCreate_Window("save")
  600SYS "Wimp_CloseTemplate"
  610PROCPut_Icon_Text(info%,4,version$):PROCPut_Icon_Text(save%,2,currentfile$)
  620PROCWindow_To_Top(main%):PROCPut_Caret(main%,11,0)
  630IF command$<>"" PROCLoadfile(command$,filetype%):PROCOpen_Window(inout%):windowtype%=out%:PROCUpdate
  640ENDPROC
  650:
  660DEF PROCUpdate_inout
  670CASE windowtype% OF
  680  WHEN out%:
  690          PROCWindowTitle(inout%,"OUTGOINGS")
  700          PROCPut_Icon_Text(inout%,5,time$(ot%(FNPointer)))
  710  WHEN in%
  720          PROCWindowTitle(inout%,"INCOME")
  730          PROCPut_Icon_Text(inout%,5,time$(it%(FNPointer)))
  740ENDCASE
  750IF NOT i_sel% THEN
  760  PROCPut_Icon_Text(inout%,1,""):PROCPut_Icon_Text(inout%,3,"")
  770ENDIF
  780PROCPut_Caret(inout%,1,LENFNIconText(inout%,1))
  790PROCForce_Draw(inout%)
  800ENDPROC
  810:
  820DEF PROCUpdate_break
  830PROCWindowTitle(break%,breaktitle$+oh$(FNPointer))
  840IF brk_ptr%(FNPointer)>10 y_break%=-(brk_ptr%(FNPointer)*36+250) ELSE y_break%=-750
  850wimp%!0=0:wimp%!4=y_break%:wimp%!8=648:wimp%!12=0
  860SYS "Wimp_SetExtent",break%,wimp%
  870PROCPut_Icon_Text(pane%,0,time$(ot%(FNPointer)))
  880IF NOT b_sel% PROCPut_Icon_Text(pane%,2,""):PROCPut_Icon_Text(pane%,6,"")
  890PROCPut_Caret(pane%,2,LENFNIconText(pane%,2))
  900PROCForce_Draw(pane%):PROCForce_Draw(break%)
  910ENDPROC
  920:
  930DEF PROCUpdate_main
  940LOCAL loop%
  950display%=FNtime(maintime%)
  960FOR loop%=0TOout_ptr%:oya%(loop%)=oa%(loop%)*FNtime(ot%(loop%)):NEXT
  970FOR loop%=0TOin_ptr%:iya%(loop%)=ia%(loop%)*FNtime(it%(loop%)):NEXT
  980tot_out%=SUMoya%():tot_in%=SUMiya%()
  990intot%=tot_in% DIV display%:outtot%=tot_out% DIV display%:diff%=intot%-outtot%
 1000IF outtot%>0 PROCPut_Icon_Text(main%,2,FNDecimal(outtot%)) ELSE PROCPut_Icon_Text(main%,2,"")
 1010IF intot%>0 PROCPut_Icon_Text(main%,3,FNDecimal(intot%)) ELSE PROCPut_Icon_Text(main%,3,"")
 1020IF intot%-outtot%<0 col%=red% ELSE col%=black%
 1030PROCChange_colour(col%)
 1040IF outtot%-intot%<>0 PROCPut_Icon_Text(main%,6,FNDecimal(diff%)) ELSE PROCPut_Icon_Text(main%,6,"")
 1050PROCPut_Icon_Text(main%,9,time$(maintime%)):PROCForce_Draw(main%)
 1060ENDPROC
 1070:
 1080DEFPROCDraw_inout(x_origin%,y_origin%)
 1090LOCAL line%,item%
 1100line%=36
 1110VDU5
 1120CASE windowtype% OF
 1130  WHEN out%
 1140  FOR item%=0TOout_ptr%-1
 1160    MOVE x_origin%+50,y_origin%-230-(item%*line%)
 1170    PRINT;oh$(item%)
 1180    MOVE x_origin%+240,y_origin%-230-(item%*line%)
 1190    IF oa%(item%)>0 PRINT oa%(item%)/100
 1200    MOVE x_origin%+420,y_origin%-230-(item%*line%)
 1210    IF out_ptr%<>0 THEN
 1220      IF bf%(item%) THEN
 1230        PRINT;"*  "+time$(ot%(item%))
 1240      ELSE
 1250        PRINT;"   "+time$(ot%(item%))
 1260      ENDIF
 1270    ENDIF
 1280  NEXT
 1290  WHEN in%
 1300    FOR item%=0TOin_ptr%-1
 1310    MOVE x_origin%+50,y_origin%-230-(item%*line%)
 1320    PRINT;ih$(item%)
 1330    MOVE x_origin%+240,y_origin%-230-(item%*line%)
 1340    IF ia%(item%)>0 PRINT ia%(item%)/100
 1350    MOVE x_origin%+468,y_origin%-230-(item%*line%)
 1360    IF in_ptr% <>0 PRINT;time$(it%(item%))
 1370    NEXT
 1380
 1390ENDCASE
 1400ENDPROC
 1410:
 1420DEF PROCDraw_break(x_origin%,y_origin%)
 1430LOCAL line%,item%
 1440line%=36
 1450VDU5
 1460FOR item%=0TObrk_ptr%(FNPointer)-1
 1480MOVE x_origin%+50,y_origin%-230-(item%*line%)
 1490PRINT;bi$(FNPointer,item%)
 1510MOVE x_origin%+450,y_origin%-230-(item%*line%)
 1520IF ba%(FNPointer,item%)>0 PRINT ba%(FNPointer,item%)/100
 1530NEXT
 1540ENDPROC
 1550:
 1560DEF PROCSelect_break(y_pos%)
 1570IF NOT FNselect(y_pos%) ENDPROC
 1580b_sel%=TRUE:b_select%=FNselect_pos(y_pos%)
 1590PROCPut_Icon_Text(pane%,2,bi$(FNPointer,b_select%))
 1600PROCPut_Icon_Text(pane%,6,FNDecimal(ba%(FNPointer,b_select%)))
 1610PROCUpdate_break
 1620ENDPROC
 1630:
 1640DEF PROCSelect_inout(y_pos%)
 1650IF NOT FNselect(y_pos%) ENDPROC
 1660i_sel%=TRUE:select%=FNselect_pos(y_pos%)
 1670CASE windowtype% OF
 1680  WHEN out%
 1690          IF NOT bf%(select%) THEN
 1700            PROCPut_Icon_Text(inout%,1,oh$(select%))
 1710            PROCPut_Icon_Text(inout%,3,FNDecimal(oa%(select%)))
 1720          ELSE
 1730            PROCClose_All_Windows:PROCOpen_Window(break%)
 1740            PROCWindowTitle(break%,breaktitle$+oh$(select%))
 1750            PROCUpdate_break
 1760            ENDPROC
 1770          ENDIF
 1780  WHEN in%
 1790          PROCPut_Icon_Text(inout%,1,ih$(select%))
 1800          PROCPut_Icon_Text(inout%,3,FNDecimal(ia%(select%)))
 1810ENDCASE
 1820PROCUpdate_inout
 1830ENDPROC
 1840:
 1850DEF FNselect(y%)
 1860IF wimp%!12=break% THEN
 1870  temp_ptr%=brk_ptr%(FNPointer)
 1880ELSE
 1890  temp_ptr%=FNPointer
 1900ENDIF
 1910IF ((y%<y_origin%-224)) AND (y%>((y_origin%-224)-36*temp_ptr%)) THEN =TRUE ELSE =FALSE
 1920:
 1930DEF FNselect_pos(y%)
 1940=((y_origin%-224)-y%)/36
 1950:
 1960DEF PROCSavefile(file$)
 1970IF INSTR(file$,".")=0 PROCAlert("Message from !Budget","To save,drag icon to a directory window"):SYS "Wimp_CreateMenu",-1:ENDPROC
 1980handle%=OPENOUT(file$)
 1990SYS "Hourglass_On"
 2000PRINT#handle%,in_ptr%,out_ptr%
 2010FOR loop%=0TOout_ptr%-1
 2020  PRINT#handle%,bf%(loop%),oh$(loop%),oa%(loop%),ot%(loop%),brk_ptr%(loop%),oya%(loop%)
 2030    FOR loop1%=0TObrk_ptr%(loop%)-1
 2040      PRINT#handle%,ba%(loop%,loop1%),bi$(loop%,loop1%)
 2050    NEXT
 2060NEXT
 2070FOR loop%=0TOin_ptr%-1
 2080  PRINT#handle%,ih$(loop%),ia%(loop%),it%(loop%),iya%(loop%)
 2090NEXT
 2100CLOSE#handle%
 2110SYS "Hourglass_Off"
 2120OSCLI("SETTYPE "+file$+" "+STR$~filetype%)
 2130SYS "Wimp_CreateMenu",-1
 2140ENDPROC
 2150:
 2160DEFPROCLoadfile(file$,type%)
 2170IF type% <> filetype% PROCAlert("Message from !Budget",file$+" is not a Budgie file"):ENDPROC
 2180PROCPut_Icon_Text(save%,2,file$)
 2190SYS "Hourglass_On"
 2200PROCClear
 2210handle%=OPENIN(file$)
 2220INPUT#handle%,in_ptr%,out_ptr%
 2230FOR loop%=0TOout_ptr%-1
 2240  INPUT#handle%,bf%(loop%),oh$(loop%),oa%(loop%),ot%(loop%),brk_ptr%(loop%),oya%(loop%)
 2250    FOR loop1%=0TObrk_ptr%(loop%)-1
 2260      INPUT#handle%,ba%(loop%,loop1%),bi$(loop%,loop1%)
 2270    NEXT
 2280NEXT
 2290FOR loop%=0TOin_ptr%-1
 2300  INPUT#handle%,ih$(loop%),ia%(loop%),it%(loop%),iya%(loop%)
 2310NEXT
 2320CLOSE#handle%
 2330SYS "Hourglass_Off"
 2340IF inout_open% PROCUpdate
 2350IF break_open% PROCBreak_OK:PROCUpdate
 2360ENDPROC
 2370:
 2380DEF PROCChoice(icon%)
 2390i_sel%=FALSE
 2400IF break_open% PROCBreak_OK
 2410windowtype%=icon%:PROCClose_All_Windows:PROCOpen_Window(inout%)
 2420PROCUpdate_inout
 2430ENDPROC
 2440:
 2450DEF FNPointer
 2460CASE windowtype% OF
 2470  WHEN out%:IF i_sel% THEN =select% ELSE =out_ptr%
 2480  WHEN in% :IF i_sel% THEN =select% ELSE =in_ptr%
 2490ENDCASE
 2500:
 2510DEF FNB_pointer
 2520IF b_sel% THEN =b_select% ELSE =brk_ptr%(FNPointer)
 2530:
 2540DEF PROCIncrease_time
 2550CASE windowtype% OF
 2560  WHEN out%:IF ot%(FNPointer)<5 ot%(FNPointer)+=1:PROCUpdate
 2570  WHEN in% :IF it%(FNPointer)<5 it%(FNPointer)+=1:PROCUpdate
 2580ENDCASE
 2590ENDPROC
 2600:
 2610DEF PROCDecrease_time
 2620CASE windowtype% OF
 2630  WHEN out%:IF ot%(FNPointer)>0 ot%(FNPointer)-=1:PROCUpdate
 2640  WHEN in% :IF it%(FNPointer)>0 it%(FNPointer)-=1:PROCUpdate
 2650ENDCASE
 2660ENDPROC
 2670:
 2680DEFPROCUpdate
 2690IF break_open% PROCUpdate_break:PROCUpdate_main ELSE PROCUpdate_inout:PROCUpdate_main
 2700ENDPROC
 2710:
 2720DEF PROCheading_inout
 2730IF FNIconText(inout%,1)>"" THEN
 2740  IF VALFNIconText(inout%,3)>0 THEN
 2750    CASE windowtype% OF
 2760      WHEN out%:IF NOT i_sel% AND (out_ptr%=entries%):PROCAlert("Message from Budget","Memory area full.No more entries can be made"):ENDPROC
 2770                oh$(FNPointer)=FNIconText(inout%,1)
 2780                oa%(FNPointer)=FNInteger(FNIconText(inout%,3))
 2790                IF i_sel% i_sel%=FALSE ELSE out_ptr%+=1
 2800      WHEN in% :IF NOT i_sel% AND (in_ptr%=entries%) PROCAlert("Message from Budget","Memory area full.No more entries can be made"):ENDPROC
 2810                ih$(FNPointer)=FNIconText(inout%,1)
 2820                ia%(FNPointer)=FNInteger(FNIconText(inout%,3))
 2830                IF i_sel% i_sel%=FALSE ELSE in_ptr%+=1
 2840    ENDCASE
 2850    PROCUpdate
 2860  ELSE
 2870    CASE i_sel% OF
 2880      WHEN TRUE :PROCAlert("Message from Budget","No amount entered."+oh$(select%)+" must be deleted if you wish to open "+oh$(select%)+" with a breakdown")
 2890      WHEN FALSE:
 2900      IF windowtype%=out% THEN
 2910        oh$(out_ptr%)=FNIconText(inout%,1):bf%(out_ptr%)=TRUE
 2920        PROCClose_All_Windows:PROCOpen_Window(break%):PROCUpdate_break
 2930      ENDIF
 2940    ENDCASE
 2950  ENDIF
 2960ELSE
 2970  PROCAlert("Message from Budget","No heading entered"):PROCPut_Caret(inout%,1,0)
 2980ENDIF
 2990ENDPROC
 3000:
 3010DEF PROCBreak_OK
 3020PROCClose_All_Windows:PROCOpen_Window(inout%)
 3030IF i_sel% THEN
 3040  IF oya%(select%)<=0 bf%(select%)=FALSE:PROCDelete_out(select%)
 3050  i_sel%=FALSE
 3060ELSE
 3070  IF oya%(out_ptr%)>0  out_ptr%+=1 ELSE bf%(out_ptr%)=FALSE:oh$(out_ptr%)=""
 3080ENDIF
 3090b_sel%=FALSE:PROCUpdate_inout
 3100ENDPROC
 3110:
 3120DEF PROCheading_break
 3130IF FNIconText(pane%,2)>"" THEN
 3140  IF VALFNIconText(pane%,6)>0 THEN
 3150    IF NOT b_sel% AND (brk_ptr%(out%)=items%) PROCAlert("Message from Budget","Memory area full no more entries can be made"):ENDPROC
 3160    bi$(FNPointer,FNB_pointer)=FNIconText(pane%,2)
 3170    ba%(FNPointer,FNB_pointer)=FNInteger(FNIconText(pane%,6))
 3180    oa%(FNPointer)=0
 3190    FOR loop%=0TObrk_ptr%(FNPointer):oa%(FNPointer)+=ba%(FNPointer,loop%):NEXT
 3200    IF b_sel% b_sel%=FALSE ELSE brk_ptr%(FNPointer)+=1
 3210    PROCUpdate
 3220  ELSE
 3230    PROCAlert("Message from Budget","No amount entered")
 3240  ENDIF
 3250ELSE
 3260  PROCAlert("Message from Budget","No item name entered"):PROCPut_Caret(pane%,2,0)
 3270ENDIF
 3280ENDPROC
 3290:
 3300DEF PROCmouse(window%,icon%,button%,y_coord%)
 3310CASE window% OF
 3320   WHEN -2:
 3330     IF button%=4 AND icon%=bar_icon% PROCOpen_Window(main%):PROCUpdate_main
 3340     IF button%=2 y_coord%=176:PROCCreate_Menus(wimp%)
 3350   WHEN main%:
 3360     CASE button% OF
 3370       WHEN 4:
 3380         CASE icon% OF
 3390           WHEN 0,1:PROCChoice(icon%)
 3400           WHEN 9  :IF maintime%<5 maintime%+=1:PROCUpdate_main
 3410         ENDCASE
 3420       WHEN 1:IF icon%=9 IF maintime%>0 maintime%-=1:PROCUpdate_main
 3430       WHEN 2:PROCCreate_Menus(wimp%)
 3440     ENDCASE
 3450   WHEN inout%
 3460     CASE button% OF
 3470       WHEN 4:
 3480         CASE icon% OF
 3490           WHEN 7  :IF i_sel% THEN
 3500                      CASE windowtype% OF
 3510                        WHEN out%
 3520                          IF FNQuery("OK to delete heading "+oh$(select%)+"?")=1 PROCDelete_out(select%):PROCUpdate_main
 3530                        WHEN in%
 3540                          IF FNQuery("OK to delete heading "+ih$(select%)+"?")=1 PROCDelete_in(select%):PROCUpdate_main
 3550                      ENDCASE
 3560                    ELSE
 3570                      IF FNQuery("OK to delete all records currently in memory?")=1 PROCClear:PROCUpdate
 3580                    ENDIF
 3590           WHEN 5  :PROCIncrease_time
 3600           WHEN -1 :SYS "Wimp_GetPointerInfo",,wimp%
 3610                    PROCSelect_inout(wimp%!4)
 3620         ENDCASE
 3630       WHEN 1:
 3640         CASE icon% OF
 3650           WHEN  5:PROCDecrease_time
 3660           WHEN -1:i_sel%=FALSE:PROCUpdate_inout
 3670         ENDCASE
 3680     ENDCASE
 3690   WHEN break%       :
 3700     CASE button% OF
 3710        WHEN 4:SYS "Wimp_GetPointerInfo",,wimp%:PROCSelect_break(wimp%!4)
 3720        WHEN 1:b_sel%=FALSE:PROCUpdate_break
 3730     ENDCASE
 3740   WHEN pane%        :
 3750         CASE icon% OF
 3760            WHEN 0:IF button%=4 PROCIncrease_time
 3770                   IF button%=1 PROCDecrease_time
 3780            WHEN 7:PROCBreak_OK
 3790            WHEN 8:
 3800                  CASE b_sel% OF
 3810                    WHEN TRUE :
 3820                      IF FNQuery("OK to delete "+bi$(FNPointer,FNB_pointer)+" from "+oh$(FNPointer)+" breakdown?")=1:PROCDelete_breakdown_item(FNPointer,FNB_pointer)
 3830                    WHEN FALSE:
 3840                      IF FNQuery("OK to delete all records in "+oh$(FNPointer)+" breakdown?")=1 :PROCDelete_breakdown(FNPointer)
 3850                  ENDCASE
 3860        ENDCASE
 3870   WHEN save%
 3880        CASE button% OF
 3890           WHEN 4    : IF icon%=0 PROCSavefile(FNIconText(save%,2))
 3900           WHEN 16,64:
 3910              CASE icon% OF
 3920                WHEN 3:PROCdragbox
 3930              ENDCASE
 3940        ENDCASE
 3950ENDCASE
 3960ENDPROC
 3970:
 3980DEF PROCkey(window%,icon%,key%)
 3990CASE window% OF
 4000  WHEN inout%:
 4010    CASE key% OF
 4020      WHEN 13:
 4030              IF icon%=1:PROCPut_Caret(inout%,3,LEN(FNIconText(inout%,3)))
 4040              IF icon%=3:PROCheading_inout:PROCUpdate_main
 4050    ENDCASE
 4060  WHEN pane% :
 4070    CASE key% OF
 4080      WHEN 13
 4090        IF icon%=2:PROCPut_Caret(pane%,6,LENFNIconText(pane%,6))
 4100        IF icon%=6:PROCheading_break:PROCUpdate_main
 4110    ENDCASE
 4120  WHEN save%
 4130    IF key%=13 PROCSavefile(FNIconText(save%,2))
 4140ENDCASE
 4150ENDPROC
 4160:
 4170DEF PROCDelete_breakdown(ptr%)
 4180LOCAL loop%
 4190    FOR loop%=0TObrk_ptr%(ptr%)
 4200      bi$(ptr%,loop%)="":ba%(ptr%,loop%)=0
 4210    NEXT
 4220    brk_ptr%(ptr%)=0
 4230    bf%(ptr%)=FALSE
 4240    PROCClose_All_Windows
 4250    PROCOpen_Window(inout%)
 4260    PROCDelete_out(ptr%)
 4270ENDPROC
 4280:
 4290DEF PROCDelete_breakdown_item(ptr%,b_ptr%)
 4300LOCAL loop%
 4310oa%(ptr%)-=ba%(ptr%,b_ptr%)
 4320FOR loop%=b_ptr%TObrk_ptr%(ptr%)-1
 4330    bi$(ptr%,loop%)=bi$(ptr%,loop%+1):ba%(ptr%,loop%)=ba%(ptr%,loop%+1)
 4340NEXT
 4350brk_ptr%(ptr%)-=1:b_sel%=FALSE:PROCUpdate
 4360ENDPROC
 4370:
 4380DEF PROCDelete_in(ptr%)
 4390FOR loop%=ptr%TOin_ptr%-1
 4400  ih$(loop%)=ih$(loop%+1)
 4410  ia%(loop%)=ia%(loop%+1)
 4420  it%(loop%)=it%(loop%+1)
 4430NEXT
 4440IF i_sel% i_sel%=FALSE:in_ptr%-=1
 4450PROCUpdate
 4460ENDPROC
 4470:
 4480DEF PROCDelete_out(ptr%)
 4490FOR loop%=ptr%TOout_ptr%-1
 4500  oh$(loop%)=oh$(loop%+1)
 4510  oa%(loop%)=oa%(loop%+1)
 4520  ot%(loop%)=ot%(loop%+1)
 4530  IF bf%(loop%+1) THEN
 4540    FOR loop1%=0TObrk_ptr%(loop%+1)-1
 4550      bi$(loop%,loop1%)=bi$(loop%+1,loop1%):bi$(loop%+1,loop1%)=""
 4560      ba%(loop%,loop1%)=ba%(loop%+1,loop1%):ba%(loop%+1,loop1%)=0
 4570    NEXT
 4580  brk_ptr%(loop%)=brk_ptr%(loop%+1):brk_ptr%(loop%+1)=0
 4590  bf%(loop%)=TRUE:bf%(loop%+1)=FALSE
 4600  ENDIF
 4610NEXT
 4620IF i_sel% i_sel%=FALSE:out_ptr%-=1
 4630PROCUpdate
 4640ENDPROC
 4650
 4660DEF PROCClear
 4670oh$()       =""  :oa%()   =0      :ot%()    =0  :ba%()   =0  :bi$()  =""
 4680brk_ptr%()  =0   :iya%()  =0      :ih$()    ="" :ia%()   =0  :it%()  =0
 4690oya%()      =0   :bf%()   =FALSE  :out_ptr% =0  :in_ptr% =0
 4700ENDPROC
 4710:
 4720DEF FNtime(t%)
 4730CASE t% OF
 4740  WHEN 0:=52
 4750  WHEN 1:=26
 4760  WHEN 2:=13
 4770  WHEN 3:=12
 4780  WHEN 4:=4
 4790  WHEN 5:=1
 4800ENDCASE
 4810:
 4820DEF PROCtotal_in
 4830iya%(in_ptr%)=ia%(in_ptr%)*it%(in_ptr%)
 4840ENDPROC
 4850:
 4860DEFFNDecimal(a%)
 4870a$=STR$ABSa%
 4880WHILE LENa$<3:a$="0"+a$:ENDWHILE
 4890=LEFT$(a$,LEN(a$)-2)+"."+RIGHT$(a$,2)
 4900:
 4910DEF FNInteger(s$)
 4920=INT((VALs$*100)+.5)
 4930:
 4940DEF PROCCreate_Menus(wimp%)
 4950CASE wimp%!8 OF
 4960  WHEN 2 :
 4970         $menu%="Budget":menu%?12=7:menu%?13=2
 4980         menu%?14=7:menu%?15=0:menu%!16=140
 4990         menu%!20=40:menu%!24=0
 5000         count=menu%+28
 5010         !count=&00:count!4=info%:count!8=&7000021:$(count+12)="Info"
 5020         count+=24
 5030         !count=&00:count!4=save%:count!8=&7000021:$(count+12)="Save"
 5040         count+=24
 5050         !count=&80:count!4=-1:count!8=&7000021:$(count+12)="Quit"
 5060         SYS "Wimp_CreateMenu",,menu%,!wimp%-100,y_coord%
 5070ENDCASE
 5080ENDPROC
 5090:
 5100DEF PROCRead_Menu
 5110IF wimp%!0=2:PROCClose_Down
 5120ENDPROC
 5130:
 5140DEF PROCWimp_Poll
 5150REPEAT
 5160  PROCPoll(FNPoll(0))
 5170UNTIL fin%
 5180ENDPROC
 5190:
 5200DEF PROCClose_Down
 5210$wimp%="TASK"
 5220SYS "Wimp_CloseDown",task%,wimp%!0
 5230ENDPROC
 5240:
 5250DEF FNPoll(mask%)
 5260SYS "Wimp_Poll",mask%,wimp% TO event%
 5270=event%
 5280:
 5290DEF PROCPoll(event%)
 5300CASE event% OF
 5310  WHEN 1:PROCDraw_window(wimp%!0)
 5320  WHEN 2:PROCopenwindow(wimp%!0)
 5330  WHEN 3:PROCClose_Window(wimp%!0):PROCClose_All_Windows
 5340  WHEN 4:
 5350  WHEN 5:
 5360  WHEN 6:PROCmouse(wimp%!12,wimp%!16,wimp%!8,wimp%!4)
 5370  WHEN 7:PROCdrag
 5380  WHEN 8:PROCkey(wimp%!0,wimp%!4,wimp%!24)
 5390  WHEN 9:PROCRead_Menu
 5400  WHEN 17,18:PROCMessage(wimp%)
 5410ENDCASE
 5420ENDPROC
 5430:
 5440DEF PROCMessage(wimp%)
 5450f$=FNgetnamefromaddress(wimp%+44)
 5460CASE wimp%!16 OF
 5470  WHEN 0:PROCClose_Down
 5480  WHEN 2:PROCSavefile(f$)
 5490  WHEN 3:type%=wimp%!40:PROCLoadfile(f$,type%):PROCUpdate_main
 5500  WHEN &502:PROChelp(wimp%)
 5510ENDCASE
 5520ENDPROC
 5530:
 5540DEFPROCdragbox
 5550LOCAL x%,y%
 5560!wimp%=window% :SYS "Wimp_GetWindowState",,wimp%
 5570x%=wimp%!4-wimp%!20:y%=wimp%!16-wimp%!24
 5580wimp%!4=3:SYS "Wimp_GetIconState",,wimp%
 5590!wimp%=save%:wimp%!4=5
 5600wimp%!8=x%+wimp%!8:wimp%!12=y%+wimp%!12
 5610wimp%!16=x%+wimp%!16:wimp%!20=y%+wimp%!20
 5620wimp%!24=0:wimp%!28=0
 5630wimp%!32=&7FFFFFFF:wimp%!36=&7FFFFFFF
 5640SYS "Wimp_DragBox",,wimp%
 5650ENDPROC
 5660:
 5670DEF PROCdrag
 5680SYS "Wimp_GetPointerInfo",,wimp%
 5690window%=wimp%!12:icon%=wimp%!16
 5700x%=wimp%!0:y%=wimp%!4
 5710wimp%!0=save% : wimp%!4=2
 5720SYS "Wimp_GetIconState",,wimp%
 5730file$=$(wimp%!28):file$=FNGetPathname(file$)
 5740wimp%!20=window%   :wimp%!24=icon%
 5750wimp%!28=x%        :wimp%!32=y%
 5760wimp%!36=0         :wimp%!0=64
 5770wimp%!12=0         :wimp%!16=1
 5780wimp%!40=filetype%
 5790$(wimp%+44)=file$
 5800SYS"Wimp_SendMessage",17,wimp%,wimp%!20,wimp%!24
 5810ENDPROC
 5820:
 5830DEFFNGetPathname(f$)
 5840CASE INSTR(f$,".") OF
 5850 WHEN 0    :=f$
 5860 OTHERWISE :=FNGetPathname(RIGHT$(f$,LEN(f$)-INSTR(f$,".")))
 5870ENDCASE
 5880:
 5890DEF FNCreate_Window(name$)
 5900SYS "Wimp_LoadTemplate",,wimp%,iptr%,iend%,-1,name$,0 TO type%,,iptr%,,,,pos%
 5910SYS "Wimp_CreateWindow",,wimp% TO result%
 5920=result%
 5930:
 5940DEFPROCBar_Icon
 5950wimp%!0=-1:wimp%!4=0:wimp%!8=0:wimp%!12=68:wimp%!16=68
 5960wimp%!20=&3002:$(wimp%+24)="!budget"
 5970SYS "Wimp_CreateIcon",0,wimp% TO bar_icon%
 5980ENDPROC
 5990:
 6000DEF PROCPut_Icon_Text(window%,icon%,text$)
 6010wimp%!0=window%:wimp%!4=icon%
 6020SYS "Wimp_GetIconState",,wimp%
 6030$(wimp%!28)=text$
 6040ENDPROC
 6050:
 6060DEF PROCWindow_To_Top(window%)
 6070wimp%!0=window%
 6080SYS "Wimp_GetWindowState",0,wimp%
 6090wimp%!28=-1
 6100SYS "Wimp_OpenWindow",0,wimp%
 6110ENDPROC
 6120:
 6130DEF PROCClose_All_Windows
 6140   PROCClose_Window(inout%)
 6150   PROCClose_Window(break%)
 6160   inout_open%=FALSE
 6170   break_open%=FALSE
 6180ENDPROC
 6190:
 6200DEF PROCClose_Window(window%)
 6210wimp%!0=window%:SYS "Wimp_CloseWindow",0,wimp%
 6220IF window%=break% PROCClose_Window(pane%)
 6230ENDPROC
 6240:
 6250DEFPROCopenwindow(window%)
 6260wimp%!0=window%
 6270IF window%=break% THEN
 6280  SYS "Wimp_OpenWindow",,wimp%
 6290  p%!0=pane%
 6300  SYS "Wimp_GetWindowState",0,p%
 6310  p%!4=wimp%!4
 6320  p%!8=(wimp%!16)-220
 6330  p%!12=(wimp%!4)+646
 6340  p%!16=wimp%!16-40
 6350  p%!28=wimp%!28
 6360  SYS "Wimp_OpenWindow",0,p%
 6370  wimp%!28=pane%
 6380ENDIF
 6390SYS "Wimp_OpenWindow",0,wimp%
 6400ENDPROC
 6410:
 6420DEF PROCAlert(title$,message$)
 6430LOCAL response%
 6440$(wimp%+4)=message$
 6450SYS "Wimp_ReportError",wimp%,16,title$ TO ,response%
 6460ENDPROC
 6470:
 6480DEF PROCChange_colour(col%)
 6490wimp%!0=main%:wimp%!4=6:wimp%!8=col%<<24:wimp%!12=&0F000000
 6500SYS "Wimp_SetIconState",,wimp%
 6510ENDPROC
 6520:
 6530DEF FNIconText(window%,icon%)
 6540wimp%!0=window% : wimp%!4=icon%
 6550SYS "Wimp_GetIconState",,wimp%
 6560IF ((wimp%!24) AND &100)=0 ERROR 1,"Icon isn't indirected"
 6570=$(wimp%!28)
 6580:
 6590DEF PROCWindowTitle(window%,title$)
 6600wimp%!0=window%
 6610SYS "Wimp_GetWindowInfo",,wimp%
 6620IF ((wimp%!60)AND&100)=0 ERROR 1,"Title isn't indirected"
 6630$(wimp%!76)=title$
 6640ENDPROC
 6650:
 6660DEF PROCPut_Caret(window%,icon%,chars%)
 6670SYS "Wimp_SetCaretPosition",window%,icon%,,,-1,chars%
 6680ENDPROC
 6690
 6700DEF PROCDraw_window(window%)
 6710LOCAL more%
 6720wimp%!0=window%
 6730SYS"Wimp_RedrawWindow",,wimp% TO more%
 6740PROCorigin(wimp%,x_origin%,y_origin%)
 6750WHILE more%
 6760 IF window%=break% PROCDraw_break(x_origin%,y_origin%)
 6770 IF window%=inout% PROCDraw_inout(x_origin%,y_origin%)
 6780 SYS "Wimp_GetRectangle",,wimp% TO more%
 6790ENDWHILE
 6800ENDPROC
 6810:
 6820DEF PROCorigin(wimp%,RETURN x_origin%,RETURN y_origin%)
 6830x_origin%=wimp%!4-wimp%!20
 6840y_origin%=wimp%!16-wimp%!24
 6850ENDPROC
 6860
 6870DEF PROCForce_Draw(window%)
 6880CASE window% OF
 6890 WHEN -1   : SYS "Wimp_ForceRedraw",-1,0,0,2*1280,2*1024
 6900 OTHERWISE : SYS "Wimp_ForceRedraw",window%,0,-2*1024,2*1280,0
 6910ENDCASE
 6920ENDPROC
 6930
 6940DEF PROCOpen_Window(window%)
 6950wimp%!0=window%
 6960SYS "Wimp_GetWindowState",,wimp%
 6970IF window%=inout% wimp%!8=(wimp%!16)-960
 6980SYS "Wimp_OpenWindow",,wimp%
 6990IF window%=break% break_open%=TRUE:PROCOpen_Window(pane%)
 7000IF window%=inout% inout_open%=TRUE
 7010ENDPROC
 7020
 7030DEFPROCerror
 7040  !wimp% = 99
 7050  $(wimp%+4) = REPORT$ + " (Internal error code "+STR$ERL+")"+CHR$0
 7060  OSCLI ("SET Error$Ed "+STR$ERL)
 7070  SYS "Wimp_ReportError",wimp%,0,"!Budget"
 7080ENDPROC
 7090
 7100DEFFNQuery(text$)
 7110!wimp% = 99
 7120$(wimp%+4) = text$
 7130SYS "Wimp_ReportError",wimp%,&13,"!Budget" TO ,reply%
 7140=reply%
 7150
 7160DEF FNIcon_Put_Sprite(window%,icon%,name$)
 7170wimp%!0=window%:wimp%!4=icon%
 7180SYS "Wimp_GetIconState",,wimp%
 7190SYS "Wimp_DeleteIcon",,wimp%
 7200wimp%!4=wimp%!8   : wimp%!8=wimp%!12  : wimp%!12=wimp%!16
 7210wimp%!16=wimp%!20 : wimp%!20=wimp%!24 : $(wimp%+24)=name$
 7220SYS "Wimp_CreateIcon",,wimp% TO icon%
 7230=icon%
 7240:
 7250DEF FNgetnamefromaddress(add%)
 7260LOCAL file$
 7270file$=""
 7280WHILE ?add%<>0 AND ?add%<>13
 7290file$+=CHR$?add%  : add%+=1
 7300ENDWHILE
 7310=file$
 7320:
 7330REM=====================================================================
 7340REM                    HELP ROUTINE
 7350REM=====================================================================
 7360DEF PROChelp(wimp%)
 7370LOCAL t$
 7380CASE wimp%!32 OF
 7390  WHEN main%
 7400    CASE wimp%!36 OF
 7410      WHEN 0:t$="This is the Outgoings icon.|MClick SELECT here to open the outgoings window"
 7420      WHEN 1:t$="This is the Income icon.|MClick SELECT here to open the income window"
 7430      WHEN 2:t$="This Icon shows the total amount of outgoings for the period shown"
 7440      WHEN 3:t$="This Icon shows the total amount of income for the period shown"
 7450      WHEN 6:t$="This Icon shows the difference between income and outgoings for the period shown"
 7460      WHEN 9:t$="This is the period icon.|MClick SELECT here to increase the period over which the income,outgoings and difference amounts apply.|MClick ADJUST here to decrease the period covered."
 7470      OTHERWISE t$="This is the main budget window.|MClick MENU for main menu.Info,Save and Quit"
 7480    ENDCASE
 7490  WHEN inout%
 7500    CASE wimp%!36 OF
 7510      WHEN 1:IF windowtype%=out% THEN
 7520             t$="This is the Outgoings heading Icon."
 7530             ELSE
 7540             t$="This is the Income heading Icon."
 7550             ENDIF
 7560             t$+="|MEnter the name of a heading you wish to create.|MIf an existing heading has been selected it can be amended here."
 7570      WHEN 3:IF windowtype%=out% THEN
 7580             t$="This is the Outgoings amount Icon.|MEnter the amount required.|MIf an existing heading has been selected the amount can be amended here.|MPressing RETURN with no amount entered opens a breakdown window."
 7590             ELSE
 7600             t$="This is the Income amount Icon.|MEnter the amount required.|MIf an existing heading has been selected the amount can be amended here."
 7610             ENDIF
 7620      WHEN 5:t$="This is the period Icon.|MClick SELECT to increase the period applied to the heading shown.|MClick ADJUST to decrease the period"
 7630      WHEN 7:t$="This is the delete Icon.|MClick SELECT to delete an existing heading that has been selected.|MClick SELECT with nothing selected deletes all records!!!"
 7640      WHEN -1:IF windowtype%=out% THEN
 7650              t$="This is the Outgoings display window.|MClick SELECT over any heading to amend or delete it.|MIf the heading contains an '*' then a breakdown window opens.|MClick ADJUST to cancel a selection"
 7660              ELSE
 7670              t$="This is the Income display window.|MClick SELECT over any heading to amend or delete it.|MClick ADJUST to cancel a selection."
 7680              ENDIF
 7690      OTHERWISE IF windowtype%=out% t$="This is the Outgoings control panel" ELSE t$="This is the Income control panel"
 7700    ENDCASE
 7710  WHEN pane%
 7720    CASE wimp%!36 OF
 7730      WHEN 0:t$="This is the period Icon.|MAll items entered in a breakdown window have this period applied to them.|MClick SELECT to increase the period applied to the current Outgoing heading.|MClick ADJUST to decrease the period."
 7740      WHEN 2:t$="This is the item Icon.|MEnter the name of an item you wish to create.|MIf an existing item is selected it can be amended here."
 7750      WHEN 6:t$="This is the amount Icon.|MEnter the amount required.|MIf an existing item is selected it can be amended here."
 7760      WHEN 7:t$="This is the OK Icon.|MClick SELECT to close breakdown window and re-enter Outgoings Window.|MUse of this Icon is not essential to 'fix' any entries made."
 7770      WHEN 8:t$="This is the delete Icon.|MClick SELECT with an item selected to delete that item from the breakdown.|MClick SELECT with nothing selected deletes all breakdown items and parent Outgoings heading."
 7780      OTHERWISE t$="This is the breakdown control panel.|MThe outgoing heading to which this breakdown relates is displayed on the Title Bar"
 7790    ENDCASE
 7800  WHEN break%:t$="This is the breakdown display window.|MClick SELECT over any heading to amend or delete it.|MClick ADJUST to cancel a selection."
 7810  WHEN -2:t$="This is the Budget icon.|MClick SELECT to open Main Window.|MClick MENU to Save,Quit or obtain information about the program."
 7820ENDCASE
 7830wimp%!12=wimp%!8
 7840wimp%!16=&503
 7850$(wimp%+20)=t$+CHR$0
 7860!wimp%=(25+LENt$) AND NOT 3
 7870SYS "Wimp_SendMessage",17,wimp%,wimp%!4
 7880ENDPROC

�>!RunImage

�Get_commandlinefile
(�Wimp_Initialise
2�Set_Initial_Variables
<-�Create_Windows("<Budget$Dir>.Templates")
F
�Bar_Icon
P� � �error
Z�Wimp_Poll
d�Close_Down
n�
x:
�� �Get_commandlinefile
�ș "OS_GetEnv" � command$
�'p=�command$,"""",�command$,"""")+1)
�command$=�command$,p+1)
�1ȕ �command$,1)=" ":command$ = �command$,2):�
��
�:
�� �Wimp_Initialise
�� wimp% 1024
�$wimp%="TASK"
�5ș "Wimp_Initialise",200,!wimp%,"Budget" � ,task%
��
�:
� �Set_Initial_Variables
Gout_ptr%  =0  :in_ptr%  = 0  :out%   = 0  :in%     =1  :out_ptr% =0
Cmaintime% =0  :entries% =20  :items% =50  :in_ptr% =0  :red%=11
"7i_sel%=�:b_sel%=�    :black% = 7  :windowtype%=out%
,:inout_open%=�:break_open%=�:version$="1.01 (6 Mar 93)"
6Cfin%          =�:template_mem%=2300    :filetype%         =&00A
@4� template_store% template_mem%,menu% 512,p% 255
JIcurrentfile$="Budget":iptr%=template_store%:iend%=iptr%+template_mem%
T� time$(5)
^?� bf%(entries%)                    :� breakdown option flag
hG� oh$(entries%)                    :� Outgoings individual headings
rE� oa%(entries%)                    :� Outgoings individual amount
|H� ot%(entries%)                    :� Outgoings individual timescale
�D� ba%(entries%,items%)             :� Outgoings breakdown amount
�C� bi$(entries%,items%)             :� Outgoings breakdown items
�J� brk_ptr%(entries%)               :� Outgoings breakdown item pointer
�J� oya%(entries%)                   :� Outgoings individual year amount
�A� ih$(entries%)                    :� Income individual title
�B� ia%(entries%)                    :� Income individual amount
�E� it%(entries%)                    :� Income individual timescale
�G� iya%(entries%)                   :� Income individual year amount
�Ntime$()="Weekly","Fortnightly","Fourweekly","Monthly","Quarterly","Yearly"
�'bf%()=�:breaktitle$="Breakdown of "
�
@%=&20209
��
�:
� �Create_Windows(file$)
!ș "Wimp_OpenTemplate",,file$
$info%=�Create_Window("progInfo")
& main%=�Create_Window("Main")
0"inout%=�Create_Window("inout")
:&break%=�Create_Window("out_break")
D pane%=�Create_Window("pane")
N save%=�Create_Window("save")
Xș "Wimp_CloseTemplate"
bI�Put_Icon_Text(info%,4,version$):�Put_Icon_Text(save%,2,currentfile$)
l0�Window_To_Top(main%):�Put_Caret(main%,11,0)
v^� command$<>"" �Loadfile(command$,filetype%):�Open_Window(inout%):windowtype%=out%:�Update
��
�:
�� �Update_inout
�Ȏ windowtype% �
�
  � out%:
�.          �WindowTitle(inout%,"OUTGOINGS")
�;          �Put_Icon_Text(inout%,5,time$(ot%(�Pointer)))
�  � in%
�+          �WindowTitle(inout%,"INCOME")
�;          �Put_Icon_Text(inout%,5,time$(it%(�Pointer)))
��
�� � i_sel% �
�=  �Put_Icon_Text(inout%,1,""):�Put_Icon_Text(inout%,3,"")
�
-�Put_Caret(inout%,1,��IconText(inout%,1))
�Force_Draw(inout%)
 �
*:
4� �Update_break
>2�WindowTitle(break%,breaktitle$+oh$(�Pointer))
HQ� brk_ptr%(�Pointer)>10 y_break%=-(brk_ptr%(�Pointer)*36+250) � y_break%=-750
R5wimp%!0=0:wimp%!4=y_break%:wimp%!8=648:wimp%!12=0
\$ș "Wimp_SetExtent",break%,wimp%
f0�Put_Icon_Text(pane%,0,time$(ot%(�Pointer)))
pD� � b_sel% �Put_Icon_Text(pane%,2,""):�Put_Icon_Text(pane%,6,"")
z+�Put_Caret(pane%,2,��IconText(pane%,2))
�*�Force_Draw(pane%):�Force_Draw(break%)
��
�:
�� �Update_main
�� loop%
�display%=�time(maintime%)
�A� loop%=0�out_ptr%:oya%(loop%)=oa%(loop%)*�time(ot%(loop%)):�
�@� loop%=0�in_ptr%:iya%(loop%)=ia%(loop%)*�time(it%(loop%)):�
�&tot_out%=Ǝoya%():tot_in%=Ǝiya%()
�Nintot%=tot_in% � display%:outtot%=tot_out% � display%:diff%=intot%-outtot%
�V� outtot%>0 �Put_Icon_Text(main%,2,�Decimal(outtot%)) � �Put_Icon_Text(main%,2,"")
�T� intot%>0 �Put_Icon_Text(main%,3,�Decimal(intot%)) � �Put_Icon_Text(main%,3,"")
�.� intot%-outtot%<0 col%=red% � col%=black%
�Change_colour(col%)
\� outtot%-intot%<>0 �Put_Icon_Text(main%,6,�Decimal(diff%)) � �Put_Icon_Text(main%,6,"")
?�Put_Icon_Text(main%,9,time$(maintime%)):�Force_Draw(main%)
$�
.:
8%��Draw_inout(x_origin%,y_origin%)
B� line%,item%
Lline%=36
V�5
`Ȏ windowtype% �
j  � out%
t  � item%=0�out_ptr%-1
�2    � x_origin%+50,y_origin%-230-(item%*line%)
�    �;oh$(item%)
�3    � x_origin%+240,y_origin%-230-(item%*line%)
�'    � oa%(item%)>0 � oa%(item%)/100
�3    � x_origin%+420,y_origin%-230-(item%*line%)
�    � out_ptr%<>0 �
�      � bf%(item%) �
�%        �;"*  "+time$(ot%(item%))
�      �
�%        �;"   "+time$(ot%(item%))
�      �
�	    �
  �

  � in%
    � item%=0�in_ptr%-1
2    � x_origin%+50,y_origin%-230-(item%*line%)
(    �;ih$(item%)
23    � x_origin%+240,y_origin%-230-(item%*line%)
<'    � ia%(item%)>0 � ia%(item%)/100
F3    � x_origin%+468,y_origin%-230-(item%*line%)
P)    � in_ptr% <>0 �;time$(it%(item%))
Z	    �
d
n�
x�
�:
�&� �Draw_break(x_origin%,y_origin%)
�� line%,item%
�line%=36
��5
�"� item%=0�brk_ptr%(�Pointer)-1
�.� x_origin%+50,y_origin%-230-(item%*line%)
��;bi$(�Pointer,item%)
�/� x_origin%+450,y_origin%-230-(item%*line%)
�5� ba%(�Pointer,item%)>0 � ba%(�Pointer,item%)/100
��
�
:
� �Select_break(y_pos%)
"� � �select(y_pos%) �
,*b_sel%=�:b_select%=�select_pos(y_pos%)
63�Put_Icon_Text(pane%,2,bi$(�Pointer,b_select%))
@=�Put_Icon_Text(pane%,6,�Decimal(ba%(�Pointer,b_select%)))
J�Update_break
T�
^:
h� �Select_inout(y_pos%)
r� � �select(y_pos%) �
|(i_sel%=�:select%=�select_pos(y_pos%)
�Ȏ windowtype% �
�  � out%
�           � � bf%(select%) �
�5            �Put_Icon_Text(inout%,1,oh$(select%))
�?            �Put_Icon_Text(inout%,3,�Decimal(oa%(select%)))
�          �
�7            �Close_All_Windows:�Open_Window(break%)
�=            �WindowTitle(break%,breaktitle$+oh$(select%))
�            �Update_break
�            �
�          �
�  � in%
�3          �Put_Icon_Text(inout%,1,ih$(select%))
=          �Put_Icon_Text(inout%,3,�Decimal(ia%(select%)))
�
�Update_inout
&�
0:
:� �select(y%)
D� wimp%!12=break% �
N"  temp_ptr%=brk_ptr%(�Pointer)
X�
b  temp_ptr%=�Pointer
l�
vJ� ((y%<y_origin%-224)) � (y%>((y_origin%-224)-36*temp_ptr%)) � =� � =�
�:
�� �select_pos(y%)
�=((y_origin%-224)-y%)/36
�:
�� �Savefile(file$)
�v� �file$,".")=0 �Alert("Message from !Budget","To save,drag icon to a directory window"):ș "Wimp_CreateMenu",-1:�
�handle%=�(file$)
�ș "Hourglass_On"
��#handle%,in_ptr%,out_ptr%
�� loop%=0�out_ptr%-1
�W  �#handle%,bf%(loop%),oh$(loop%),oa%(loop%),ot%(loop%),brk_ptr%(loop%),oya%(loop%)
�$    � loop1%=0�brk_ptr%(loop%)-1
�7      �#handle%,ba%(loop%,loop1%),bi$(loop%,loop1%)
	    �
�
� loop%=0�in_ptr%-1
 <  �#handle%,ih$(loop%),ia%(loop%),it%(loop%),iya%(loop%)
*�
4
�#handle%
>ș "Hourglass_Off"
H'�("SETTYPE "+file$+" "+�~filetype%)
Rș "Wimp_CreateMenu",-1
\�
f:
p��Loadfile(file$,type%)
zW� type% <> filetype% �Alert("Message from !Budget",file$+" is not a Budgie file"):�
�!�Put_Icon_Text(save%,2,file$)
�ș "Hourglass_On"
�
�Clear
�handle%=�(file$)
��#handle%,in_ptr%,out_ptr%
�� loop%=0�out_ptr%-1
�W  �#handle%,bf%(loop%),oh$(loop%),oa%(loop%),ot%(loop%),brk_ptr%(loop%),oya%(loop%)
�$    � loop1%=0�brk_ptr%(loop%)-1
�7      �#handle%,ba%(loop%,loop1%),bi$(loop%,loop1%)
�	    �
��
�� loop%=0�in_ptr%-1
�<  �#handle%,ih$(loop%),ia%(loop%),it%(loop%),iya%(loop%)
	�
	
�#handle%
	ș "Hourglass_Off"
	$� inout_open% �Update
	.#� break_open% �Break_OK:�Update
	8�
	B:
	L� �Choice(icon%)
	Vi_sel%=�
	`� break_open% �Break_OK
	j=windowtype%=icon%:�Close_All_Windows:�Open_Window(inout%)
	t�Update_inout
	~�
	�:
	�� �Pointer
	�Ȏ windowtype% �
	�,  � out%:� i_sel% � =select% � =out_ptr%
	�+  � in% :� i_sel% � =select% � =in_ptr%
	��
	�:
	�� �B_pointer
	�/� b_sel% � =b_select% � =brk_ptr%(�Pointer)
	�:
	�� �Increase_time
	�Ȏ windowtype% �
7  � out%:� ot%(�Pointer)<5 ot%(�Pointer)+=1:�Update

7  � in% :� it%(�Pointer)<5 it%(�Pointer)+=1:�Update
�
�
(:
2� �Decrease_time
<Ȏ windowtype% �
F7  � out%:� ot%(�Pointer)>0 ot%(�Pointer)-=1:�Update
P7  � in% :� it%(�Pointer)>0 it%(�Pointer)-=1:�Update
Z�
d�
n:
x��Update
�I� break_open% �Update_break:�Update_main � �Update_inout:�Update_main
��
�:
�� �heading_inout
�� �IconText(inout%,1)>"" �
�   � ��IconText(inout%,3)>0 �
�    Ȏ windowtype% �
Ȁ      � out%:� � i_sel% � (out_ptr%=entries%):�Alert("Message from Budget","Memory area full.No more entries can be made"):�
�5                oh$(�Pointer)=�IconText(inout%,1)
�?                oa%(�Pointer)=�Integer(�IconText(inout%,3))
�3                � i_sel% i_sel%=� � out_ptr%+=1
�      � in% :� � i_sel% � (in_ptr%=entries%) �Alert("Message from Budget","Memory area full.No more entries can be made"):�
�5                ih$(�Pointer)=�IconText(inout%,1)
?                ia%(�Pointer)=�Integer(�IconText(inout%,3))
2                � i_sel% i_sel%=� � in_ptr%+=1
	    �
"    �Update
,  �
6    Ȏ i_sel% �
@�      � � :�Alert("Message from Budget","No amount entered."+oh$(select%)+" must be deleted if you wish to open "+oh$(select%)+" with a breakdown")
J      � �:
T      � windowtype%=out% �
^=        oh$(out_ptr%)=�IconText(inout%,1):bf%(out_ptr%)=�
hA        �Close_All_Windows:�Open_Window(break%):�Update_break
r      �
|	    �
�  �
��
�O  �Alert("Message from Budget","No heading entered"):�Put_Caret(inout%,1,0)
��
��
�:
�� �Break_OK
�+�Close_All_Windows:�Open_Window(inout%)
�� i_sel% �
�<  � oya%(select%)<=0 bf%(select%)=�:�Delete_out(select%)
�  i_sel%=�
��
�H  � oya%(out_ptr%)>0  out_ptr%+=1 � bf%(out_ptr%)=�:oh$(out_ptr%)=""
�
b_sel%=�:�Update_inout
�
&:
0� �heading_break
:� �IconText(pane%,2)>"" �
D  � ��IconText(pane%,6)>0 �
N{    � � b_sel% � (brk_ptr%(out%)=items%) �Alert("Message from Budget","Memory area full no more entries can be made"):�
X3    bi$(�Pointer,�B_pointer)=�IconText(pane%,2)
b=    ba%(�Pointer,�B_pointer)=�Integer(�IconText(pane%,6))
l    oa%(�Pointer)=0
vI    � loop%=0�brk_ptr%(�Pointer):oa%(�Pointer)+=ba%(�Pointer,loop%):�
�1    � b_sel% b_sel%=� � brk_ptr%(�Pointer)+=1
�    �Update
�  �
�9    �Alert("Message from Budget","No amount entered")
�  �
��
�P  �Alert("Message from Budget","No item name entered"):�Put_Caret(pane%,2,0)
��
��
�:
�,� �mouse(window%,icon%,button%,y_coord%)
�Ȏ window% �
�   � -2:

G     � button%=4 � icon%=bar_icon% �Open_Window(main%):�Update_main

6     � button%=2 y_coord%=176:�Create_Menus(wimp%)

   � main%:

      Ȏ button% �

*       � 4:

4         Ȏ icon% �

>#           � 0,1:�Choice(icon%)

H<           � 9  :� maintime%<5 maintime%+=1:�Update_main

R         �

\@       � 1:� icon%=9 � maintime%>0 maintime%-=1:�Update_main

f#       � 2:�Create_Menus(wimp%)

p
     �

z   � inout%

�     Ȏ button% �

�       � 4:

�         Ȏ icon% �

�           � 7  :� i_sel% �

�*                      Ȏ windowtype% �

�"                        � out%

�t                          � �Query("OK to delete heading "+oh$(select%)+"?")=1 �Delete_out(select%):�Update_main

�!                        � in%

�s                          � �Query("OK to delete heading "+ih$(select%)+"?")=1 �Delete_in(select%):�Update_main

�                      �

�                    �

�d                      � �Query("OK to delete all records currently in memory?")=1 �Clear:�Update

�                    �
#           � 5  :�Increase_time
4           � -1 :ș "Wimp_GetPointerInfo",,wimp%
.                    �Select_inout(wimp%!4)
$         �
.       � 1:
8         Ȏ icon% �
B"           �  5:�Decrease_time
L*           � -1:i_sel%=�:�Update_inout
V         �
`
     �
j   � break%       :
t     Ȏ button% �
~F        � 4:ș "Wimp_GetPointerInfo",,wimp%:�Select_break(wimp%!4)
�&        � 1:b_sel%=�:�Update_break
�
     �
�   � pane%        :
�         Ȏ icon% �
�.            � 0:� button%=4 �Increase_time
�1                   � button%=1 �Decrease_time
�            � 7:�Break_OK
�            � 8:
�!                  Ȏ b_sel% �
�                    � � :
�                      � �Query("OK to delete "+bi$(�Pointer,�B_pointer)+" from "+oh$(�Pointer)+" breakdown?")=1:�Delete_breakdown_item(�Pointer,�B_pointer)
�                    � �:
}                      � �Query("OK to delete all records in "+oh$(�Pointer)+" breakdown?")=1 :�Delete_breakdown(�Pointer)

                  �

        �
   � save%
(        Ȏ button% �
2?           � 4    : � icon%=0 �Savefile(�IconText(save%,2))
<           � 16,64:
F              Ȏ icon% �
P                 � 3:�dragbox
Z              �
d
        �
n�
x�
�:
�� �key(window%,icon%,key%)
�Ȏ window% �
�  � inout%:
�    Ȏ key% �
�      � 13:
�G              � icon%=1:�Put_Caret(inout%,3,�(�IconText(inout%,3)))
�7              � icon%=3:�heading_inout:�Update_main
�	    �
�  � pane% :
�    Ȏ key% �
�      � 13
�=        � icon%=2:�Put_Caret(pane%,6,��IconText(pane%,6))
1        � icon%=6:�heading_break:�Update_main
	    �

  � save%
"/    � key%=13 �Savefile(�IconText(save%,2))
,�
6�
@:
J� �Delete_breakdown(ptr%)
T� loop%
^     � loop%=0�brk_ptr%(ptr%)
h.      bi$(ptr%,loop%)="":ba%(ptr%,loop%)=0
r	    �
|    brk_ptr%(ptr%)=0
�    bf%(ptr%)=�
�    �Close_All_Windows
�    �Open_Window(inout%)
�    �Delete_out(ptr%)
��
�:
�)� �Delete_breakdown_item(ptr%,b_ptr%)
�� loop%
�oa%(ptr%)-=ba%(ptr%,b_ptr%)
�#� loop%=b_ptr%�brk_ptr%(ptr%)-1
�K    bi$(ptr%,loop%)=bi$(ptr%,loop%+1):ba%(ptr%,loop%)=ba%(ptr%,loop%+1)
��
�&brk_ptr%(ptr%)-=1:b_sel%=�:�Update
�
:
� �Delete_in(ptr%)
&� loop%=ptr%�in_ptr%-1
0  ih$(loop%)=ih$(loop%+1)
:  ia%(loop%)=ia%(loop%+1)
D  it%(loop%)=it%(loop%+1)
N�
X � i_sel% i_sel%=�:in_ptr%-=1
b�Update
l�
v:
�� �Delete_out(ptr%)
�� loop%=ptr%�out_ptr%-1
�  oh$(loop%)=oh$(loop%+1)
�  oa%(loop%)=oa%(loop%+1)
�  ot%(loop%)=ot%(loop%+1)
�  � bf%(loop%+1) �
�&    � loop1%=0�brk_ptr%(loop%+1)-1
�F      bi$(loop%,loop1%)=bi$(loop%+1,loop1%):bi$(loop%+1,loop1%)=""
�E      ba%(loop%,loop1%)=ba%(loop%+1,loop1%):ba%(loop%+1,loop1%)=0
�	    �
�;  brk_ptr%(loop%)=brk_ptr%(loop%+1):brk_ptr%(loop%+1)=0
�!  bf%(loop%)=�:bf%(loop%+1)=�
�  �
�
!� i_sel% i_sel%=�:out_ptr%-=1
�Update
 �
*
4� �Clear
>Loh$()       =""  :oa%()   =0      :ot%()    =0  :ba%()   =0  :bi$()  =""
HKbrk_ptr%()  =0   :iya%()  =0      :ih$()    ="" :ia%()   =0  :it%()  =0
R;oya%()      =0   :bf%()   =�  :out_ptr% =0  :in_ptr% =0
\�
f:
p� �time(t%)
zȎ t% �
�
  � 0:=52
�
  � 1:=26
�
  � 2:=13
�
  � 3:=12
�  � 4:=4
�  � 5:=1
��
�:
�� �total_in
�+iya%(in_ptr%)=ia%(in_ptr%)*it%(in_ptr%)
��
�:
�ݤDecimal(a%)
a$=Ôa%
ȕ �a$<3:a$="0"+a$:�
=�a$,�(a$)-2)+"."+�a$,2)
$:
.� �Integer(s$)
8=�((�s$*100)+.5)
B:
L� �Create_Menus(wimp%)
VȎ wimp%!8 �
`  � 2 :
j2         $menu%="Budget":menu%?12=7:menu%?13=2
t/         menu%?14=7:menu%?15=0:menu%!16=140
~#         menu%!20=40:menu%!24=0
�         count=menu%+28
�I         !count=&00:count!4=info%:count!8=&7000021:$(count+12)="Info"
�         count+=24
�I         !count=&00:count!4=save%:count!8=&7000021:$(count+12)="Save"
�         count+=24
�F         !count=&80:count!4=-1:count!8=&7000021:$(count+12)="Quit"
�<         ș "Wimp_CreateMenu",,menu%,!wimp%-100,y_coord%
��
��
�:
�� �Read_Menu
�� wimp%!0=2:�Close_Down
�

:
� �Wimp_Poll
�
(  �Poll(�Poll(0))
2
� fin%
<�
F:
P� �Close_Down
Z$wimp%="TASK"
d%ș "Wimp_CloseDown",task%,wimp%!0
n�
x:
�� �Poll(mask%)
�'ș "Wimp_Poll",mask%,wimp% � event%
�=event%
�:
�� �Poll(event%)
�Ȏ event% �
�  � 1:�Draw_window(wimp%!0)
�  � 2:�openwindow(wimp%!0)
�3  � 3:�Close_Window(wimp%!0):�Close_All_Windows
�
  � 4:
�
  � 5:
�3  � 6:�mouse(wimp%!12,wimp%!16,wimp%!8,wimp%!4)
�  � 7:�drag
(  � 8:�key(wimp%!0,wimp%!4,wimp%!24)
  � 9:�Read_Menu
  � 17,18:�Message(wimp%)
"�
,�
6:
@� �Message(wimp%)
J$f$=�getnamefromaddress(wimp%+44)
TȎ wimp%!16 �
^  � 0:�Close_Down
h  � 2:�Savefile(f$)
r9  � 3:type%=wimp%!40:�Loadfile(f$,type%):�Update_main
|  � &502:�help(wimp%)
��
��
�:
�
��dragbox
�� x%,y%
�3!wimp%=window% :ș "Wimp_GetWindowState",,wimp%
�,x%=wimp%!4-wimp%!20:y%=wimp%!16-wimp%!24
�+wimp%!4=3:ș "Wimp_GetIconState",,wimp%
�!wimp%=save%:wimp%!4=5
�+wimp%!8=x%+wimp%!8:wimp%!12=y%+wimp%!12
�-wimp%!16=x%+wimp%!16:wimp%!20=y%+wimp%!20
�wimp%!24=0:wimp%!28=0
�)wimp%!32=&7FFFFFFF:wimp%!36=&7FFFFFFF
ș "Wimp_DragBox",,wimp%
�
:
&� �drag
0#ș "Wimp_GetPointerInfo",,wimp%
:#window%=wimp%!12:icon%=wimp%!16
Dx%=wimp%!0:y%=wimp%!4
Nwimp%!0=save% : wimp%!4=2
X!ș "Wimp_GetIconState",,wimp%
b/file$=$(wimp%!28):file$=�GetPathname(file$)
l&wimp%!20=window%   :wimp%!24=icon%
v#wimp%!28=x%        :wimp%!32=y%
�"wimp%!36=0         :wimp%!0=64
�"wimp%!12=0         :wimp%!16=1
�wimp%!40=filetype%
�$(wimp%+44)=file$
�3ș"Wimp_SendMessage",17,wimp%,wimp%!20,wimp%!24
��
�:
�ݤGetPathname(f$)
�Ȏ �f$,".") �
� � 0    :=f$
�*  :=�GetPathname(�f$,�(f$)-�f$,".")))
��
�:
� �Create_Window(name$)
Oș "Wimp_LoadTemplate",,wimp%,iptr%,iend%,-1,name$,0 � type%,,iptr%,,,,pos%
+ș "Wimp_CreateWindow",,wimp% � result%
 =result%
*:
4��Bar_Icon
>:wimp%!0=-1:wimp%!4=0:wimp%!8=0:wimp%!12=68:wimp%!16=68
H(wimp%!20=&3002:$(wimp%+24)="!budget"
R,ș "Wimp_CreateIcon",0,wimp% � bar_icon%
\�
f:
p)� �Put_Icon_Text(window%,icon%,text$)
z!wimp%!0=window%:wimp%!4=icon%
�!ș "Wimp_GetIconState",,wimp%
�$(wimp%!28)=text$
��
�:
�� �Window_To_Top(window%)
�wimp%!0=window%
�$ș "Wimp_GetWindowState",0,wimp%
�wimp%!28=-1
� ș "Wimp_OpenWindow",0,wimp%
��
�:
�� �Close_All_Windows
�   �Close_Window(inout%)
   �Close_Window(break%)
   inout_open%=�
   break_open%=�
$�
.:
8� �Close_Window(window%)
B1wimp%!0=window%:ș "Wimp_CloseWindow",0,wimp%
L)� window%=break% �Close_Window(pane%)
V�
`:
j��openwindow(window%)
twimp%!0=window%
~� window%=break% �
�!  ș "Wimp_OpenWindow",,wimp%
�  p%!0=pane%
�#  ș "Wimp_GetWindowState",0,p%
�  p%!4=wimp%!4
�  p%!8=(wimp%!16)-220
�  p%!12=(wimp%!4)+646
�  p%!16=wimp%!16-40
�  p%!28=wimp%!28
�  ș "Wimp_OpenWindow",0,p%
�  wimp%!28=pane%
��
� ș "Wimp_OpenWindow",0,wimp%
�

:
� �Alert(title$,message$)
� response%
($(wimp%+4)=message$
26ș "Wimp_ReportError",wimp%,16,title$ � ,response%
<�
F:
P� �Change_colour(col%)
Z?wimp%!0=main%:wimp%!4=6:wimp%!8=col%<<24:wimp%!12=&0F000000
d!ș "Wimp_SetIconState",,wimp%
n�
x:
�� �IconText(window%,icon%)
�#wimp%!0=window% : wimp%!4=icon%
�!ș "Wimp_GetIconState",,wimp%
�7� ((wimp%!24) � &100)=0 � 1,"Icon isn't indirected"
�=$(wimp%!28)
�:
�"� �WindowTitle(window%,title$)
�wimp%!0=window%
�"ș "Wimp_GetWindowInfo",,wimp%
�6� ((wimp%!60)�&100)=0 � 1,"Title isn't indirected"
�$(wimp%!76)=title$
��
�:
&� �Put_Caret(window%,icon%,chars%)
8ș "Wimp_SetCaretPosition",window%,icon%,,,-1,chars%
�
"
,� �Draw_window(window%)
6� more%
@wimp%!0=window%
J(ș"Wimp_RedrawWindow",,wimp% � more%
T&�origin(wimp%,x_origin%,y_origin%)
^ȕ more%
h6 � window%=break% �Draw_break(x_origin%,y_origin%)
r6 � window%=inout% �Draw_inout(x_origin%,y_origin%)
|* ș "Wimp_GetRectangle",,wimp% � more%
��
��
�:
�,� �origin(wimp%,� x_origin%,� y_origin%)
�x_origin%=wimp%!4-wimp%!20
�y_origin%=wimp%!16-wimp%!24
��
�
�� �Force_Draw(window%)
�Ȏ window% �
�8 � -1   : ș "Wimp_ForceRedraw",-1,0,0,2*1280,2*1024
�9  : ș "Wimp_ForceRedraw",window%,0,-2*1024,2*1280,0
��
�

� �Open_Window(window%)
&wimp%!0=window%
0#ș "Wimp_GetWindowState",,wimp%
:+� window%=inout% wimp%!8=(wimp%!16)-960
Dș "Wimp_OpenWindow",,wimp%
N6� window%=break% break_open%=�:�Open_Window(pane%)
X"� window%=inout% inout_open%=�
b�
l
v��error
�  !wimp% = 99
�:  $(wimp%+4) = �$ + " (Internal error code "+Þ+")"+�0
�  � ("SET Error$Ed "+Þ)
�-  ș "Wimp_ReportError",wimp%,0,"!Budget"
��
�
�ݤQuery(text$)
�!wimp% = 99
�$(wimp%+4) = text$
�7ș "Wimp_ReportError",wimp%,&13,"!Budget" � ,reply%
�=reply%
�
�+� �Icon_Put_Sprite(window%,icon%,name$)
!wimp%!0=window%:wimp%!4=icon%
!ș "Wimp_GetIconState",,wimp%
ș "Wimp_DeleteIcon",,wimp%
 =wimp%!4=wimp%!8   : wimp%!8=wimp%!12  : wimp%!12=wimp%!16
*=wimp%!16=wimp%!20 : wimp%!20=wimp%!24 : $(wimp%+24)=name$
4'ș "Wimp_CreateIcon",,wimp% � icon%
>
=icon%
H:
R� �getnamefromaddress(add%)
\� file$
ffile$=""
pȕ ?add%<>0 � ?add%<>13
zfile$+=�?add%  : add%+=1
��
�
=file$
�:
�J�=====================================================================
�%�                    HELP ROUTINE
�J�=====================================================================
�� �help(wimp%)
�� t$
�Ȏ wimp%!32 �
�
  � main%
�    Ȏ wimp%!36 �
�^      � 0:t$="This is the Outgoings icon.|MClick SELECT here to open the outgoings window"
�X      � 1:t$="This is the Income icon.|MClick SELECT here to open the income window"
U      � 2:t$="This Icon shows the total amount of outgoings for the period shown"
R      � 3:t$="This Icon shows the total amount of income for the period shown"
c      � 6:t$="This Icon shows the difference between income and outgoings for the period shown"
$�      � 9:t$="This is the period icon.|MClick SELECT here to increase the period over which the income,outgoings and difference amounts apply.|MClick ADJUST here to decrease the period covered."
.]       t$="This is the main budget window.|MClick MENU for main menu.Info,Save and Quit"
8	    �
B  � inout%
L    Ȏ wimp%!36 �
V"      � 1:� windowtype%=out% �
`9             t$="This is the Outgoings heading Icon."
j             �
t6             t$="This is the Income heading Icon."
~             �
��             t$+="|MEnter the name of a heading you wish to create.|MIf an existing heading has been selected it can be amended here."
�"      � 3:� windowtype%=out% �
��             t$="This is the Outgoings amount Icon.|MEnter the amount required.|MIf an existing heading has been selected the amount can be amended here.|MPressing RETURN with no amount entered opens a breakdown window."
�             �
��             t$="This is the Income amount Icon.|MEnter the amount required.|MIf an existing heading has been selected the amount can be amended here."
�             �
ē      � 5:t$="This is the period Icon.|MClick SELECT to increase the period applied to the heading shown.|MClick ADJUST to decrease the period"
Ϊ      � 7:t$="This is the delete Icon.|MClick SELECT to delete an existing heading that has been selected.|MClick SELECT with nothing selected deletes all records!!!"
�#      � -1:� windowtype%=out% �
��              t$="This is the Outgoings display window.|MClick SELECT over any heading to amend or delete it.|MIf the heading contains an '*' then a breakdown window opens.|MClick ADJUST to cancel a selection"
�              �
��              t$="This is the Income display window.|MClick SELECT over any heading to amend or delete it.|MClick ADJUST to cancel a selection."
              �

o       � windowtype%=out% t$="This is the Outgoings control panel" � t$="This is the Income control panel"
	    �

  � pane%
(    Ȏ wimp%!36 �
2�      � 0:t$="This is the period Icon.|MAll items entered in a breakdown window have this period applied to them.|MClick SELECT to increase the period applied to the current Outgoing heading.|MClick ADJUST to decrease the period."
<�      � 2:t$="This is the item Icon.|MEnter the name of an item you wish to create.|MIf an existing item is selected it can be amended here."
F�      � 6:t$="This is the amount Icon.|MEnter the amount required.|MIf an existing item is selected it can be amended here."
P�      � 7:t$="This is the OK Icon.|MClick SELECT to close breakdown window and re-enter Outgoings Window.|MUse of this Icon is not essential to 'fix' any entries made."
Z�      � 8:t$="This is the delete Icon.|MClick SELECT with an item selected to delete that item from the breakdown.|MClick SELECT with nothing selected deletes all breakdown items and parent Outgoings heading."
d�       t$="This is the breakdown control panel.|MThe outgoing heading to which this breakdown relates is displayed on the Title Bar"
n	    �
x�  � break%:t$="This is the breakdown display window.|MClick SELECT over any heading to amend or delete it.|MClick ADJUST to cancel a selection."
��  � -2:t$="This is the Budget icon.|MClick SELECT to open Main Window.|MClick MENU to Save,Quit or obtain information about the program."
��
�wimp%!12=wimp%!8
�wimp%!16=&503
�$(wimp%+20)=t$+�0
�!wimp%=(25+�t$) � � 3
�*ș "Wimp_SendMessage",17,wimp%,wimp%!4
��
�
00000000  0d 00 0a 0f f4 3e 21 52  75 6e 49 6d 61 67 65 0d  |.....>!RunImage.|
00000010  00 14 04 0d 00 1e 18 f2  47 65 74 5f 63 6f 6d 6d  |........Get_comm|
00000020  61 6e 64 6c 69 6e 65 66  69 6c 65 0d 00 28 14 f2  |andlinefile..(..|
00000030  57 69 6d 70 5f 49 6e 69  74 69 61 6c 69 73 65 0d  |Wimp_Initialise.|
00000040  00 32 1a f2 53 65 74 5f  49 6e 69 74 69 61 6c 5f  |.2..Set_Initial_|
00000050  56 61 72 69 61 62 6c 65  73 0d 00 3c 2d f2 43 72  |Variables..<-.Cr|
00000060  65 61 74 65 5f 57 69 6e  64 6f 77 73 28 22 3c 42  |eate_Windows("<B|
00000070  75 64 67 65 74 24 44 69  72 3e 2e 54 65 6d 70 6c  |udget$Dir>.Templ|
00000080  61 74 65 73 22 29 0d 00  46 0d f2 42 61 72 5f 49  |ates")..F..Bar_I|
00000090  63 6f 6e 0d 00 50 0e ee  20 85 20 f2 65 72 72 6f  |con..P.. . .erro|
000000a0  72 0d 00 5a 0e f2 57 69  6d 70 5f 50 6f 6c 6c 0d  |r..Z..Wimp_Poll.|
000000b0  00 64 0f f2 43 6c 6f 73  65 5f 44 6f 77 6e 0d 00  |.d..Close_Down..|
000000c0  6e 05 e0 0d 00 78 05 3a  0d 00 82 1a dd 20 f2 47  |n....x.:..... .G|
000000d0  65 74 5f 63 6f 6d 6d 61  6e 64 6c 69 6e 65 66 69  |et_commandlinefi|
000000e0  6c 65 0d 00 8c 1d c8 99  20 22 4f 53 5f 47 65 74  |le...... "OS_Get|
000000f0  45 6e 76 22 20 b8 20 63  6f 6d 6d 61 6e 64 24 0d  |Env" . command$.|
00000100  00 96 27 70 3d a7 63 6f  6d 6d 61 6e 64 24 2c 22  |..'p=.command$,"|
00000110  22 22 22 2c a7 63 6f 6d  6d 61 6e 64 24 2c 22 22  |""",.command$,""|
00000120  22 22 29 2b 31 29 0d 00  a0 1b 63 6f 6d 6d 61 6e  |"")+1)....comman|
00000130  64 24 3d c1 63 6f 6d 6d  61 6e 64 24 2c 70 2b 31  |d$=.command$,p+1|
00000140  29 0d 00 aa 31 c8 95 20  c0 63 6f 6d 6d 61 6e 64  |)...1.. .command|
00000150  24 2c 31 29 3d 22 20 22  3a 63 6f 6d 6d 61 6e 64  |$,1)=" ":command|
00000160  24 20 3d 20 c1 63 6f 6d  6d 61 6e 64 24 2c 32 29  |$ = .command$,2)|
00000170  3a ce 0d 00 b4 05 e1 0d  00 be 05 3a 0d 00 c8 16  |:..........:....|
00000180  dd 20 f2 57 69 6d 70 5f  49 6e 69 74 69 61 6c 69  |. .Wimp_Initiali|
00000190  73 65 0d 00 d2 10 de 20  77 69 6d 70 25 20 31 30  |se..... wimp% 10|
000001a0  32 34 0d 00 dc 11 24 77  69 6d 70 25 3d 22 54 41  |24....$wimp%="TA|
000001b0  53 4b 22 0d 00 e6 35 c8  99 20 22 57 69 6d 70 5f  |SK"...5.. "Wimp_|
000001c0  49 6e 69 74 69 61 6c 69  73 65 22 2c 32 30 30 2c  |Initialise",200,|
000001d0  21 77 69 6d 70 25 2c 22  42 75 64 67 65 74 22 20  |!wimp%,"Budget" |
000001e0  b8 20 2c 74 61 73 6b 25  0d 00 f0 05 e1 0d 00 fa  |. ,task%........|
000001f0  05 3a 0d 01 04 1c dd 20  f2 53 65 74 5f 49 6e 69  |.:..... .Set_Ini|
00000200  74 69 61 6c 5f 56 61 72  69 61 62 6c 65 73 0d 01  |tial_Variables..|
00000210  0e 47 6f 75 74 5f 70 74  72 25 20 20 3d 30 20 20  |.Gout_ptr%  =0  |
00000220  3a 69 6e 5f 70 74 72 25  20 20 3d 20 30 20 20 3a  |:in_ptr%  = 0  :|
00000230  6f 75 74 25 20 20 20 3d  20 30 20 20 3a 69 6e 25  |out%   = 0  :in%|
00000240  20 20 20 20 20 3d 31 20  20 3a 6f 75 74 5f 70 74  |     =1  :out_pt|
00000250  72 25 20 3d 30 0d 01 18  43 6d 61 69 6e 74 69 6d  |r% =0...Cmaintim|
00000260  65 25 20 3d 30 20 20 3a  65 6e 74 72 69 65 73 25  |e% =0  :entries%|
00000270  20 3d 32 30 20 20 3a 69  74 65 6d 73 25 20 3d 35  | =20  :items% =5|
00000280  30 20 20 3a 69 6e 5f 70  74 72 25 20 3d 30 20 20  |0  :in_ptr% =0  |
00000290  3a 72 65 64 25 3d 31 31  0d 01 22 37 69 5f 73 65  |:red%=11.."7i_se|
000002a0  6c 25 3d a3 3a 62 5f 73  65 6c 25 3d a3 20 20 20  |l%=.:b_sel%=.   |
000002b0  20 3a 62 6c 61 63 6b 25  20 3d 20 37 20 20 3a 77  | :black% = 7  :w|
000002c0  69 6e 64 6f 77 74 79 70  65 25 3d 6f 75 74 25 0d  |indowtype%=out%.|
000002d0  01 2c 3a 69 6e 6f 75 74  5f 6f 70 65 6e 25 3d a3  |.,:inout_open%=.|
000002e0  3a 62 72 65 61 6b 5f 6f  70 65 6e 25 3d a3 3a 76  |:break_open%=.:v|
000002f0  65 72 73 69 6f 6e 24 3d  22 31 2e 30 31 20 28 36  |ersion$="1.01 (6|
00000300  20 4d 61 72 20 39 33 29  22 0d 01 36 43 66 69 6e  | Mar 93)"..6Cfin|
00000310  25 20 20 20 20 20 20 20  20 20 20 3d a3 3a 74 65  |%          =.:te|
00000320  6d 70 6c 61 74 65 5f 6d  65 6d 25 3d 32 33 30 30  |mplate_mem%=2300|
00000330  20 20 20 20 3a 66 69 6c  65 74 79 70 65 25 20 20  |    :filetype%  |
00000340  20 20 20 20 20 20 20 3d  26 30 30 41 0d 01 40 34  |       =&00A..@4|
00000350  de 20 74 65 6d 70 6c 61  74 65 5f 73 74 6f 72 65  |. template_store|
00000360  25 20 74 65 6d 70 6c 61  74 65 5f 6d 65 6d 25 2c  |% template_mem%,|
00000370  6d 65 6e 75 25 20 35 31  32 2c 70 25 20 32 35 35  |menu% 512,p% 255|
00000380  0d 01 4a 49 63 75 72 72  65 6e 74 66 69 6c 65 24  |..JIcurrentfile$|
00000390  3d 22 42 75 64 67 65 74  22 3a 69 70 74 72 25 3d  |="Budget":iptr%=|
000003a0  74 65 6d 70 6c 61 74 65  5f 73 74 6f 72 65 25 3a  |template_store%:|
000003b0  69 65 6e 64 25 3d 69 70  74 72 25 2b 74 65 6d 70  |iend%=iptr%+temp|
000003c0  6c 61 74 65 5f 6d 65 6d  25 0d 01 54 0e de 20 74  |late_mem%..T.. t|
000003d0  69 6d 65 24 28 35 29 0d  01 5e 3f de 20 62 66 25  |ime$(5)..^?. bf%|
000003e0  28 65 6e 74 72 69 65 73  25 29 20 20 20 20 20 20  |(entries%)      |
000003f0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 3a f4  |              :.|
00000400  20 62 72 65 61 6b 64 6f  77 6e 20 6f 70 74 69 6f  | breakdown optio|
00000410  6e 20 66 6c 61 67 0d 01  68 47 de 20 6f 68 24 28  |n flag..hG. oh$(|
00000420  65 6e 74 72 69 65 73 25  29 20 20 20 20 20 20 20  |entries%)       |
00000430  20 20 20 20 20 20 20 20  20 20 20 20 20 3a f4 20  |             :. |
00000440  4f 75 74 67 6f 69 6e 67  73 20 69 6e 64 69 76 69  |Outgoings indivi|
00000450  64 75 61 6c 20 68 65 61  64 69 6e 67 73 0d 01 72  |dual headings..r|
00000460  45 de 20 6f 61 25 28 65  6e 74 72 69 65 73 25 29  |E. oa%(entries%)|
00000470  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000480  20 20 20 20 3a f4 20 4f  75 74 67 6f 69 6e 67 73  |    :. Outgoings|
00000490  20 69 6e 64 69 76 69 64  75 61 6c 20 61 6d 6f 75  | individual amou|
000004a0  6e 74 0d 01 7c 48 de 20  6f 74 25 28 65 6e 74 72  |nt..|H. ot%(entr|
000004b0  69 65 73 25 29 20 20 20  20 20 20 20 20 20 20 20  |ies%)           |
000004c0  20 20 20 20 20 20 20 20  20 3a f4 20 4f 75 74 67  |         :. Outg|
000004d0  6f 69 6e 67 73 20 69 6e  64 69 76 69 64 75 61 6c  |oings individual|
000004e0  20 74 69 6d 65 73 63 61  6c 65 0d 01 86 44 de 20  | timescale...D. |
000004f0  62 61 25 28 65 6e 74 72  69 65 73 25 2c 69 74 65  |ba%(entries%,ite|
00000500  6d 73 25 29 20 20 20 20  20 20 20 20 20 20 20 20  |ms%)            |
00000510  20 3a f4 20 4f 75 74 67  6f 69 6e 67 73 20 62 72  | :. Outgoings br|
00000520  65 61 6b 64 6f 77 6e 20  61 6d 6f 75 6e 74 0d 01  |eakdown amount..|
00000530  90 43 de 20 62 69 24 28  65 6e 74 72 69 65 73 25  |.C. bi$(entries%|
00000540  2c 69 74 65 6d 73 25 29  20 20 20 20 20 20 20 20  |,items%)        |
00000550  20 20 20 20 20 3a f4 20  4f 75 74 67 6f 69 6e 67  |     :. Outgoing|
00000560  73 20 62 72 65 61 6b 64  6f 77 6e 20 69 74 65 6d  |s breakdown item|
00000570  73 0d 01 9a 4a de 20 62  72 6b 5f 70 74 72 25 28  |s...J. brk_ptr%(|
00000580  65 6e 74 72 69 65 73 25  29 20 20 20 20 20 20 20  |entries%)       |
00000590  20 20 20 20 20 20 20 20  3a f4 20 4f 75 74 67 6f  |        :. Outgo|
000005a0  69 6e 67 73 20 62 72 65  61 6b 64 6f 77 6e 20 69  |ings breakdown i|
000005b0  74 65 6d 20 70 6f 69 6e  74 65 72 0d 01 a4 4a de  |tem pointer...J.|
000005c0  20 6f 79 61 25 28 65 6e  74 72 69 65 73 25 29 20  | oya%(entries%) |
000005d0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
000005e0  20 20 3a f4 20 4f 75 74  67 6f 69 6e 67 73 20 69  |  :. Outgoings i|
000005f0  6e 64 69 76 69 64 75 61  6c 20 79 65 61 72 20 61  |ndividual year a|
00000600  6d 6f 75 6e 74 0d 01 ae  41 de 20 69 68 24 28 65  |mount...A. ih$(e|
00000610  6e 74 72 69 65 73 25 29  20 20 20 20 20 20 20 20  |ntries%)        |
00000620  20 20 20 20 20 20 20 20  20 20 20 20 3a f4 20 49  |            :. I|
00000630  6e 63 6f 6d 65 20 69 6e  64 69 76 69 64 75 61 6c  |ncome individual|
00000640  20 74 69 74 6c 65 0d 01  b8 42 de 20 69 61 25 28  | title...B. ia%(|
00000650  65 6e 74 72 69 65 73 25  29 20 20 20 20 20 20 20  |entries%)       |
00000660  20 20 20 20 20 20 20 20  20 20 20 20 20 3a f4 20  |             :. |
00000670  49 6e 63 6f 6d 65 20 69  6e 64 69 76 69 64 75 61  |Income individua|
00000680  6c 20 61 6d 6f 75 6e 74  0d 01 c2 45 de 20 69 74  |l amount...E. it|
00000690  25 28 65 6e 74 72 69 65  73 25 29 20 20 20 20 20  |%(entries%)     |
000006a0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 3a  |               :|
000006b0  f4 20 49 6e 63 6f 6d 65  20 69 6e 64 69 76 69 64  |. Income individ|
000006c0  75 61 6c 20 74 69 6d 65  73 63 61 6c 65 0d 01 cc  |ual timescale...|
000006d0  47 de 20 69 79 61 25 28  65 6e 74 72 69 65 73 25  |G. iya%(entries%|
000006e0  29 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |)               |
000006f0  20 20 20 20 3a f4 20 49  6e 63 6f 6d 65 20 69 6e  |    :. Income in|
00000700  64 69 76 69 64 75 61 6c  20 79 65 61 72 20 61 6d  |dividual year am|
00000710  6f 75 6e 74 0d 01 d6 4e  74 69 6d 65 24 28 29 3d  |ount...Ntime$()=|
00000720  22 57 65 65 6b 6c 79 22  2c 22 46 6f 72 74 6e 69  |"Weekly","Fortni|
00000730  67 68 74 6c 79 22 2c 22  46 6f 75 72 77 65 65 6b  |ghtly","Fourweek|
00000740  6c 79 22 2c 22 4d 6f 6e  74 68 6c 79 22 2c 22 51  |ly","Monthly","Q|
00000750  75 61 72 74 65 72 6c 79  22 2c 22 59 65 61 72 6c  |uarterly","Yearl|
00000760  79 22 0d 01 e0 27 62 66  25 28 29 3d a3 3a 62 72  |y"...'bf%()=.:br|
00000770  65 61 6b 74 69 74 6c 65  24 3d 22 42 72 65 61 6b  |eaktitle$="Break|
00000780  64 6f 77 6e 20 6f 66 20  22 0d 01 ea 0d 40 25 3d  |down of "....@%=|
00000790  26 32 30 32 30 39 0d 01  f4 05 e1 0d 01 fe 05 3a  |&20209.........:|
000007a0  0d 02 08 1c dd 20 f2 43  72 65 61 74 65 5f 57 69  |..... .Create_Wi|
000007b0  6e 64 6f 77 73 28 66 69  6c 65 24 29 0d 02 12 21  |ndows(file$)...!|
000007c0  c8 99 20 22 57 69 6d 70  5f 4f 70 65 6e 54 65 6d  |.. "Wimp_OpenTem|
000007d0  70 6c 61 74 65 22 2c 2c  66 69 6c 65 24 0d 02 1c  |plate",,file$...|
000007e0  24 69 6e 66 6f 25 3d a4  43 72 65 61 74 65 5f 57  |$info%=.Create_W|
000007f0  69 6e 64 6f 77 28 22 70  72 6f 67 49 6e 66 6f 22  |indow("progInfo"|
00000800  29 0d 02 26 20 6d 61 69  6e 25 3d a4 43 72 65 61  |)..& main%=.Crea|
00000810  74 65 5f 57 69 6e 64 6f  77 28 22 4d 61 69 6e 22  |te_Window("Main"|
00000820  29 0d 02 30 22 69 6e 6f  75 74 25 3d a4 43 72 65  |)..0"inout%=.Cre|
00000830  61 74 65 5f 57 69 6e 64  6f 77 28 22 69 6e 6f 75  |ate_Window("inou|
00000840  74 22 29 0d 02 3a 26 62  72 65 61 6b 25 3d a4 43  |t")..:&break%=.C|
00000850  72 65 61 74 65 5f 57 69  6e 64 6f 77 28 22 6f 75  |reate_Window("ou|
00000860  74 5f 62 72 65 61 6b 22  29 0d 02 44 20 70 61 6e  |t_break")..D pan|
00000870  65 25 3d a4 43 72 65 61  74 65 5f 57 69 6e 64 6f  |e%=.Create_Windo|
00000880  77 28 22 70 61 6e 65 22  29 0d 02 4e 20 73 61 76  |w("pane")..N sav|
00000890  65 25 3d a4 43 72 65 61  74 65 5f 57 69 6e 64 6f  |e%=.Create_Windo|
000008a0  77 28 22 73 61 76 65 22  29 0d 02 58 1b c8 99 20  |w("save")..X... |
000008b0  22 57 69 6d 70 5f 43 6c  6f 73 65 54 65 6d 70 6c  |"Wimp_CloseTempl|
000008c0  61 74 65 22 0d 02 62 49  f2 50 75 74 5f 49 63 6f  |ate"..bI.Put_Ico|
000008d0  6e 5f 54 65 78 74 28 69  6e 66 6f 25 2c 34 2c 76  |n_Text(info%,4,v|
000008e0  65 72 73 69 6f 6e 24 29  3a f2 50 75 74 5f 49 63  |ersion$):.Put_Ic|
000008f0  6f 6e 5f 54 65 78 74 28  73 61 76 65 25 2c 32 2c  |on_Text(save%,2,|
00000900  63 75 72 72 65 6e 74 66  69 6c 65 24 29 0d 02 6c  |currentfile$)..l|
00000910  30 f2 57 69 6e 64 6f 77  5f 54 6f 5f 54 6f 70 28  |0.Window_To_Top(|
00000920  6d 61 69 6e 25 29 3a f2  50 75 74 5f 43 61 72 65  |main%):.Put_Care|
00000930  74 28 6d 61 69 6e 25 2c  31 31 2c 30 29 0d 02 76  |t(main%,11,0)..v|
00000940  5e e7 20 63 6f 6d 6d 61  6e 64 24 3c 3e 22 22 20  |^. command$<>"" |
00000950  f2 4c 6f 61 64 66 69 6c  65 28 63 6f 6d 6d 61 6e  |.Loadfile(comman|
00000960  64 24 2c 66 69 6c 65 74  79 70 65 25 29 3a f2 4f  |d$,filetype%):.O|
00000970  70 65 6e 5f 57 69 6e 64  6f 77 28 69 6e 6f 75 74  |pen_Window(inout|
00000980  25 29 3a 77 69 6e 64 6f  77 74 79 70 65 25 3d 6f  |%):windowtype%=o|
00000990  75 74 25 3a f2 55 70 64  61 74 65 0d 02 80 05 e1  |ut%:.Update.....|
000009a0  0d 02 8a 05 3a 0d 02 94  13 dd 20 f2 55 70 64 61  |....:..... .Upda|
000009b0  74 65 5f 69 6e 6f 75 74  0d 02 9e 14 c8 8e 20 77  |te_inout...... w|
000009c0  69 6e 64 6f 77 74 79 70  65 25 20 ca 0d 02 a8 0d  |indowtype% .....|
000009d0  20 20 c9 20 6f 75 74 25  3a 0d 02 b2 2e 20 20 20  |  . out%:....   |
000009e0  20 20 20 20 20 20 20 f2  57 69 6e 64 6f 77 54 69  |       .WindowTi|
000009f0  74 6c 65 28 69 6e 6f 75  74 25 2c 22 4f 55 54 47  |tle(inout%,"OUTG|
00000a00  4f 49 4e 47 53 22 29 0d  02 bc 3b 20 20 20 20 20  |OINGS")...;     |
00000a10  20 20 20 20 20 f2 50 75  74 5f 49 63 6f 6e 5f 54  |     .Put_Icon_T|
00000a20  65 78 74 28 69 6e 6f 75  74 25 2c 35 2c 74 69 6d  |ext(inout%,5,tim|
00000a30  65 24 28 6f 74 25 28 a4  50 6f 69 6e 74 65 72 29  |e$(ot%(.Pointer)|
00000a40  29 29 0d 02 c6 0b 20 20  c9 20 69 6e 25 0d 02 d0  |))....  . in%...|
00000a50  2b 20 20 20 20 20 20 20  20 20 20 f2 57 69 6e 64  |+          .Wind|
00000a60  6f 77 54 69 74 6c 65 28  69 6e 6f 75 74 25 2c 22  |owTitle(inout%,"|
00000a70  49 4e 43 4f 4d 45 22 29  0d 02 da 3b 20 20 20 20  |INCOME")...;    |
00000a80  20 20 20 20 20 20 f2 50  75 74 5f 49 63 6f 6e 5f  |      .Put_Icon_|
00000a90  54 65 78 74 28 69 6e 6f  75 74 25 2c 35 2c 74 69  |Text(inout%,5,ti|
00000aa0  6d 65 24 28 69 74 25 28  a4 50 6f 69 6e 74 65 72  |me$(it%(.Pointer|
00000ab0  29 29 29 0d 02 e4 05 cb  0d 02 ee 10 e7 20 ac 20  |))).......... . |
00000ac0  69 5f 73 65 6c 25 20 8c  0d 02 f8 3d 20 20 f2 50  |i_sel% ....=  .P|
00000ad0  75 74 5f 49 63 6f 6e 5f  54 65 78 74 28 69 6e 6f  |ut_Icon_Text(ino|
00000ae0  75 74 25 2c 31 2c 22 22  29 3a f2 50 75 74 5f 49  |ut%,1,""):.Put_I|
00000af0  63 6f 6e 5f 54 65 78 74  28 69 6e 6f 75 74 25 2c  |con_Text(inout%,|
00000b00  33 2c 22 22 29 0d 03 02  05 cd 0d 03 0c 2d f2 50  |3,"")........-.P|
00000b10  75 74 5f 43 61 72 65 74  28 69 6e 6f 75 74 25 2c  |ut_Caret(inout%,|
00000b20  31 2c a9 a4 49 63 6f 6e  54 65 78 74 28 69 6e 6f  |1,..IconText(ino|
00000b30  75 74 25 2c 31 29 29 0d  03 16 17 f2 46 6f 72 63  |ut%,1)).....Forc|
00000b40  65 5f 44 72 61 77 28 69  6e 6f 75 74 25 29 0d 03  |e_Draw(inout%)..|
00000b50  20 05 e1 0d 03 2a 05 3a  0d 03 34 13 dd 20 f2 55  | ....*.:..4.. .U|
00000b60  70 64 61 74 65 5f 62 72  65 61 6b 0d 03 3e 32 f2  |pdate_break..>2.|
00000b70  57 69 6e 64 6f 77 54 69  74 6c 65 28 62 72 65 61  |WindowTitle(brea|
00000b80  6b 25 2c 62 72 65 61 6b  74 69 74 6c 65 24 2b 6f  |k%,breaktitle$+o|
00000b90  68 24 28 a4 50 6f 69 6e  74 65 72 29 29 0d 03 48  |h$(.Pointer))..H|
00000ba0  51 e7 20 62 72 6b 5f 70  74 72 25 28 a4 50 6f 69  |Q. brk_ptr%(.Poi|
00000bb0  6e 74 65 72 29 3e 31 30  20 79 5f 62 72 65 61 6b  |nter)>10 y_break|
00000bc0  25 3d 2d 28 62 72 6b 5f  70 74 72 25 28 a4 50 6f  |%=-(brk_ptr%(.Po|
00000bd0  69 6e 74 65 72 29 2a 33  36 2b 32 35 30 29 20 8b  |inter)*36+250) .|
00000be0  20 79 5f 62 72 65 61 6b  25 3d 2d 37 35 30 0d 03  | y_break%=-750..|
00000bf0  52 35 77 69 6d 70 25 21  30 3d 30 3a 77 69 6d 70  |R5wimp%!0=0:wimp|
00000c00  25 21 34 3d 79 5f 62 72  65 61 6b 25 3a 77 69 6d  |%!4=y_break%:wim|
00000c10  70 25 21 38 3d 36 34 38  3a 77 69 6d 70 25 21 31  |p%!8=648:wimp%!1|
00000c20  32 3d 30 0d 03 5c 24 c8  99 20 22 57 69 6d 70 5f  |2=0..\$.. "Wimp_|
00000c30  53 65 74 45 78 74 65 6e  74 22 2c 62 72 65 61 6b  |SetExtent",break|
00000c40  25 2c 77 69 6d 70 25 0d  03 66 30 f2 50 75 74 5f  |%,wimp%..f0.Put_|
00000c50  49 63 6f 6e 5f 54 65 78  74 28 70 61 6e 65 25 2c  |Icon_Text(pane%,|
00000c60  30 2c 74 69 6d 65 24 28  6f 74 25 28 a4 50 6f 69  |0,time$(ot%(.Poi|
00000c70  6e 74 65 72 29 29 29 0d  03 70 44 e7 20 ac 20 62  |nter)))..pD. . b|
00000c80  5f 73 65 6c 25 20 f2 50  75 74 5f 49 63 6f 6e 5f  |_sel% .Put_Icon_|
00000c90  54 65 78 74 28 70 61 6e  65 25 2c 32 2c 22 22 29  |Text(pane%,2,"")|
00000ca0  3a f2 50 75 74 5f 49 63  6f 6e 5f 54 65 78 74 28  |:.Put_Icon_Text(|
00000cb0  70 61 6e 65 25 2c 36 2c  22 22 29 0d 03 7a 2b f2  |pane%,6,"")..z+.|
00000cc0  50 75 74 5f 43 61 72 65  74 28 70 61 6e 65 25 2c  |Put_Caret(pane%,|
00000cd0  32 2c a9 a4 49 63 6f 6e  54 65 78 74 28 70 61 6e  |2,..IconText(pan|
00000ce0  65 25 2c 32 29 29 0d 03  84 2a f2 46 6f 72 63 65  |e%,2))...*.Force|
00000cf0  5f 44 72 61 77 28 70 61  6e 65 25 29 3a f2 46 6f  |_Draw(pane%):.Fo|
00000d00  72 63 65 5f 44 72 61 77  28 62 72 65 61 6b 25 29  |rce_Draw(break%)|
00000d10  0d 03 8e 05 e1 0d 03 98  05 3a 0d 03 a2 12 dd 20  |.........:..... |
00000d20  f2 55 70 64 61 74 65 5f  6d 61 69 6e 0d 03 ac 0b  |.Update_main....|
00000d30  ea 20 6c 6f 6f 70 25 0d  03 b6 1d 64 69 73 70 6c  |. loop%....displ|
00000d40  61 79 25 3d a4 74 69 6d  65 28 6d 61 69 6e 74 69  |ay%=.time(mainti|
00000d50  6d 65 25 29 0d 03 c0 41  e3 20 6c 6f 6f 70 25 3d  |me%)...A. loop%=|
00000d60  30 b8 6f 75 74 5f 70 74  72 25 3a 6f 79 61 25 28  |0.out_ptr%:oya%(|
00000d70  6c 6f 6f 70 25 29 3d 6f  61 25 28 6c 6f 6f 70 25  |loop%)=oa%(loop%|
00000d80  29 2a a4 74 69 6d 65 28  6f 74 25 28 6c 6f 6f 70  |)*.time(ot%(loop|
00000d90  25 29 29 3a ed 0d 03 ca  40 e3 20 6c 6f 6f 70 25  |%)):....@. loop%|
00000da0  3d 30 b8 69 6e 5f 70 74  72 25 3a 69 79 61 25 28  |=0.in_ptr%:iya%(|
00000db0  6c 6f 6f 70 25 29 3d 69  61 25 28 6c 6f 6f 70 25  |loop%)=ia%(loop%|
00000dc0  29 2a a4 74 69 6d 65 28  69 74 25 28 6c 6f 6f 70  |)*.time(it%(loop|
00000dd0  25 29 29 3a ed 0d 03 d4  26 74 6f 74 5f 6f 75 74  |%)):....&tot_out|
00000de0  25 3d c6 8e 6f 79 61 25  28 29 3a 74 6f 74 5f 69  |%=..oya%():tot_i|
00000df0  6e 25 3d c6 8e 69 79 61  25 28 29 0d 03 de 4e 69  |n%=..iya%()...Ni|
00000e00  6e 74 6f 74 25 3d 74 6f  74 5f 69 6e 25 20 81 20  |ntot%=tot_in% . |
00000e10  64 69 73 70 6c 61 79 25  3a 6f 75 74 74 6f 74 25  |display%:outtot%|
00000e20  3d 74 6f 74 5f 6f 75 74  25 20 81 20 64 69 73 70  |=tot_out% . disp|
00000e30  6c 61 79 25 3a 64 69 66  66 25 3d 69 6e 74 6f 74  |lay%:diff%=intot|
00000e40  25 2d 6f 75 74 74 6f 74  25 0d 03 e8 56 e7 20 6f  |%-outtot%...V. o|
00000e50  75 74 74 6f 74 25 3e 30  20 f2 50 75 74 5f 49 63  |uttot%>0 .Put_Ic|
00000e60  6f 6e 5f 54 65 78 74 28  6d 61 69 6e 25 2c 32 2c  |on_Text(main%,2,|
00000e70  a4 44 65 63 69 6d 61 6c  28 6f 75 74 74 6f 74 25  |.Decimal(outtot%|
00000e80  29 29 20 8b 20 f2 50 75  74 5f 49 63 6f 6e 5f 54  |)) . .Put_Icon_T|
00000e90  65 78 74 28 6d 61 69 6e  25 2c 32 2c 22 22 29 0d  |ext(main%,2,"").|
00000ea0  03 f2 54 e7 20 69 6e 74  6f 74 25 3e 30 20 f2 50  |..T. intot%>0 .P|
00000eb0  75 74 5f 49 63 6f 6e 5f  54 65 78 74 28 6d 61 69  |ut_Icon_Text(mai|
00000ec0  6e 25 2c 33 2c a4 44 65  63 69 6d 61 6c 28 69 6e  |n%,3,.Decimal(in|
00000ed0  74 6f 74 25 29 29 20 8b  20 f2 50 75 74 5f 49 63  |tot%)) . .Put_Ic|
00000ee0  6f 6e 5f 54 65 78 74 28  6d 61 69 6e 25 2c 33 2c  |on_Text(main%,3,|
00000ef0  22 22 29 0d 03 fc 2e e7  20 69 6e 74 6f 74 25 2d  |"")..... intot%-|
00000f00  6f 75 74 74 6f 74 25 3c  30 20 63 6f 6c 25 3d 72  |outtot%<0 col%=r|
00000f10  65 64 25 20 8b 20 63 6f  6c 25 3d 62 6c 61 63 6b  |ed% . col%=black|
00000f20  25 0d 04 06 18 f2 43 68  61 6e 67 65 5f 63 6f 6c  |%.....Change_col|
00000f30  6f 75 72 28 63 6f 6c 25  29 0d 04 10 5c e7 20 6f  |our(col%)...\. o|
00000f40  75 74 74 6f 74 25 2d 69  6e 74 6f 74 25 3c 3e 30  |uttot%-intot%<>0|
00000f50  20 f2 50 75 74 5f 49 63  6f 6e 5f 54 65 78 74 28  | .Put_Icon_Text(|
00000f60  6d 61 69 6e 25 2c 36 2c  a4 44 65 63 69 6d 61 6c  |main%,6,.Decimal|
00000f70  28 64 69 66 66 25 29 29  20 8b 20 f2 50 75 74 5f  |(diff%)) . .Put_|
00000f80  49 63 6f 6e 5f 54 65 78  74 28 6d 61 69 6e 25 2c  |Icon_Text(main%,|
00000f90  36 2c 22 22 29 0d 04 1a  3f f2 50 75 74 5f 49 63  |6,"")...?.Put_Ic|
00000fa0  6f 6e 5f 54 65 78 74 28  6d 61 69 6e 25 2c 39 2c  |on_Text(main%,9,|
00000fb0  74 69 6d 65 24 28 6d 61  69 6e 74 69 6d 65 25 29  |time$(maintime%)|
00000fc0  29 3a f2 46 6f 72 63 65  5f 44 72 61 77 28 6d 61  |):.Force_Draw(ma|
00000fd0  69 6e 25 29 0d 04 24 05  e1 0d 04 2e 05 3a 0d 04  |in%)..$......:..|
00000fe0  38 25 dd f2 44 72 61 77  5f 69 6e 6f 75 74 28 78  |8%..Draw_inout(x|
00000ff0  5f 6f 72 69 67 69 6e 25  2c 79 5f 6f 72 69 67 69  |_origin%,y_origi|
00001000  6e 25 29 0d 04 42 11 ea  20 6c 69 6e 65 25 2c 69  |n%)..B.. line%,i|
00001010  74 65 6d 25 0d 04 4c 0c  6c 69 6e 65 25 3d 33 36  |tem%..L.line%=36|
00001020  0d 04 56 06 ef 35 0d 04  60 14 c8 8e 20 77 69 6e  |..V..5..`... win|
00001030  64 6f 77 74 79 70 65 25  20 ca 0d 04 6a 0c 20 20  |dowtype% ...j.  |
00001040  c9 20 6f 75 74 25 0d 04  74 1a 20 20 e3 20 69 74  |. out%..t.  . it|
00001050  65 6d 25 3d 30 b8 6f 75  74 5f 70 74 72 25 2d 31  |em%=0.out_ptr%-1|
00001060  0d 04 88 32 20 20 20 20  ec 20 78 5f 6f 72 69 67  |...2    . x_orig|
00001070  69 6e 25 2b 35 30 2c 79  5f 6f 72 69 67 69 6e 25  |in%+50,y_origin%|
00001080  2d 32 33 30 2d 28 69 74  65 6d 25 2a 6c 69 6e 65  |-230-(item%*line|
00001090  25 29 0d 04 92 14 20 20  20 20 f1 3b 6f 68 24 28  |%)....    .;oh$(|
000010a0  69 74 65 6d 25 29 0d 04  9c 33 20 20 20 20 ec 20  |item%)...3    . |
000010b0  78 5f 6f 72 69 67 69 6e  25 2b 32 34 30 2c 79 5f  |x_origin%+240,y_|
000010c0  6f 72 69 67 69 6e 25 2d  32 33 30 2d 28 69 74 65  |origin%-230-(ite|
000010d0  6d 25 2a 6c 69 6e 65 25  29 0d 04 a6 27 20 20 20  |m%*line%)...'   |
000010e0  20 e7 20 6f 61 25 28 69  74 65 6d 25 29 3e 30 20  | . oa%(item%)>0 |
000010f0  f1 20 6f 61 25 28 69 74  65 6d 25 29 2f 31 30 30  |. oa%(item%)/100|
00001100  0d 04 b0 33 20 20 20 20  ec 20 78 5f 6f 72 69 67  |...3    . x_orig|
00001110  69 6e 25 2b 34 32 30 2c  79 5f 6f 72 69 67 69 6e  |in%+420,y_origin|
00001120  25 2d 32 33 30 2d 28 69  74 65 6d 25 2a 6c 69 6e  |%-230-(item%*lin|
00001130  65 25 29 0d 04 ba 17 20  20 20 20 e7 20 6f 75 74  |e%)....    . out|
00001140  5f 70 74 72 25 3c 3e 30  20 8c 0d 04 c4 18 20 20  |_ptr%<>0 .....  |
00001150  20 20 20 20 e7 20 62 66  25 28 69 74 65 6d 25 29  |    . bf%(item%)|
00001160  20 8c 0d 04 ce 25 20 20  20 20 20 20 20 20 f1 3b  | ....%        .;|
00001170  22 2a 20 20 22 2b 74 69  6d 65 24 28 6f 74 25 28  |"*  "+time$(ot%(|
00001180  69 74 65 6d 25 29 29 0d  04 d8 0b 20 20 20 20 20  |item%))....     |
00001190  20 cc 0d 04 e2 25 20 20  20 20 20 20 20 20 f1 3b  | ....%        .;|
000011a0  22 20 20 20 22 2b 74 69  6d 65 24 28 6f 74 25 28  |"   "+time$(ot%(|
000011b0  69 74 65 6d 25 29 29 0d  04 ec 0b 20 20 20 20 20  |item%))....     |
000011c0  20 cd 0d 04 f6 09 20 20  20 20 cd 0d 05 00 07 20  | .....    ..... |
000011d0  20 ed 0d 05 0a 0b 20 20  c9 20 69 6e 25 0d 05 14  | .....  . in%...|
000011e0  1b 20 20 20 20 e3 20 69  74 65 6d 25 3d 30 b8 69  |.    . item%=0.i|
000011f0  6e 5f 70 74 72 25 2d 31  0d 05 1e 32 20 20 20 20  |n_ptr%-1...2    |
00001200  ec 20 78 5f 6f 72 69 67  69 6e 25 2b 35 30 2c 79  |. x_origin%+50,y|
00001210  5f 6f 72 69 67 69 6e 25  2d 32 33 30 2d 28 69 74  |_origin%-230-(it|
00001220  65 6d 25 2a 6c 69 6e 65  25 29 0d 05 28 14 20 20  |em%*line%)..(.  |
00001230  20 20 f1 3b 69 68 24 28  69 74 65 6d 25 29 0d 05  |  .;ih$(item%)..|
00001240  32 33 20 20 20 20 ec 20  78 5f 6f 72 69 67 69 6e  |23    . x_origin|
00001250  25 2b 32 34 30 2c 79 5f  6f 72 69 67 69 6e 25 2d  |%+240,y_origin%-|
00001260  32 33 30 2d 28 69 74 65  6d 25 2a 6c 69 6e 65 25  |230-(item%*line%|
00001270  29 0d 05 3c 27 20 20 20  20 e7 20 69 61 25 28 69  |)..<'    . ia%(i|
00001280  74 65 6d 25 29 3e 30 20  f1 20 69 61 25 28 69 74  |tem%)>0 . ia%(it|
00001290  65 6d 25 29 2f 31 30 30  0d 05 46 33 20 20 20 20  |em%)/100..F3    |
000012a0  ec 20 78 5f 6f 72 69 67  69 6e 25 2b 34 36 38 2c  |. x_origin%+468,|
000012b0  79 5f 6f 72 69 67 69 6e  25 2d 32 33 30 2d 28 69  |y_origin%-230-(i|
000012c0  74 65 6d 25 2a 6c 69 6e  65 25 29 0d 05 50 29 20  |tem%*line%)..P) |
000012d0  20 20 20 e7 20 69 6e 5f  70 74 72 25 20 3c 3e 30  |   . in_ptr% <>0|
000012e0  20 f1 3b 74 69 6d 65 24  28 69 74 25 28 69 74 65  | .;time$(it%(ite|
000012f0  6d 25 29 29 0d 05 5a 09  20 20 20 20 ed 0d 05 64  |m%))..Z.    ...d|
00001300  04 0d 05 6e 05 cb 0d 05  78 05 e1 0d 05 82 05 3a  |...n....x......:|
00001310  0d 05 8c 26 dd 20 f2 44  72 61 77 5f 62 72 65 61  |...&. .Draw_brea|
00001320  6b 28 78 5f 6f 72 69 67  69 6e 25 2c 79 5f 6f 72  |k(x_origin%,y_or|
00001330  69 67 69 6e 25 29 0d 05  96 11 ea 20 6c 69 6e 65  |igin%)..... line|
00001340  25 2c 69 74 65 6d 25 0d  05 a0 0c 6c 69 6e 65 25  |%,item%....line%|
00001350  3d 33 36 0d 05 aa 06 ef  35 0d 05 b4 22 e3 20 69  |=36.....5...". i|
00001360  74 65 6d 25 3d 30 b8 62  72 6b 5f 70 74 72 25 28  |tem%=0.brk_ptr%(|
00001370  a4 50 6f 69 6e 74 65 72  29 2d 31 0d 05 c8 2e ec  |.Pointer)-1.....|
00001380  20 78 5f 6f 72 69 67 69  6e 25 2b 35 30 2c 79 5f  | x_origin%+50,y_|
00001390  6f 72 69 67 69 6e 25 2d  32 33 30 2d 28 69 74 65  |origin%-230-(ite|
000013a0  6d 25 2a 6c 69 6e 65 25  29 0d 05 d2 19 f1 3b 62  |m%*line%).....;b|
000013b0  69 24 28 a4 50 6f 69 6e  74 65 72 2c 69 74 65 6d  |i$(.Pointer,item|
000013c0  25 29 0d 05 e6 2f ec 20  78 5f 6f 72 69 67 69 6e  |%).../. x_origin|
000013d0  25 2b 34 35 30 2c 79 5f  6f 72 69 67 69 6e 25 2d  |%+450,y_origin%-|
000013e0  32 33 30 2d 28 69 74 65  6d 25 2a 6c 69 6e 65 25  |230-(item%*line%|
000013f0  29 0d 05 f0 35 e7 20 62  61 25 28 a4 50 6f 69 6e  |)...5. ba%(.Poin|
00001400  74 65 72 2c 69 74 65 6d  25 29 3e 30 20 f1 20 62  |ter,item%)>0 . b|
00001410  61 25 28 a4 50 6f 69 6e  74 65 72 2c 69 74 65 6d  |a%(.Pointer,item|
00001420  25 29 2f 31 30 30 0d 05  fa 05 ed 0d 06 04 05 e1  |%)/100..........|
00001430  0d 06 0e 05 3a 0d 06 18  1b dd 20 f2 53 65 6c 65  |....:..... .Sele|
00001440  63 74 5f 62 72 65 61 6b  28 79 5f 70 6f 73 25 29  |ct_break(y_pos%)|
00001450  0d 06 22 19 e7 20 ac 20  a4 73 65 6c 65 63 74 28  |..".. . .select(|
00001460  79 5f 70 6f 73 25 29 20  e1 0d 06 2c 2a 62 5f 73  |y_pos%) ...,*b_s|
00001470  65 6c 25 3d b9 3a 62 5f  73 65 6c 65 63 74 25 3d  |el%=.:b_select%=|
00001480  a4 73 65 6c 65 63 74 5f  70 6f 73 28 79 5f 70 6f  |.select_pos(y_po|
00001490  73 25 29 0d 06 36 33 f2  50 75 74 5f 49 63 6f 6e  |s%)..63.Put_Icon|
000014a0  5f 54 65 78 74 28 70 61  6e 65 25 2c 32 2c 62 69  |_Text(pane%,2,bi|
000014b0  24 28 a4 50 6f 69 6e 74  65 72 2c 62 5f 73 65 6c  |$(.Pointer,b_sel|
000014c0  65 63 74 25 29 29 0d 06  40 3d f2 50 75 74 5f 49  |ect%))..@=.Put_I|
000014d0  63 6f 6e 5f 54 65 78 74  28 70 61 6e 65 25 2c 36  |con_Text(pane%,6|
000014e0  2c a4 44 65 63 69 6d 61  6c 28 62 61 25 28 a4 50  |,.Decimal(ba%(.P|
000014f0  6f 69 6e 74 65 72 2c 62  5f 73 65 6c 65 63 74 25  |ointer,b_select%|
00001500  29 29 29 0d 06 4a 11 f2  55 70 64 61 74 65 5f 62  |)))..J..Update_b|
00001510  72 65 61 6b 0d 06 54 05  e1 0d 06 5e 05 3a 0d 06  |reak..T....^.:..|
00001520  68 1b dd 20 f2 53 65 6c  65 63 74 5f 69 6e 6f 75  |h.. .Select_inou|
00001530  74 28 79 5f 70 6f 73 25  29 0d 06 72 19 e7 20 ac  |t(y_pos%)..r.. .|
00001540  20 a4 73 65 6c 65 63 74  28 79 5f 70 6f 73 25 29  | .select(y_pos%)|
00001550  20 e1 0d 06 7c 28 69 5f  73 65 6c 25 3d b9 3a 73  | ...|(i_sel%=.:s|
00001560  65 6c 65 63 74 25 3d a4  73 65 6c 65 63 74 5f 70  |elect%=.select_p|
00001570  6f 73 28 79 5f 70 6f 73  25 29 0d 06 86 14 c8 8e  |os(y_pos%)......|
00001580  20 77 69 6e 64 6f 77 74  79 70 65 25 20 ca 0d 06  | windowtype% ...|
00001590  90 0c 20 20 c9 20 6f 75  74 25 0d 06 9a 20 20 20  |..  . out%...   |
000015a0  20 20 20 20 20 20 20 20  e7 20 ac 20 62 66 25 28  |        . . bf%(|
000015b0  73 65 6c 65 63 74 25 29  20 8c 0d 06 a4 35 20 20  |select%) ....5  |
000015c0  20 20 20 20 20 20 20 20  20 20 f2 50 75 74 5f 49  |          .Put_I|
000015d0  63 6f 6e 5f 54 65 78 74  28 69 6e 6f 75 74 25 2c  |con_Text(inout%,|
000015e0  31 2c 6f 68 24 28 73 65  6c 65 63 74 25 29 29 0d  |1,oh$(select%)).|
000015f0  06 ae 3f 20 20 20 20 20  20 20 20 20 20 20 20 f2  |..?            .|
00001600  50 75 74 5f 49 63 6f 6e  5f 54 65 78 74 28 69 6e  |Put_Icon_Text(in|
00001610  6f 75 74 25 2c 33 2c a4  44 65 63 69 6d 61 6c 28  |out%,3,.Decimal(|
00001620  6f 61 25 28 73 65 6c 65  63 74 25 29 29 29 0d 06  |oa%(select%)))..|
00001630  b8 0f 20 20 20 20 20 20  20 20 20 20 cc 0d 06 c2  |..          ....|
00001640  37 20 20 20 20 20 20 20  20 20 20 20 20 f2 43 6c  |7            .Cl|
00001650  6f 73 65 5f 41 6c 6c 5f  57 69 6e 64 6f 77 73 3a  |ose_All_Windows:|
00001660  f2 4f 70 65 6e 5f 57 69  6e 64 6f 77 28 62 72 65  |.Open_Window(bre|
00001670  61 6b 25 29 0d 06 cc 3d  20 20 20 20 20 20 20 20  |ak%)...=        |
00001680  20 20 20 20 f2 57 69 6e  64 6f 77 54 69 74 6c 65  |    .WindowTitle|
00001690  28 62 72 65 61 6b 25 2c  62 72 65 61 6b 74 69 74  |(break%,breaktit|
000016a0  6c 65 24 2b 6f 68 24 28  73 65 6c 65 63 74 25 29  |le$+oh$(select%)|
000016b0  29 0d 06 d6 1d 20 20 20  20 20 20 20 20 20 20 20  |)....           |
000016c0  20 f2 55 70 64 61 74 65  5f 62 72 65 61 6b 0d 06  | .Update_break..|
000016d0  e0 11 20 20 20 20 20 20  20 20 20 20 20 20 e1 0d  |..            ..|
000016e0  06 ea 0f 20 20 20 20 20  20 20 20 20 20 cd 0d 06  |...          ...|
000016f0  f4 0b 20 20 c9 20 69 6e  25 0d 06 fe 33 20 20 20  |..  . in%...3   |
00001700  20 20 20 20 20 20 20 f2  50 75 74 5f 49 63 6f 6e  |       .Put_Icon|
00001710  5f 54 65 78 74 28 69 6e  6f 75 74 25 2c 31 2c 69  |_Text(inout%,1,i|
00001720  68 24 28 73 65 6c 65 63  74 25 29 29 0d 07 08 3d  |h$(select%))...=|
00001730  20 20 20 20 20 20 20 20  20 20 f2 50 75 74 5f 49  |          .Put_I|
00001740  63 6f 6e 5f 54 65 78 74  28 69 6e 6f 75 74 25 2c  |con_Text(inout%,|
00001750  33 2c a4 44 65 63 69 6d  61 6c 28 69 61 25 28 73  |3,.Decimal(ia%(s|
00001760  65 6c 65 63 74 25 29 29  29 0d 07 12 05 cb 0d 07  |elect%))).......|
00001770  1c 11 f2 55 70 64 61 74  65 5f 69 6e 6f 75 74 0d  |...Update_inout.|
00001780  07 26 05 e1 0d 07 30 05  3a 0d 07 3a 11 dd 20 a4  |.&....0.:..:.. .|
00001790  73 65 6c 65 63 74 28 79  25 29 0d 07 44 17 e7 20  |select(y%)..D.. |
000017a0  77 69 6d 70 25 21 31 32  3d 62 72 65 61 6b 25 20  |wimp%!12=break% |
000017b0  8c 0d 07 4e 22 20 20 74  65 6d 70 5f 70 74 72 25  |...N"  temp_ptr%|
000017c0  3d 62 72 6b 5f 70 74 72  25 28 a4 50 6f 69 6e 74  |=brk_ptr%(.Point|
000017d0  65 72 29 0d 07 58 05 cc  0d 07 62 18 20 20 74 65  |er)..X....b.  te|
000017e0  6d 70 5f 70 74 72 25 3d  a4 50 6f 69 6e 74 65 72  |mp_ptr%=.Pointer|
000017f0  0d 07 6c 05 cd 0d 07 76  4a e7 20 28 28 79 25 3c  |..l....vJ. ((y%<|
00001800  79 5f 6f 72 69 67 69 6e  25 2d 32 32 34 29 29 20  |y_origin%-224)) |
00001810  80 20 28 79 25 3e 28 28  79 5f 6f 72 69 67 69 6e  |. (y%>((y_origin|
00001820  25 2d 32 32 34 29 2d 33  36 2a 74 65 6d 70 5f 70  |%-224)-36*temp_p|
00001830  74 72 25 29 29 20 8c 20  3d b9 20 8b 20 3d a3 0d  |tr%)) . =. . =..|
00001840  07 80 05 3a 0d 07 8a 15  dd 20 a4 73 65 6c 65 63  |...:..... .selec|
00001850  74 5f 70 6f 73 28 79 25  29 0d 07 94 1c 3d 28 28  |t_pos(y%)....=((|
00001860  79 5f 6f 72 69 67 69 6e  25 2d 32 32 34 29 2d 79  |y_origin%-224)-y|
00001870  25 29 2f 33 36 0d 07 9e  05 3a 0d 07 a8 16 dd 20  |%)/36....:..... |
00001880  f2 53 61 76 65 66 69 6c  65 28 66 69 6c 65 24 29  |.Savefile(file$)|
00001890  0d 07 b2 76 e7 20 a7 66  69 6c 65 24 2c 22 2e 22  |...v. .file$,"."|
000018a0  29 3d 30 20 f2 41 6c 65  72 74 28 22 4d 65 73 73  |)=0 .Alert("Mess|
000018b0  61 67 65 20 66 72 6f 6d  20 21 42 75 64 67 65 74  |age from !Budget|
000018c0  22 2c 22 54 6f 20 73 61  76 65 2c 64 72 61 67 20  |","To save,drag |
000018d0  69 63 6f 6e 20 74 6f 20  61 20 64 69 72 65 63 74  |icon to a direct|
000018e0  6f 72 79 20 77 69 6e 64  6f 77 22 29 3a c8 99 20  |ory window"):.. |
000018f0  22 57 69 6d 70 5f 43 72  65 61 74 65 4d 65 6e 75  |"Wimp_CreateMenu|
00001900  22 2c 2d 31 3a e1 0d 07  bc 14 68 61 6e 64 6c 65  |",-1:.....handle|
00001910  25 3d ae 28 66 69 6c 65  24 29 0d 07 c6 15 c8 99  |%=.(file$)......|
00001920  20 22 48 6f 75 72 67 6c  61 73 73 5f 4f 6e 22 0d  | "Hourglass_On".|
00001930  07 d0 1e f1 23 68 61 6e  64 6c 65 25 2c 69 6e 5f  |....#handle%,in_|
00001940  70 74 72 25 2c 6f 75 74  5f 70 74 72 25 0d 07 da  |ptr%,out_ptr%...|
00001950  18 e3 20 6c 6f 6f 70 25  3d 30 b8 6f 75 74 5f 70  |.. loop%=0.out_p|
00001960  74 72 25 2d 31 0d 07 e4  57 20 20 f1 23 68 61 6e  |tr%-1...W  .#han|
00001970  64 6c 65 25 2c 62 66 25  28 6c 6f 6f 70 25 29 2c  |dle%,bf%(loop%),|
00001980  6f 68 24 28 6c 6f 6f 70  25 29 2c 6f 61 25 28 6c  |oh$(loop%),oa%(l|
00001990  6f 6f 70 25 29 2c 6f 74  25 28 6c 6f 6f 70 25 29  |oop%),ot%(loop%)|
000019a0  2c 62 72 6b 5f 70 74 72  25 28 6c 6f 6f 70 25 29  |,brk_ptr%(loop%)|
000019b0  2c 6f 79 61 25 28 6c 6f  6f 70 25 29 0d 07 ee 24  |,oya%(loop%)...$|
000019c0  20 20 20 20 e3 20 6c 6f  6f 70 31 25 3d 30 b8 62  |    . loop1%=0.b|
000019d0  72 6b 5f 70 74 72 25 28  6c 6f 6f 70 25 29 2d 31  |rk_ptr%(loop%)-1|
000019e0  0d 07 f8 37 20 20 20 20  20 20 f1 23 68 61 6e 64  |...7      .#hand|
000019f0  6c 65 25 2c 62 61 25 28  6c 6f 6f 70 25 2c 6c 6f  |le%,ba%(loop%,lo|
00001a00  6f 70 31 25 29 2c 62 69  24 28 6c 6f 6f 70 25 2c  |op1%),bi$(loop%,|
00001a10  6c 6f 6f 70 31 25 29 0d  08 02 09 20 20 20 20 ed  |loop1%)....    .|
00001a20  0d 08 0c 05 ed 0d 08 16  17 e3 20 6c 6f 6f 70 25  |.......... loop%|
00001a30  3d 30 b8 69 6e 5f 70 74  72 25 2d 31 0d 08 20 3c  |=0.in_ptr%-1.. <|
00001a40  20 20 f1 23 68 61 6e 64  6c 65 25 2c 69 68 24 28  |  .#handle%,ih$(|
00001a50  6c 6f 6f 70 25 29 2c 69  61 25 28 6c 6f 6f 70 25  |loop%),ia%(loop%|
00001a60  29 2c 69 74 25 28 6c 6f  6f 70 25 29 2c 69 79 61  |),it%(loop%),iya|
00001a70  25 28 6c 6f 6f 70 25 29  0d 08 2a 05 ed 0d 08 34  |%(loop%)..*....4|
00001a80  0d d9 23 68 61 6e 64 6c  65 25 0d 08 3e 16 c8 99  |..#handle%..>...|
00001a90  20 22 48 6f 75 72 67 6c  61 73 73 5f 4f 66 66 22  | "Hourglass_Off"|
00001aa0  0d 08 48 27 ff 28 22 53  45 54 54 59 50 45 20 22  |..H'.("SETTYPE "|
00001ab0  2b 66 69 6c 65 24 2b 22  20 22 2b c3 7e 66 69 6c  |+file$+" "+.~fil|
00001ac0  65 74 79 70 65 25 29 0d  08 52 1b c8 99 20 22 57  |etype%)..R... "W|
00001ad0  69 6d 70 5f 43 72 65 61  74 65 4d 65 6e 75 22 2c  |imp_CreateMenu",|
00001ae0  2d 31 0d 08 5c 05 e1 0d  08 66 05 3a 0d 08 70 1b  |-1..\....f.:..p.|
00001af0  dd f2 4c 6f 61 64 66 69  6c 65 28 66 69 6c 65 24  |..Loadfile(file$|
00001b00  2c 74 79 70 65 25 29 0d  08 7a 57 e7 20 74 79 70  |,type%)..zW. typ|
00001b10  65 25 20 3c 3e 20 66 69  6c 65 74 79 70 65 25 20  |e% <> filetype% |
00001b20  f2 41 6c 65 72 74 28 22  4d 65 73 73 61 67 65 20  |.Alert("Message |
00001b30  66 72 6f 6d 20 21 42 75  64 67 65 74 22 2c 66 69  |from !Budget",fi|
00001b40  6c 65 24 2b 22 20 69 73  20 6e 6f 74 20 61 20 42  |le$+" is not a B|
00001b50  75 64 67 69 65 20 66 69  6c 65 22 29 3a e1 0d 08  |udgie file"):...|
00001b60  84 21 f2 50 75 74 5f 49  63 6f 6e 5f 54 65 78 74  |.!.Put_Icon_Text|
00001b70  28 73 61 76 65 25 2c 32  2c 66 69 6c 65 24 29 0d  |(save%,2,file$).|
00001b80  08 8e 15 c8 99 20 22 48  6f 75 72 67 6c 61 73 73  |..... "Hourglass|
00001b90  5f 4f 6e 22 0d 08 98 0a  f2 43 6c 65 61 72 0d 08  |_On".....Clear..|
00001ba0  a2 14 68 61 6e 64 6c 65  25 3d 8e 28 66 69 6c 65  |..handle%=.(file|
00001bb0  24 29 0d 08 ac 1e e8 23  68 61 6e 64 6c 65 25 2c  |$).....#handle%,|
00001bc0  69 6e 5f 70 74 72 25 2c  6f 75 74 5f 70 74 72 25  |in_ptr%,out_ptr%|
00001bd0  0d 08 b6 18 e3 20 6c 6f  6f 70 25 3d 30 b8 6f 75  |..... loop%=0.ou|
00001be0  74 5f 70 74 72 25 2d 31  0d 08 c0 57 20 20 e8 23  |t_ptr%-1...W  .#|
00001bf0  68 61 6e 64 6c 65 25 2c  62 66 25 28 6c 6f 6f 70  |handle%,bf%(loop|
00001c00  25 29 2c 6f 68 24 28 6c  6f 6f 70 25 29 2c 6f 61  |%),oh$(loop%),oa|
00001c10  25 28 6c 6f 6f 70 25 29  2c 6f 74 25 28 6c 6f 6f  |%(loop%),ot%(loo|
00001c20  70 25 29 2c 62 72 6b 5f  70 74 72 25 28 6c 6f 6f  |p%),brk_ptr%(loo|
00001c30  70 25 29 2c 6f 79 61 25  28 6c 6f 6f 70 25 29 0d  |p%),oya%(loop%).|
00001c40  08 ca 24 20 20 20 20 e3  20 6c 6f 6f 70 31 25 3d  |..$    . loop1%=|
00001c50  30 b8 62 72 6b 5f 70 74  72 25 28 6c 6f 6f 70 25  |0.brk_ptr%(loop%|
00001c60  29 2d 31 0d 08 d4 37 20  20 20 20 20 20 e8 23 68  |)-1...7      .#h|
00001c70  61 6e 64 6c 65 25 2c 62  61 25 28 6c 6f 6f 70 25  |andle%,ba%(loop%|
00001c80  2c 6c 6f 6f 70 31 25 29  2c 62 69 24 28 6c 6f 6f  |,loop1%),bi$(loo|
00001c90  70 25 2c 6c 6f 6f 70 31  25 29 0d 08 de 09 20 20  |p%,loop1%)....  |
00001ca0  20 20 ed 0d 08 e8 05 ed  0d 08 f2 17 e3 20 6c 6f  |  ........... lo|
00001cb0  6f 70 25 3d 30 b8 69 6e  5f 70 74 72 25 2d 31 0d  |op%=0.in_ptr%-1.|
00001cc0  08 fc 3c 20 20 e8 23 68  61 6e 64 6c 65 25 2c 69  |..<  .#handle%,i|
00001cd0  68 24 28 6c 6f 6f 70 25  29 2c 69 61 25 28 6c 6f  |h$(loop%),ia%(lo|
00001ce0  6f 70 25 29 2c 69 74 25  28 6c 6f 6f 70 25 29 2c  |op%),it%(loop%),|
00001cf0  69 79 61 25 28 6c 6f 6f  70 25 29 0d 09 06 05 ed  |iya%(loop%).....|
00001d00  0d 09 10 0d d9 23 68 61  6e 64 6c 65 25 0d 09 1a  |.....#handle%...|
00001d10  16 c8 99 20 22 48 6f 75  72 67 6c 61 73 73 5f 4f  |... "Hourglass_O|
00001d20  66 66 22 0d 09 24 19 e7  20 69 6e 6f 75 74 5f 6f  |ff"..$.. inout_o|
00001d30  70 65 6e 25 20 f2 55 70  64 61 74 65 0d 09 2e 23  |pen% .Update...#|
00001d40  e7 20 62 72 65 61 6b 5f  6f 70 65 6e 25 20 f2 42  |. break_open% .B|
00001d50  72 65 61 6b 5f 4f 4b 3a  f2 55 70 64 61 74 65 0d  |reak_OK:.Update.|
00001d60  09 38 05 e1 0d 09 42 05  3a 0d 09 4c 14 dd 20 f2  |.8....B.:..L.. .|
00001d70  43 68 6f 69 63 65 28 69  63 6f 6e 25 29 0d 09 56  |Choice(icon%)..V|
00001d80  0c 69 5f 73 65 6c 25 3d  a3 0d 09 60 1b e7 20 62  |.i_sel%=...`.. b|
00001d90  72 65 61 6b 5f 6f 70 65  6e 25 20 f2 42 72 65 61  |reak_open% .Brea|
00001da0  6b 5f 4f 4b 0d 09 6a 3d  77 69 6e 64 6f 77 74 79  |k_OK..j=windowty|
00001db0  70 65 25 3d 69 63 6f 6e  25 3a f2 43 6c 6f 73 65  |pe%=icon%:.Close|
00001dc0  5f 41 6c 6c 5f 57 69 6e  64 6f 77 73 3a f2 4f 70  |_All_Windows:.Op|
00001dd0  65 6e 5f 57 69 6e 64 6f  77 28 69 6e 6f 75 74 25  |en_Window(inout%|
00001de0  29 0d 09 74 11 f2 55 70  64 61 74 65 5f 69 6e 6f  |)..t..Update_ino|
00001df0  75 74 0d 09 7e 05 e1 0d  09 88 05 3a 0d 09 92 0e  |ut..~......:....|
00001e00  dd 20 a4 50 6f 69 6e 74  65 72 0d 09 9c 14 c8 8e  |. .Pointer......|
00001e10  20 77 69 6e 64 6f 77 74  79 70 65 25 20 ca 0d 09  | windowtype% ...|
00001e20  a6 2c 20 20 c9 20 6f 75  74 25 3a e7 20 69 5f 73  |.,  . out%:. i_s|
00001e30  65 6c 25 20 8c 20 3d 73  65 6c 65 63 74 25 20 8b  |el% . =select% .|
00001e40  20 3d 6f 75 74 5f 70 74  72 25 0d 09 b0 2b 20 20  | =out_ptr%...+  |
00001e50  c9 20 69 6e 25 20 3a e7  20 69 5f 73 65 6c 25 20  |. in% :. i_sel% |
00001e60  8c 20 3d 73 65 6c 65 63  74 25 20 8b 20 3d 69 6e  |. =select% . =in|
00001e70  5f 70 74 72 25 0d 09 ba  05 cb 0d 09 c4 05 3a 0d  |_ptr%.........:.|
00001e80  09 ce 10 dd 20 a4 42 5f  70 6f 69 6e 74 65 72 0d  |.... .B_pointer.|
00001e90  09 d8 2f e7 20 62 5f 73  65 6c 25 20 8c 20 3d 62  |../. b_sel% . =b|
00001ea0  5f 73 65 6c 65 63 74 25  20 8b 20 3d 62 72 6b 5f  |_select% . =brk_|
00001eb0  70 74 72 25 28 a4 50 6f  69 6e 74 65 72 29 0d 09  |ptr%(.Pointer)..|
00001ec0  e2 05 3a 0d 09 ec 14 dd  20 f2 49 6e 63 72 65 61  |..:..... .Increa|
00001ed0  73 65 5f 74 69 6d 65 0d  09 f6 14 c8 8e 20 77 69  |se_time...... wi|
00001ee0  6e 64 6f 77 74 79 70 65  25 20 ca 0d 0a 00 37 20  |ndowtype% ....7 |
00001ef0  20 c9 20 6f 75 74 25 3a  e7 20 6f 74 25 28 a4 50  | . out%:. ot%(.P|
00001f00  6f 69 6e 74 65 72 29 3c  35 20 6f 74 25 28 a4 50  |ointer)<5 ot%(.P|
00001f10  6f 69 6e 74 65 72 29 2b  3d 31 3a f2 55 70 64 61  |ointer)+=1:.Upda|
00001f20  74 65 0d 0a 0a 37 20 20  c9 20 69 6e 25 20 3a e7  |te...7  . in% :.|
00001f30  20 69 74 25 28 a4 50 6f  69 6e 74 65 72 29 3c 35  | it%(.Pointer)<5|
00001f40  20 69 74 25 28 a4 50 6f  69 6e 74 65 72 29 2b 3d  | it%(.Pointer)+=|
00001f50  31 3a f2 55 70 64 61 74  65 0d 0a 14 05 cb 0d 0a  |1:.Update.......|
00001f60  1e 05 e1 0d 0a 28 05 3a  0d 0a 32 14 dd 20 f2 44  |.....(.:..2.. .D|
00001f70  65 63 72 65 61 73 65 5f  74 69 6d 65 0d 0a 3c 14  |ecrease_time..<.|
00001f80  c8 8e 20 77 69 6e 64 6f  77 74 79 70 65 25 20 ca  |.. windowtype% .|
00001f90  0d 0a 46 37 20 20 c9 20  6f 75 74 25 3a e7 20 6f  |..F7  . out%:. o|
00001fa0  74 25 28 a4 50 6f 69 6e  74 65 72 29 3e 30 20 6f  |t%(.Pointer)>0 o|
00001fb0  74 25 28 a4 50 6f 69 6e  74 65 72 29 2d 3d 31 3a  |t%(.Pointer)-=1:|
00001fc0  f2 55 70 64 61 74 65 0d  0a 50 37 20 20 c9 20 69  |.Update..P7  . i|
00001fd0  6e 25 20 3a e7 20 69 74  25 28 a4 50 6f 69 6e 74  |n% :. it%(.Point|
00001fe0  65 72 29 3e 30 20 69 74  25 28 a4 50 6f 69 6e 74  |er)>0 it%(.Point|
00001ff0  65 72 29 2d 3d 31 3a f2  55 70 64 61 74 65 0d 0a  |er)-=1:.Update..|
00002000  5a 05 cb 0d 0a 64 05 e1  0d 0a 6e 05 3a 0d 0a 78  |Z....d....n.:..x|
00002010  0c dd f2 55 70 64 61 74  65 0d 0a 82 49 e7 20 62  |...Update...I. b|
00002020  72 65 61 6b 5f 6f 70 65  6e 25 20 f2 55 70 64 61  |reak_open% .Upda|
00002030  74 65 5f 62 72 65 61 6b  3a f2 55 70 64 61 74 65  |te_break:.Update|
00002040  5f 6d 61 69 6e 20 8b 20  f2 55 70 64 61 74 65 5f  |_main . .Update_|
00002050  69 6e 6f 75 74 3a f2 55  70 64 61 74 65 5f 6d 61  |inout:.Update_ma|
00002060  69 6e 0d 0a 8c 05 e1 0d  0a 96 05 3a 0d 0a a0 14  |in.........:....|
00002070  dd 20 f2 68 65 61 64 69  6e 67 5f 69 6e 6f 75 74  |. .heading_inout|
00002080  0d 0a aa 1e e7 20 a4 49  63 6f 6e 54 65 78 74 28  |..... .IconText(|
00002090  69 6e 6f 75 74 25 2c 31  29 3e 22 22 20 8c 0d 0a  |inout%,1)>"" ...|
000020a0  b4 20 20 20 e7 20 bb a4  49 63 6f 6e 54 65 78 74  |.   . ..IconText|
000020b0  28 69 6e 6f 75 74 25 2c  33 29 3e 30 20 8c 0d 0a  |(inout%,3)>0 ...|
000020c0  be 18 20 20 20 20 c8 8e  20 77 69 6e 64 6f 77 74  |..    .. windowt|
000020d0  79 70 65 25 20 ca 0d 0a  c8 80 20 20 20 20 20 20  |ype% .....      |
000020e0  c9 20 6f 75 74 25 3a e7  20 ac 20 69 5f 73 65 6c  |. out%:. . i_sel|
000020f0  25 20 80 20 28 6f 75 74  5f 70 74 72 25 3d 65 6e  |% . (out_ptr%=en|
00002100  74 72 69 65 73 25 29 3a  f2 41 6c 65 72 74 28 22  |tries%):.Alert("|
00002110  4d 65 73 73 61 67 65 20  66 72 6f 6d 20 42 75 64  |Message from Bud|
00002120  67 65 74 22 2c 22 4d 65  6d 6f 72 79 20 61 72 65  |get","Memory are|
00002130  61 20 66 75 6c 6c 2e 4e  6f 20 6d 6f 72 65 20 65  |a full.No more e|
00002140  6e 74 72 69 65 73 20 63  61 6e 20 62 65 20 6d 61  |ntries can be ma|
00002150  64 65 22 29 3a e1 0d 0a  d2 35 20 20 20 20 20 20  |de"):....5      |
00002160  20 20 20 20 20 20 20 20  20 20 6f 68 24 28 a4 50  |          oh$(.P|
00002170  6f 69 6e 74 65 72 29 3d  a4 49 63 6f 6e 54 65 78  |ointer)=.IconTex|
00002180  74 28 69 6e 6f 75 74 25  2c 31 29 0d 0a dc 3f 20  |t(inout%,1)...? |
00002190  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 6f  |               o|
000021a0  61 25 28 a4 50 6f 69 6e  74 65 72 29 3d a4 49 6e  |a%(.Pointer)=.In|
000021b0  74 65 67 65 72 28 a4 49  63 6f 6e 54 65 78 74 28  |teger(.IconText(|
000021c0  69 6e 6f 75 74 25 2c 33  29 29 0d 0a e6 33 20 20  |inout%,3))...3  |
000021d0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 e7 20  |              . |
000021e0  69 5f 73 65 6c 25 20 69  5f 73 65 6c 25 3d a3 20  |i_sel% i_sel%=. |
000021f0  8b 20 6f 75 74 5f 70 74  72 25 2b 3d 31 0d 0a f0  |. out_ptr%+=1...|
00002200  7f 20 20 20 20 20 20 c9  20 69 6e 25 20 3a e7 20  |.      . in% :. |
00002210  ac 20 69 5f 73 65 6c 25  20 80 20 28 69 6e 5f 70  |. i_sel% . (in_p|
00002220  74 72 25 3d 65 6e 74 72  69 65 73 25 29 20 f2 41  |tr%=entries%) .A|
00002230  6c 65 72 74 28 22 4d 65  73 73 61 67 65 20 66 72  |lert("Message fr|
00002240  6f 6d 20 42 75 64 67 65  74 22 2c 22 4d 65 6d 6f  |om Budget","Memo|
00002250  72 79 20 61 72 65 61 20  66 75 6c 6c 2e 4e 6f 20  |ry area full.No |
00002260  6d 6f 72 65 20 65 6e 74  72 69 65 73 20 63 61 6e  |more entries can|
00002270  20 62 65 20 6d 61 64 65  22 29 3a e1 0d 0a fa 35  | be made"):....5|
00002280  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00002290  69 68 24 28 a4 50 6f 69  6e 74 65 72 29 3d a4 49  |ih$(.Pointer)=.I|
000022a0  63 6f 6e 54 65 78 74 28  69 6e 6f 75 74 25 2c 31  |conText(inout%,1|
000022b0  29 0d 0b 04 3f 20 20 20  20 20 20 20 20 20 20 20  |)...?           |
000022c0  20 20 20 20 20 69 61 25  28 a4 50 6f 69 6e 74 65  |     ia%(.Pointe|
000022d0  72 29 3d a4 49 6e 74 65  67 65 72 28 a4 49 63 6f  |r)=.Integer(.Ico|
000022e0  6e 54 65 78 74 28 69 6e  6f 75 74 25 2c 33 29 29  |nText(inout%,3))|
000022f0  0d 0b 0e 32 20 20 20 20  20 20 20 20 20 20 20 20  |...2            |
00002300  20 20 20 20 e7 20 69 5f  73 65 6c 25 20 69 5f 73  |    . i_sel% i_s|
00002310  65 6c 25 3d a3 20 8b 20  69 6e 5f 70 74 72 25 2b  |el%=. . in_ptr%+|
00002320  3d 31 0d 0b 18 09 20 20  20 20 cb 0d 0b 22 0f 20  |=1....    ...". |
00002330  20 20 20 f2 55 70 64 61  74 65 0d 0b 2c 07 20 20  |   .Update..,.  |
00002340  cc 0d 0b 36 13 20 20 20  20 c8 8e 20 69 5f 73 65  |...6.    .. i_se|
00002350  6c 25 20 ca 0d 0b 40 97  20 20 20 20 20 20 c9 20  |l% ...@.      . |
00002360  b9 20 3a f2 41 6c 65 72  74 28 22 4d 65 73 73 61  |. :.Alert("Messa|
00002370  67 65 20 66 72 6f 6d 20  42 75 64 67 65 74 22 2c  |ge from Budget",|
00002380  22 4e 6f 20 61 6d 6f 75  6e 74 20 65 6e 74 65 72  |"No amount enter|
00002390  65 64 2e 22 2b 6f 68 24  28 73 65 6c 65 63 74 25  |ed."+oh$(select%|
000023a0  29 2b 22 20 6d 75 73 74  20 62 65 20 64 65 6c 65  |)+" must be dele|
000023b0  74 65 64 20 69 66 20 79  6f 75 20 77 69 73 68 20  |ted if you wish |
000023c0  74 6f 20 6f 70 65 6e 20  22 2b 6f 68 24 28 73 65  |to open "+oh$(se|
000023d0  6c 65 63 74 25 29 2b 22  20 77 69 74 68 20 61 20  |lect%)+" with a |
000023e0  62 72 65 61 6b 64 6f 77  6e 22 29 0d 0b 4a 0e 20  |breakdown")..J. |
000023f0  20 20 20 20 20 c9 20 a3  3a 0d 0b 54 1e 20 20 20  |     . .:..T.   |
00002400  20 20 20 e7 20 77 69 6e  64 6f 77 74 79 70 65 25  |   . windowtype%|
00002410  3d 6f 75 74 25 20 8c 0d  0b 5e 3d 20 20 20 20 20  |=out% ...^=     |
00002420  20 20 20 6f 68 24 28 6f  75 74 5f 70 74 72 25 29  |   oh$(out_ptr%)|
00002430  3d a4 49 63 6f 6e 54 65  78 74 28 69 6e 6f 75 74  |=.IconText(inout|
00002440  25 2c 31 29 3a 62 66 25  28 6f 75 74 5f 70 74 72  |%,1):bf%(out_ptr|
00002450  25 29 3d b9 0d 0b 68 41  20 20 20 20 20 20 20 20  |%)=...hA        |
00002460  f2 43 6c 6f 73 65 5f 41  6c 6c 5f 57 69 6e 64 6f  |.Close_All_Windo|
00002470  77 73 3a f2 4f 70 65 6e  5f 57 69 6e 64 6f 77 28  |ws:.Open_Window(|
00002480  62 72 65 61 6b 25 29 3a  f2 55 70 64 61 74 65 5f  |break%):.Update_|
00002490  62 72 65 61 6b 0d 0b 72  0b 20 20 20 20 20 20 cd  |break..r.      .|
000024a0  0d 0b 7c 09 20 20 20 20  cb 0d 0b 86 07 20 20 cd  |..|.    .....  .|
000024b0  0d 0b 90 05 cc 0d 0b 9a  4f 20 20 f2 41 6c 65 72  |........O  .Aler|
000024c0  74 28 22 4d 65 73 73 61  67 65 20 66 72 6f 6d 20  |t("Message from |
000024d0  42 75 64 67 65 74 22 2c  22 4e 6f 20 68 65 61 64  |Budget","No head|
000024e0  69 6e 67 20 65 6e 74 65  72 65 64 22 29 3a f2 50  |ing entered"):.P|
000024f0  75 74 5f 43 61 72 65 74  28 69 6e 6f 75 74 25 2c  |ut_Caret(inout%,|
00002500  31 2c 30 29 0d 0b a4 05  cd 0d 0b ae 05 e1 0d 0b  |1,0)............|
00002510  b8 05 3a 0d 0b c2 0f dd  20 f2 42 72 65 61 6b 5f  |..:..... .Break_|
00002520  4f 4b 0d 0b cc 2b f2 43  6c 6f 73 65 5f 41 6c 6c  |OK...+.Close_All|
00002530  5f 57 69 6e 64 6f 77 73  3a f2 4f 70 65 6e 5f 57  |_Windows:.Open_W|
00002540  69 6e 64 6f 77 28 69 6e  6f 75 74 25 29 0d 0b d6  |indow(inout%)...|
00002550  0e e7 20 69 5f 73 65 6c  25 20 8c 0d 0b e0 3c 20  |.. i_sel% ....< |
00002560  20 e7 20 6f 79 61 25 28  73 65 6c 65 63 74 25 29  | . oya%(select%)|
00002570  3c 3d 30 20 62 66 25 28  73 65 6c 65 63 74 25 29  |<=0 bf%(select%)|
00002580  3d a3 3a f2 44 65 6c 65  74 65 5f 6f 75 74 28 73  |=.:.Delete_out(s|
00002590  65 6c 65 63 74 25 29 0d  0b ea 0e 20 20 69 5f 73  |elect%)....  i_s|
000025a0  65 6c 25 3d a3 0d 0b f4  05 cc 0d 0b fe 48 20 20  |el%=.........H  |
000025b0  e7 20 6f 79 61 25 28 6f  75 74 5f 70 74 72 25 29  |. oya%(out_ptr%)|
000025c0  3e 30 20 20 6f 75 74 5f  70 74 72 25 2b 3d 31 20  |>0  out_ptr%+=1 |
000025d0  8b 20 62 66 25 28 6f 75  74 5f 70 74 72 25 29 3d  |. bf%(out_ptr%)=|
000025e0  a3 3a 6f 68 24 28 6f 75  74 5f 70 74 72 25 29 3d  |.:oh$(out_ptr%)=|
000025f0  22 22 0d 0c 08 05 cd 0d  0c 12 1a 62 5f 73 65 6c  |"".........b_sel|
00002600  25 3d a3 3a f2 55 70 64  61 74 65 5f 69 6e 6f 75  |%=.:.Update_inou|
00002610  74 0d 0c 1c 05 e1 0d 0c  26 05 3a 0d 0c 30 14 dd  |t.......&.:..0..|
00002620  20 f2 68 65 61 64 69 6e  67 5f 62 72 65 61 6b 0d  | .heading_break.|
00002630  0c 3a 1d e7 20 a4 49 63  6f 6e 54 65 78 74 28 70  |.:.. .IconText(p|
00002640  61 6e 65 25 2c 32 29 3e  22 22 20 8c 0d 0c 44 1f  |ane%,2)>"" ...D.|
00002650  20 20 e7 20 bb a4 49 63  6f 6e 54 65 78 74 28 70  |  . ..IconText(p|
00002660  61 6e 65 25 2c 36 29 3e  30 20 8c 0d 0c 4e 7b 20  |ane%,6)>0 ...N{ |
00002670  20 20 20 e7 20 ac 20 62  5f 73 65 6c 25 20 80 20  |   . . b_sel% . |
00002680  28 62 72 6b 5f 70 74 72  25 28 6f 75 74 25 29 3d  |(brk_ptr%(out%)=|
00002690  69 74 65 6d 73 25 29 20  f2 41 6c 65 72 74 28 22  |items%) .Alert("|
000026a0  4d 65 73 73 61 67 65 20  66 72 6f 6d 20 42 75 64  |Message from Bud|
000026b0  67 65 74 22 2c 22 4d 65  6d 6f 72 79 20 61 72 65  |get","Memory are|
000026c0  61 20 66 75 6c 6c 20 6e  6f 20 6d 6f 72 65 20 65  |a full no more e|
000026d0  6e 74 72 69 65 73 20 63  61 6e 20 62 65 20 6d 61  |ntries can be ma|
000026e0  64 65 22 29 3a e1 0d 0c  58 33 20 20 20 20 62 69  |de"):...X3    bi|
000026f0  24 28 a4 50 6f 69 6e 74  65 72 2c a4 42 5f 70 6f  |$(.Pointer,.B_po|
00002700  69 6e 74 65 72 29 3d a4  49 63 6f 6e 54 65 78 74  |inter)=.IconText|
00002710  28 70 61 6e 65 25 2c 32  29 0d 0c 62 3d 20 20 20  |(pane%,2)..b=   |
00002720  20 62 61 25 28 a4 50 6f  69 6e 74 65 72 2c a4 42  | ba%(.Pointer,.B|
00002730  5f 70 6f 69 6e 74 65 72  29 3d a4 49 6e 74 65 67  |_pointer)=.Integ|
00002740  65 72 28 a4 49 63 6f 6e  54 65 78 74 28 70 61 6e  |er(.IconText(pan|
00002750  65 25 2c 36 29 29 0d 0c  6c 17 20 20 20 20 6f 61  |e%,6))..l.    oa|
00002760  25 28 a4 50 6f 69 6e 74  65 72 29 3d 30 0d 0c 76  |%(.Pointer)=0..v|
00002770  49 20 20 20 20 e3 20 6c  6f 6f 70 25 3d 30 b8 62  |I    . loop%=0.b|
00002780  72 6b 5f 70 74 72 25 28  a4 50 6f 69 6e 74 65 72  |rk_ptr%(.Pointer|
00002790  29 3a 6f 61 25 28 a4 50  6f 69 6e 74 65 72 29 2b  |):oa%(.Pointer)+|
000027a0  3d 62 61 25 28 a4 50 6f  69 6e 74 65 72 2c 6c 6f  |=ba%(.Pointer,lo|
000027b0  6f 70 25 29 3a ed 0d 0c  80 31 20 20 20 20 e7 20  |op%):....1    . |
000027c0  62 5f 73 65 6c 25 20 62  5f 73 65 6c 25 3d a3 20  |b_sel% b_sel%=. |
000027d0  8b 20 62 72 6b 5f 70 74  72 25 28 a4 50 6f 69 6e  |. brk_ptr%(.Poin|
000027e0  74 65 72 29 2b 3d 31 0d  0c 8a 0f 20 20 20 20 f2  |ter)+=1....    .|
000027f0  55 70 64 61 74 65 0d 0c  94 07 20 20 cc 0d 0c 9e  |Update....  ....|
00002800  39 20 20 20 20 f2 41 6c  65 72 74 28 22 4d 65 73  |9    .Alert("Mes|
00002810  73 61 67 65 20 66 72 6f  6d 20 42 75 64 67 65 74  |sage from Budget|
00002820  22 2c 22 4e 6f 20 61 6d  6f 75 6e 74 20 65 6e 74  |","No amount ent|
00002830  65 72 65 64 22 29 0d 0c  a8 07 20 20 cd 0d 0c b2  |ered")....  ....|
00002840  05 cc 0d 0c bc 50 20 20  f2 41 6c 65 72 74 28 22  |.....P  .Alert("|
00002850  4d 65 73 73 61 67 65 20  66 72 6f 6d 20 42 75 64  |Message from Bud|
00002860  67 65 74 22 2c 22 4e 6f  20 69 74 65 6d 20 6e 61  |get","No item na|
00002870  6d 65 20 65 6e 74 65 72  65 64 22 29 3a f2 50 75  |me entered"):.Pu|
00002880  74 5f 43 61 72 65 74 28  70 61 6e 65 25 2c 32 2c  |t_Caret(pane%,2,|
00002890  30 29 0d 0c c6 05 cd 0d  0c d0 05 e1 0d 0c da 05  |0)..............|
000028a0  3a 0d 0c e4 2c dd 20 f2  6d 6f 75 73 65 28 77 69  |:...,. .mouse(wi|
000028b0  6e 64 6f 77 25 2c 69 63  6f 6e 25 2c 62 75 74 74  |ndow%,icon%,butt|
000028c0  6f 6e 25 2c 79 5f 63 6f  6f 72 64 25 29 0d 0c ee  |on%,y_coord%)...|
000028d0  10 c8 8e 20 77 69 6e 64  6f 77 25 20 ca 0d 0c f8  |... window% ....|
000028e0  0c 20 20 20 c9 20 2d 32  3a 0d 0d 02 47 20 20 20  |.   . -2:...G   |
000028f0  20 20 e7 20 62 75 74 74  6f 6e 25 3d 34 20 80 20  |  . button%=4 . |
00002900  69 63 6f 6e 25 3d 62 61  72 5f 69 63 6f 6e 25 20  |icon%=bar_icon% |
00002910  f2 4f 70 65 6e 5f 57 69  6e 64 6f 77 28 6d 61 69  |.Open_Window(mai|
00002920  6e 25 29 3a f2 55 70 64  61 74 65 5f 6d 61 69 6e  |n%):.Update_main|
00002930  0d 0d 0c 36 20 20 20 20  20 e7 20 62 75 74 74 6f  |...6     . butto|
00002940  6e 25 3d 32 20 79 5f 63  6f 6f 72 64 25 3d 31 37  |n%=2 y_coord%=17|
00002950  36 3a f2 43 72 65 61 74  65 5f 4d 65 6e 75 73 28  |6:.Create_Menus(|
00002960  77 69 6d 70 25 29 0d 0d  16 0f 20 20 20 c9 20 6d  |wimp%)....   . m|
00002970  61 69 6e 25 3a 0d 0d 20  15 20 20 20 20 20 c8 8e  |ain%:.. .     ..|
00002980  20 62 75 74 74 6f 6e 25  20 ca 0d 0d 2a 0f 20 20  | button% ...*.  |
00002990  20 20 20 20 20 c9 20 34  3a 0d 0d 34 17 20 20 20  |     . 4:..4.   |
000029a0  20 20 20 20 20 20 c8 8e  20 69 63 6f 6e 25 20 ca  |      .. icon% .|
000029b0  0d 0d 3e 23 20 20 20 20  20 20 20 20 20 20 20 c9  |..>#           .|
000029c0  20 30 2c 31 3a f2 43 68  6f 69 63 65 28 69 63 6f  | 0,1:.Choice(ico|
000029d0  6e 25 29 0d 0d 48 3c 20  20 20 20 20 20 20 20 20  |n%)..H<         |
000029e0  20 20 c9 20 39 20 20 3a  e7 20 6d 61 69 6e 74 69  |  . 9  :. mainti|
000029f0  6d 65 25 3c 35 20 6d 61  69 6e 74 69 6d 65 25 2b  |me%<5 maintime%+|
00002a00  3d 31 3a f2 55 70 64 61  74 65 5f 6d 61 69 6e 0d  |=1:.Update_main.|
00002a10  0d 52 0e 20 20 20 20 20  20 20 20 20 cb 0d 0d 5c  |.R.         ...\|
00002a20  40 20 20 20 20 20 20 20  c9 20 31 3a e7 20 69 63  |@       . 1:. ic|
00002a30  6f 6e 25 3d 39 20 e7 20  6d 61 69 6e 74 69 6d 65  |on%=9 . maintime|
00002a40  25 3e 30 20 6d 61 69 6e  74 69 6d 65 25 2d 3d 31  |%>0 maintime%-=1|
00002a50  3a f2 55 70 64 61 74 65  5f 6d 61 69 6e 0d 0d 66  |:.Update_main..f|
00002a60  23 20 20 20 20 20 20 20  c9 20 32 3a f2 43 72 65  |#       . 2:.Cre|
00002a70  61 74 65 5f 4d 65 6e 75  73 28 77 69 6d 70 25 29  |ate_Menus(wimp%)|
00002a80  0d 0d 70 0a 20 20 20 20  20 cb 0d 0d 7a 0f 20 20  |..p.     ...z.  |
00002a90  20 c9 20 69 6e 6f 75 74  25 0d 0d 84 15 20 20 20  | . inout%....   |
00002aa0  20 20 c8 8e 20 62 75 74  74 6f 6e 25 20 ca 0d 0d  |  .. button% ...|
00002ab0  8e 0f 20 20 20 20 20 20  20 c9 20 34 3a 0d 0d 98  |..       . 4:...|
00002ac0  17 20 20 20 20 20 20 20  20 20 c8 8e 20 69 63 6f  |.         .. ico|
00002ad0  6e 25 20 ca 0d 0d a2 1f  20 20 20 20 20 20 20 20  |n% .....        |
00002ae0  20 20 20 c9 20 37 20 20  3a e7 20 69 5f 73 65 6c  |   . 7  :. i_sel|
00002af0  25 20 8c 0d 0d ac 2a 20  20 20 20 20 20 20 20 20  |% ....*         |
00002b00  20 20 20 20 20 20 20 20  20 20 20 20 20 c8 8e 20  |             .. |
00002b10  77 69 6e 64 6f 77 74 79  70 65 25 20 ca 0d 0d b6  |windowtype% ....|
00002b20  22 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |"               |
00002b30  20 20 20 20 20 20 20 20  20 c9 20 6f 75 74 25 0d  |         . out%.|
00002b40  0d c0 74 20 20 20 20 20  20 20 20 20 20 20 20 20  |..t             |
00002b50  20 20 20 20 20 20 20 20  20 20 20 20 20 e7 20 a4  |             . .|
00002b60  51 75 65 72 79 28 22 4f  4b 20 74 6f 20 64 65 6c  |Query("OK to del|
00002b70  65 74 65 20 68 65 61 64  69 6e 67 20 22 2b 6f 68  |ete heading "+oh|
00002b80  24 28 73 65 6c 65 63 74  25 29 2b 22 3f 22 29 3d  |$(select%)+"?")=|
00002b90  31 20 f2 44 65 6c 65 74  65 5f 6f 75 74 28 73 65  |1 .Delete_out(se|
00002ba0  6c 65 63 74 25 29 3a f2  55 70 64 61 74 65 5f 6d  |lect%):.Update_m|
00002bb0  61 69 6e 0d 0d ca 21 20  20 20 20 20 20 20 20 20  |ain...!         |
00002bc0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 c9  |               .|
00002bd0  20 69 6e 25 0d 0d d4 73  20 20 20 20 20 20 20 20  | in%...s        |
00002be0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00002bf0  20 20 e7 20 a4 51 75 65  72 79 28 22 4f 4b 20 74  |  . .Query("OK t|
00002c00  6f 20 64 65 6c 65 74 65  20 68 65 61 64 69 6e 67  |o delete heading|
00002c10  20 22 2b 69 68 24 28 73  65 6c 65 63 74 25 29 2b  | "+ih$(select%)+|
00002c20  22 3f 22 29 3d 31 20 f2  44 65 6c 65 74 65 5f 69  |"?")=1 .Delete_i|
00002c30  6e 28 73 65 6c 65 63 74  25 29 3a f2 55 70 64 61  |n(select%):.Upda|
00002c40  74 65 5f 6d 61 69 6e 0d  0d de 1b 20 20 20 20 20  |te_main....     |
00002c50  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00002c60  20 cb 0d 0d e8 19 20 20  20 20 20 20 20 20 20 20  | .....          |
00002c70  20 20 20 20 20 20 20 20  20 20 cc 0d 0d f2 64 20  |          ....d |
00002c80  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00002c90  20 20 20 20 20 e7 20 a4  51 75 65 72 79 28 22 4f  |     . .Query("O|
00002ca0  4b 20 74 6f 20 64 65 6c  65 74 65 20 61 6c 6c 20  |K to delete all |
00002cb0  72 65 63 6f 72 64 73 20  63 75 72 72 65 6e 74 6c  |records currentl|
00002cc0  79 20 69 6e 20 6d 65 6d  6f 72 79 3f 22 29 3d 31  |y in memory?")=1|
00002cd0  20 f2 43 6c 65 61 72 3a  f2 55 70 64 61 74 65 0d  | .Clear:.Update.|
00002ce0  0d fc 19 20 20 20 20 20  20 20 20 20 20 20 20 20  |...             |
00002cf0  20 20 20 20 20 20 20 cd  0d 0e 06 23 20 20 20 20  |       ....#    |
00002d00  20 20 20 20 20 20 20 c9  20 35 20 20 3a f2 49 6e  |       . 5  :.In|
00002d10  63 72 65 61 73 65 5f 74  69 6d 65 0d 0e 10 34 20  |crease_time...4 |
00002d20  20 20 20 20 20 20 20 20  20 20 c9 20 2d 31 20 3a  |          . -1 :|
00002d30  c8 99 20 22 57 69 6d 70  5f 47 65 74 50 6f 69 6e  |.. "Wimp_GetPoin|
00002d40  74 65 72 49 6e 66 6f 22  2c 2c 77 69 6d 70 25 0d  |terInfo",,wimp%.|
00002d50  0e 1a 2e 20 20 20 20 20  20 20 20 20 20 20 20 20  |...             |
00002d60  20 20 20 20 20 20 20 f2  53 65 6c 65 63 74 5f 69  |       .Select_i|
00002d70  6e 6f 75 74 28 77 69 6d  70 25 21 34 29 0d 0e 24  |nout(wimp%!4)..$|
00002d80  0e 20 20 20 20 20 20 20  20 20 cb 0d 0e 2e 0f 20  |.         ..... |
00002d90  20 20 20 20 20 20 c9 20  31 3a 0d 0e 38 17 20 20  |      . 1:..8.  |
00002da0  20 20 20 20 20 20 20 c8  8e 20 69 63 6f 6e 25 20  |       .. icon% |
00002db0  ca 0d 0e 42 22 20 20 20  20 20 20 20 20 20 20 20  |...B"           |
00002dc0  c9 20 20 35 3a f2 44 65  63 72 65 61 73 65 5f 74  |.  5:.Decrease_t|
00002dd0  69 6d 65 0d 0e 4c 2a 20  20 20 20 20 20 20 20 20  |ime..L*         |
00002de0  20 20 c9 20 2d 31 3a 69  5f 73 65 6c 25 3d a3 3a  |  . -1:i_sel%=.:|
00002df0  f2 55 70 64 61 74 65 5f  69 6e 6f 75 74 0d 0e 56  |.Update_inout..V|
00002e00  0e 20 20 20 20 20 20 20  20 20 cb 0d 0e 60 0a 20  |.         ...`. |
00002e10  20 20 20 20 cb 0d 0e 6a  17 20 20 20 c9 20 62 72  |    ...j.   . br|
00002e20  65 61 6b 25 20 20 20 20  20 20 20 3a 0d 0e 74 15  |eak%       :..t.|
00002e30  20 20 20 20 20 c8 8e 20  62 75 74 74 6f 6e 25 20  |     .. button% |
00002e40  ca 0d 0e 7e 46 20 20 20  20 20 20 20 20 c9 20 34  |...~F        . 4|
00002e50  3a c8 99 20 22 57 69 6d  70 5f 47 65 74 50 6f 69  |:.. "Wimp_GetPoi|
00002e60  6e 74 65 72 49 6e 66 6f  22 2c 2c 77 69 6d 70 25  |nterInfo",,wimp%|
00002e70  3a f2 53 65 6c 65 63 74  5f 62 72 65 61 6b 28 77  |:.Select_break(w|
00002e80  69 6d 70 25 21 34 29 0d  0e 88 26 20 20 20 20 20  |imp%!4)...&     |
00002e90  20 20 20 c9 20 31 3a 62  5f 73 65 6c 25 3d a3 3a  |   . 1:b_sel%=.:|
00002ea0  f2 55 70 64 61 74 65 5f  62 72 65 61 6b 0d 0e 92  |.Update_break...|
00002eb0  0a 20 20 20 20 20 cb 0d  0e 9c 17 20 20 20 c9 20  |.     .....   . |
00002ec0  70 61 6e 65 25 20 20 20  20 20 20 20 20 3a 0d 0e  |pane%        :..|
00002ed0  a6 17 20 20 20 20 20 20  20 20 20 c8 8e 20 69 63  |..         .. ic|
00002ee0  6f 6e 25 20 ca 0d 0e b0  2e 20 20 20 20 20 20 20  |on% .....       |
00002ef0  20 20 20 20 20 c9 20 30  3a e7 20 62 75 74 74 6f  |     . 0:. butto|
00002f00  6e 25 3d 34 20 f2 49 6e  63 72 65 61 73 65 5f 74  |n%=4 .Increase_t|
00002f10  69 6d 65 0d 0e ba 31 20  20 20 20 20 20 20 20 20  |ime...1         |
00002f20  20 20 20 20 20 20 20 20  20 20 e7 20 62 75 74 74  |          . butt|
00002f30  6f 6e 25 3d 31 20 f2 44  65 63 72 65 61 73 65 5f  |on%=1 .Decrease_|
00002f40  74 69 6d 65 0d 0e c4 1d  20 20 20 20 20 20 20 20  |time....        |
00002f50  20 20 20 20 c9 20 37 3a  f2 42 72 65 61 6b 5f 4f  |    . 7:.Break_O|
00002f60  4b 0d 0e ce 14 20 20 20  20 20 20 20 20 20 20 20  |K....           |
00002f70  20 c9 20 38 3a 0d 0e d8  21 20 20 20 20 20 20 20  | . 8:...!       |
00002f80  20 20 20 20 20 20 20 20  20 20 20 c8 8e 20 62 5f  |           .. b_|
00002f90  73 65 6c 25 20 ca 0d 0e  e2 1d 20 20 20 20 20 20  |sel% .....      |
00002fa0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 c9 20  |              . |
00002fb0  b9 20 3a 0d 0e ec 9f 20  20 20 20 20 20 20 20 20  |. :....         |
00002fc0  20 20 20 20 20 20 20 20  20 20 20 20 20 e7 20 a4  |             . .|
00002fd0  51 75 65 72 79 28 22 4f  4b 20 74 6f 20 64 65 6c  |Query("OK to del|
00002fe0  65 74 65 20 22 2b 62 69  24 28 a4 50 6f 69 6e 74  |ete "+bi$(.Point|
00002ff0  65 72 2c a4 42 5f 70 6f  69 6e 74 65 72 29 2b 22  |er,.B_pointer)+"|
00003000  20 66 72 6f 6d 20 22 2b  6f 68 24 28 a4 50 6f 69  | from "+oh$(.Poi|
00003010  6e 74 65 72 29 2b 22 20  62 72 65 61 6b 64 6f 77  |nter)+" breakdow|
00003020  6e 3f 22 29 3d 31 3a f2  44 65 6c 65 74 65 5f 62  |n?")=1:.Delete_b|
00003030  72 65 61 6b 64 6f 77 6e  5f 69 74 65 6d 28 a4 50  |reakdown_item(.P|
00003040  6f 69 6e 74 65 72 2c a4  42 5f 70 6f 69 6e 74 65  |ointer,.B_pointe|
00003050  72 29 0d 0e f6 1c 20 20  20 20 20 20 20 20 20 20  |r)....          |
00003060  20 20 20 20 20 20 20 20  20 20 c9 20 a3 3a 0d 0f  |          . .:..|
00003070  00 7d 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |.}              |
00003080  20 20 20 20 20 20 20 20  e7 20 a4 51 75 65 72 79  |        . .Query|
00003090  28 22 4f 4b 20 74 6f 20  64 65 6c 65 74 65 20 61  |("OK to delete a|
000030a0  6c 6c 20 72 65 63 6f 72  64 73 20 69 6e 20 22 2b  |ll records in "+|
000030b0  6f 68 24 28 a4 50 6f 69  6e 74 65 72 29 2b 22 20  |oh$(.Pointer)+" |
000030c0  62 72 65 61 6b 64 6f 77  6e 3f 22 29 3d 31 20 3a  |breakdown?")=1 :|
000030d0  f2 44 65 6c 65 74 65 5f  62 72 65 61 6b 64 6f 77  |.Delete_breakdow|
000030e0  6e 28 a4 50 6f 69 6e 74  65 72 29 0d 0f 0a 17 20  |n(.Pointer).... |
000030f0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00003100  20 cb 0d 0f 14 0d 20 20  20 20 20 20 20 20 cb 0d  | .....        ..|
00003110  0f 1e 0e 20 20 20 c9 20  73 61 76 65 25 0d 0f 28  |...   . save%..(|
00003120  18 20 20 20 20 20 20 20  20 c8 8e 20 62 75 74 74  |.        .. butt|
00003130  6f 6e 25 20 ca 0d 0f 32  3f 20 20 20 20 20 20 20  |on% ...2?       |
00003140  20 20 20 20 c9 20 34 20  20 20 20 3a 20 e7 20 69  |    . 4    : . i|
00003150  63 6f 6e 25 3d 30 20 f2  53 61 76 65 66 69 6c 65  |con%=0 .Savefile|
00003160  28 a4 49 63 6f 6e 54 65  78 74 28 73 61 76 65 25  |(.IconText(save%|
00003170  2c 32 29 29 0d 0f 3c 17  20 20 20 20 20 20 20 20  |,2))..<.        |
00003180  20 20 20 c9 20 31 36 2c  36 34 3a 0d 0f 46 1c 20  |   . 16,64:..F. |
00003190  20 20 20 20 20 20 20 20  20 20 20 20 20 c8 8e 20  |             .. |
000031a0  69 63 6f 6e 25 20 ca 0d  0f 50 20 20 20 20 20 20  |icon% ...P      |
000031b0  20 20 20 20 20 20 20 20  20 20 20 c9 20 33 3a f2  |           . 3:.|
000031c0  64 72 61 67 62 6f 78 0d  0f 5a 13 20 20 20 20 20  |dragbox..Z.     |
000031d0  20 20 20 20 20 20 20 20  20 cb 0d 0f 64 0d 20 20  |         ...d.  |
000031e0  20 20 20 20 20 20 cb 0d  0f 6e 05 cb 0d 0f 78 05  |      ...n....x.|
000031f0  e1 0d 0f 82 05 3a 0d 0f  8c 1e dd 20 f2 6b 65 79  |.....:..... .key|
00003200  28 77 69 6e 64 6f 77 25  2c 69 63 6f 6e 25 2c 6b  |(window%,icon%,k|
00003210  65 79 25 29 0d 0f 96 10  c8 8e 20 77 69 6e 64 6f  |ey%)...... windo|
00003220  77 25 20 ca 0d 0f a0 0f  20 20 c9 20 69 6e 6f 75  |w% .....  . inou|
00003230  74 25 3a 0d 0f aa 11 20  20 20 20 c8 8e 20 6b 65  |t%:....    .. ke|
00003240  79 25 20 ca 0d 0f b4 0f  20 20 20 20 20 20 c9 20  |y% .....      . |
00003250  31 33 3a 0d 0f be 47 20  20 20 20 20 20 20 20 20  |13:...G         |
00003260  20 20 20 20 20 e7 20 69  63 6f 6e 25 3d 31 3a f2  |     . icon%=1:.|
00003270  50 75 74 5f 43 61 72 65  74 28 69 6e 6f 75 74 25  |Put_Caret(inout%|
00003280  2c 33 2c a9 28 a4 49 63  6f 6e 54 65 78 74 28 69  |,3,.(.IconText(i|
00003290  6e 6f 75 74 25 2c 33 29  29 29 0d 0f c8 37 20 20  |nout%,3)))...7  |
000032a0  20 20 20 20 20 20 20 20  20 20 20 20 e7 20 69 63  |            . ic|
000032b0  6f 6e 25 3d 33 3a f2 68  65 61 64 69 6e 67 5f 69  |on%=3:.heading_i|
000032c0  6e 6f 75 74 3a f2 55 70  64 61 74 65 5f 6d 61 69  |nout:.Update_mai|
000032d0  6e 0d 0f d2 09 20 20 20  20 cb 0d 0f dc 0f 20 20  |n....    .....  |
000032e0  c9 20 70 61 6e 65 25 20  3a 0d 0f e6 11 20 20 20  |. pane% :....   |
000032f0  20 c8 8e 20 6b 65 79 25  20 ca 0d 0f f0 0e 20 20  | .. key% .....  |
00003300  20 20 20 20 c9 20 31 33  0d 0f fa 3d 20 20 20 20  |    . 13...=    |
00003310  20 20 20 20 e7 20 69 63  6f 6e 25 3d 32 3a f2 50  |    . icon%=2:.P|
00003320  75 74 5f 43 61 72 65 74  28 70 61 6e 65 25 2c 36  |ut_Caret(pane%,6|
00003330  2c a9 a4 49 63 6f 6e 54  65 78 74 28 70 61 6e 65  |,..IconText(pane|
00003340  25 2c 36 29 29 0d 10 04  31 20 20 20 20 20 20 20  |%,6))...1       |
00003350  20 e7 20 69 63 6f 6e 25  3d 36 3a f2 68 65 61 64  | . icon%=6:.head|
00003360  69 6e 67 5f 62 72 65 61  6b 3a f2 55 70 64 61 74  |ing_break:.Updat|
00003370  65 5f 6d 61 69 6e 0d 10  0e 09 20 20 20 20 cb 0d  |e_main....    ..|
00003380  10 18 0d 20 20 c9 20 73  61 76 65 25 0d 10 22 2f  |...  . save%.."/|
00003390  20 20 20 20 e7 20 6b 65  79 25 3d 31 33 20 f2 53  |    . key%=13 .S|
000033a0  61 76 65 66 69 6c 65 28  a4 49 63 6f 6e 54 65 78  |avefile(.IconTex|
000033b0  74 28 73 61 76 65 25 2c  32 29 29 0d 10 2c 05 cb  |t(save%,2))..,..|
000033c0  0d 10 36 05 e1 0d 10 40  05 3a 0d 10 4a 1d dd 20  |..6....@.:..J.. |
000033d0  f2 44 65 6c 65 74 65 5f  62 72 65 61 6b 64 6f 77  |.Delete_breakdow|
000033e0  6e 28 70 74 72 25 29 0d  10 54 0b ea 20 6c 6f 6f  |n(ptr%)..T.. loo|
000033f0  70 25 0d 10 5e 20 20 20  20 20 e3 20 6c 6f 6f 70  |p%..^     . loop|
00003400  25 3d 30 b8 62 72 6b 5f  70 74 72 25 28 70 74 72  |%=0.brk_ptr%(ptr|
00003410  25 29 0d 10 68 2e 20 20  20 20 20 20 62 69 24 28  |%)..h.      bi$(|
00003420  70 74 72 25 2c 6c 6f 6f  70 25 29 3d 22 22 3a 62  |ptr%,loop%)="":b|
00003430  61 25 28 70 74 72 25 2c  6c 6f 6f 70 25 29 3d 30  |a%(ptr%,loop%)=0|
00003440  0d 10 72 09 20 20 20 20  ed 0d 10 7c 18 20 20 20  |..r.    ...|.   |
00003450  20 62 72 6b 5f 70 74 72  25 28 70 74 72 25 29 3d  | brk_ptr%(ptr%)=|
00003460  30 0d 10 86 13 20 20 20  20 62 66 25 28 70 74 72  |0....    bf%(ptr|
00003470  25 29 3d a3 0d 10 90 1a  20 20 20 20 f2 43 6c 6f  |%)=.....    .Clo|
00003480  73 65 5f 41 6c 6c 5f 57  69 6e 64 6f 77 73 0d 10  |se_All_Windows..|
00003490  9a 1c 20 20 20 20 f2 4f  70 65 6e 5f 57 69 6e 64  |..    .Open_Wind|
000034a0  6f 77 28 69 6e 6f 75 74  25 29 0d 10 a4 19 20 20  |ow(inout%)....  |
000034b0  20 20 f2 44 65 6c 65 74  65 5f 6f 75 74 28 70 74  |  .Delete_out(pt|
000034c0  72 25 29 0d 10 ae 05 e1  0d 10 b8 05 3a 0d 10 c2  |r%).........:...|
000034d0  29 dd 20 f2 44 65 6c 65  74 65 5f 62 72 65 61 6b  |). .Delete_break|
000034e0  64 6f 77 6e 5f 69 74 65  6d 28 70 74 72 25 2c 62  |down_item(ptr%,b|
000034f0  5f 70 74 72 25 29 0d 10  cc 0b ea 20 6c 6f 6f 70  |_ptr%)..... loop|
00003500  25 0d 10 d6 1f 6f 61 25  28 70 74 72 25 29 2d 3d  |%....oa%(ptr%)-=|
00003510  62 61 25 28 70 74 72 25  2c 62 5f 70 74 72 25 29  |ba%(ptr%,b_ptr%)|
00003520  0d 10 e0 23 e3 20 6c 6f  6f 70 25 3d 62 5f 70 74  |...#. loop%=b_pt|
00003530  72 25 b8 62 72 6b 5f 70  74 72 25 28 70 74 72 25  |r%.brk_ptr%(ptr%|
00003540  29 2d 31 0d 10 ea 4b 20  20 20 20 62 69 24 28 70  |)-1...K    bi$(p|
00003550  74 72 25 2c 6c 6f 6f 70  25 29 3d 62 69 24 28 70  |tr%,loop%)=bi$(p|
00003560  74 72 25 2c 6c 6f 6f 70  25 2b 31 29 3a 62 61 25  |tr%,loop%+1):ba%|
00003570  28 70 74 72 25 2c 6c 6f  6f 70 25 29 3d 62 61 25  |(ptr%,loop%)=ba%|
00003580  28 70 74 72 25 2c 6c 6f  6f 70 25 2b 31 29 0d 10  |(ptr%,loop%+1)..|
00003590  f4 05 ed 0d 10 fe 26 62  72 6b 5f 70 74 72 25 28  |......&brk_ptr%(|
000035a0  70 74 72 25 29 2d 3d 31  3a 62 5f 73 65 6c 25 3d  |ptr%)-=1:b_sel%=|
000035b0  a3 3a f2 55 70 64 61 74  65 0d 11 08 05 e1 0d 11  |.:.Update.......|
000035c0  12 05 3a 0d 11 1c 16 dd  20 f2 44 65 6c 65 74 65  |..:..... .Delete|
000035d0  5f 69 6e 28 70 74 72 25  29 0d 11 26 1a e3 20 6c  |_in(ptr%)..&.. l|
000035e0  6f 6f 70 25 3d 70 74 72  25 b8 69 6e 5f 70 74 72  |oop%=ptr%.in_ptr|
000035f0  25 2d 31 0d 11 30 1d 20  20 69 68 24 28 6c 6f 6f  |%-1..0.  ih$(loo|
00003600  70 25 29 3d 69 68 24 28  6c 6f 6f 70 25 2b 31 29  |p%)=ih$(loop%+1)|
00003610  0d 11 3a 1d 20 20 69 61  25 28 6c 6f 6f 70 25 29  |..:.  ia%(loop%)|
00003620  3d 69 61 25 28 6c 6f 6f  70 25 2b 31 29 0d 11 44  |=ia%(loop%+1)..D|
00003630  1d 20 20 69 74 25 28 6c  6f 6f 70 25 29 3d 69 74  |.  it%(loop%)=it|
00003640  25 28 6c 6f 6f 70 25 2b  31 29 0d 11 4e 05 ed 0d  |%(loop%+1)..N...|
00003650  11 58 20 e7 20 69 5f 73  65 6c 25 20 69 5f 73 65  |.X . i_sel% i_se|
00003660  6c 25 3d a3 3a 69 6e 5f  70 74 72 25 2d 3d 31 0d  |l%=.:in_ptr%-=1.|
00003670  11 62 0b f2 55 70 64 61  74 65 0d 11 6c 05 e1 0d  |.b..Update..l...|
00003680  11 76 05 3a 0d 11 80 17  dd 20 f2 44 65 6c 65 74  |.v.:..... .Delet|
00003690  65 5f 6f 75 74 28 70 74  72 25 29 0d 11 8a 1b e3  |e_out(ptr%).....|
000036a0  20 6c 6f 6f 70 25 3d 70  74 72 25 b8 6f 75 74 5f  | loop%=ptr%.out_|
000036b0  70 74 72 25 2d 31 0d 11  94 1d 20 20 6f 68 24 28  |ptr%-1....  oh$(|
000036c0  6c 6f 6f 70 25 29 3d 6f  68 24 28 6c 6f 6f 70 25  |loop%)=oh$(loop%|
000036d0  2b 31 29 0d 11 9e 1d 20  20 6f 61 25 28 6c 6f 6f  |+1)....  oa%(loo|
000036e0  70 25 29 3d 6f 61 25 28  6c 6f 6f 70 25 2b 31 29  |p%)=oa%(loop%+1)|
000036f0  0d 11 a8 1d 20 20 6f 74  25 28 6c 6f 6f 70 25 29  |....  ot%(loop%)|
00003700  3d 6f 74 25 28 6c 6f 6f  70 25 2b 31 29 0d 11 b2  |=ot%(loop%+1)...|
00003710  16 20 20 e7 20 62 66 25  28 6c 6f 6f 70 25 2b 31  |.  . bf%(loop%+1|
00003720  29 20 8c 0d 11 bc 26 20  20 20 20 e3 20 6c 6f 6f  |) ....&    . loo|
00003730  70 31 25 3d 30 b8 62 72  6b 5f 70 74 72 25 28 6c  |p1%=0.brk_ptr%(l|
00003740  6f 6f 70 25 2b 31 29 2d  31 0d 11 c6 46 20 20 20  |oop%+1)-1...F   |
00003750  20 20 20 62 69 24 28 6c  6f 6f 70 25 2c 6c 6f 6f  |   bi$(loop%,loo|
00003760  70 31 25 29 3d 62 69 24  28 6c 6f 6f 70 25 2b 31  |p1%)=bi$(loop%+1|
00003770  2c 6c 6f 6f 70 31 25 29  3a 62 69 24 28 6c 6f 6f  |,loop1%):bi$(loo|
00003780  70 25 2b 31 2c 6c 6f 6f  70 31 25 29 3d 22 22 0d  |p%+1,loop1%)="".|
00003790  11 d0 45 20 20 20 20 20  20 62 61 25 28 6c 6f 6f  |..E      ba%(loo|
000037a0  70 25 2c 6c 6f 6f 70 31  25 29 3d 62 61 25 28 6c  |p%,loop1%)=ba%(l|
000037b0  6f 6f 70 25 2b 31 2c 6c  6f 6f 70 31 25 29 3a 62  |oop%+1,loop1%):b|
000037c0  61 25 28 6c 6f 6f 70 25  2b 31 2c 6c 6f 6f 70 31  |a%(loop%+1,loop1|
000037d0  25 29 3d 30 0d 11 da 09  20 20 20 20 ed 0d 11 e4  |%)=0....    ....|
000037e0  3b 20 20 62 72 6b 5f 70  74 72 25 28 6c 6f 6f 70  |;  brk_ptr%(loop|
000037f0  25 29 3d 62 72 6b 5f 70  74 72 25 28 6c 6f 6f 70  |%)=brk_ptr%(loop|
00003800  25 2b 31 29 3a 62 72 6b  5f 70 74 72 25 28 6c 6f  |%+1):brk_ptr%(lo|
00003810  6f 70 25 2b 31 29 3d 30  0d 11 ee 21 20 20 62 66  |op%+1)=0...!  bf|
00003820  25 28 6c 6f 6f 70 25 29  3d b9 3a 62 66 25 28 6c  |%(loop%)=.:bf%(l|
00003830  6f 6f 70 25 2b 31 29 3d  a3 0d 11 f8 07 20 20 cd  |oop%+1)=.....  .|
00003840  0d 12 02 05 ed 0d 12 0c  21 e7 20 69 5f 73 65 6c  |........!. i_sel|
00003850  25 20 69 5f 73 65 6c 25  3d a3 3a 6f 75 74 5f 70  |% i_sel%=.:out_p|
00003860  74 72 25 2d 3d 31 0d 12  16 0b f2 55 70 64 61 74  |tr%-=1.....Updat|
00003870  65 0d 12 20 05 e1 0d 12  2a 04 0d 12 34 0c dd 20  |e.. ....*...4.. |
00003880  f2 43 6c 65 61 72 0d 12  3e 4c 6f 68 24 28 29 20  |.Clear..>Loh$() |
00003890  20 20 20 20 20 20 3d 22  22 20 20 3a 6f 61 25 28  |      =""  :oa%(|
000038a0  29 20 20 20 3d 30 20 20  20 20 20 20 3a 6f 74 25  |)   =0      :ot%|
000038b0  28 29 20 20 20 20 3d 30  20 20 3a 62 61 25 28 29  |()    =0  :ba%()|
000038c0  20 20 20 3d 30 20 20 3a  62 69 24 28 29 20 20 3d  |   =0  :bi$()  =|
000038d0  22 22 0d 12 48 4b 62 72  6b 5f 70 74 72 25 28 29  |""..HKbrk_ptr%()|
000038e0  20 20 3d 30 20 20 20 3a  69 79 61 25 28 29 20 20  |  =0   :iya%()  |
000038f0  3d 30 20 20 20 20 20 20  3a 69 68 24 28 29 20 20  |=0      :ih$()  |
00003900  20 20 3d 22 22 20 3a 69  61 25 28 29 20 20 20 3d  |  ="" :ia%()   =|
00003910  30 20 20 3a 69 74 25 28  29 20 20 3d 30 0d 12 52  |0  :it%()  =0..R|
00003920  3b 6f 79 61 25 28 29 20  20 20 20 20 20 3d 30 20  |;oya%()      =0 |
00003930  20 20 3a 62 66 25 28 29  20 20 20 3d a3 20 20 3a  |  :bf%()   =.  :|
00003940  6f 75 74 5f 70 74 72 25  20 3d 30 20 20 3a 69 6e  |out_ptr% =0  :in|
00003950  5f 70 74 72 25 20 3d 30  0d 12 5c 05 e1 0d 12 66  |_ptr% =0..\....f|
00003960  05 3a 0d 12 70 0f dd 20  a4 74 69 6d 65 28 74 25  |.:..p.. .time(t%|
00003970  29 0d 12 7a 0b c8 8e 20  74 25 20 ca 0d 12 84 0d  |)..z... t% .....|
00003980  20 20 c9 20 30 3a 3d 35  32 0d 12 8e 0d 20 20 c9  |  . 0:=52....  .|
00003990  20 31 3a 3d 32 36 0d 12  98 0d 20 20 c9 20 32 3a  | 1:=26....  . 2:|
000039a0  3d 31 33 0d 12 a2 0d 20  20 c9 20 33 3a 3d 31 32  |=13....  . 3:=12|
000039b0  0d 12 ac 0c 20 20 c9 20  34 3a 3d 34 0d 12 b6 0c  |....  . 4:=4....|
000039c0  20 20 c9 20 35 3a 3d 31  0d 12 c0 05 cb 0d 12 ca  |  . 5:=1........|
000039d0  05 3a 0d 12 d4 0f dd 20  f2 74 6f 74 61 6c 5f 69  |.:..... .total_i|
000039e0  6e 0d 12 de 2b 69 79 61  25 28 69 6e 5f 70 74 72  |n...+iya%(in_ptr|
000039f0  25 29 3d 69 61 25 28 69  6e 5f 70 74 72 25 29 2a  |%)=ia%(in_ptr%)*|
00003a00  69 74 25 28 69 6e 5f 70  74 72 25 29 0d 12 e8 05  |it%(in_ptr%)....|
00003a10  e1 0d 12 f2 05 3a 0d 12  fc 11 dd a4 44 65 63 69  |.....:......Deci|
00003a20  6d 61 6c 28 61 25 29 0d  13 06 0b 61 24 3d c3 94  |mal(a%)....a$=..|
00003a30  61 25 0d 13 10 18 c8 95  20 a9 61 24 3c 33 3a 61  |a%...... .a$<3:a|
00003a40  24 3d 22 30 22 2b 61 24  3a ce 0d 13 1a 1c 3d c0  |$="0"+a$:.....=.|
00003a50  61 24 2c a9 28 61 24 29  2d 32 29 2b 22 2e 22 2b  |a$,.(a$)-2)+"."+|
00003a60  c2 61 24 2c 32 29 0d 13  24 05 3a 0d 13 2e 12 dd  |.a$,2)..$.:.....|
00003a70  20 a4 49 6e 74 65 67 65  72 28 73 24 29 0d 13 38  | .Integer(s$)..8|
00003a80  14 3d a8 28 28 bb 73 24  2a 31 30 30 29 2b 2e 35  |.=.((.s$*100)+.5|
00003a90  29 0d 13 42 05 3a 0d 13  4c 1a dd 20 f2 43 72 65  |)..B.:..L.. .Cre|
00003aa0  61 74 65 5f 4d 65 6e 75  73 28 77 69 6d 70 25 29  |ate_Menus(wimp%)|
00003ab0  0d 13 56 10 c8 8e 20 77  69 6d 70 25 21 38 20 ca  |..V... wimp%!8 .|
00003ac0  0d 13 60 0b 20 20 c9 20  32 20 3a 0d 13 6a 32 20  |..`.  . 2 :..j2 |
00003ad0  20 20 20 20 20 20 20 20  24 6d 65 6e 75 25 3d 22  |        $menu%="|
00003ae0  42 75 64 67 65 74 22 3a  6d 65 6e 75 25 3f 31 32  |Budget":menu%?12|
00003af0  3d 37 3a 6d 65 6e 75 25  3f 31 33 3d 32 0d 13 74  |=7:menu%?13=2..t|
00003b00  2f 20 20 20 20 20 20 20  20 20 6d 65 6e 75 25 3f  |/         menu%?|
00003b10  31 34 3d 37 3a 6d 65 6e  75 25 3f 31 35 3d 30 3a  |14=7:menu%?15=0:|
00003b20  6d 65 6e 75 25 21 31 36  3d 31 34 30 0d 13 7e 23  |menu%!16=140..~#|
00003b30  20 20 20 20 20 20 20 20  20 6d 65 6e 75 25 21 32  |         menu%!2|
00003b40  30 3d 34 30 3a 6d 65 6e  75 25 21 32 34 3d 30 0d  |0=40:menu%!24=0.|
00003b50  13 88 1b 20 20 20 20 20  20 20 20 20 63 6f 75 6e  |...         coun|
00003b60  74 3d 6d 65 6e 75 25 2b  32 38 0d 13 92 49 20 20  |t=menu%+28...I  |
00003b70  20 20 20 20 20 20 20 21  63 6f 75 6e 74 3d 26 30  |       !count=&0|
00003b80  30 3a 63 6f 75 6e 74 21  34 3d 69 6e 66 6f 25 3a  |0:count!4=info%:|
00003b90  63 6f 75 6e 74 21 38 3d  26 37 30 30 30 30 32 31  |count!8=&7000021|
00003ba0  3a 24 28 63 6f 75 6e 74  2b 31 32 29 3d 22 49 6e  |:$(count+12)="In|
00003bb0  66 6f 22 0d 13 9c 16 20  20 20 20 20 20 20 20 20  |fo"....         |
00003bc0  63 6f 75 6e 74 2b 3d 32  34 0d 13 a6 49 20 20 20  |count+=24...I   |
00003bd0  20 20 20 20 20 20 21 63  6f 75 6e 74 3d 26 30 30  |      !count=&00|
00003be0  3a 63 6f 75 6e 74 21 34  3d 73 61 76 65 25 3a 63  |:count!4=save%:c|
00003bf0  6f 75 6e 74 21 38 3d 26  37 30 30 30 30 32 31 3a  |ount!8=&7000021:|
00003c00  24 28 63 6f 75 6e 74 2b  31 32 29 3d 22 53 61 76  |$(count+12)="Sav|
00003c10  65 22 0d 13 b0 16 20 20  20 20 20 20 20 20 20 63  |e"....         c|
00003c20  6f 75 6e 74 2b 3d 32 34  0d 13 ba 46 20 20 20 20  |ount+=24...F    |
00003c30  20 20 20 20 20 21 63 6f  75 6e 74 3d 26 38 30 3a  |     !count=&80:|
00003c40  63 6f 75 6e 74 21 34 3d  2d 31 3a 63 6f 75 6e 74  |count!4=-1:count|
00003c50  21 38 3d 26 37 30 30 30  30 32 31 3a 24 28 63 6f  |!8=&7000021:$(co|
00003c60  75 6e 74 2b 31 32 29 3d  22 51 75 69 74 22 0d 13  |unt+12)="Quit"..|
00003c70  c4 3c 20 20 20 20 20 20  20 20 20 c8 99 20 22 57  |.<         .. "W|
00003c80  69 6d 70 5f 43 72 65 61  74 65 4d 65 6e 75 22 2c  |imp_CreateMenu",|
00003c90  2c 6d 65 6e 75 25 2c 21  77 69 6d 70 25 2d 31 30  |,menu%,!wimp%-10|
00003ca0  30 2c 79 5f 63 6f 6f 72  64 25 0d 13 ce 05 cb 0d  |0,y_coord%......|
00003cb0  13 d8 05 e1 0d 13 e2 05  3a 0d 13 ec 10 dd 20 f2  |........:..... .|
00003cc0  52 65 61 64 5f 4d 65 6e  75 0d 13 f6 1b e7 20 77  |Read_Menu..... w|
00003cd0  69 6d 70 25 21 30 3d 32  3a f2 43 6c 6f 73 65 5f  |imp%!0=2:.Close_|
00003ce0  44 6f 77 6e 0d 14 00 05  e1 0d 14 0a 05 3a 0d 14  |Down.........:..|
00003cf0  14 10 dd 20 f2 57 69 6d  70 5f 50 6f 6c 6c 0d 14  |... .Wimp_Poll..|
00003d00  1e 05 f5 0d 14 28 15 20  20 f2 50 6f 6c 6c 28 a4  |.....(.  .Poll(.|
00003d10  50 6f 6c 6c 28 30 29 29  0d 14 32 0a fd 20 66 69  |Poll(0))..2.. fi|
00003d20  6e 25 0d 14 3c 05 e1 0d  14 46 05 3a 0d 14 50 11  |n%..<....F.:..P.|
00003d30  dd 20 f2 43 6c 6f 73 65  5f 44 6f 77 6e 0d 14 5a  |. .Close_Down..Z|
00003d40  11 24 77 69 6d 70 25 3d  22 54 41 53 4b 22 0d 14  |.$wimp%="TASK"..|
00003d50  64 25 c8 99 20 22 57 69  6d 70 5f 43 6c 6f 73 65  |d%.. "Wimp_Close|
00003d60  44 6f 77 6e 22 2c 74 61  73 6b 25 2c 77 69 6d 70  |Down",task%,wimp|
00003d70  25 21 30 0d 14 6e 05 e1  0d 14 78 05 3a 0d 14 82  |%!0..n....x.:...|
00003d80  12 dd 20 a4 50 6f 6c 6c  28 6d 61 73 6b 25 29 0d  |.. .Poll(mask%).|
00003d90  14 8c 27 c8 99 20 22 57  69 6d 70 5f 50 6f 6c 6c  |..'.. "Wimp_Poll|
00003da0  22 2c 6d 61 73 6b 25 2c  77 69 6d 70 25 20 b8 20  |",mask%,wimp% . |
00003db0  65 76 65 6e 74 25 0d 14  96 0b 3d 65 76 65 6e 74  |event%....=event|
00003dc0  25 0d 14 a0 05 3a 0d 14  aa 13 dd 20 f2 50 6f 6c  |%....:..... .Pol|
00003dd0  6c 28 65 76 65 6e 74 25  29 0d 14 b4 0f c8 8e 20  |l(event%)...... |
00003de0  65 76 65 6e 74 25 20 ca  0d 14 be 1f 20 20 c9 20  |event% .....  . |
00003df0  31 3a f2 44 72 61 77 5f  77 69 6e 64 6f 77 28 77  |1:.Draw_window(w|
00003e00  69 6d 70 25 21 30 29 0d  14 c8 1e 20 20 c9 20 32  |imp%!0)....  . 2|
00003e10  3a f2 6f 70 65 6e 77 69  6e 64 6f 77 28 77 69 6d  |:.openwindow(wim|
00003e20  70 25 21 30 29 0d 14 d2  33 20 20 c9 20 33 3a f2  |p%!0)...3  . 3:.|
00003e30  43 6c 6f 73 65 5f 57 69  6e 64 6f 77 28 77 69 6d  |Close_Window(wim|
00003e40  70 25 21 30 29 3a f2 43  6c 6f 73 65 5f 41 6c 6c  |p%!0):.Close_All|
00003e50  5f 57 69 6e 64 6f 77 73  0d 14 dc 0a 20 20 c9 20  |_Windows....  . |
00003e60  34 3a 0d 14 e6 0a 20 20  c9 20 35 3a 0d 14 f0 33  |4:....  . 5:...3|
00003e70  20 20 c9 20 36 3a f2 6d  6f 75 73 65 28 77 69 6d  |  . 6:.mouse(wim|
00003e80  70 25 21 31 32 2c 77 69  6d 70 25 21 31 36 2c 77  |p%!12,wimp%!16,w|
00003e90  69 6d 70 25 21 38 2c 77  69 6d 70 25 21 34 29 0d  |imp%!8,wimp%!4).|
00003ea0  14 fa 0f 20 20 c9 20 37  3a f2 64 72 61 67 0d 15  |...  . 7:.drag..|
00003eb0  04 28 20 20 c9 20 38 3a  f2 6b 65 79 28 77 69 6d  |.(  . 8:.key(wim|
00003ec0  70 25 21 30 2c 77 69 6d  70 25 21 34 2c 77 69 6d  |p%!0,wimp%!4,wim|
00003ed0  70 25 21 32 34 29 0d 15  0e 14 20 20 c9 20 39 3a  |p%!24)....  . 9:|
00003ee0  f2 52 65 61 64 5f 4d 65  6e 75 0d 15 18 1d 20 20  |.Read_Menu....  |
00003ef0  c9 20 31 37 2c 31 38 3a  f2 4d 65 73 73 61 67 65  |. 17,18:.Message|
00003f00  28 77 69 6d 70 25 29 0d  15 22 05 cb 0d 15 2c 05  |(wimp%).."....,.|
00003f10  e1 0d 15 36 05 3a 0d 15  40 15 dd 20 f2 4d 65 73  |...6.:..@.. .Mes|
00003f20  73 61 67 65 28 77 69 6d  70 25 29 0d 15 4a 24 66  |sage(wimp%)..J$f|
00003f30  24 3d a4 67 65 74 6e 61  6d 65 66 72 6f 6d 61 64  |$=.getnamefromad|
00003f40  64 72 65 73 73 28 77 69  6d 70 25 2b 34 34 29 0d  |dress(wimp%+44).|
00003f50  15 54 11 c8 8e 20 77 69  6d 70 25 21 31 36 20 ca  |.T... wimp%!16 .|
00003f60  0d 15 5e 15 20 20 c9 20  30 3a f2 43 6c 6f 73 65  |..^.  . 0:.Close|
00003f70  5f 44 6f 77 6e 0d 15 68  17 20 20 c9 20 32 3a f2  |_Down..h.  . 2:.|
00003f80  53 61 76 65 66 69 6c 65  28 66 24 29 0d 15 72 39  |Savefile(f$)..r9|
00003f90  20 20 c9 20 33 3a 74 79  70 65 25 3d 77 69 6d 70  |  . 3:type%=wimp|
00003fa0  25 21 34 30 3a f2 4c 6f  61 64 66 69 6c 65 28 66  |%!40:.Loadfile(f|
00003fb0  24 2c 74 79 70 65 25 29  3a f2 55 70 64 61 74 65  |$,type%):.Update|
00003fc0  5f 6d 61 69 6e 0d 15 7c  19 20 20 c9 20 26 35 30  |_main..|.  . &50|
00003fd0  32 3a f2 68 65 6c 70 28  77 69 6d 70 25 29 0d 15  |2:.help(wimp%)..|
00003fe0  86 05 cb 0d 15 90 05 e1  0d 15 9a 05 3a 0d 15 a4  |............:...|
00003ff0  0d dd f2 64 72 61 67 62  6f 78 0d 15 ae 0b ea 20  |...dragbox..... |
00004000  78 25 2c 79 25 0d 15 b8  33 21 77 69 6d 70 25 3d  |x%,y%...3!wimp%=|
00004010  77 69 6e 64 6f 77 25 20  3a c8 99 20 22 57 69 6d  |window% :.. "Wim|
00004020  70 5f 47 65 74 57 69 6e  64 6f 77 53 74 61 74 65  |p_GetWindowState|
00004030  22 2c 2c 77 69 6d 70 25  0d 15 c2 2c 78 25 3d 77  |",,wimp%...,x%=w|
00004040  69 6d 70 25 21 34 2d 77  69 6d 70 25 21 32 30 3a  |imp%!4-wimp%!20:|
00004050  79 25 3d 77 69 6d 70 25  21 31 36 2d 77 69 6d 70  |y%=wimp%!16-wimp|
00004060  25 21 32 34 0d 15 cc 2b  77 69 6d 70 25 21 34 3d  |%!24...+wimp%!4=|
00004070  33 3a c8 99 20 22 57 69  6d 70 5f 47 65 74 49 63  |3:.. "Wimp_GetIc|
00004080  6f 6e 53 74 61 74 65 22  2c 2c 77 69 6d 70 25 0d  |onState",,wimp%.|
00004090  15 d6 1a 21 77 69 6d 70  25 3d 73 61 76 65 25 3a  |...!wimp%=save%:|
000040a0  77 69 6d 70 25 21 34 3d  35 0d 15 e0 2b 77 69 6d  |wimp%!4=5...+wim|
000040b0  70 25 21 38 3d 78 25 2b  77 69 6d 70 25 21 38 3a  |p%!8=x%+wimp%!8:|
000040c0  77 69 6d 70 25 21 31 32  3d 79 25 2b 77 69 6d 70  |wimp%!12=y%+wimp|
000040d0  25 21 31 32 0d 15 ea 2d  77 69 6d 70 25 21 31 36  |%!12...-wimp%!16|
000040e0  3d 78 25 2b 77 69 6d 70  25 21 31 36 3a 77 69 6d  |=x%+wimp%!16:wim|
000040f0  70 25 21 32 30 3d 79 25  2b 77 69 6d 70 25 21 32  |p%!20=y%+wimp%!2|
00004100  30 0d 15 f4 19 77 69 6d  70 25 21 32 34 3d 30 3a  |0....wimp%!24=0:|
00004110  77 69 6d 70 25 21 32 38  3d 30 0d 15 fe 29 77 69  |wimp%!28=0...)wi|
00004120  6d 70 25 21 33 32 3d 26  37 46 46 46 46 46 46 46  |mp%!32=&7FFFFFFF|
00004130  3a 77 69 6d 70 25 21 33  36 3d 26 37 46 46 46 46  |:wimp%!36=&7FFFF|
00004140  46 46 46 0d 16 08 1c c8  99 20 22 57 69 6d 70 5f  |FFF...... "Wimp_|
00004150  44 72 61 67 42 6f 78 22  2c 2c 77 69 6d 70 25 0d  |DragBox",,wimp%.|
00004160  16 12 05 e1 0d 16 1c 05  3a 0d 16 26 0b dd 20 f2  |........:..&.. .|
00004170  64 72 61 67 0d 16 30 23  c8 99 20 22 57 69 6d 70  |drag..0#.. "Wimp|
00004180  5f 47 65 74 50 6f 69 6e  74 65 72 49 6e 66 6f 22  |_GetPointerInfo"|
00004190  2c 2c 77 69 6d 70 25 0d  16 3a 23 77 69 6e 64 6f  |,,wimp%..:#windo|
000041a0  77 25 3d 77 69 6d 70 25  21 31 32 3a 69 63 6f 6e  |w%=wimp%!12:icon|
000041b0  25 3d 77 69 6d 70 25 21  31 36 0d 16 44 19 78 25  |%=wimp%!16..D.x%|
000041c0  3d 77 69 6d 70 25 21 30  3a 79 25 3d 77 69 6d 70  |=wimp%!0:y%=wimp|
000041d0  25 21 34 0d 16 4e 1d 77  69 6d 70 25 21 30 3d 73  |%!4..N.wimp%!0=s|
000041e0  61 76 65 25 20 3a 20 77  69 6d 70 25 21 34 3d 32  |ave% : wimp%!4=2|
000041f0  0d 16 58 21 c8 99 20 22  57 69 6d 70 5f 47 65 74  |..X!.. "Wimp_Get|
00004200  49 63 6f 6e 53 74 61 74  65 22 2c 2c 77 69 6d 70  |IconState",,wimp|
00004210  25 0d 16 62 2f 66 69 6c  65 24 3d 24 28 77 69 6d  |%..b/file$=$(wim|
00004220  70 25 21 32 38 29 3a 66  69 6c 65 24 3d a4 47 65  |p%!28):file$=.Ge|
00004230  74 50 61 74 68 6e 61 6d  65 28 66 69 6c 65 24 29  |tPathname(file$)|
00004240  0d 16 6c 26 77 69 6d 70  25 21 32 30 3d 77 69 6e  |..l&wimp%!20=win|
00004250  64 6f 77 25 20 20 20 3a  77 69 6d 70 25 21 32 34  |dow%   :wimp%!24|
00004260  3d 69 63 6f 6e 25 0d 16  76 23 77 69 6d 70 25 21  |=icon%..v#wimp%!|
00004270  32 38 3d 78 25 20 20 20  20 20 20 20 20 3a 77 69  |28=x%        :wi|
00004280  6d 70 25 21 33 32 3d 79  25 0d 16 80 22 77 69 6d  |mp%!32=y%..."wim|
00004290  70 25 21 33 36 3d 30 20  20 20 20 20 20 20 20 20  |p%!36=0         |
000042a0  3a 77 69 6d 70 25 21 30  3d 36 34 0d 16 8a 22 77  |:wimp%!0=64..."w|
000042b0  69 6d 70 25 21 31 32 3d  30 20 20 20 20 20 20 20  |imp%!12=0       |
000042c0  20 20 3a 77 69 6d 70 25  21 31 36 3d 31 0d 16 94  |  :wimp%!16=1...|
000042d0  16 77 69 6d 70 25 21 34  30 3d 66 69 6c 65 74 79  |.wimp%!40=filety|
000042e0  70 65 25 0d 16 9e 15 24  28 77 69 6d 70 25 2b 34  |pe%....$(wimp%+4|
000042f0  34 29 3d 66 69 6c 65 24  0d 16 a8 33 c8 99 22 57  |4)=file$...3.."W|
00004300  69 6d 70 5f 53 65 6e 64  4d 65 73 73 61 67 65 22  |imp_SendMessage"|
00004310  2c 31 37 2c 77 69 6d 70  25 2c 77 69 6d 70 25 21  |,17,wimp%,wimp%!|
00004320  32 30 2c 77 69 6d 70 25  21 32 34 0d 16 b2 05 e1  |20,wimp%!24.....|
00004330  0d 16 bc 05 3a 0d 16 c6  15 dd a4 47 65 74 50 61  |....:......GetPa|
00004340  74 68 6e 61 6d 65 28 66  24 29 0d 16 d0 11 c8 8e  |thname(f$)......|
00004350  20 a7 66 24 2c 22 2e 22  29 20 ca 0d 16 da 10 20  | .f$,".") ..... |
00004360  c9 20 30 20 20 20 20 3a  3d 66 24 0d 16 e4 2a 20  |. 0    :=f$...* |
00004370  7f 20 3a 3d a4 47 65 74  50 61 74 68 6e 61 6d 65  |. :=.GetPathname|
00004380  28 c2 66 24 2c a9 28 66  24 29 2d a7 66 24 2c 22  |(.f$,.(f$)-.f$,"|
00004390  2e 22 29 29 29 0d 16 ee  05 cb 0d 16 f8 05 3a 0d  |."))).........:.|
000043a0  17 02 1b dd 20 a4 43 72  65 61 74 65 5f 57 69 6e  |.... .Create_Win|
000043b0  64 6f 77 28 6e 61 6d 65  24 29 0d 17 0c 4f c8 99  |dow(name$)...O..|
000043c0  20 22 57 69 6d 70 5f 4c  6f 61 64 54 65 6d 70 6c  | "Wimp_LoadTempl|
000043d0  61 74 65 22 2c 2c 77 69  6d 70 25 2c 69 70 74 72  |ate",,wimp%,iptr|
000043e0  25 2c 69 65 6e 64 25 2c  2d 31 2c 6e 61 6d 65 24  |%,iend%,-1,name$|
000043f0  2c 30 20 b8 20 74 79 70  65 25 2c 2c 69 70 74 72  |,0 . type%,,iptr|
00004400  25 2c 2c 2c 2c 70 6f 73  25 0d 17 16 2b c8 99 20  |%,,,,pos%...+.. |
00004410  22 57 69 6d 70 5f 43 72  65 61 74 65 57 69 6e 64  |"Wimp_CreateWind|
00004420  6f 77 22 2c 2c 77 69 6d  70 25 20 b8 20 72 65 73  |ow",,wimp% . res|
00004430  75 6c 74 25 0d 17 20 0c  3d 72 65 73 75 6c 74 25  |ult%.. .=result%|
00004440  0d 17 2a 05 3a 0d 17 34  0e dd f2 42 61 72 5f 49  |..*.:..4...Bar_I|
00004450  63 6f 6e 0d 17 3e 3a 77  69 6d 70 25 21 30 3d 2d  |con..>:wimp%!0=-|
00004460  31 3a 77 69 6d 70 25 21  34 3d 30 3a 77 69 6d 70  |1:wimp%!4=0:wimp|
00004470  25 21 38 3d 30 3a 77 69  6d 70 25 21 31 32 3d 36  |%!8=0:wimp%!12=6|
00004480  38 3a 77 69 6d 70 25 21  31 36 3d 36 38 0d 17 48  |8:wimp%!16=68..H|
00004490  28 77 69 6d 70 25 21 32  30 3d 26 33 30 30 32 3a  |(wimp%!20=&3002:|
000044a0  24 28 77 69 6d 70 25 2b  32 34 29 3d 22 21 62 75  |$(wimp%+24)="!bu|
000044b0  64 67 65 74 22 0d 17 52  2c c8 99 20 22 57 69 6d  |dget"..R,.. "Wim|
000044c0  70 5f 43 72 65 61 74 65  49 63 6f 6e 22 2c 30 2c  |p_CreateIcon",0,|
000044d0  77 69 6d 70 25 20 b8 20  62 61 72 5f 69 63 6f 6e  |wimp% . bar_icon|
000044e0  25 0d 17 5c 05 e1 0d 17  66 05 3a 0d 17 70 29 dd  |%..\....f.:..p).|
000044f0  20 f2 50 75 74 5f 49 63  6f 6e 5f 54 65 78 74 28  | .Put_Icon_Text(|
00004500  77 69 6e 64 6f 77 25 2c  69 63 6f 6e 25 2c 74 65  |window%,icon%,te|
00004510  78 74 24 29 0d 17 7a 21  77 69 6d 70 25 21 30 3d  |xt$)..z!wimp%!0=|
00004520  77 69 6e 64 6f 77 25 3a  77 69 6d 70 25 21 34 3d  |window%:wimp%!4=|
00004530  69 63 6f 6e 25 0d 17 84  21 c8 99 20 22 57 69 6d  |icon%...!.. "Wim|
00004540  70 5f 47 65 74 49 63 6f  6e 53 74 61 74 65 22 2c  |p_GetIconState",|
00004550  2c 77 69 6d 70 25 0d 17  8e 15 24 28 77 69 6d 70  |,wimp%....$(wimp|
00004560  25 21 32 38 29 3d 74 65  78 74 24 0d 17 98 05 e1  |%!28)=text$.....|
00004570  0d 17 a2 05 3a 0d 17 ac  1d dd 20 f2 57 69 6e 64  |....:..... .Wind|
00004580  6f 77 5f 54 6f 5f 54 6f  70 28 77 69 6e 64 6f 77  |ow_To_Top(window|
00004590  25 29 0d 17 b6 13 77 69  6d 70 25 21 30 3d 77 69  |%)....wimp%!0=wi|
000045a0  6e 64 6f 77 25 0d 17 c0  24 c8 99 20 22 57 69 6d  |ndow%...$.. "Wim|
000045b0  70 5f 47 65 74 57 69 6e  64 6f 77 53 74 61 74 65  |p_GetWindowState|
000045c0  22 2c 30 2c 77 69 6d 70  25 0d 17 ca 0f 77 69 6d  |",0,wimp%....wim|
000045d0  70 25 21 32 38 3d 2d 31  0d 17 d4 20 c8 99 20 22  |p%!28=-1... .. "|
000045e0  57 69 6d 70 5f 4f 70 65  6e 57 69 6e 64 6f 77 22  |Wimp_OpenWindow"|
000045f0  2c 30 2c 77 69 6d 70 25  0d 17 de 05 e1 0d 17 e8  |,0,wimp%........|
00004600  05 3a 0d 17 f2 18 dd 20  f2 43 6c 6f 73 65 5f 41  |.:..... .Close_A|
00004610  6c 6c 5f 57 69 6e 64 6f  77 73 0d 17 fc 1c 20 20  |ll_Windows....  |
00004620  20 f2 43 6c 6f 73 65 5f  57 69 6e 64 6f 77 28 69  | .Close_Window(i|
00004630  6e 6f 75 74 25 29 0d 18  06 1c 20 20 20 f2 43 6c  |nout%)....   .Cl|
00004640  6f 73 65 5f 57 69 6e 64  6f 77 28 62 72 65 61 6b  |ose_Window(break|
00004650  25 29 0d 18 10 14 20 20  20 69 6e 6f 75 74 5f 6f  |%)....   inout_o|
00004660  70 65 6e 25 3d a3 0d 18  1a 14 20 20 20 62 72 65  |pen%=.....   bre|
00004670  61 6b 5f 6f 70 65 6e 25  3d a3 0d 18 24 05 e1 0d  |ak_open%=...$...|
00004680  18 2e 05 3a 0d 18 38 1c  dd 20 f2 43 6c 6f 73 65  |...:..8.. .Close|
00004690  5f 57 69 6e 64 6f 77 28  77 69 6e 64 6f 77 25 29  |_Window(window%)|
000046a0  0d 18 42 31 77 69 6d 70  25 21 30 3d 77 69 6e 64  |..B1wimp%!0=wind|
000046b0  6f 77 25 3a c8 99 20 22  57 69 6d 70 5f 43 6c 6f  |ow%:.. "Wimp_Clo|
000046c0  73 65 57 69 6e 64 6f 77  22 2c 30 2c 77 69 6d 70  |seWindow",0,wimp|
000046d0  25 0d 18 4c 29 e7 20 77  69 6e 64 6f 77 25 3d 62  |%..L). window%=b|
000046e0  72 65 61 6b 25 20 f2 43  6c 6f 73 65 5f 57 69 6e  |reak% .Close_Win|
000046f0  64 6f 77 28 70 61 6e 65  25 29 0d 18 56 05 e1 0d  |dow(pane%)..V...|
00004700  18 60 05 3a 0d 18 6a 19  dd f2 6f 70 65 6e 77 69  |.`.:..j...openwi|
00004710  6e 64 6f 77 28 77 69 6e  64 6f 77 25 29 0d 18 74  |ndow(window%)..t|
00004720  13 77 69 6d 70 25 21 30  3d 77 69 6e 64 6f 77 25  |.wimp%!0=window%|
00004730  0d 18 7e 16 e7 20 77 69  6e 64 6f 77 25 3d 62 72  |..~.. window%=br|
00004740  65 61 6b 25 20 8c 0d 18  88 21 20 20 c8 99 20 22  |eak% ....!  .. "|
00004750  57 69 6d 70 5f 4f 70 65  6e 57 69 6e 64 6f 77 22  |Wimp_OpenWindow"|
00004760  2c 2c 77 69 6d 70 25 0d  18 92 10 20 20 70 25 21  |,,wimp%....  p%!|
00004770  30 3d 70 61 6e 65 25 0d  18 9c 23 20 20 c8 99 20  |0=pane%...#  .. |
00004780  22 57 69 6d 70 5f 47 65  74 57 69 6e 64 6f 77 53  |"Wimp_GetWindowS|
00004790  74 61 74 65 22 2c 30 2c  70 25 0d 18 a6 12 20 20  |tate",0,p%....  |
000047a0  70 25 21 34 3d 77 69 6d  70 25 21 34 0d 18 b0 19  |p%!4=wimp%!4....|
000047b0  20 20 70 25 21 38 3d 28  77 69 6d 70 25 21 31 36  |  p%!8=(wimp%!16|
000047c0  29 2d 32 32 30 0d 18 ba  19 20 20 70 25 21 31 32  |)-220....  p%!12|
000047d0  3d 28 77 69 6d 70 25 21  34 29 2b 36 34 36 0d 18  |=(wimp%!4)+646..|
000047e0  c4 17 20 20 70 25 21 31  36 3d 77 69 6d 70 25 21  |..  p%!16=wimp%!|
000047f0  31 36 2d 34 30 0d 18 ce  14 20 20 70 25 21 32 38  |16-40....  p%!28|
00004800  3d 77 69 6d 70 25 21 32  38 0d 18 d8 1f 20 20 c8  |=wimp%!28....  .|
00004810  99 20 22 57 69 6d 70 5f  4f 70 65 6e 57 69 6e 64  |. "Wimp_OpenWind|
00004820  6f 77 22 2c 30 2c 70 25  0d 18 e2 14 20 20 77 69  |ow",0,p%....  wi|
00004830  6d 70 25 21 32 38 3d 70  61 6e 65 25 0d 18 ec 05  |mp%!28=pane%....|
00004840  cd 0d 18 f6 20 c8 99 20  22 57 69 6d 70 5f 4f 70  |.... .. "Wimp_Op|
00004850  65 6e 57 69 6e 64 6f 77  22 2c 30 2c 77 69 6d 70  |enWindow",0,wimp|
00004860  25 0d 19 00 05 e1 0d 19  0a 05 3a 0d 19 14 1d dd  |%.........:.....|
00004870  20 f2 41 6c 65 72 74 28  74 69 74 6c 65 24 2c 6d  | .Alert(title$,m|
00004880  65 73 73 61 67 65 24 29  0d 19 1e 0f ea 20 72 65  |essage$)..... re|
00004890  73 70 6f 6e 73 65 25 0d  19 28 17 24 28 77 69 6d  |sponse%..(.$(wim|
000048a0  70 25 2b 34 29 3d 6d 65  73 73 61 67 65 24 0d 19  |p%+4)=message$..|
000048b0  32 36 c8 99 20 22 57 69  6d 70 5f 52 65 70 6f 72  |26.. "Wimp_Repor|
000048c0  74 45 72 72 6f 72 22 2c  77 69 6d 70 25 2c 31 36  |tError",wimp%,16|
000048d0  2c 74 69 74 6c 65 24 20  b8 20 2c 72 65 73 70 6f  |,title$ . ,respo|
000048e0  6e 73 65 25 0d 19 3c 05  e1 0d 19 46 05 3a 0d 19  |nse%..<....F.:..|
000048f0  50 1a dd 20 f2 43 68 61  6e 67 65 5f 63 6f 6c 6f  |P.. .Change_colo|
00004900  75 72 28 63 6f 6c 25 29  0d 19 5a 3f 77 69 6d 70  |ur(col%)..Z?wimp|
00004910  25 21 30 3d 6d 61 69 6e  25 3a 77 69 6d 70 25 21  |%!0=main%:wimp%!|
00004920  34 3d 36 3a 77 69 6d 70  25 21 38 3d 63 6f 6c 25  |4=6:wimp%!8=col%|
00004930  3c 3c 32 34 3a 77 69 6d  70 25 21 31 32 3d 26 30  |<<24:wimp%!12=&0|
00004940  46 30 30 30 30 30 30 0d  19 64 21 c8 99 20 22 57  |F000000..d!.. "W|
00004950  69 6d 70 5f 53 65 74 49  63 6f 6e 53 74 61 74 65  |imp_SetIconState|
00004960  22 2c 2c 77 69 6d 70 25  0d 19 6e 05 e1 0d 19 78  |",,wimp%..n....x|
00004970  05 3a 0d 19 82 1e dd 20  a4 49 63 6f 6e 54 65 78  |.:..... .IconTex|
00004980  74 28 77 69 6e 64 6f 77  25 2c 69 63 6f 6e 25 29  |t(window%,icon%)|
00004990  0d 19 8c 23 77 69 6d 70  25 21 30 3d 77 69 6e 64  |...#wimp%!0=wind|
000049a0  6f 77 25 20 3a 20 77 69  6d 70 25 21 34 3d 69 63  |ow% : wimp%!4=ic|
000049b0  6f 6e 25 0d 19 96 21 c8  99 20 22 57 69 6d 70 5f  |on%...!.. "Wimp_|
000049c0  47 65 74 49 63 6f 6e 53  74 61 74 65 22 2c 2c 77  |GetIconState",,w|
000049d0  69 6d 70 25 0d 19 a0 37  e7 20 28 28 77 69 6d 70  |imp%...7. ((wimp|
000049e0  25 21 32 34 29 20 80 20  26 31 30 30 29 3d 30 20  |%!24) . &100)=0 |
000049f0  85 20 31 2c 22 49 63 6f  6e 20 69 73 6e 27 74 20  |. 1,"Icon isn't |
00004a00  69 6e 64 69 72 65 63 74  65 64 22 0d 19 aa 10 3d  |indirected"....=|
00004a10  24 28 77 69 6d 70 25 21  32 38 29 0d 19 b4 05 3a  |$(wimp%!28)....:|
00004a20  0d 19 be 22 dd 20 f2 57  69 6e 64 6f 77 54 69 74  |...". .WindowTit|
00004a30  6c 65 28 77 69 6e 64 6f  77 25 2c 74 69 74 6c 65  |le(window%,title|
00004a40  24 29 0d 19 c8 13 77 69  6d 70 25 21 30 3d 77 69  |$)....wimp%!0=wi|
00004a50  6e 64 6f 77 25 0d 19 d2  22 c8 99 20 22 57 69 6d  |ndow%...".. "Wim|
00004a60  70 5f 47 65 74 57 69 6e  64 6f 77 49 6e 66 6f 22  |p_GetWindowInfo"|
00004a70  2c 2c 77 69 6d 70 25 0d  19 dc 36 e7 20 28 28 77  |,,wimp%...6. ((w|
00004a80  69 6d 70 25 21 36 30 29  80 26 31 30 30 29 3d 30  |imp%!60).&100)=0|
00004a90  20 85 20 31 2c 22 54 69  74 6c 65 20 69 73 6e 27  | . 1,"Title isn'|
00004aa0  74 20 69 6e 64 69 72 65  63 74 65 64 22 0d 19 e6  |t indirected"...|
00004ab0  16 24 28 77 69 6d 70 25  21 37 36 29 3d 74 69 74  |.$(wimp%!76)=tit|
00004ac0  6c 65 24 0d 19 f0 05 e1  0d 19 fa 05 3a 0d 1a 04  |le$.........:...|
00004ad0  26 dd 20 f2 50 75 74 5f  43 61 72 65 74 28 77 69  |&. .Put_Caret(wi|
00004ae0  6e 64 6f 77 25 2c 69 63  6f 6e 25 2c 63 68 61 72  |ndow%,icon%,char|
00004af0  73 25 29 0d 1a 0e 38 c8  99 20 22 57 69 6d 70 5f  |s%)...8.. "Wimp_|
00004b00  53 65 74 43 61 72 65 74  50 6f 73 69 74 69 6f 6e  |SetCaretPosition|
00004b10  22 2c 77 69 6e 64 6f 77  25 2c 69 63 6f 6e 25 2c  |",window%,icon%,|
00004b20  2c 2c 2d 31 2c 63 68 61  72 73 25 0d 1a 18 05 e1  |,,-1,chars%.....|
00004b30  0d 1a 22 04 0d 1a 2c 1b  dd 20 f2 44 72 61 77 5f  |.."...,.. .Draw_|
00004b40  77 69 6e 64 6f 77 28 77  69 6e 64 6f 77 25 29 0d  |window(window%).|
00004b50  1a 36 0b ea 20 6d 6f 72  65 25 0d 1a 40 13 77 69  |.6.. more%..@.wi|
00004b60  6d 70 25 21 30 3d 77 69  6e 64 6f 77 25 0d 1a 4a  |mp%!0=window%..J|
00004b70  28 c8 99 22 57 69 6d 70  5f 52 65 64 72 61 77 57  |(.."Wimp_RedrawW|
00004b80  69 6e 64 6f 77 22 2c 2c  77 69 6d 70 25 20 b8 20  |indow",,wimp% . |
00004b90  6d 6f 72 65 25 0d 1a 54  26 f2 6f 72 69 67 69 6e  |more%..T&.origin|
00004ba0  28 77 69 6d 70 25 2c 78  5f 6f 72 69 67 69 6e 25  |(wimp%,x_origin%|
00004bb0  2c 79 5f 6f 72 69 67 69  6e 25 29 0d 1a 5e 0c c8  |,y_origin%)..^..|
00004bc0  95 20 6d 6f 72 65 25 0d  1a 68 36 20 e7 20 77 69  |. more%..h6 . wi|
00004bd0  6e 64 6f 77 25 3d 62 72  65 61 6b 25 20 f2 44 72  |ndow%=break% .Dr|
00004be0  61 77 5f 62 72 65 61 6b  28 78 5f 6f 72 69 67 69  |aw_break(x_origi|
00004bf0  6e 25 2c 79 5f 6f 72 69  67 69 6e 25 29 0d 1a 72  |n%,y_origin%)..r|
00004c00  36 20 e7 20 77 69 6e 64  6f 77 25 3d 69 6e 6f 75  |6 . window%=inou|
00004c10  74 25 20 f2 44 72 61 77  5f 69 6e 6f 75 74 28 78  |t% .Draw_inout(x|
00004c20  5f 6f 72 69 67 69 6e 25  2c 79 5f 6f 72 69 67 69  |_origin%,y_origi|
00004c30  6e 25 29 0d 1a 7c 2a 20  c8 99 20 22 57 69 6d 70  |n%)..|* .. "Wimp|
00004c40  5f 47 65 74 52 65 63 74  61 6e 67 6c 65 22 2c 2c  |_GetRectangle",,|
00004c50  77 69 6d 70 25 20 b8 20  6d 6f 72 65 25 0d 1a 86  |wimp% . more%...|
00004c60  05 ce 0d 1a 90 05 e1 0d  1a 9a 05 3a 0d 1a a4 2c  |...........:...,|
00004c70  dd 20 f2 6f 72 69 67 69  6e 28 77 69 6d 70 25 2c  |. .origin(wimp%,|
00004c80  f8 20 78 5f 6f 72 69 67  69 6e 25 2c f8 20 79 5f  |. x_origin%,. y_|
00004c90  6f 72 69 67 69 6e 25 29  0d 1a ae 1e 78 5f 6f 72  |origin%)....x_or|
00004ca0  69 67 69 6e 25 3d 77 69  6d 70 25 21 34 2d 77 69  |igin%=wimp%!4-wi|
00004cb0  6d 70 25 21 32 30 0d 1a  b8 1f 79 5f 6f 72 69 67  |mp%!20....y_orig|
00004cc0  69 6e 25 3d 77 69 6d 70  25 21 31 36 2d 77 69 6d  |in%=wimp%!16-wim|
00004cd0  70 25 21 32 34 0d 1a c2  05 e1 0d 1a cc 04 0d 1a  |p%!24...........|
00004ce0  d6 1a dd 20 f2 46 6f 72  63 65 5f 44 72 61 77 28  |... .Force_Draw(|
00004cf0  77 69 6e 64 6f 77 25 29  0d 1a e0 10 c8 8e 20 77  |window%)...... w|
00004d00  69 6e 64 6f 77 25 20 ca  0d 1a ea 38 20 c9 20 2d  |indow% ....8 . -|
00004d10  31 20 20 20 3a 20 c8 99  20 22 57 69 6d 70 5f 46  |1   : .. "Wimp_F|
00004d20  6f 72 63 65 52 65 64 72  61 77 22 2c 2d 31 2c 30  |orceRedraw",-1,0|
00004d30  2c 30 2c 32 2a 31 32 38  30 2c 32 2a 31 30 32 34  |,0,2*1280,2*1024|
00004d40  0d 1a f4 39 20 7f 20 3a  20 c8 99 20 22 57 69 6d  |...9 . : .. "Wim|
00004d50  70 5f 46 6f 72 63 65 52  65 64 72 61 77 22 2c 77  |p_ForceRedraw",w|
00004d60  69 6e 64 6f 77 25 2c 30  2c 2d 32 2a 31 30 32 34  |indow%,0,-2*1024|
00004d70  2c 32 2a 31 32 38 30 2c  30 0d 1a fe 05 cb 0d 1b  |,2*1280,0.......|
00004d80  08 05 e1 0d 1b 12 04 0d  1b 1c 1b dd 20 f2 4f 70  |............ .Op|
00004d90  65 6e 5f 57 69 6e 64 6f  77 28 77 69 6e 64 6f 77  |en_Window(window|
00004da0  25 29 0d 1b 26 13 77 69  6d 70 25 21 30 3d 77 69  |%)..&.wimp%!0=wi|
00004db0  6e 64 6f 77 25 0d 1b 30  23 c8 99 20 22 57 69 6d  |ndow%..0#.. "Wim|
00004dc0  70 5f 47 65 74 57 69 6e  64 6f 77 53 74 61 74 65  |p_GetWindowState|
00004dd0  22 2c 2c 77 69 6d 70 25  0d 1b 3a 2b e7 20 77 69  |",,wimp%..:+. wi|
00004de0  6e 64 6f 77 25 3d 69 6e  6f 75 74 25 20 77 69 6d  |ndow%=inout% wim|
00004df0  70 25 21 38 3d 28 77 69  6d 70 25 21 31 36 29 2d  |p%!8=(wimp%!16)-|
00004e00  39 36 30 0d 1b 44 1f c8  99 20 22 57 69 6d 70 5f  |960..D... "Wimp_|
00004e10  4f 70 65 6e 57 69 6e 64  6f 77 22 2c 2c 77 69 6d  |OpenWindow",,wim|
00004e20  70 25 0d 1b 4e 36 e7 20  77 69 6e 64 6f 77 25 3d  |p%..N6. window%=|
00004e30  62 72 65 61 6b 25 20 62  72 65 61 6b 5f 6f 70 65  |break% break_ope|
00004e40  6e 25 3d b9 3a f2 4f 70  65 6e 5f 57 69 6e 64 6f  |n%=.:.Open_Windo|
00004e50  77 28 70 61 6e 65 25 29  0d 1b 58 22 e7 20 77 69  |w(pane%)..X". wi|
00004e60  6e 64 6f 77 25 3d 69 6e  6f 75 74 25 20 69 6e 6f  |ndow%=inout% ino|
00004e70  75 74 5f 6f 70 65 6e 25  3d b9 0d 1b 62 05 e1 0d  |ut_open%=...b...|
00004e80  1b 6c 04 0d 1b 76 0b dd  f2 65 72 72 6f 72 0d 1b  |.l...v...error..|
00004e90  80 11 20 20 21 77 69 6d  70 25 20 3d 20 39 39 0d  |..  !wimp% = 99.|
00004ea0  1b 8a 3a 20 20 24 28 77  69 6d 70 25 2b 34 29 20  |..:  $(wimp%+4) |
00004eb0  3d 20 f6 24 20 2b 20 22  20 28 49 6e 74 65 72 6e  |= .$ + " (Intern|
00004ec0  61 6c 20 65 72 72 6f 72  20 63 6f 64 65 20 22 2b  |al error code "+|
00004ed0  c3 9e 2b 22 29 22 2b bd  30 0d 1b 94 1c 20 20 ff  |..+")"+.0....  .|
00004ee0  20 28 22 53 45 54 20 45  72 72 6f 72 24 45 64 20  | ("SET Error$Ed |
00004ef0  22 2b c3 9e 29 0d 1b 9e  2d 20 20 c8 99 20 22 57  |"+..)...-  .. "W|
00004f00  69 6d 70 5f 52 65 70 6f  72 74 45 72 72 6f 72 22  |imp_ReportError"|
00004f10  2c 77 69 6d 70 25 2c 30  2c 22 21 42 75 64 67 65  |,wimp%,0,"!Budge|
00004f20  74 22 0d 1b a8 05 e1 0d  1b b2 04 0d 1b bc 12 dd  |t"..............|
00004f30  a4 51 75 65 72 79 28 74  65 78 74 24 29 0d 1b c6  |.Query(text$)...|
00004f40  0f 21 77 69 6d 70 25 20  3d 20 39 39 0d 1b d0 16  |.!wimp% = 99....|
00004f50  24 28 77 69 6d 70 25 2b  34 29 20 3d 20 74 65 78  |$(wimp%+4) = tex|
00004f60  74 24 0d 1b da 37 c8 99  20 22 57 69 6d 70 5f 52  |t$...7.. "Wimp_R|
00004f70  65 70 6f 72 74 45 72 72  6f 72 22 2c 77 69 6d 70  |eportError",wimp|
00004f80  25 2c 26 31 33 2c 22 21  42 75 64 67 65 74 22 20  |%,&13,"!Budget" |
00004f90  b8 20 2c 72 65 70 6c 79  25 0d 1b e4 0b 3d 72 65  |. ,reply%....=re|
00004fa0  70 6c 79 25 0d 1b ee 04  0d 1b f8 2b dd 20 a4 49  |ply%.......+. .I|
00004fb0  63 6f 6e 5f 50 75 74 5f  53 70 72 69 74 65 28 77  |con_Put_Sprite(w|
00004fc0  69 6e 64 6f 77 25 2c 69  63 6f 6e 25 2c 6e 61 6d  |indow%,icon%,nam|
00004fd0  65 24 29 0d 1c 02 21 77  69 6d 70 25 21 30 3d 77  |e$)...!wimp%!0=w|
00004fe0  69 6e 64 6f 77 25 3a 77  69 6d 70 25 21 34 3d 69  |indow%:wimp%!4=i|
00004ff0  63 6f 6e 25 0d 1c 0c 21  c8 99 20 22 57 69 6d 70  |con%...!.. "Wimp|
00005000  5f 47 65 74 49 63 6f 6e  53 74 61 74 65 22 2c 2c  |_GetIconState",,|
00005010  77 69 6d 70 25 0d 1c 16  1f c8 99 20 22 57 69 6d  |wimp%...... "Wim|
00005020  70 5f 44 65 6c 65 74 65  49 63 6f 6e 22 2c 2c 77  |p_DeleteIcon",,w|
00005030  69 6d 70 25 0d 1c 20 3d  77 69 6d 70 25 21 34 3d  |imp%.. =wimp%!4=|
00005040  77 69 6d 70 25 21 38 20  20 20 3a 20 77 69 6d 70  |wimp%!8   : wimp|
00005050  25 21 38 3d 77 69 6d 70  25 21 31 32 20 20 3a 20  |%!8=wimp%!12  : |
00005060  77 69 6d 70 25 21 31 32  3d 77 69 6d 70 25 21 31  |wimp%!12=wimp%!1|
00005070  36 0d 1c 2a 3d 77 69 6d  70 25 21 31 36 3d 77 69  |6..*=wimp%!16=wi|
00005080  6d 70 25 21 32 30 20 3a  20 77 69 6d 70 25 21 32  |mp%!20 : wimp%!2|
00005090  30 3d 77 69 6d 70 25 21  32 34 20 3a 20 24 28 77  |0=wimp%!24 : $(w|
000050a0  69 6d 70 25 2b 32 34 29  3d 6e 61 6d 65 24 0d 1c  |imp%+24)=name$..|
000050b0  34 27 c8 99 20 22 57 69  6d 70 5f 43 72 65 61 74  |4'.. "Wimp_Creat|
000050c0  65 49 63 6f 6e 22 2c 2c  77 69 6d 70 25 20 b8 20  |eIcon",,wimp% . |
000050d0  69 63 6f 6e 25 0d 1c 3e  0a 3d 69 63 6f 6e 25 0d  |icon%..>.=icon%.|
000050e0  1c 48 05 3a 0d 1c 52 1f  dd 20 a4 67 65 74 6e 61  |.H.:..R.. .getna|
000050f0  6d 65 66 72 6f 6d 61 64  64 72 65 73 73 28 61 64  |mefromaddress(ad|
00005100  64 25 29 0d 1c 5c 0b ea  20 66 69 6c 65 24 0d 1c  |d%)..\.. file$..|
00005110  66 0c 66 69 6c 65 24 3d  22 22 0d 1c 70 1b c8 95  |f.file$=""..p...|
00005120  20 3f 61 64 64 25 3c 3e  30 20 80 20 3f 61 64 64  | ?add%<>0 . ?add|
00005130  25 3c 3e 31 33 0d 1c 7a  1c 66 69 6c 65 24 2b 3d  |%<>13..z.file$+=|
00005140  bd 3f 61 64 64 25 20 20  3a 20 61 64 64 25 2b 3d  |.?add%  : add%+=|
00005150  31 0d 1c 84 05 ce 0d 1c  8e 0a 3d 66 69 6c 65 24  |1.........=file$|
00005160  0d 1c 98 05 3a 0d 1c a2  4a f4 3d 3d 3d 3d 3d 3d  |....:...J.======|
00005170  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  |================|
*
000051a0  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 0d  |===============.|
000051b0  1c ac 25 f4 20 20 20 20  20 20 20 20 20 20 20 20  |..%.            |
000051c0  20 20 20 20 20 20 20 20  48 45 4c 50 20 52 4f 55  |        HELP ROU|
000051d0  54 49 4e 45 0d 1c b6 4a  f4 3d 3d 3d 3d 3d 3d 3d  |TINE...J.=======|
000051e0  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  |================|
*
00005210  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 0d 1c  |==============..|
00005220  c0 12 dd 20 f2 68 65 6c  70 28 77 69 6d 70 25 29  |... .help(wimp%)|
00005230  0d 1c ca 08 ea 20 74 24  0d 1c d4 11 c8 8e 20 77  |..... t$...... w|
00005240  69 6d 70 25 21 33 32 20  ca 0d 1c de 0d 20 20 c9  |imp%!32 .....  .|
00005250  20 6d 61 69 6e 25 0d 1c  e8 15 20 20 20 20 c8 8e  | main%....    ..|
00005260  20 77 69 6d 70 25 21 33  36 20 ca 0d 1c f2 5e 20  | wimp%!36 ....^ |
00005270  20 20 20 20 20 c9 20 30  3a 74 24 3d 22 54 68 69  |     . 0:t$="Thi|
00005280  73 20 69 73 20 74 68 65  20 4f 75 74 67 6f 69 6e  |s is the Outgoin|
00005290  67 73 20 69 63 6f 6e 2e  7c 4d 43 6c 69 63 6b 20  |gs icon.|MClick |
000052a0  53 45 4c 45 43 54 20 68  65 72 65 20 74 6f 20 6f  |SELECT here to o|
000052b0  70 65 6e 20 74 68 65 20  6f 75 74 67 6f 69 6e 67  |pen the outgoing|
000052c0  73 20 77 69 6e 64 6f 77  22 0d 1c fc 58 20 20 20  |s window"...X   |
000052d0  20 20 20 c9 20 31 3a 74  24 3d 22 54 68 69 73 20  |   . 1:t$="This |
000052e0  69 73 20 74 68 65 20 49  6e 63 6f 6d 65 20 69 63  |is the Income ic|
000052f0  6f 6e 2e 7c 4d 43 6c 69  63 6b 20 53 45 4c 45 43  |on.|MClick SELEC|
00005300  54 20 68 65 72 65 20 74  6f 20 6f 70 65 6e 20 74  |T here to open t|
00005310  68 65 20 69 6e 63 6f 6d  65 20 77 69 6e 64 6f 77  |he income window|
00005320  22 0d 1d 06 55 20 20 20  20 20 20 c9 20 32 3a 74  |"...U      . 2:t|
00005330  24 3d 22 54 68 69 73 20  49 63 6f 6e 20 73 68 6f  |$="This Icon sho|
00005340  77 73 20 74 68 65 20 74  6f 74 61 6c 20 61 6d 6f  |ws the total amo|
00005350  75 6e 74 20 6f 66 20 6f  75 74 67 6f 69 6e 67 73  |unt of outgoings|
00005360  20 66 6f 72 20 74 68 65  20 70 65 72 69 6f 64 20  | for the period |
00005370  73 68 6f 77 6e 22 0d 1d  10 52 20 20 20 20 20 20  |shown"...R      |
00005380  c9 20 33 3a 74 24 3d 22  54 68 69 73 20 49 63 6f  |. 3:t$="This Ico|
00005390  6e 20 73 68 6f 77 73 20  74 68 65 20 74 6f 74 61  |n shows the tota|
000053a0  6c 20 61 6d 6f 75 6e 74  20 6f 66 20 69 6e 63 6f  |l amount of inco|
000053b0  6d 65 20 66 6f 72 20 74  68 65 20 70 65 72 69 6f  |me for the perio|
000053c0  64 20 73 68 6f 77 6e 22  0d 1d 1a 63 20 20 20 20  |d shown"...c    |
000053d0  20 20 c9 20 36 3a 74 24  3d 22 54 68 69 73 20 49  |  . 6:t$="This I|
000053e0  63 6f 6e 20 73 68 6f 77  73 20 74 68 65 20 64 69  |con shows the di|
000053f0  66 66 65 72 65 6e 63 65  20 62 65 74 77 65 65 6e  |fference between|
00005400  20 69 6e 63 6f 6d 65 20  61 6e 64 20 6f 75 74 67  | income and outg|
00005410  6f 69 6e 67 73 20 66 6f  72 20 74 68 65 20 70 65  |oings for the pe|
00005420  72 69 6f 64 20 73 68 6f  77 6e 22 0d 1d 24 c6 20  |riod shown"..$. |
00005430  20 20 20 20 20 c9 20 39  3a 74 24 3d 22 54 68 69  |     . 9:t$="Thi|
00005440  73 20 69 73 20 74 68 65  20 70 65 72 69 6f 64 20  |s is the period |
00005450  69 63 6f 6e 2e 7c 4d 43  6c 69 63 6b 20 53 45 4c  |icon.|MClick SEL|
00005460  45 43 54 20 68 65 72 65  20 74 6f 20 69 6e 63 72  |ECT here to incr|
00005470  65 61 73 65 20 74 68 65  20 70 65 72 69 6f 64 20  |ease the period |
00005480  6f 76 65 72 20 77 68 69  63 68 20 74 68 65 20 69  |over which the i|
00005490  6e 63 6f 6d 65 2c 6f 75  74 67 6f 69 6e 67 73 20  |ncome,outgoings |
000054a0  61 6e 64 20 64 69 66 66  65 72 65 6e 63 65 20 61  |and difference a|
000054b0  6d 6f 75 6e 74 73 20 61  70 70 6c 79 2e 7c 4d 43  |mounts apply.|MC|
000054c0  6c 69 63 6b 20 41 44 4a  55 53 54 20 68 65 72 65  |lick ADJUST here|
000054d0  20 74 6f 20 64 65 63 72  65 61 73 65 20 74 68 65  | to decrease the|
000054e0  20 70 65 72 69 6f 64 20  63 6f 76 65 72 65 64 2e  | period covered.|
000054f0  22 0d 1d 2e 5d 20 20 20  20 20 20 7f 20 74 24 3d  |"...]      . t$=|
00005500  22 54 68 69 73 20 69 73  20 74 68 65 20 6d 61 69  |"This is the mai|
00005510  6e 20 62 75 64 67 65 74  20 77 69 6e 64 6f 77 2e  |n budget window.|
00005520  7c 4d 43 6c 69 63 6b 20  4d 45 4e 55 20 66 6f 72  ||MClick MENU for|
00005530  20 6d 61 69 6e 20 6d 65  6e 75 2e 49 6e 66 6f 2c  | main menu.Info,|
00005540  53 61 76 65 20 61 6e 64  20 51 75 69 74 22 0d 1d  |Save and Quit"..|
00005550  38 09 20 20 20 20 cb 0d  1d 42 0e 20 20 c9 20 69  |8.    ...B.  . i|
00005560  6e 6f 75 74 25 0d 1d 4c  15 20 20 20 20 c8 8e 20  |nout%..L.    .. |
00005570  77 69 6d 70 25 21 33 36  20 ca 0d 1d 56 22 20 20  |wimp%!36 ...V"  |
00005580  20 20 20 20 c9 20 31 3a  e7 20 77 69 6e 64 6f 77  |    . 1:. window|
00005590  74 79 70 65 25 3d 6f 75  74 25 20 8c 0d 1d 60 39  |type%=out% ...`9|
000055a0  20 20 20 20 20 20 20 20  20 20 20 20 20 74 24 3d  |             t$=|
000055b0  22 54 68 69 73 20 69 73  20 74 68 65 20 4f 75 74  |"This is the Out|
000055c0  67 6f 69 6e 67 73 20 68  65 61 64 69 6e 67 20 49  |goings heading I|
000055d0  63 6f 6e 2e 22 0d 1d 6a  12 20 20 20 20 20 20 20  |con."..j.       |
000055e0  20 20 20 20 20 20 cc 0d  1d 74 36 20 20 20 20 20  |      ...t6     |
000055f0  20 20 20 20 20 20 20 20  74 24 3d 22 54 68 69 73  |        t$="This|
00005600  20 69 73 20 74 68 65 20  49 6e 63 6f 6d 65 20 68  | is the Income h|
00005610  65 61 64 69 6e 67 20 49  63 6f 6e 2e 22 0d 1d 7e  |eading Icon."..~|
00005620  12 20 20 20 20 20 20 20  20 20 20 20 20 20 cd 0d  |.             ..|
00005630  1d 88 8a 20 20 20 20 20  20 20 20 20 20 20 20 20  |...             |
00005640  74 24 2b 3d 22 7c 4d 45  6e 74 65 72 20 74 68 65  |t$+="|MEnter the|
00005650  20 6e 61 6d 65 20 6f 66  20 61 20 68 65 61 64 69  | name of a headi|
00005660  6e 67 20 79 6f 75 20 77  69 73 68 20 74 6f 20 63  |ng you wish to c|
00005670  72 65 61 74 65 2e 7c 4d  49 66 20 61 6e 20 65 78  |reate.|MIf an ex|
00005680  69 73 74 69 6e 67 20 68  65 61 64 69 6e 67 20 68  |isting heading h|
00005690  61 73 20 62 65 65 6e 20  73 65 6c 65 63 74 65 64  |as been selected|
000056a0  20 69 74 20 63 61 6e 20  62 65 20 61 6d 65 6e 64  | it can be amend|
000056b0  65 64 20 68 65 72 65 2e  22 0d 1d 92 22 20 20 20  |ed here."..."   |
000056c0  20 20 20 c9 20 33 3a e7  20 77 69 6e 64 6f 77 74  |   . 3:. windowt|
000056d0  79 70 65 25 3d 6f 75 74  25 20 8c 0d 1d 9c e0 20  |ype%=out% ..... |
000056e0  20 20 20 20 20 20 20 20  20 20 20 20 74 24 3d 22  |            t$="|
000056f0  54 68 69 73 20 69 73 20  74 68 65 20 4f 75 74 67  |This is the Outg|
00005700  6f 69 6e 67 73 20 61 6d  6f 75 6e 74 20 49 63 6f  |oings amount Ico|
00005710  6e 2e 7c 4d 45 6e 74 65  72 20 74 68 65 20 61 6d  |n.|MEnter the am|
00005720  6f 75 6e 74 20 72 65 71  75 69 72 65 64 2e 7c 4d  |ount required.|M|
00005730  49 66 20 61 6e 20 65 78  69 73 74 69 6e 67 20 68  |If an existing h|
00005740  65 61 64 69 6e 67 20 68  61 73 20 62 65 65 6e 20  |eading has been |
00005750  73 65 6c 65 63 74 65 64  20 74 68 65 20 61 6d 6f  |selected the amo|
00005760  75 6e 74 20 63 61 6e 20  62 65 20 61 6d 65 6e 64  |unt can be amend|
00005770  65 64 20 68 65 72 65 2e  7c 4d 50 72 65 73 73 69  |ed here.|MPressi|
00005780  6e 67 20 52 45 54 55 52  4e 20 77 69 74 68 20 6e  |ng RETURN with n|
00005790  6f 20 61 6d 6f 75 6e 74  20 65 6e 74 65 72 65 64  |o amount entered|
000057a0  20 6f 70 65 6e 73 20 61  20 62 72 65 61 6b 64 6f  | opens a breakdo|
000057b0  77 6e 20 77 69 6e 64 6f  77 2e 22 0d 1d a6 12 20  |wn window.".... |
000057c0  20 20 20 20 20 20 20 20  20 20 20 20 cc 0d 1d b0  |            ....|
000057d0  9b 20 20 20 20 20 20 20  20 20 20 20 20 20 74 24  |.             t$|
000057e0  3d 22 54 68 69 73 20 69  73 20 74 68 65 20 49 6e  |="This is the In|
000057f0  63 6f 6d 65 20 61 6d 6f  75 6e 74 20 49 63 6f 6e  |come amount Icon|
00005800  2e 7c 4d 45 6e 74 65 72  20 74 68 65 20 61 6d 6f  |.|MEnter the amo|
00005810  75 6e 74 20 72 65 71 75  69 72 65 64 2e 7c 4d 49  |unt required.|MI|
00005820  66 20 61 6e 20 65 78 69  73 74 69 6e 67 20 68 65  |f an existing he|
00005830  61 64 69 6e 67 20 68 61  73 20 62 65 65 6e 20 73  |ading has been s|
00005840  65 6c 65 63 74 65 64 20  74 68 65 20 61 6d 6f 75  |elected the amou|
00005850  6e 74 20 63 61 6e 20 62  65 20 61 6d 65 6e 64 65  |nt can be amende|
00005860  64 20 68 65 72 65 2e 22  0d 1d ba 12 20 20 20 20  |d here."....    |
00005870  20 20 20 20 20 20 20 20  20 cd 0d 1d c4 93 20 20  |         .....  |
00005880  20 20 20 20 c9 20 35 3a  74 24 3d 22 54 68 69 73  |    . 5:t$="This|
00005890  20 69 73 20 74 68 65 20  70 65 72 69 6f 64 20 49  | is the period I|
000058a0  63 6f 6e 2e 7c 4d 43 6c  69 63 6b 20 53 45 4c 45  |con.|MClick SELE|
000058b0  43 54 20 74 6f 20 69 6e  63 72 65 61 73 65 20 74  |CT to increase t|
000058c0  68 65 20 70 65 72 69 6f  64 20 61 70 70 6c 69 65  |he period applie|
000058d0  64 20 74 6f 20 74 68 65  20 68 65 61 64 69 6e 67  |d to the heading|
000058e0  20 73 68 6f 77 6e 2e 7c  4d 43 6c 69 63 6b 20 41  | shown.|MClick A|
000058f0  44 4a 55 53 54 20 74 6f  20 64 65 63 72 65 61 73  |DJUST to decreas|
00005900  65 20 74 68 65 20 70 65  72 69 6f 64 22 0d 1d ce  |e the period"...|
00005910  aa 20 20 20 20 20 20 c9  20 37 3a 74 24 3d 22 54  |.      . 7:t$="T|
00005920  68 69 73 20 69 73 20 74  68 65 20 64 65 6c 65 74  |his is the delet|
00005930  65 20 49 63 6f 6e 2e 7c  4d 43 6c 69 63 6b 20 53  |e Icon.|MClick S|
00005940  45 4c 45 43 54 20 74 6f  20 64 65 6c 65 74 65 20  |ELECT to delete |
00005950  61 6e 20 65 78 69 73 74  69 6e 67 20 68 65 61 64  |an existing head|
00005960  69 6e 67 20 74 68 61 74  20 68 61 73 20 62 65 65  |ing that has bee|
00005970  6e 20 73 65 6c 65 63 74  65 64 2e 7c 4d 43 6c 69  |n selected.|MCli|
00005980  63 6b 20 53 45 4c 45 43  54 20 77 69 74 68 20 6e  |ck SELECT with n|
00005990  6f 74 68 69 6e 67 20 73  65 6c 65 63 74 65 64 20  |othing selected |
000059a0  64 65 6c 65 74 65 73 20  61 6c 6c 20 72 65 63 6f  |deletes all reco|
000059b0  72 64 73 21 21 21 22 0d  1d d8 23 20 20 20 20 20  |rds!!!"...#     |
000059c0  20 c9 20 2d 31 3a e7 20  77 69 6e 64 6f 77 74 79  | . -1:. windowty|
000059d0  70 65 25 3d 6f 75 74 25  20 8c 0d 1d e2 d5 20 20  |pe%=out% .....  |
000059e0  20 20 20 20 20 20 20 20  20 20 20 20 74 24 3d 22  |            t$="|
000059f0  54 68 69 73 20 69 73 20  74 68 65 20 4f 75 74 67  |This is the Outg|
00005a00  6f 69 6e 67 73 20 64 69  73 70 6c 61 79 20 77 69  |oings display wi|
00005a10  6e 64 6f 77 2e 7c 4d 43  6c 69 63 6b 20 53 45 4c  |ndow.|MClick SEL|
00005a20  45 43 54 20 6f 76 65 72  20 61 6e 79 20 68 65 61  |ECT over any hea|
00005a30  64 69 6e 67 20 74 6f 20  61 6d 65 6e 64 20 6f 72  |ding to amend or|
00005a40  20 64 65 6c 65 74 65 20  69 74 2e 7c 4d 49 66 20  | delete it.|MIf |
00005a50  74 68 65 20 68 65 61 64  69 6e 67 20 63 6f 6e 74  |the heading cont|
00005a60  61 69 6e 73 20 61 6e 20  27 2a 27 20 74 68 65 6e  |ains an '*' then|
00005a70  20 61 20 62 72 65 61 6b  64 6f 77 6e 20 77 69 6e  | a breakdown win|
00005a80  64 6f 77 20 6f 70 65 6e  73 2e 7c 4d 43 6c 69 63  |dow opens.|MClic|
00005a90  6b 20 41 44 4a 55 53 54  20 74 6f 20 63 61 6e 63  |k ADJUST to canc|
00005aa0  65 6c 20 61 20 73 65 6c  65 63 74 69 6f 6e 22 0d  |el a selection".|
00005ab0  1d ec 13 20 20 20 20 20  20 20 20 20 20 20 20 20  |...             |
00005ac0  20 cc 0d 1d f6 94 20 20  20 20 20 20 20 20 20 20  | .....          |
00005ad0  20 20 20 20 74 24 3d 22  54 68 69 73 20 69 73 20  |    t$="This is |
00005ae0  74 68 65 20 49 6e 63 6f  6d 65 20 64 69 73 70 6c  |the Income displ|
00005af0  61 79 20 77 69 6e 64 6f  77 2e 7c 4d 43 6c 69 63  |ay window.|MClic|
00005b00  6b 20 53 45 4c 45 43 54  20 6f 76 65 72 20 61 6e  |k SELECT over an|
00005b10  79 20 68 65 61 64 69 6e  67 20 74 6f 20 61 6d 65  |y heading to ame|
00005b20  6e 64 20 6f 72 20 64 65  6c 65 74 65 20 69 74 2e  |nd or delete it.|
00005b30  7c 4d 43 6c 69 63 6b 20  41 44 4a 55 53 54 20 74  ||MClick ADJUST t|
00005b40  6f 20 63 61 6e 63 65 6c  20 61 20 73 65 6c 65 63  |o cancel a selec|
00005b50  74 69 6f 6e 2e 22 0d 1e  00 13 20 20 20 20 20 20  |tion."....      |
00005b60  20 20 20 20 20 20 20 20  cd 0d 1e 0a 6f 20 20 20  |        ....o   |
00005b70  20 20 20 7f 20 e7 20 77  69 6e 64 6f 77 74 79 70  |   . . windowtyp|
00005b80  65 25 3d 6f 75 74 25 20  74 24 3d 22 54 68 69 73  |e%=out% t$="This|
00005b90  20 69 73 20 74 68 65 20  4f 75 74 67 6f 69 6e 67  | is the Outgoing|
00005ba0  73 20 63 6f 6e 74 72 6f  6c 20 70 61 6e 65 6c 22  |s control panel"|
00005bb0  20 8b 20 74 24 3d 22 54  68 69 73 20 69 73 20 74  | . t$="This is t|
00005bc0  68 65 20 49 6e 63 6f 6d  65 20 63 6f 6e 74 72 6f  |he Income contro|
00005bd0  6c 20 70 61 6e 65 6c 22  0d 1e 14 09 20 20 20 20  |l panel"....    |
00005be0  cb 0d 1e 1e 0d 20 20 c9  20 70 61 6e 65 25 0d 1e  |.....  . pane%..|
00005bf0  28 15 20 20 20 20 c8 8e  20 77 69 6d 70 25 21 33  |(.    .. wimp%!3|
00005c00  36 20 ca 0d 1e 32 ea 20  20 20 20 20 20 c9 20 30  |6 ...2.      . 0|
00005c10  3a 74 24 3d 22 54 68 69  73 20 69 73 20 74 68 65  |:t$="This is the|
00005c20  20 70 65 72 69 6f 64 20  49 63 6f 6e 2e 7c 4d 41  | period Icon.|MA|
00005c30  6c 6c 20 69 74 65 6d 73  20 65 6e 74 65 72 65 64  |ll items entered|
00005c40  20 69 6e 20 61 20 62 72  65 61 6b 64 6f 77 6e 20  | in a breakdown |
00005c50  77 69 6e 64 6f 77 20 68  61 76 65 20 74 68 69 73  |window have this|
00005c60  20 70 65 72 69 6f 64 20  61 70 70 6c 69 65 64 20  | period applied |
00005c70  74 6f 20 74 68 65 6d 2e  7c 4d 43 6c 69 63 6b 20  |to them.|MClick |
00005c80  53 45 4c 45 43 54 20 74  6f 20 69 6e 63 72 65 61  |SELECT to increa|
00005c90  73 65 20 74 68 65 20 70  65 72 69 6f 64 20 61 70  |se the period ap|
00005ca0  70 6c 69 65 64 20 74 6f  20 74 68 65 20 63 75 72  |plied to the cur|
00005cb0  72 65 6e 74 20 4f 75 74  67 6f 69 6e 67 20 68 65  |rent Outgoing he|
00005cc0  61 64 69 6e 67 2e 7c 4d  43 6c 69 63 6b 20 41 44  |ading.|MClick AD|
00005cd0  4a 55 53 54 20 74 6f 20  64 65 63 72 65 61 73 65  |JUST to decrease|
00005ce0  20 74 68 65 20 70 65 72  69 6f 64 2e 22 0d 1e 3c  | the period."..<|
00005cf0  91 20 20 20 20 20 20 c9  20 32 3a 74 24 3d 22 54  |.      . 2:t$="T|
00005d00  68 69 73 20 69 73 20 74  68 65 20 69 74 65 6d 20  |his is the item |
00005d10  49 63 6f 6e 2e 7c 4d 45  6e 74 65 72 20 74 68 65  |Icon.|MEnter the|
00005d20  20 6e 61 6d 65 20 6f 66  20 61 6e 20 69 74 65 6d  | name of an item|
00005d30  20 79 6f 75 20 77 69 73  68 20 74 6f 20 63 72 65  | you wish to cre|
00005d40  61 74 65 2e 7c 4d 49 66  20 61 6e 20 65 78 69 73  |ate.|MIf an exis|
00005d50  74 69 6e 67 20 69 74 65  6d 20 69 73 20 73 65 6c  |ting item is sel|
00005d60  65 63 74 65 64 20 69 74  20 63 61 6e 20 62 65 20  |ected it can be |
00005d70  61 6d 65 6e 64 65 64 20  68 65 72 65 2e 22 0d 1e  |amended here."..|
00005d80  46 80 20 20 20 20 20 20  c9 20 36 3a 74 24 3d 22  |F.      . 6:t$="|
00005d90  54 68 69 73 20 69 73 20  74 68 65 20 61 6d 6f 75  |This is the amou|
00005da0  6e 74 20 49 63 6f 6e 2e  7c 4d 45 6e 74 65 72 20  |nt Icon.|MEnter |
00005db0  74 68 65 20 61 6d 6f 75  6e 74 20 72 65 71 75 69  |the amount requi|
00005dc0  72 65 64 2e 7c 4d 49 66  20 61 6e 20 65 78 69 73  |red.|MIf an exis|
00005dd0  74 69 6e 67 20 69 74 65  6d 20 69 73 20 73 65 6c  |ting item is sel|
00005de0  65 63 74 65 64 20 69 74  20 63 61 6e 20 62 65 20  |ected it can be |
00005df0  61 6d 65 6e 64 65 64 20  68 65 72 65 2e 22 0d 1e  |amended here."..|
00005e00  50 ac 20 20 20 20 20 20  c9 20 37 3a 74 24 3d 22  |P.      . 7:t$="|
00005e10  54 68 69 73 20 69 73 20  74 68 65 20 4f 4b 20 49  |This is the OK I|
00005e20  63 6f 6e 2e 7c 4d 43 6c  69 63 6b 20 53 45 4c 45  |con.|MClick SELE|
00005e30  43 54 20 74 6f 20 63 6c  6f 73 65 20 62 72 65 61  |CT to close brea|
00005e40  6b 64 6f 77 6e 20 77 69  6e 64 6f 77 20 61 6e 64  |kdown window and|
00005e50  20 72 65 2d 65 6e 74 65  72 20 4f 75 74 67 6f 69  | re-enter Outgoi|
00005e60  6e 67 73 20 57 69 6e 64  6f 77 2e 7c 4d 55 73 65  |ngs Window.|MUse|
00005e70  20 6f 66 20 74 68 69 73  20 49 63 6f 6e 20 69 73  | of this Icon is|
00005e80  20 6e 6f 74 20 65 73 73  65 6e 74 69 61 6c 20 74  | not essential t|
00005e90  6f 20 27 66 69 78 27 20  61 6e 79 20 65 6e 74 72  |o 'fix' any entr|
00005ea0  69 65 73 20 6d 61 64 65  2e 22 0d 1e 5a d5 20 20  |ies made."..Z.  |
00005eb0  20 20 20 20 c9 20 38 3a  74 24 3d 22 54 68 69 73  |    . 8:t$="This|
00005ec0  20 69 73 20 74 68 65 20  64 65 6c 65 74 65 20 49  | is the delete I|
00005ed0  63 6f 6e 2e 7c 4d 43 6c  69 63 6b 20 53 45 4c 45  |con.|MClick SELE|
00005ee0  43 54 20 77 69 74 68 20  61 6e 20 69 74 65 6d 20  |CT with an item |
00005ef0  73 65 6c 65 63 74 65 64  20 74 6f 20 64 65 6c 65  |selected to dele|
00005f00  74 65 20 74 68 61 74 20  69 74 65 6d 20 66 72 6f  |te that item fro|
00005f10  6d 20 74 68 65 20 62 72  65 61 6b 64 6f 77 6e 2e  |m the breakdown.|
00005f20  7c 4d 43 6c 69 63 6b 20  53 45 4c 45 43 54 20 77  ||MClick SELECT w|
00005f30  69 74 68 20 6e 6f 74 68  69 6e 67 20 73 65 6c 65  |ith nothing sele|
00005f40  63 74 65 64 20 64 65 6c  65 74 65 73 20 61 6c 6c  |cted deletes all|
00005f50  20 62 72 65 61 6b 64 6f  77 6e 20 69 74 65 6d 73  | breakdown items|
00005f60  20 61 6e 64 20 70 61 72  65 6e 74 20 4f 75 74 67  | and parent Outg|
00005f70  6f 69 6e 67 73 20 68 65  61 64 69 6e 67 2e 22 0d  |oings heading.".|
00005f80  1e 64 89 20 20 20 20 20  20 7f 20 74 24 3d 22 54  |.d.      . t$="T|
00005f90  68 69 73 20 69 73 20 74  68 65 20 62 72 65 61 6b  |his is the break|
00005fa0  64 6f 77 6e 20 63 6f 6e  74 72 6f 6c 20 70 61 6e  |down control pan|
00005fb0  65 6c 2e 7c 4d 54 68 65  20 6f 75 74 67 6f 69 6e  |el.|MThe outgoin|
00005fc0  67 20 68 65 61 64 69 6e  67 20 74 6f 20 77 68 69  |g heading to whi|
00005fd0  63 68 20 74 68 69 73 20  62 72 65 61 6b 64 6f 77  |ch this breakdow|
00005fe0  6e 20 72 65 6c 61 74 65  73 20 69 73 20 64 69 73  |n relates is dis|
00005ff0  70 6c 61 79 65 64 20 6f  6e 20 74 68 65 20 54 69  |played on the Ti|
00006000  74 6c 65 20 42 61 72 22  0d 1e 6e 09 20 20 20 20  |tle Bar"..n.    |
00006010  cb 0d 1e 78 94 20 20 c9  20 62 72 65 61 6b 25 3a  |...x.  . break%:|
00006020  74 24 3d 22 54 68 69 73  20 69 73 20 74 68 65 20  |t$="This is the |
00006030  62 72 65 61 6b 64 6f 77  6e 20 64 69 73 70 6c 61  |breakdown displa|
00006040  79 20 77 69 6e 64 6f 77  2e 7c 4d 43 6c 69 63 6b  |y window.|MClick|
00006050  20 53 45 4c 45 43 54 20  6f 76 65 72 20 61 6e 79  | SELECT over any|
00006060  20 68 65 61 64 69 6e 67  20 74 6f 20 61 6d 65 6e  | heading to amen|
00006070  64 20 6f 72 20 64 65 6c  65 74 65 20 69 74 2e 7c  |d or delete it.||
00006080  4d 43 6c 69 63 6b 20 41  44 4a 55 53 54 20 74 6f  |MClick ADJUST to|
00006090  20 63 61 6e 63 65 6c 20  61 20 73 65 6c 65 63 74  | cancel a select|
000060a0  69 6f 6e 2e 22 0d 1e 82  8d 20 20 c9 20 2d 32 3a  |ion."....  . -2:|
000060b0  74 24 3d 22 54 68 69 73  20 69 73 20 74 68 65 20  |t$="This is the |
000060c0  42 75 64 67 65 74 20 69  63 6f 6e 2e 7c 4d 43 6c  |Budget icon.|MCl|
000060d0  69 63 6b 20 53 45 4c 45  43 54 20 74 6f 20 6f 70  |ick SELECT to op|
000060e0  65 6e 20 4d 61 69 6e 20  57 69 6e 64 6f 77 2e 7c  |en Main Window.||
000060f0  4d 43 6c 69 63 6b 20 4d  45 4e 55 20 74 6f 20 53  |MClick MENU to S|
00006100  61 76 65 2c 51 75 69 74  20 6f 72 20 6f 62 74 61  |ave,Quit or obta|
00006110  69 6e 20 69 6e 66 6f 72  6d 61 74 69 6f 6e 20 61  |in information a|
00006120  62 6f 75 74 20 74 68 65  20 70 72 6f 67 72 61 6d  |bout the program|
00006130  2e 22 0d 1e 8c 05 cb 0d  1e 96 14 77 69 6d 70 25  |.".........wimp%|
00006140  21 31 32 3d 77 69 6d 70  25 21 38 0d 1e a0 11 77  |!12=wimp%!8....w|
00006150  69 6d 70 25 21 31 36 3d  26 35 30 33 0d 1e aa 15  |imp%!16=&503....|
00006160  24 28 77 69 6d 70 25 2b  32 30 29 3d 74 24 2b bd  |$(wimp%+20)=t$+.|
00006170  30 0d 1e b4 19 21 77 69  6d 70 25 3d 28 32 35 2b  |0....!wimp%=(25+|
00006180  a9 74 24 29 20 80 20 ac  20 33 0d 1e be 2a c8 99  |.t$) . . 3...*..|
00006190  20 22 57 69 6d 70 5f 53  65 6e 64 4d 65 73 73 61  | "Wimp_SendMessa|
000061a0  67 65 22 2c 31 37 2c 77  69 6d 70 25 2c 77 69 6d  |ge",17,wimp%,wim|
000061b0  70 25 21 34 0d 1e c8 05  e1 0d ff                 |p%!4.......|
000061bb