Home » Archimedes archive » Archimedes World » AW-1992-12.adf » AWDec92 » !AWDec92/Goodies/Wimp/Software/!Sort/!Help
!AWDec92/Goodies/Wimp/Software/!Sort/!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-12.adf » AWDec92 |
Filename: | !AWDec92/Goodies/Wimp/Software/!Sort/!Help |
Read OK: | ✔ |
File size: | 090D bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
---------------------------------------- Application : !Sort Help for Version 1.0 : (24 Sep 1992) ---------------------------------------- -------- Purpose This application illustrates the use of Save boxes using the Wimp Procedure -------- Library; see Archimedes World. The application is loaded in the usual way by double-clicking its icon in a Filer window. This places the icon onto the icon bar. The application has no windows and is icon-bar only. The icon bar menu has 3 items: a) Info (Leads to standard proginfo box) b) Save (Leads to standard save box) c) Quit (If selected closes down the application) The purpose of the application is to sort text files (of type &FFF) into lexicographical order. ------- Usage A text file is loaded by dragging its icon from a Filer window onto the ------ application icon on the icon bar. The file will not be loaded if: a) It has too many lines. Or b) The lines are too long. This is determined by the values of the variables MaxLines% and Width% respect- ively. The default values are MaxLines%=200 and Width%=80. These can be altered in the procedure PROCUser_SetInitialData (in the !RunImage file). (If you set these values too large you may also need to increase the WimpSlot maximum size in the !Run file.) A file is saved by any of the usual save box actions: a) Dragging the file icon in the save box to a Filer window b) Typing the File pathname into the writeable icon (followed by press- ing the RETURN key) c) Clicking on the OK button (if the pathname has already been set). A SAVED FILE IS SORTED ALPHABETICALLY BEFORE IT IS SAVED.
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 53 6f 72 74 0a 20 20 20 0a 20 20 20 20 20 20 20 |Sort. . | 00000080 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000090 48 65 6c 70 20 66 6f 72 20 56 65 72 73 69 6f 6e |Help for Version| 000000a0 20 31 2e 30 20 3a 20 28 32 34 20 53 65 70 20 31 | 1.0 : (24 Sep 1| 000000b0 39 39 32 29 0a 20 20 20 20 20 0a 20 20 20 20 20 |992). . | 000000c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 000000d0 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 0a 20 20 20 0a 20 20 20 |--------. . | 00000100 0a 0a 2d 2d 2d 2d 2d 2d 2d 2d 0a 50 75 72 70 6f |..--------.Purpo| 00000110 73 65 20 20 20 20 20 20 20 20 20 54 68 69 73 20 |se This | 00000120 61 70 70 6c 69 63 61 74 69 6f 6e 20 69 6c 6c 75 |application illu| 00000130 73 74 72 61 74 65 73 20 74 68 65 20 75 73 65 20 |strates the use | 00000140 6f 66 20 53 61 76 65 20 62 6f 78 65 73 20 75 73 |of Save boxes us| 00000150 69 6e 67 20 74 68 65 20 57 69 6d 70 20 50 72 6f |ing the Wimp Pro| 00000160 63 65 64 75 72 65 0a 2d 2d 2d 2d 2d 2d 2d 2d 20 |cedure.-------- | 00000170 20 20 20 20 20 20 20 4c 69 62 72 61 72 79 3b 20 | Library; | 00000180 73 65 65 20 41 72 63 68 69 6d 65 64 65 73 20 57 |see Archimedes W| 00000190 6f 72 6c 64 2e 0a 20 20 20 20 20 20 20 20 20 20 |orld.. | 000001a0 20 20 20 20 20 20 0a 20 20 20 20 20 20 20 20 20 | . | 000001b0 20 20 20 20 20 20 20 54 68 65 20 61 70 70 6c 69 | The appli| 000001c0 63 61 74 69 6f 6e 20 69 73 20 6c 6f 61 64 65 64 |cation is loaded| 000001d0 20 69 6e 20 74 68 65 20 75 73 75 61 6c 20 77 61 | in the usual wa| 000001e0 79 20 62 79 20 64 6f 75 62 6c 65 2d 63 6c 69 63 |y by double-clic| 000001f0 6b 69 6e 67 20 69 74 73 20 69 63 6f 6e 20 69 6e |king its icon in| 00000200 20 61 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 | a. | 00000210 20 20 20 46 69 6c 65 72 20 77 69 6e 64 6f 77 2e | Filer window.| 00000220 20 54 68 69 73 20 70 6c 61 63 65 73 20 74 68 65 | This places the| 00000230 20 69 63 6f 6e 20 6f 6e 74 6f 20 74 68 65 20 69 | icon onto the i| 00000240 63 6f 6e 20 62 61 72 2e 0a 0a 20 20 20 20 20 20 |con bar... | 00000250 20 20 20 20 20 20 20 20 20 20 54 68 65 20 61 70 | The ap| 00000260 70 6c 69 63 61 74 69 6f 6e 20 68 61 73 20 6e 6f |plication has no| 00000270 20 77 69 6e 64 6f 77 73 20 61 6e 64 20 69 73 20 | windows and is | 00000280 69 63 6f 6e 2d 62 61 72 20 6f 6e 6c 79 2e 0a 20 |icon-bar only.. | 00000290 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 0a | .| 000002a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 000002b0 54 68 65 20 69 63 6f 6e 20 62 61 72 20 6d 65 6e |The icon bar men| 000002c0 75 20 68 61 73 20 33 20 69 74 65 6d 73 3a 0a 20 |u has 3 items:. | 000002d0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 0a | .| 000002e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 000002f0 20 20 20 20 20 20 20 61 29 20 49 6e 66 6f 20 28 | a) Info (| 00000300 4c 65 61 64 73 20 74 6f 20 73 74 61 6e 64 61 72 |Leads to standar| 00000310 64 20 70 72 6f 67 69 6e 66 6f 20 62 6f 78 29 0a |d proginfo box).| 00000320 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000330 20 20 20 20 20 20 20 62 29 20 53 61 76 65 20 28 | b) Save (| 00000340 4c 65 61 64 73 20 74 6f 20 73 74 61 6e 64 61 72 |Leads to standar| 00000350 64 20 73 61 76 65 20 62 6f 78 29 0a 20 20 20 20 |d save box). | 00000360 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000370 20 20 20 63 29 20 51 75 69 74 20 28 49 66 20 73 | c) Quit (If s| 00000380 65 6c 65 63 74 65 64 20 63 6c 6f 73 65 73 20 64 |elected closes d| 00000390 6f 77 6e 20 74 68 65 20 61 70 70 6c 69 63 61 74 |own the applicat| 000003a0 69 6f 6e 29 0a 20 20 20 20 20 20 20 20 20 20 20 |ion). | 000003b0 20 20 20 20 20 20 20 20 20 20 20 20 0a 20 20 20 | . | 000003c0 20 20 20 20 20 20 20 20 20 20 20 20 20 54 68 65 | The| 000003d0 20 70 75 72 70 6f 73 65 20 6f 66 20 74 68 65 20 | purpose of the | 000003e0 61 70 70 6c 69 63 61 74 69 6f 6e 20 69 73 20 74 |application is t| 000003f0 6f 20 73 6f 72 74 20 74 65 78 74 20 66 69 6c 65 |o sort text file| 00000400 73 20 28 6f 66 20 74 79 70 65 20 26 46 46 46 29 |s (of type &FFF)| 00000410 20 69 6e 74 6f 0a 20 20 20 20 20 20 20 20 20 20 | into. | 00000420 20 20 20 20 20 20 6c 65 78 69 63 6f 67 72 61 70 | lexicograp| 00000430 68 69 63 61 6c 20 6f 72 64 65 72 2e 0a 0a 0a 2d |hical order....-| 00000440 2d 2d 2d 2d 2d 2d 0a 55 73 61 67 65 20 20 20 20 |------.Usage | 00000450 20 20 20 20 20 20 20 41 20 74 65 78 74 20 66 69 | A text fi| 00000460 6c 65 20 69 73 20 6c 6f 61 64 65 64 20 62 79 20 |le is loaded by | 00000470 64 72 61 67 67 69 6e 67 20 69 74 73 20 69 63 6f |dragging its ico| 00000480 6e 20 66 72 6f 6d 20 61 20 46 69 6c 65 72 20 77 |n from a Filer w| 00000490 69 6e 64 6f 77 20 6f 6e 74 6f 20 74 68 65 0a 2d |indow onto the.-| 000004a0 2d 2d 2d 2d 2d 20 20 20 20 20 20 20 20 20 20 61 |----- a| 000004b0 70 70 6c 69 63 61 74 69 6f 6e 20 69 63 6f 6e 20 |pplication icon | 000004c0 6f 6e 20 74 68 65 20 69 63 6f 6e 20 62 61 72 2e |on the icon bar.| 000004d0 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 |.. | 000004e0 20 20 54 68 65 20 66 69 6c 65 20 77 69 6c 6c 20 | The file will | 000004f0 6e 6f 74 20 62 65 20 6c 6f 61 64 65 64 20 69 66 |not be loaded if| 00000500 3a 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 |:.. | 00000510 20 20 20 20 20 20 20 20 20 20 61 29 20 49 74 20 | a) It | 00000520 68 61 73 20 74 6f 6f 20 6d 61 6e 79 20 6c 69 6e |has too many lin| 00000530 65 73 2e 0a 20 20 20 20 20 20 20 20 20 20 20 20 |es.. | 00000540 20 20 20 20 20 20 20 20 4f 72 0a 20 20 20 20 20 | Or. | 00000550 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000560 20 20 62 29 20 54 68 65 20 6c 69 6e 65 73 20 61 | b) The lines a| 00000570 72 65 20 74 6f 6f 20 6c 6f 6e 67 2e 0a 0a 20 20 |re too long... | 00000580 20 20 20 20 20 20 20 20 20 20 20 20 20 20 54 68 | Th| 00000590 69 73 20 69 73 20 64 65 74 65 72 6d 69 6e 65 64 |is is determined| 000005a0 20 62 79 20 74 68 65 20 76 61 6c 75 65 73 20 6f | by the values o| 000005b0 66 20 74 68 65 20 76 61 72 69 61 62 6c 65 73 20 |f the variables | 000005c0 20 4d 61 78 4c 69 6e 65 73 25 20 61 6e 64 20 57 | MaxLines% and W| 000005d0 69 64 74 68 25 20 72 65 73 70 65 63 74 2d 0a 20 |idth% respect-. | 000005e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 | i| 000005f0 76 65 6c 79 2e 20 54 68 65 20 64 65 66 61 75 6c |vely. The defaul| 00000600 74 20 76 61 6c 75 65 73 20 61 72 65 20 4d 61 78 |t values are Max| 00000610 4c 69 6e 65 73 25 3d 32 30 30 20 61 6e 64 20 57 |Lines%=200 and W| 00000620 69 64 74 68 25 3d 38 30 2e 20 54 68 65 73 65 20 |idth%=80. These | 00000630 63 61 6e 20 62 65 20 61 6c 74 65 72 65 64 0a 20 |can be altered. | 00000640 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 | i| 00000650 6e 20 74 68 65 20 70 72 6f 63 65 64 75 72 65 20 |n the procedure | 00000660 50 52 4f 43 55 73 65 72 5f 53 65 74 49 6e 69 74 |PROCUser_SetInit| 00000670 69 61 6c 44 61 74 61 20 28 69 6e 20 74 68 65 20 |ialData (in the | 00000680 21 52 75 6e 49 6d 61 67 65 20 66 69 6c 65 29 2e |!RunImage file).| 00000690 20 28 49 66 20 79 6f 75 20 73 65 74 20 0a 20 20 | (If you set . | 000006a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 68 | th| 000006b0 65 73 65 20 76 61 6c 75 65 73 20 74 6f 6f 20 6c |ese values too l| 000006c0 61 72 67 65 20 79 6f 75 20 6d 61 79 20 61 6c 73 |arge you may als| 000006d0 6f 20 6e 65 65 64 20 74 6f 20 69 6e 63 72 65 61 |o need to increa| 000006e0 73 65 20 74 68 65 20 57 69 6d 70 53 6c 6f 74 20 |se the WimpSlot | 000006f0 6d 61 78 69 6d 75 6d 20 73 69 7a 65 20 69 6e 0a |maximum size in.| 00000700 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000710 74 68 65 20 21 52 75 6e 20 66 69 6c 65 2e 29 0a |the !Run file.).| 00000720 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 |. | 00000730 20 41 20 66 69 6c 65 20 69 73 20 73 61 76 65 64 | A file is saved| 00000740 20 62 79 20 61 6e 79 20 6f 66 20 74 68 65 20 75 | by any of the u| 00000750 73 75 61 6c 20 73 61 76 65 20 62 6f 78 20 61 63 |sual save box ac| 00000760 74 69 6f 6e 73 3a 0a 0a 20 20 20 20 20 20 20 20 |tions:.. | 00000770 20 20 20 20 20 20 20 20 20 20 20 20 20 20 61 29 | a)| 00000780 20 44 72 61 67 67 69 6e 67 20 74 68 65 20 66 69 | Dragging the fi| 00000790 6c 65 20 69 63 6f 6e 20 69 6e 20 74 68 65 20 73 |le icon in the s| 000007a0 61 76 65 20 62 6f 78 20 74 6f 20 61 20 46 69 6c |ave box to a Fil| 000007b0 65 72 20 77 69 6e 64 6f 77 0a 20 20 20 20 20 20 |er window. | 000007c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 000007d0 62 29 20 54 79 70 69 6e 67 20 74 68 65 20 46 69 |b) Typing the Fi| 000007e0 6c 65 20 70 61 74 68 6e 61 6d 65 20 69 6e 74 6f |le pathname into| 000007f0 20 74 68 65 20 77 72 69 74 65 61 62 6c 65 20 69 | the writeable i| 00000800 63 6f 6e 20 28 66 6f 6c 6c 6f 77 65 64 20 62 79 |con (followed by| 00000810 20 70 72 65 73 73 2d 0a 20 20 20 20 20 20 20 20 | press-. | 00000820 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000830 20 69 6e 67 20 74 68 65 20 52 45 54 55 52 4e 20 | ing the RETURN | 00000840 6b 65 79 29 0a 20 20 20 20 20 20 20 20 20 20 20 |key). | 00000850 20 20 20 20 20 20 20 20 20 20 20 63 29 20 43 6c | c) Cl| 00000860 69 63 6b 69 6e 67 20 6f 6e 20 74 68 65 20 4f 4b |icking on the OK| 00000870 20 62 75 74 74 6f 6e 20 28 69 66 20 74 68 65 20 | button (if the | 00000880 70 61 74 68 6e 61 6d 65 20 68 61 73 20 61 6c 72 |pathname has alr| 00000890 65 61 64 79 20 62 65 65 6e 20 73 65 74 29 2e 0a |eady been set)..| 000008a0 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 |. | 000008b0 20 41 20 53 41 56 45 44 20 46 49 4c 45 20 49 53 | A SAVED FILE IS| 000008c0 20 53 4f 52 54 45 44 20 41 4c 50 48 41 42 45 54 | SORTED ALPHABET| 000008d0 49 43 41 4c 4c 59 20 42 45 46 4f 52 45 20 49 54 |ICALLY BEFORE IT| 000008e0 20 49 53 20 53 41 56 45 44 2e 0a 0a 0a 20 20 20 | IS SAVED.... | 000008f0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000900 20 20 20 20 20 20 20 20 0a 20 20 20 0a | . .| 0000090d