Home » Archimedes archive » Archimedes World » AW-1992-09.adf » AWSept92 » !AWSept92/Goodies/Wimp/!Help
!AWSept92/Goodies/Wimp/!Help
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-1992-09.adf » AWSept92 |
Filename: | !AWSept92/Goodies/Wimp/!Help |
Read OK: | ✔ |
File size: | 0EE9 bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
---------------------------------------- Application : !Templates Help for Version 1.0 : (27 Jun 1992) ---------------------------------------- --------- Purpose --------- This program has been written as an example in the use of the application shell program !WimpEd and uses the procedures in the procedure library Wimp. Double clicking the !Templates icon places an icon on the icon bar. The application cas no windows, only an iconbar menu. The templates submenu leads to standard save boxes from which the computers ROM based templates can be saved to disc etc. in the usual way. ---------------------------------------- Writing this application using !WimpEd ---------------------------------------- First save the "standard" templates file to disc and edit the "Info" window (using !FormEd; see article Archimedes World) to contain your personal details. Again using !FormEd, make 5 copies of the "Save" window as "SaveNET","SaveFILE","SavePAL","SaveSWI","SaveWimp" respectively; c.f. the file Templates in !Templates resource directory. Save your file under the name "Templates". Now drag your templates file onto the !WimpEd icon on the iconbar. (You will have loaded !WimpEd in the usual way). Your windows will now have been "added" to the list of windows in the windows submenu of !WimpEd. !Templates is an iconbar only program so click on the "Icon Bar" item on the !WimpEd menu. This opens a window titled "Icon Bar" which is the menu constructor for our new application's proposed menu. You will see that the "Menu" submenu already contains two items - "Info" and "Quit". The Info item leads to your window called "Info". (If there is a window called "Info" in your templates file, !WimpEd always places this at the top of the iconbar menu. The last item in the iconbar menu is always "Quit"). The item below "Quit" is a writeable item. Any item typed there will be inserted in the iconbar menu between "Info" and "Quit". For the !Templates application you should type "Templates". Now click on this "Templates" item (with SELECT) to create a submenu. This opens the Edit submenu. The submenu item leads to another submenu. The top entry is a writeable icon into which we type "Standard". This now creates a submenu to which we can add the further items "Net","Filer","Palette","Switcher","Wimp". We now need to create the submenus for these items which are in fact just the appropriate "Save" windows. E.g. In the menu constructor click on the item "Standard" which you have created. This opens the usual Edit window. Go to the "submenu" iem and click on the window item "Save". You will now see that your item "Standard" leads to the window "Save". Repeat this for each of the menu items above and the appropriate windows. When this process is completed (easier to do than to explain) you save the putative application in the usual way. All that remains (assuming that your application works appropriately) is to change the last procedure in the main program to: DEF PROCEvent_SaveFile(file$,window%) CASE window% OF WHEN Save_Window% : OSCLI"Copy <Templates$Dir>.Standard "+file$ WHEN SaveNET_Window% : OSCLI"Copy DeskFS:Templates.NetFiler "+file$ WHEN SaveFILE_Window% : OSCLI"Copy DeskFS:Templates.Filer "+file$ WHEN SavePAL_Window% : OSCLI"Copy DeskFS:Templates.Palette "+file$ WHEN SaveSWI_Window% : OSCLI"Copy DeskFS:Templates.Switcher "+file$ WHEN Save_Wimp_Window%: OSCLI"Copy DeskFS:Templates.Wimp "+file$ ENDCASE PROCWimp_MenuClose PROCWimp_WindowForceDraw(-1) ENDPROC You should now have produced exactly this application !Templates.
00000000 20 20 20 20 20 0a 20 20 20 20 20 20 20 20 20 20 | . | 00000010 20 20 20 20 20 20 20 20 20 20 20 2d 2d 2d 2d 2d | -----| 00000020 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d |----------------| * 00000040 2d 2d 2d 0a 20 20 20 20 20 20 20 20 20 20 20 20 |---. | 00000050 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000060 20 41 70 70 6c 69 63 61 74 69 6f 6e 20 3a 20 21 | Application : !| 00000070 54 65 6d 70 6c 61 74 65 73 0a 20 20 20 0a 20 20 |Templates. . | 00000080 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000090 20 20 20 20 20 48 65 6c 70 20 66 6f 72 20 56 65 | Help for Ve| 000000a0 72 73 69 6f 6e 20 31 2e 30 20 3a 20 28 32 37 20 |rsion 1.0 : (27 | 000000b0 4a 75 6e 20 31 39 39 32 29 0a 20 20 20 20 20 0a |Jun 1992). .| 000000c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 000000d0 20 20 20 20 20 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d | -----------| 000000e0 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d |----------------| 000000f0 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 20 20 |-------------. | 00000100 20 0a 20 20 20 0a 20 2d 2d 2d 2d 2d 2d 2d 2d 2d | . . ---------| 00000110 0a 20 20 50 75 72 70 6f 73 65 0a 20 2d 2d 2d 2d |. Purpose. ----| 00000120 2d 2d 2d 2d 2d 0a 0a 20 20 20 20 54 68 69 73 20 |-----.. This | 00000130 70 72 6f 67 72 61 6d 20 68 61 73 20 62 65 65 6e |program has been| 00000140 20 77 72 69 74 74 65 6e 20 61 73 20 61 6e 20 65 | written as an e| 00000150 78 61 6d 70 6c 65 20 69 6e 20 74 68 65 20 75 73 |xample in the us| 00000160 65 20 6f 66 20 74 68 65 20 61 70 70 6c 69 63 61 |e of the applica| 00000170 74 69 6f 6e 20 73 68 65 6c 6c 20 70 72 6f 67 72 |tion shell progr| 00000180 61 6d 20 21 57 69 6d 70 45 64 20 61 6e 64 20 75 |am !WimpEd and u| 00000190 73 65 73 20 74 68 65 20 70 72 6f 63 65 64 75 72 |ses the procedur| 000001a0 65 73 20 69 6e 20 74 68 65 20 70 72 6f 63 65 64 |es in the proced| 000001b0 75 72 65 20 6c 69 62 72 61 72 79 20 57 69 6d 70 |ure library Wimp| 000001c0 2e 0a 0a 20 20 20 20 44 6f 75 62 6c 65 20 63 6c |... Double cl| 000001d0 69 63 6b 69 6e 67 20 74 68 65 20 21 54 65 6d 70 |icking the !Temp| 000001e0 6c 61 74 65 73 20 69 63 6f 6e 20 70 6c 61 63 65 |lates icon place| 000001f0 73 20 61 6e 20 69 63 6f 6e 20 6f 6e 20 74 68 65 |s an icon on the| 00000200 20 69 63 6f 6e 20 62 61 72 2e 20 54 68 65 20 61 | icon bar. The a| 00000210 70 70 6c 69 63 61 74 69 6f 6e 20 63 61 73 20 6e |pplication cas n| 00000220 6f 20 77 69 6e 64 6f 77 73 2c 20 6f 6e 6c 79 20 |o windows, only | 00000230 61 6e 20 69 63 6f 6e 62 61 72 20 6d 65 6e 75 2e |an iconbar menu.| 00000240 20 54 68 65 20 74 65 6d 70 6c 61 74 65 73 20 73 | The templates s| 00000250 75 62 6d 65 6e 75 20 6c 65 61 64 73 20 74 6f 20 |ubmenu leads to | 00000260 73 74 61 6e 64 61 72 64 20 73 61 76 65 20 62 6f |standard save bo| 00000270 78 65 73 20 66 72 6f 6d 20 77 68 69 63 68 20 74 |xes from which t| 00000280 68 65 20 63 6f 6d 70 75 74 65 72 73 20 52 4f 4d |he computers ROM| 00000290 20 62 61 73 65 64 20 74 65 6d 70 6c 61 74 65 73 | based templates| 000002a0 20 63 61 6e 20 62 65 20 73 61 76 65 64 20 74 6f | can be saved to| 000002b0 20 64 69 73 63 20 65 74 63 2e 20 69 6e 20 74 68 | disc etc. in th| 000002c0 65 20 75 73 75 61 6c 20 77 61 79 2e 0a 0a 2d 2d |e usual way...--| 000002d0 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d |----------------| * 000002f0 2d 2d 2d 2d 2d 2d 0a 20 57 72 69 74 69 6e 67 20 |------. Writing | 00000300 74 68 69 73 20 61 70 70 6c 69 63 61 74 69 6f 6e |this application| 00000310 20 75 73 69 6e 67 20 21 57 69 6d 70 45 64 0a 2d | using !WimpEd.-| 00000320 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d |----------------| * 00000340 2d 2d 2d 2d 2d 2d 2d 0a 0a 20 20 20 20 46 69 72 |-------.. Fir| 00000350 73 74 20 73 61 76 65 20 74 68 65 20 22 73 74 61 |st save the "sta| 00000360 6e 64 61 72 64 22 20 74 65 6d 70 6c 61 74 65 73 |ndard" templates| 00000370 20 66 69 6c 65 20 74 6f 20 64 69 73 63 20 61 6e | file to disc an| 00000380 64 20 65 64 69 74 20 74 68 65 20 22 49 6e 66 6f |d edit the "Info| 00000390 22 20 77 69 6e 64 6f 77 20 28 75 73 69 6e 67 20 |" window (using | 000003a0 21 46 6f 72 6d 45 64 3b 20 73 65 65 20 61 72 74 |!FormEd; see art| 000003b0 69 63 6c 65 20 41 72 63 68 69 6d 65 64 65 73 20 |icle Archimedes | 000003c0 57 6f 72 6c 64 29 20 74 6f 20 63 6f 6e 74 61 69 |World) to contai| 000003d0 6e 20 79 6f 75 72 20 70 65 72 73 6f 6e 61 6c 20 |n your personal | 000003e0 64 65 74 61 69 6c 73 2e 0a 0a 20 20 20 20 41 67 |details... Ag| 000003f0 61 69 6e 20 75 73 69 6e 67 20 21 46 6f 72 6d 45 |ain using !FormE| 00000400 64 2c 20 6d 61 6b 65 20 20 35 20 63 6f 70 69 65 |d, make 5 copie| 00000410 73 20 6f 66 20 74 68 65 20 22 53 61 76 65 22 20 |s of the "Save" | 00000420 77 69 6e 64 6f 77 20 61 73 20 22 53 61 76 65 4e |window as "SaveN| 00000430 45 54 22 2c 22 53 61 76 65 46 49 4c 45 22 2c 22 |ET","SaveFILE","| 00000440 53 61 76 65 50 41 4c 22 2c 22 53 61 76 65 53 57 |SavePAL","SaveSW| 00000450 49 22 2c 22 53 61 76 65 57 69 6d 70 22 20 72 65 |I","SaveWimp" re| 00000460 73 70 65 63 74 69 76 65 6c 79 3b 20 63 2e 66 2e |spectively; c.f.| 00000470 20 74 68 65 20 66 69 6c 65 20 54 65 6d 70 6c 61 | the file Templa| 00000480 74 65 73 20 69 6e 20 21 54 65 6d 70 6c 61 74 65 |tes in !Template| 00000490 73 20 72 65 73 6f 75 72 63 65 20 64 69 72 65 63 |s resource direc| 000004a0 74 6f 72 79 2e 20 53 61 76 65 20 79 6f 75 72 20 |tory. Save your | 000004b0 66 69 6c 65 20 75 6e 64 65 72 20 74 68 65 20 6e |file under the n| 000004c0 61 6d 65 20 22 54 65 6d 70 6c 61 74 65 73 22 2e |ame "Templates".| 000004d0 0a 0a 20 20 20 20 4e 6f 77 20 64 72 61 67 20 79 |.. Now drag y| 000004e0 6f 75 72 20 74 65 6d 70 6c 61 74 65 73 20 66 69 |our templates fi| 000004f0 6c 65 20 6f 6e 74 6f 20 74 68 65 20 21 57 69 6d |le onto the !Wim| 00000500 70 45 64 20 69 63 6f 6e 20 6f 6e 20 74 68 65 20 |pEd icon on the | 00000510 69 63 6f 6e 62 61 72 2e 20 28 59 6f 75 20 77 69 |iconbar. (You wi| 00000520 6c 6c 20 68 61 76 65 20 6c 6f 61 64 65 64 20 21 |ll have loaded !| 00000530 57 69 6d 70 45 64 20 69 6e 20 74 68 65 20 75 73 |WimpEd in the us| 00000540 75 61 6c 20 77 61 79 29 2e 20 59 6f 75 72 20 77 |ual way). Your w| 00000550 69 6e 64 6f 77 73 20 77 69 6c 6c 20 6e 6f 77 20 |indows will now | 00000560 68 61 76 65 20 62 65 65 6e 20 22 61 64 64 65 64 |have been "added| 00000570 22 20 74 6f 20 74 68 65 20 6c 69 73 74 20 6f 66 |" to the list of| 00000580 20 77 69 6e 64 6f 77 73 20 69 6e 20 74 68 65 20 | windows in the | 00000590 77 69 6e 64 6f 77 73 20 73 75 62 6d 65 6e 75 20 |windows submenu | 000005a0 6f 66 20 21 57 69 6d 70 45 64 2e 0a 0a 20 20 20 |of !WimpEd... | 000005b0 20 21 54 65 6d 70 6c 61 74 65 73 20 69 73 20 61 | !Templates is a| 000005c0 6e 20 69 63 6f 6e 62 61 72 20 6f 6e 6c 79 20 70 |n iconbar only p| 000005d0 72 6f 67 72 61 6d 20 73 6f 20 63 6c 69 63 6b 20 |rogram so click | 000005e0 6f 6e 20 74 68 65 20 22 49 63 6f 6e 20 42 61 72 |on the "Icon Bar| 000005f0 22 20 69 74 65 6d 20 6f 6e 20 74 68 65 20 21 57 |" item on the !W| 00000600 69 6d 70 45 64 20 6d 65 6e 75 2e 20 54 68 69 73 |impEd menu. This| 00000610 20 6f 70 65 6e 73 20 61 20 77 69 6e 64 6f 77 20 | opens a window | 00000620 74 69 74 6c 65 64 20 22 49 63 6f 6e 20 42 61 72 |titled "Icon Bar| 00000630 22 20 77 68 69 63 68 20 69 73 20 74 68 65 20 6d |" which is the m| 00000640 65 6e 75 20 63 6f 6e 73 74 72 75 63 74 6f 72 20 |enu constructor | 00000650 66 6f 72 20 6f 75 72 20 6e 65 77 20 61 70 70 6c |for our new appl| 00000660 69 63 61 74 69 6f 6e 27 73 20 70 72 6f 70 6f 73 |ication's propos| 00000670 65 64 20 6d 65 6e 75 2e 20 59 6f 75 20 77 69 6c |ed menu. You wil| 00000680 6c 20 73 65 65 20 74 68 61 74 20 74 68 65 20 22 |l see that the "| 00000690 4d 65 6e 75 22 20 73 75 62 6d 65 6e 75 20 61 6c |Menu" submenu al| 000006a0 72 65 61 64 79 20 63 6f 6e 74 61 69 6e 73 20 74 |ready contains t| 000006b0 77 6f 20 69 74 65 6d 73 20 2d 20 22 49 6e 66 6f |wo items - "Info| 000006c0 22 20 61 6e 64 20 22 51 75 69 74 22 2e 20 54 68 |" and "Quit". Th| 000006d0 65 20 49 6e 66 6f 20 69 74 65 6d 20 6c 65 61 64 |e Info item lead| 000006e0 73 20 74 6f 20 79 6f 75 72 20 77 69 6e 64 6f 77 |s to your window| 000006f0 20 63 61 6c 6c 65 64 20 22 49 6e 66 6f 22 2e 20 | called "Info". | 00000700 28 49 66 20 74 68 65 72 65 20 69 73 20 61 20 77 |(If there is a w| 00000710 69 6e 64 6f 77 20 63 61 6c 6c 65 64 20 22 49 6e |indow called "In| 00000720 66 6f 22 20 69 6e 20 79 6f 75 72 20 74 65 6d 70 |fo" in your temp| 00000730 6c 61 74 65 73 20 66 69 6c 65 2c 20 21 57 69 6d |lates file, !Wim| 00000740 70 45 64 20 61 6c 77 61 79 73 20 70 6c 61 63 65 |pEd always place| 00000750 73 20 74 68 69 73 20 61 74 20 74 68 65 20 74 6f |s this at the to| 00000760 70 20 6f 66 20 74 68 65 20 69 63 6f 6e 62 61 72 |p of the iconbar| 00000770 20 6d 65 6e 75 2e 20 54 68 65 20 6c 61 73 74 20 | menu. The last | 00000780 69 74 65 6d 20 69 6e 20 74 68 65 20 69 63 6f 6e |item in the icon| 00000790 62 61 72 20 6d 65 6e 75 20 69 73 20 61 6c 77 61 |bar menu is alwa| 000007a0 79 73 20 22 51 75 69 74 22 29 2e 0a 0a 20 20 20 |ys "Quit")... | 000007b0 20 54 68 65 20 69 74 65 6d 20 62 65 6c 6f 77 20 | The item below | 000007c0 22 51 75 69 74 22 20 69 73 20 61 20 77 72 69 74 |"Quit" is a writ| 000007d0 65 61 62 6c 65 20 69 74 65 6d 2e 20 41 6e 79 20 |eable item. Any | 000007e0 69 74 65 6d 20 74 79 70 65 64 20 74 68 65 72 65 |item typed there| 000007f0 20 77 69 6c 6c 20 62 65 20 69 6e 73 65 72 74 65 | will be inserte| 00000800 64 20 69 6e 20 74 68 65 20 69 63 6f 6e 62 61 72 |d in the iconbar| 00000810 20 6d 65 6e 75 20 62 65 74 77 65 65 6e 20 22 49 | menu between "I| 00000820 6e 66 6f 22 20 61 6e 64 20 22 51 75 69 74 22 2e |nfo" and "Quit".| 00000830 20 46 6f 72 20 74 68 65 20 21 54 65 6d 70 6c 61 | For the !Templa| 00000840 74 65 73 20 61 70 70 6c 69 63 61 74 69 6f 6e 20 |tes application | 00000850 79 6f 75 20 73 68 6f 75 6c 64 20 74 79 70 65 20 |you should type | 00000860 22 54 65 6d 70 6c 61 74 65 73 22 2e 0a 0a 20 20 |"Templates"... | 00000870 20 20 4e 6f 77 20 63 6c 69 63 6b 20 6f 6e 20 74 | Now click on t| 00000880 68 69 73 20 22 54 65 6d 70 6c 61 74 65 73 22 20 |his "Templates" | 00000890 69 74 65 6d 20 28 77 69 74 68 20 53 45 4c 45 43 |item (with SELEC| 000008a0 54 29 20 74 6f 20 63 72 65 61 74 65 20 61 20 73 |T) to create a s| 000008b0 75 62 6d 65 6e 75 2e 20 54 68 69 73 20 6f 70 65 |ubmenu. This ope| 000008c0 6e 73 20 74 68 65 20 45 64 69 74 20 73 75 62 6d |ns the Edit subm| 000008d0 65 6e 75 2e 20 54 68 65 20 73 75 62 6d 65 6e 75 |enu. The submenu| 000008e0 20 69 74 65 6d 20 6c 65 61 64 73 20 74 6f 20 61 | item leads to a| 000008f0 6e 6f 74 68 65 72 20 73 75 62 6d 65 6e 75 2e 20 |nother submenu. | 00000900 54 68 65 20 74 6f 70 20 65 6e 74 72 79 20 69 73 |The top entry is| 00000910 20 61 20 77 72 69 74 65 61 62 6c 65 20 69 63 6f | a writeable ico| 00000920 6e 20 69 6e 74 6f 20 77 68 69 63 68 20 77 65 20 |n into which we | 00000930 74 79 70 65 20 22 53 74 61 6e 64 61 72 64 22 2e |type "Standard".| 00000940 20 54 68 69 73 20 6e 6f 77 20 63 72 65 61 74 65 | This now create| 00000950 73 20 61 20 73 75 62 6d 65 6e 75 20 74 6f 20 77 |s a submenu to w| 00000960 68 69 63 68 20 77 65 20 63 61 6e 20 61 64 64 20 |hich we can add | 00000970 74 68 65 20 66 75 72 74 68 65 72 20 69 74 65 6d |the further item| 00000980 73 20 22 4e 65 74 22 2c 22 46 69 6c 65 72 22 2c |s "Net","Filer",| 00000990 22 50 61 6c 65 74 74 65 22 2c 22 53 77 69 74 63 |"Palette","Switc| 000009a0 68 65 72 22 2c 22 57 69 6d 70 22 2e 0a 0a 20 20 |her","Wimp"... | 000009b0 20 20 57 65 20 6e 6f 77 20 6e 65 65 64 20 74 6f | We now need to| 000009c0 20 63 72 65 61 74 65 20 74 68 65 20 73 75 62 6d | create the subm| 000009d0 65 6e 75 73 20 66 6f 72 20 74 68 65 73 65 20 69 |enus for these i| 000009e0 74 65 6d 73 20 77 68 69 63 68 20 61 72 65 20 69 |tems which are i| 000009f0 6e 20 66 61 63 74 20 6a 75 73 74 20 74 68 65 20 |n fact just the | 00000a00 61 70 70 72 6f 70 72 69 61 74 65 20 22 53 61 76 |appropriate "Sav| 00000a10 65 22 20 77 69 6e 64 6f 77 73 2e 0a 0a 20 20 20 |e" windows... | 00000a20 20 45 2e 67 2e 20 49 6e 20 74 68 65 20 6d 65 6e | E.g. In the men| 00000a30 75 20 63 6f 6e 73 74 72 75 63 74 6f 72 20 63 6c |u constructor cl| 00000a40 69 63 6b 20 6f 6e 20 74 68 65 20 69 74 65 6d 20 |ick on the item | 00000a50 22 53 74 61 6e 64 61 72 64 22 20 77 68 69 63 68 |"Standard" which| 00000a60 20 79 6f 75 20 68 61 76 65 20 63 72 65 61 74 65 | you have create| 00000a70 64 2e 20 54 68 69 73 20 6f 70 65 6e 73 20 74 68 |d. This opens th| 00000a80 65 20 75 73 75 61 6c 20 45 64 69 74 20 77 69 6e |e usual Edit win| 00000a90 64 6f 77 2e 20 47 6f 20 74 6f 20 74 68 65 20 22 |dow. Go to the "| 00000aa0 73 75 62 6d 65 6e 75 22 20 69 65 6d 20 61 6e 64 |submenu" iem and| 00000ab0 20 63 6c 69 63 6b 20 6f 6e 20 74 68 65 20 77 69 | click on the wi| 00000ac0 6e 64 6f 77 20 69 74 65 6d 20 22 53 61 76 65 22 |ndow item "Save"| 00000ad0 2e 20 59 6f 75 20 77 69 6c 6c 20 6e 6f 77 20 73 |. You will now s| 00000ae0 65 65 20 74 68 61 74 20 79 6f 75 72 20 69 74 65 |ee that your ite| 00000af0 6d 20 22 53 74 61 6e 64 61 72 64 22 20 6c 65 61 |m "Standard" lea| 00000b00 64 73 20 74 6f 20 74 68 65 20 77 69 6e 64 6f 77 |ds to the window| 00000b10 20 22 53 61 76 65 22 2e 20 52 65 70 65 61 74 20 | "Save". Repeat | 00000b20 74 68 69 73 20 66 6f 72 20 65 61 63 68 20 6f 66 |this for each of| 00000b30 20 74 68 65 20 6d 65 6e 75 20 69 74 65 6d 73 20 | the menu items | 00000b40 61 62 6f 76 65 20 61 6e 64 20 74 68 65 20 61 70 |above and the ap| 00000b50 70 72 6f 70 72 69 61 74 65 20 77 69 6e 64 6f 77 |propriate window| 00000b60 73 2e 0a 0a 20 20 20 20 57 68 65 6e 20 74 68 69 |s... When thi| 00000b70 73 20 70 72 6f 63 65 73 73 20 69 73 20 63 6f 6d |s process is com| 00000b80 70 6c 65 74 65 64 20 28 65 61 73 69 65 72 20 74 |pleted (easier t| 00000b90 6f 20 64 6f 20 74 68 61 6e 20 74 6f 20 65 78 70 |o do than to exp| 00000ba0 6c 61 69 6e 29 20 79 6f 75 20 73 61 76 65 20 74 |lain) you save t| 00000bb0 68 65 20 70 75 74 61 74 69 76 65 20 61 70 70 6c |he putative appl| 00000bc0 69 63 61 74 69 6f 6e 20 69 6e 20 74 68 65 20 75 |ication in the u| 00000bd0 73 75 61 6c 20 77 61 79 2e 0a 0a 20 20 20 20 41 |sual way... A| 00000be0 6c 6c 20 74 68 61 74 20 72 65 6d 61 69 6e 73 20 |ll that remains | 00000bf0 28 61 73 73 75 6d 69 6e 67 20 74 68 61 74 20 79 |(assuming that y| 00000c00 6f 75 72 20 61 70 70 6c 69 63 61 74 69 6f 6e 20 |our application | 00000c10 77 6f 72 6b 73 20 61 70 70 72 6f 70 72 69 61 74 |works appropriat| 00000c20 65 6c 79 29 20 69 73 20 74 6f 20 63 68 61 6e 67 |ely) is to chang| 00000c30 65 20 74 68 65 20 6c 61 73 74 20 70 72 6f 63 65 |e the last proce| 00000c40 64 75 72 65 20 69 6e 20 74 68 65 20 6d 61 69 6e |dure in the main| 00000c50 20 70 72 6f 67 72 61 6d 20 74 6f 3a 0a 0a 44 45 | program to:..DE| 00000c60 46 20 50 52 4f 43 45 76 65 6e 74 5f 53 61 76 65 |F PROCEvent_Save| 00000c70 46 69 6c 65 28 66 69 6c 65 24 2c 77 69 6e 64 6f |File(file$,windo| 00000c80 77 25 29 0a 20 43 41 53 45 20 77 69 6e 64 6f 77 |w%). CASE window| 00000c90 25 20 4f 46 0a 20 20 57 48 45 4e 20 53 61 76 65 |% OF. WHEN Save| 00000ca0 5f 57 69 6e 64 6f 77 25 20 20 20 20 20 3a 20 4f |_Window% : O| 00000cb0 53 43 4c 49 22 43 6f 70 79 20 3c 54 65 6d 70 6c |SCLI"Copy <Templ| 00000cc0 61 74 65 73 24 44 69 72 3e 2e 53 74 61 6e 64 61 |ates$Dir>.Standa| 00000cd0 72 64 20 22 2b 66 69 6c 65 24 0a 20 20 57 48 45 |rd "+file$. WHE| 00000ce0 4e 20 53 61 76 65 4e 45 54 5f 57 69 6e 64 6f 77 |N SaveNET_Window| 00000cf0 25 20 20 3a 20 4f 53 43 4c 49 22 43 6f 70 79 20 |% : OSCLI"Copy | 00000d00 44 65 73 6b 46 53 3a 54 65 6d 70 6c 61 74 65 73 |DeskFS:Templates| 00000d10 2e 4e 65 74 46 69 6c 65 72 20 22 2b 66 69 6c 65 |.NetFiler "+file| 00000d20 24 0a 20 20 57 48 45 4e 20 53 61 76 65 46 49 4c |$. WHEN SaveFIL| 00000d30 45 5f 57 69 6e 64 6f 77 25 20 3a 20 4f 53 43 4c |E_Window% : OSCL| 00000d40 49 22 43 6f 70 79 20 44 65 73 6b 46 53 3a 54 65 |I"Copy DeskFS:Te| 00000d50 6d 70 6c 61 74 65 73 2e 46 69 6c 65 72 20 20 22 |mplates.Filer "| 00000d60 2b 66 69 6c 65 24 0a 20 20 57 48 45 4e 20 53 61 |+file$. WHEN Sa| 00000d70 76 65 50 41 4c 5f 57 69 6e 64 6f 77 25 20 20 3a |vePAL_Window% :| 00000d80 20 4f 53 43 4c 49 22 43 6f 70 79 20 44 65 73 6b | OSCLI"Copy Desk| 00000d90 46 53 3a 54 65 6d 70 6c 61 74 65 73 2e 50 61 6c |FS:Templates.Pal| 00000da0 65 74 74 65 20 22 2b 66 69 6c 65 24 0a 20 20 57 |ette "+file$. W| 00000db0 48 45 4e 20 53 61 76 65 53 57 49 5f 57 69 6e 64 |HEN SaveSWI_Wind| 00000dc0 6f 77 25 20 20 3a 20 4f 53 43 4c 49 22 43 6f 70 |ow% : OSCLI"Cop| 00000dd0 79 20 44 65 73 6b 46 53 3a 54 65 6d 70 6c 61 74 |y DeskFS:Templat| 00000de0 65 73 2e 53 77 69 74 63 68 65 72 20 22 2b 66 69 |es.Switcher "+fi| 00000df0 6c 65 24 0a 20 20 57 48 45 4e 20 53 61 76 65 5f |le$. WHEN Save_| 00000e00 57 69 6d 70 5f 57 69 6e 64 6f 77 25 3a 20 4f 53 |Wimp_Window%: OS| 00000e10 43 4c 49 22 43 6f 70 79 20 44 65 73 6b 46 53 3a |CLI"Copy DeskFS:| 00000e20 54 65 6d 70 6c 61 74 65 73 2e 57 69 6d 70 20 22 |Templates.Wimp "| 00000e30 2b 66 69 6c 65 24 0a 20 45 4e 44 43 41 53 45 0a |+file$. ENDCASE.| 00000e40 50 52 4f 43 57 69 6d 70 5f 4d 65 6e 75 43 6c 6f |PROCWimp_MenuClo| 00000e50 73 65 0a 50 52 4f 43 57 69 6d 70 5f 57 69 6e 64 |se.PROCWimp_Wind| 00000e60 6f 77 46 6f 72 63 65 44 72 61 77 28 2d 31 29 0a |owForceDraw(-1).| 00000e70 45 4e 44 50 52 4f 43 0a 0a 59 6f 75 20 73 68 6f |ENDPROC..You sho| 00000e80 75 6c 64 20 6e 6f 77 20 68 61 76 65 20 70 72 6f |uld now have pro| 00000e90 64 75 63 65 64 20 65 78 61 63 74 6c 79 20 74 68 |duced exactly th| 00000ea0 69 73 20 61 70 70 6c 69 63 61 74 69 6f 6e 20 21 |is application !| 00000eb0 54 65 6d 70 6c 61 74 65 73 2e 20 20 20 20 20 0a |Templates. .| 00000ec0 20 20 20 0a 20 20 20 0a 20 20 20 20 20 20 20 20 | . . | 00000ed0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000ee0 20 20 20 20 0a 20 20 20 0a | . .| 00000ee9