Home » Archimedes archive » Acorn User » AU 1994-07.adf » !StarInfo_StarInfo » SmithJ/!TreeMenu/History
SmithJ/!TreeMenu/History
This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.
Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.
Tape/disk: | Home » Archimedes archive » Acorn User » AU 1994-07.adf » !StarInfo_StarInfo |
Filename: | SmithJ/!TreeMenu/History |
Read OK: | ✔ |
File size: | 3893 bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
TreeMenu history: ================= See later in this file for a detailed description of the changes. Meanwhile... A Potted History Of Released Versions Of TreeMenu. -------------------------------------------------- DirMenu 1.20 May 12 1993 Bog standard. One configurable iconbar icon. DirMenu 1.30 Can open iconbar menu on left hand side of screen. Added 'Help', 'Edit Configs' and 'Update' to normal iconbar menu. DirMenu 2.21 18 July 1993 A few small bug fixes and enhancements. Can have multiple iconbar icons. Displays directories as applications in accordance with Jens Ovesons' FilerPatch. Detects Alt-<Menu> inside Filer windows, and <Menu> clicks on titlebar of Filer windows. DirMenu 2.23 13 Aug 1993 Fixed a major bug which could crash the system when used with !Memphis. Cleaned up the Filer-titlebar code. Included an option to turn off Filer window titlebar clicks. ************************************************************************ ************************************************************************ The latest version is: TreeMenu 2.70 21 Feb 1994 Detects <Menu> clicks on all windows, not just Filer windows. Copes with image filesystems now. Added 'Set CSD' option to window menus. Updated to cope with newer FilerPatch, plus a few enhancements. Can swap <Select> and <Menu> mouse buttons, and set CSD with <Alt> Made the menus auto-scrolling. I'm dead chuffed with this particular improvement... ************************************************************************ ************************************************************************ ************************************************************************ Detailed History ---------------- 0.00 July 1992 Stored the whole HD directory tree as a file and loaded it each time it was run. To update the tree, had to delete the file and run again. A bit crap, but I used it every day for months, and it saved a lot of time! 1.00 May 1993 Having seen !QuickDir by Clive Jones, I decided to provide menu-making on the fly as well, so the menu tree was always up-to-date. Also converted to DeskLib, which is superb. Added the configuable root menu featue. 1.10 May 5 1993 Now displays icons in the menus. Discovered that the Wimp sends a message with action code 0x400c9 when a menu is removed without a selection being made (e.g. a click off the menu). This is used to release all claims on further messages, which are detected when the menu is open in order to create new sub-menus when MENU_WARNING messages are sent by the WIMP. 1.20 May 12 1993 ** First release ** Added the Info/Quit menu. The Info box is my first ever dialogue box, and I don't know how to make it moveable like all other dialogue boxes I've seen. 1.21 May 24 1993 Added the options to open the root menu on the left hand side of the screen, as suggested by Kai Schlichting. Fixed a minor bug which resulted in a garbled title bar of the submenu of a '@' root item. I've now read the comp.sys.acorn Application Writer's Guide, so there is now no !Boot file, and I've found out how to make the Info window movable (process event_OPEN events). 1.30 ** Second release ** Added Help to normal menu. Added 'Edit Configs' and 'Update' to normal menu. These do a poor-man's implementation of a proper dialogue-box configuration setter/saver. If I had more time... Actually, you shouldn't want to change the configs very often, so this method isn't too bad. Changed the template file so that the program fills in the version/date when it is run. 1.31 Looks for File_0fb instead of File_fb, when searching for a file-type sprite when the file-type is < &100. 1.32 Compiled without function names in code, to make it slightly smaller. 1.40 20 June 1993 Can have multiple icons on the icon-bar, with independent root menus. 1.41 Can have text under the icons. 1.42 28 June 1993 If a directory has bit 6 of its Access atributes set, !DirMenu now displays it as an application (i.e. looks for a wimp sprite with same name). This is for compatability with FilerPatch, by Jens Ovesen. 1.43 4 July 1993 The WIMP doesn't seem to invert text+sprite icons in the same way as normal icons in menus, so I've padded all items with spaces, making highlighted icons in the menu easier to see. 2.00 11 July 1993 Now creates a menu for Filer windows, like !QuickDir. This is done by attaching a filter to the Filer which sends !DirMenu an event_CLICK when Alt-Menu is clicked on a filer window. 2.10 13 July 1993 Opens a menu when there is a menu-click on the filer window title bar. I think this is a lot more convenient than going to the keyboard to press <Alt>. Couldn't use a filter for this because menu-clicks on title bars don't seem to be passed on to apps by the Wimp. Hence had to make a module which claims OS (not Wimp) mouse button events, and sends event_CLICK's to DirMenu. 2.11 13 July 1993 Opens a Filer-window menu for both cases - menu on title bar, and alt-menu on workarea. !MakeMod makes a single module which acts as a filter on the Filer, and also catches mouse events. I Couldn't use mouse-event-detector for the Alt-Menu case because the filer would flash open its menu just before DirMenu opens its menu. !RunImage runs the Basic prog '!MakeMod' after it has initialised as a task. !MakeMod then assembles the module, called DirMenuMouse, assembling in the Filer and DirMenu task_handles. When DirMenu is quit, it RMKill's the module. Assembling a module every time DirMenu is run is a bit clumsy, but I am a new-comer to ARM assembler, so a module that actively finds the relevant task handles (like in !QuickDir) is a bit too advanced for me. My method makes for a smaller module anyway, and anyway Acorn have gone to the trouble of including an assembler on every machine, so I might as well take advantage of it! I don't know of any way of preventing the Wimp from seeing a mouse click. This caused a few problems when making DirMenu respond to non-Wimp events from the module. Any suggestions ? 2.20 14 July 1993 Uses a simple Wimp_Poll loop instead of DeskLib's Event_ functions, which are a bit of a luxury in such a simple program. This makes !RunImage nearly 5k smaller. However, it still can't fit into a 32k wimpslot. 2.21 18 July 1993 *** third release *** Can set DirMenu to expand all system variables in file-paths prior to Filer_Run-ing them. This is for when iconbar icons are specified to use system variables such as <Wimp$ScrapDir> or @. It makes file/application windows contain the full path name of the files that are clicked on. This just uses SWI "OS_FSControl" with r0=37. 2.22 27 July 1993 Oh dear! The click-on-Filer-titlebar thing seems to be a bit wobbly. Changes: 1. Detects true menu button click i.e. buttons 000 -> 010, rather than xxx -> y1y. 2. When opening a Filer-window menu, the main program now rechecks that the pointer is over a titlebar, as a drag closely followed by a menu click on a workarea seem to result in Wimp_GetPointerInfo returning the poition of the start of the drag i.e. a titlebar. This resulted in spurious menu opening sometimes. Unfortunately, if you now move the pointer away from a titlebar very quickly after clicking menu, this modification may mean that DirMenu won't open a menu. 3. In !MakeMod, changed SWI calls to have 'X' bit set, and return if the SWI signals an error. The normal OS default error handling can give a horrid crash when using MemFS's non-multitasking 'free' window. I don't think this is my fault, as the OS error handling should cope with errors, and the SWI was Wimp_GetPointerInfo - hardly a complicated system-altering one. There was no problem with other non-multitasking windows. Thanks to Kai Schlichting for noticing these problems. 2.23 13 Aug 1993 *** fourth release *** Mr Schlichting still gets spurious menus, and I'm a bit stumped by them. I think part of the the problem is something to do with Wimp_GetPointerInfo returning an out-of-date old mouse position just after a drag has taken place, leading to DirMenu being told that a click occured on a title bar, when it didn't. You can now make DirMenu only respond to Alt-Menu clicks in a filer window, by altering 'Configs'. This removes the low-level code from DirMenu's module. The two tiny Obey files 'TBar' and 'NoTBar' are needed because Filer_Run doesn't allow you to send parameters to whatever it is you're Filer_Run-ing. 2.24 16 Aug 1993 Copes with different Access bit used by Filer+ 1.13. Doesn't search for #<spritename> etc yet. 2.25 5 Sep 1993 A few small improvements: 1. Treats image filesystems as directories, allowing you to look inside them, assuming ArcFS (or similar) is running. The old read-only ArcFS didn't support this, so I couldn't do it until now. 2. Now shows correct Filer+ sprites in the top half of the Filer-window menu. 3. Objects which are hidden by Filer+ ( because bit 6 of attributes is set) are displayed with fainter text, but are still selectable. 2.30 6 Sep 1993 Displays sprites like #<name> etc. for directories, applications and images, according to the precedence rules used by Jens Ovesen's Filer+ 1.14. 2.40 20 Sep 1993 Responds to Menu clicks on any window, such as an !Edit or !Paint window. DirMenu uses Wimp_TransferBlock to read the (indirected) title of the window, as it will typically be stored in another applications workspace. If the initial part of the window title is a filename (i.e. most of the time), DirMenu will display the contents of the directory belonging to the file, otherwise it will be a directory, so DirMenu will display the contents of this directory. If the window contains more than about 100 icons, DirMenu will crash. This is because the SWI which finds the title of a window (Wimp_GetWindowInfo) also returns all the icons in the window, and there is no way of telling how many of these there are so you can't garantee there will be enough space reserved... It seems crazy to me that there isn't an SWI which returns a window's info *without* its icons. Please let me know if there is (a RISC OS 3?) one that I haven't heard of. Another problem occurs when Menu is clicked on the title of a Zap window. Zap seems to store only the visible part of the window title, in order to implement custom justification where the leaf of the path is always visible. This means that DirMenu will sometimes only get part of the path when Menu is clicked on a Zap window. As usual, you can alter Configs so that these clicks are ignored, if you find these bugs a problem. On the other hand, if you know of any solutions to them, please tell me! I've got rid of the Obey files 'TBar' and 'NoTBar', because there are now too many options to send to the Module-maker !MakeMod. I now use the system variable 'DirMenu$Options' to pass the parameters to !MakeMod. 2.41 22 Sep 1993 OS_File (with r0 = 5) should return 0 in r0 if a file doesn't exist, but sometimes it just gives an SWI error, so DirMenu now looks at the SWI error flag before accepting a window title as a valid pathname. Previously, Menu-clicking on a Zap window could make DirMenu open stupid menus. Also explicitly closes any existing menu, using Wimp_CreateMenu with r1=-1, when a title-bar click is detected, instead of waiting for the Wimp to do it. I thought this might save a little time on slow machines. 2.42 29 Oct 1993 DirMenu quits with an error message if it finds it has tried to get title of a window with more than 100 icons. This is because some of DirMenu's memory will certainly have been overwritten, and this could have unpleasant consequences if ignored. 2.50 29 Oct 1993 Can have a 'Set CSD' item in a window menu 2.51 31 Oct 1993 Can force a 'Set CSD' item to appear by holding down <Shift> while Menu clicking on the titlebar of a window. 2.52 11 Nov 1993 Uses modified RO3 version of Wimp_GetWindowInfo, which ignores any icons in the window. Hence DirMenu doesn't quit if you click on a window with > 100 icons. Thanks to Clive Jones and Erik de Kort for telling me about this. (the trick is to set bit 0 of R1 when calling Wimp_GetWindowInfo. R1 points to the block of memory reserved for the window information, which is word aligned so the bottom 2 bits are unused). Also stopped the closing of existing menus (see v. 2.41) as I think this was giving strange 'Unknown OS_Module call' errors. 2.53 18 Jan 1994 Improved the error handling when an item in an icon-bar menu was incorrectly specified as (for e.g.) "DeskLib: *" instead of "DeskLib:*" 2.60 2 Feb 1994 Tidied up�the code generaly. Called 'TreeMenu' now. Albert Koelmans at the newcastle server stored it under this name, and it sounds better that 'Dir(e) menu'! I tried to make the menus auto-scrolling, but failed miserably -Menus behave like normal windows, but don't seem to respond to wimp messages. Also, they don't seem to have a valid taskhandle Changed to the format of the 'Configs' file, so that the help comments don't take up so much space, and renamed it '!Configs'. 2.62 14 Feb 1994 I've just bought the PRM's 8) and found that when you have finished claiming an event, you should call OS_Byte 13, *then* OS_Release. (I used to do it the other way round. Added the 'reverse mouse button' option, and the 'Set CSD with <Alt>. These were both requested by Dennis Howe ages ago, but I've only just got round to them. !TreeMenu now tells you if an error occurred from the 'Filer_Run ...' or 'Dir ...' command. This is useful if you try to set the CSD to a file. 2.70 21 Feb 1994 Finally managed to make the menus auto-scrolling. The WIMP seems to use OS_Mouse to read the pointer position/button state, so I tried intercepting this SWI, and returning a bogus click. This worked, but requires a separate module with a SWI, and would involve coding a buffer in order to fake button press + buton release. The solution I now use is to add mouse events into OS_Mouse's buffer, using OS_Byte 138. The PRM's say this isn't recommended, but if you must do this, you should disable events while you are writing to the buffer, in case a real mouse event (e.g. the user clicking) arrives when you are in the middle of adding bytes to the buffer. I'm not quite sure why this is not reccomended, and I'm fairly certain there isn't a cleaner way. Anyway, it all seems to work OK. The scrolling isn't very smooth, and has only 2 speeds, but is still very useful.
00000000 0a 09 54 72 65 65 4d 65 6e 75 20 68 69 73 74 6f |..TreeMenu histo| 00000010 72 79 3a 0a 09 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d |ry:..===========| 00000020 3d 3d 3d 3d 3d 3d 0a 0a 53 65 65 20 6c 61 74 65 |======..See late| 00000030 72 20 69 6e 20 74 68 69 73 20 66 69 6c 65 20 66 |r in this file f| 00000040 6f 72 20 61 20 64 65 74 61 69 6c 65 64 20 64 65 |or a detailed de| 00000050 73 63 72 69 70 74 69 6f 6e 20 6f 66 20 74 68 65 |scription of the| 00000060 20 63 68 61 6e 67 65 73 2e 0a 4d 65 61 6e 77 68 | changes..Meanwh| 00000070 69 6c 65 2e 2e 2e 0a 0a 0a 41 20 50 6f 74 74 65 |ile......A Potte| 00000080 64 20 48 69 73 74 6f 72 79 20 4f 66 20 52 65 6c |d History Of Rel| 00000090 65 61 73 65 64 20 56 65 72 73 69 6f 6e 73 20 4f |eased Versions O| 000000a0 66 20 54 72 65 65 4d 65 6e 75 2e 0a 2d 2d 2d 2d |f TreeMenu..----| 000000b0 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d |----------------| * 000000d0 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 0a |--------------..| 000000e0 44 69 72 4d 65 6e 75 09 09 31 2e 32 30 09 4d 61 |DirMenu..1.20.Ma| 000000f0 79 20 31 32 20 31 39 39 33 20 0a 42 6f 67 20 73 |y 12 1993 .Bog s| 00000100 74 61 6e 64 61 72 64 2e 20 4f 6e 65 20 63 6f 6e |tandard. One con| 00000110 66 69 67 75 72 61 62 6c 65 20 69 63 6f 6e 62 61 |figurable iconba| 00000120 72 20 69 63 6f 6e 2e 0a 0a 0a 44 69 72 4d 65 6e |r icon....DirMen| 00000130 75 09 09 31 2e 33 30 0a 43 61 6e 20 6f 70 65 6e |u..1.30.Can open| 00000140 20 69 63 6f 6e 62 61 72 20 6d 65 6e 75 20 6f 6e | iconbar menu on| 00000150 20 6c 65 66 74 20 68 61 6e 64 20 73 69 64 65 20 | left hand side | 00000160 6f 66 20 73 63 72 65 65 6e 2e 0a 41 64 64 65 64 |of screen..Added| 00000170 20 27 48 65 6c 70 27 2c 20 27 45 64 69 74 20 43 | 'Help', 'Edit C| 00000180 6f 6e 66 69 67 73 27 20 61 6e 64 20 27 55 70 64 |onfigs' and 'Upd| 00000190 61 74 65 27 20 74 6f 20 6e 6f 72 6d 61 6c 20 69 |ate' to normal i| 000001a0 63 6f 6e 62 61 72 20 6d 65 6e 75 2e 0a 0a 0a 44 |conbar menu....D| 000001b0 69 72 4d 65 6e 75 09 09 32 2e 32 31 09 31 38 20 |irMenu..2.21.18 | 000001c0 4a 75 6c 79 20 31 39 39 33 0a 41 20 66 65 77 20 |July 1993.A few | 000001d0 73 6d 61 6c 6c 20 62 75 67 20 66 69 78 65 73 20 |small bug fixes | 000001e0 61 6e 64 20 65 6e 68 61 6e 63 65 6d 65 6e 74 73 |and enhancements| 000001f0 2e 0a 43 61 6e 20 68 61 76 65 20 6d 75 6c 74 69 |..Can have multi| 00000200 70 6c 65 20 69 63 6f 6e 62 61 72 20 69 63 6f 6e |ple iconbar icon| 00000210 73 2e 0a 44 69 73 70 6c 61 79 73 20 64 69 72 65 |s..Displays dire| 00000220 63 74 6f 72 69 65 73 20 61 73 20 61 70 70 6c 69 |ctories as appli| 00000230 63 61 74 69 6f 6e 73 20 69 6e 20 61 63 63 6f 72 |cations in accor| 00000240 64 61 6e 63 65 20 77 69 74 68 20 4a 65 6e 73 20 |dance with Jens | 00000250 4f 76 65 73 6f 6e 73 27 0a 46 69 6c 65 72 50 61 |Ovesons'.FilerPa| 00000260 74 63 68 2e 0a 44 65 74 65 63 74 73 20 41 6c 74 |tch..Detects Alt| 00000270 2d 3c 4d 65 6e 75 3e 20 69 6e 73 69 64 65 20 46 |-<Menu> inside F| 00000280 69 6c 65 72 20 77 69 6e 64 6f 77 73 2c 20 61 6e |iler windows, an| 00000290 64 20 3c 4d 65 6e 75 3e 20 63 6c 69 63 6b 73 20 |d <Menu> clicks | 000002a0 6f 6e 20 74 69 74 6c 65 62 61 72 20 6f 66 0a 46 |on titlebar of.F| 000002b0 69 6c 65 72 20 77 69 6e 64 6f 77 73 2e 0a 0a 0a |iler windows....| 000002c0 44 69 72 4d 65 6e 75 09 09 32 2e 32 33 09 31 33 |DirMenu..2.23.13| 000002d0 20 41 75 67 20 31 39 39 33 0a 46 69 78 65 64 20 | Aug 1993.Fixed | 000002e0 61 20 6d 61 6a 6f 72 20 62 75 67 20 77 68 69 63 |a major bug whic| 000002f0 68 20 63 6f 75 6c 64 20 63 72 61 73 68 20 74 68 |h could crash th| 00000300 65 20 73 79 73 74 65 6d 20 77 68 65 6e 20 75 73 |e system when us| 00000310 65 64 20 77 69 74 68 20 21 4d 65 6d 70 68 69 73 |ed with !Memphis| 00000320 2e 0a 43 6c 65 61 6e 65 64 20 75 70 20 74 68 65 |..Cleaned up the| 00000330 20 46 69 6c 65 72 2d 74 69 74 6c 65 62 61 72 20 | Filer-titlebar | 00000340 63 6f 64 65 2e 20 49 6e 63 6c 75 64 65 64 20 61 |code. Included a| 00000350 6e 20 6f 70 74 69 6f 6e 20 74 6f 20 74 75 72 6e |n option to turn| 00000360 20 6f 66 66 20 46 69 6c 65 72 0a 77 69 6e 64 6f | off Filer.windo| 00000370 77 20 74 69 74 6c 65 62 61 72 20 63 6c 69 63 6b |w titlebar click| 00000380 73 2e 0a 0a 0a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a |s....***********| 00000390 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a |****************| * 000003c0 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 0a 2a 2a |*************.**| 000003d0 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a |****************| * 00000410 2a 2a 2a 2a 2a 2a 0a 0a 0a 54 68 65 20 6c 61 74 |******...The lat| 00000420 65 73 74 20 76 65 72 73 69 6f 6e 20 69 73 3a 0a |est version is:.| 00000430 0a 54 72 65 65 4d 65 6e 75 09 32 2e 37 30 09 32 |.TreeMenu.2.70.2| 00000440 31 20 46 65 62 20 31 39 39 34 0a 44 65 74 65 63 |1 Feb 1994.Detec| 00000450 74 73 20 3c 4d 65 6e 75 3e 20 63 6c 69 63 6b 73 |ts <Menu> clicks| 00000460 20 6f 6e 20 61 6c 6c 20 77 69 6e 64 6f 77 73 2c | on all windows,| 00000470 20 6e 6f 74 20 6a 75 73 74 20 46 69 6c 65 72 20 | not just Filer | 00000480 77 69 6e 64 6f 77 73 2e 0a 43 6f 70 65 73 20 77 |windows..Copes w| 00000490 69 74 68 20 69 6d 61 67 65 20 66 69 6c 65 73 79 |ith image filesy| 000004a0 73 74 65 6d 73 20 6e 6f 77 2e 0a 41 64 64 65 64 |stems now..Added| 000004b0 20 27 53 65 74 20 43 53 44 27 20 6f 70 74 69 6f | 'Set CSD' optio| 000004c0 6e 20 74 6f 20 77 69 6e 64 6f 77 20 6d 65 6e 75 |n to window menu| 000004d0 73 2e 0a 55 70 64 61 74 65 64 20 74 6f 20 63 6f |s..Updated to co| 000004e0 70 65 20 77 69 74 68 20 6e 65 77 65 72 20 46 69 |pe with newer Fi| 000004f0 6c 65 72 50 61 74 63 68 2c 20 70 6c 75 73 20 61 |lerPatch, plus a| 00000500 20 66 65 77 20 65 6e 68 61 6e 63 65 6d 65 6e 74 | few enhancement| 00000510 73 2e 0a 43 61 6e 20 73 77 61 70 20 3c 53 65 6c |s..Can swap <Sel| 00000520 65 63 74 3e 20 61 6e 64 20 3c 4d 65 6e 75 3e 20 |ect> and <Menu> | 00000530 6d 6f 75 73 65 20 62 75 74 74 6f 6e 73 2c 20 61 |mouse buttons, a| 00000540 6e 64 20 73 65 74 20 43 53 44 20 77 69 74 68 20 |nd set CSD with | 00000550 3c 41 6c 74 3e 0a 4d 61 64 65 20 74 68 65 20 6d |<Alt>.Made the m| 00000560 65 6e 75 73 20 61 75 74 6f 2d 73 63 72 6f 6c 6c |enus auto-scroll| 00000570 69 6e 67 2e 20 49 27 6d 20 64 65 61 64 20 63 68 |ing. I'm dead ch| 00000580 75 66 66 65 64 20 77 69 74 68 20 74 68 69 73 20 |uffed with this | 00000590 70 61 72 74 69 63 75 6c 61 72 20 0a 69 6d 70 72 |particular .impr| 000005a0 6f 76 65 6d 65 6e 74 2e 2e 2e 0a 0a 0a 2a 2a 2a |ovement......***| 000005b0 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a |****************| * 000005f0 2a 2a 2a 2a 2a 0a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a |*****.**********| 00000600 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a |****************| * 00000630 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 0a 2a |**************.*| 00000640 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a |****************| * 00000680 2a 2a 2a 2a 2a 2a 2a 0a 0a 0a 44 65 74 61 69 6c |*******...Detail| 00000690 65 64 20 48 69 73 74 6f 72 79 0a 2d 2d 2d 2d 2d |ed History.-----| 000006a0 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 0a 30 2e 30 |-----------..0.0| 000006b0 30 09 4a 75 6c 79 20 31 39 39 32 0a 0a 53 74 6f |0.July 1992..Sto| 000006c0 72 65 64 20 74 68 65 20 77 68 6f 6c 65 20 48 44 |red the whole HD| 000006d0 20 64 69 72 65 63 74 6f 72 79 20 74 72 65 65 20 | directory tree | 000006e0 61 73 20 61 20 66 69 6c 65 20 61 6e 64 20 6c 6f |as a file and lo| 000006f0 61 64 65 64 20 69 74 20 65 61 63 68 20 74 69 6d |aded it each tim| 00000700 65 20 69 74 20 77 61 73 0a 72 75 6e 2e 20 54 6f |e it was.run. To| 00000710 20 75 70 64 61 74 65 20 74 68 65 20 74 72 65 65 | update the tree| 00000720 2c 20 68 61 64 20 74 6f 20 64 65 6c 65 74 65 20 |, had to delete | 00000730 74 68 65 20 66 69 6c 65 20 61 6e 64 20 72 75 6e |the file and run| 00000740 20 61 67 61 69 6e 2e 20 41 20 62 69 74 20 63 72 | again. A bit cr| 00000750 61 70 2c 0a 62 75 74 20 49 20 75 73 65 64 20 69 |ap,.but I used i| 00000760 74 20 65 76 65 72 79 20 64 61 79 20 66 6f 72 20 |t every day for | 00000770 6d 6f 6e 74 68 73 2c 20 61 6e 64 20 69 74 20 73 |months, and it s| 00000780 61 76 65 64 20 61 20 6c 6f 74 20 6f 66 20 74 69 |aved a lot of ti| 00000790 6d 65 21 0a 0a 0a 31 2e 30 30 09 4d 61 79 20 31 |me!...1.00.May 1| 000007a0 39 39 33 20 0a 0a 48 61 76 69 6e 67 20 73 65 65 |993 ..Having see| 000007b0 6e 20 21 51 75 69 63 6b 44 69 72 20 62 79 20 43 |n !QuickDir by C| 000007c0 6c 69 76 65 20 4a 6f 6e 65 73 2c 20 49 20 64 65 |live Jones, I de| 000007d0 63 69 64 65 64 20 74 6f 20 70 72 6f 76 69 64 65 |cided to provide| 000007e0 20 6d 65 6e 75 2d 6d 61 6b 69 6e 67 20 6f 6e 20 | menu-making on | 000007f0 74 68 65 0a 66 6c 79 20 61 73 20 77 65 6c 6c 2c |the.fly as well,| 00000800 20 73 6f 20 74 68 65 20 6d 65 6e 75 20 74 72 65 | so the menu tre| 00000810 65 20 77 61 73 20 61 6c 77 61 79 73 20 75 70 2d |e was always up-| 00000820 74 6f 2d 64 61 74 65 2e 20 41 6c 73 6f 20 63 6f |to-date. Also co| 00000830 6e 76 65 72 74 65 64 20 74 6f 0a 44 65 73 6b 4c |nverted to.DeskL| 00000840 69 62 2c 20 77 68 69 63 68 20 69 73 20 73 75 70 |ib, which is sup| 00000850 65 72 62 2e 20 41 64 64 65 64 20 74 68 65 20 63 |erb. Added the c| 00000860 6f 6e 66 69 67 75 61 62 6c 65 20 72 6f 6f 74 20 |onfiguable root | 00000870 6d 65 6e 75 20 66 65 61 74 75 65 2e 0a 0a 0a 31 |menu featue....1| 00000880 2e 31 30 09 4d 61 79 20 35 20 31 39 39 33 20 0a |.10.May 5 1993 .| 00000890 0a 4e 6f 77 20 64 69 73 70 6c 61 79 73 20 69 63 |.Now displays ic| 000008a0 6f 6e 73 20 69 6e 20 74 68 65 20 6d 65 6e 75 73 |ons in the menus| 000008b0 2e 20 44 69 73 63 6f 76 65 72 65 64 20 74 68 61 |. Discovered tha| 000008c0 74 20 74 68 65 20 57 69 6d 70 20 73 65 6e 64 73 |t the Wimp sends| 000008d0 20 61 20 6d 65 73 73 61 67 65 0a 77 69 74 68 20 | a message.with | 000008e0 61 63 74 69 6f 6e 20 63 6f 64 65 20 30 78 34 30 |action code 0x40| 000008f0 30 63 39 20 77 68 65 6e 20 61 20 6d 65 6e 75 20 |0c9 when a menu | 00000900 69 73 20 72 65 6d 6f 76 65 64 20 77 69 74 68 6f |is removed witho| 00000910 75 74 20 61 20 73 65 6c 65 63 74 69 6f 6e 20 62 |ut a selection b| 00000920 65 69 6e 67 0a 6d 61 64 65 20 28 65 2e 67 2e 20 |eing.made (e.g. | 00000930 61 20 63 6c 69 63 6b 20 6f 66 66 20 74 68 65 20 |a click off the | 00000940 6d 65 6e 75 29 2e 20 54 68 69 73 20 69 73 20 75 |menu). This is u| 00000950 73 65 64 20 74 6f 20 72 65 6c 65 61 73 65 20 61 |sed to release a| 00000960 6c 6c 20 63 6c 61 69 6d 73 20 6f 6e 0a 66 75 72 |ll claims on.fur| 00000970 74 68 65 72 20 6d 65 73 73 61 67 65 73 2c 20 77 |ther messages, w| 00000980 68 69 63 68 20 61 72 65 20 64 65 74 65 63 74 65 |hich are detecte| 00000990 64 20 77 68 65 6e 20 74 68 65 20 6d 65 6e 75 20 |d when the menu | 000009a0 69 73 20 6f 70 65 6e 20 69 6e 20 6f 72 64 65 72 |is open in order| 000009b0 20 74 6f 20 63 72 65 61 74 65 0a 6e 65 77 20 73 | to create.new s| 000009c0 75 62 2d 6d 65 6e 75 73 20 77 68 65 6e 20 4d 45 |ub-menus when ME| 000009d0 4e 55 5f 57 41 52 4e 49 4e 47 20 6d 65 73 73 61 |NU_WARNING messa| 000009e0 67 65 73 20 61 72 65 20 73 65 6e 74 20 62 79 20 |ges are sent by | 000009f0 74 68 65 20 57 49 4d 50 2e 0a 0a 0a 31 2e 32 30 |the WIMP....1.20| 00000a00 09 4d 61 79 20 31 32 20 31 39 39 33 20 2a 2a 20 |.May 12 1993 ** | 00000a10 46 69 72 73 74 20 72 65 6c 65 61 73 65 20 2a 2a |First release **| 00000a20 20 0a 0a 41 64 64 65 64 20 74 68 65 20 49 6e 66 | ..Added the Inf| 00000a30 6f 2f 51 75 69 74 20 6d 65 6e 75 2e 20 54 68 65 |o/Quit menu. The| 00000a40 20 49 6e 66 6f 20 62 6f 78 20 69 73 20 6d 79 20 | Info box is my | 00000a50 66 69 72 73 74 20 65 76 65 72 20 64 69 61 6c 6f |first ever dialo| 00000a60 67 75 65 20 62 6f 78 2c 20 61 6e 64 20 49 0a 64 |gue box, and I.d| 00000a70 6f 6e 27 74 20 6b 6e 6f 77 20 68 6f 77 20 74 6f |on't know how to| 00000a80 20 6d 61 6b 65 20 69 74 20 6d 6f 76 65 61 62 6c | make it moveabl| 00000a90 65 20 6c 69 6b 65 20 61 6c 6c 20 6f 74 68 65 72 |e like all other| 00000aa0 20 64 69 61 6c 6f 67 75 65 20 62 6f 78 65 73 20 | dialogue boxes | 00000ab0 49 27 76 65 20 73 65 65 6e 2e 0a 0a 0a 31 2e 32 |I've seen....1.2| 00000ac0 31 09 4d 61 79 20 32 34 20 31 39 39 33 20 0a 0a |1.May 24 1993 ..| 00000ad0 41 64 64 65 64 20 74 68 65 20 6f 70 74 69 6f 6e |Added the option| 00000ae0 73 20 74 6f 20 6f 70 65 6e 20 74 68 65 20 72 6f |s to open the ro| 00000af0 6f 74 20 6d 65 6e 75 20 6f 6e 20 74 68 65 20 6c |ot menu on the l| 00000b00 65 66 74 20 68 61 6e 64 20 73 69 64 65 20 6f 66 |eft hand side of| 00000b10 20 74 68 65 20 73 63 72 65 65 6e 2c 0a 61 73 20 | the screen,.as | 00000b20 73 75 67 67 65 73 74 65 64 20 62 79 20 4b 61 69 |suggested by Kai| 00000b30 20 53 63 68 6c 69 63 68 74 69 6e 67 2e 20 46 69 | Schlichting. Fi| 00000b40 78 65 64 20 61 20 6d 69 6e 6f 72 20 62 75 67 20 |xed a minor bug | 00000b50 77 68 69 63 68 20 72 65 73 75 6c 74 65 64 20 69 |which resulted i| 00000b60 6e 20 61 0a 67 61 72 62 6c 65 64 20 74 69 74 6c |n a.garbled titl| 00000b70 65 20 62 61 72 20 6f 66 20 74 68 65 20 73 75 62 |e bar of the sub| 00000b80 6d 65 6e 75 20 6f 66 20 61 20 27 40 27 20 72 6f |menu of a '@' ro| 00000b90 6f 74 20 69 74 65 6d 2e 20 49 27 76 65 20 6e 6f |ot item. I've no| 00000ba0 77 20 72 65 61 64 20 74 68 65 0a 63 6f 6d 70 2e |w read the.comp.| 00000bb0 73 79 73 2e 61 63 6f 72 6e 20 41 70 70 6c 69 63 |sys.acorn Applic| 00000bc0 61 74 69 6f 6e 20 57 72 69 74 65 72 27 73 20 47 |ation Writer's G| 00000bd0 75 69 64 65 2c 20 73 6f 20 74 68 65 72 65 20 69 |uide, so there i| 00000be0 73 20 6e 6f 77 20 6e 6f 20 21 42 6f 6f 74 20 66 |s now no !Boot f| 00000bf0 69 6c 65 2c 20 61 6e 64 0a 49 27 76 65 20 66 6f |ile, and.I've fo| 00000c00 75 6e 64 20 6f 75 74 20 68 6f 77 20 74 6f 20 6d |und out how to m| 00000c10 61 6b 65 20 74 68 65 20 49 6e 66 6f 20 77 69 6e |ake the Info win| 00000c20 64 6f 77 20 6d 6f 76 61 62 6c 65 20 28 70 72 6f |dow movable (pro| 00000c30 63 65 73 73 20 65 76 65 6e 74 5f 4f 50 45 4e 0a |cess event_OPEN.| 00000c40 65 76 65 6e 74 73 29 2e 0a 0a 0a 31 2e 33 30 09 |events)....1.30.| 00000c50 2a 2a 20 53 65 63 6f 6e 64 20 72 65 6c 65 61 73 |** Second releas| 00000c60 65 20 2a 2a 20 0a 0a 41 64 64 65 64 20 48 65 6c |e ** ..Added Hel| 00000c70 70 20 74 6f 20 6e 6f 72 6d 61 6c 20 6d 65 6e 75 |p to normal menu| 00000c80 2e 20 41 64 64 65 64 20 27 45 64 69 74 20 43 6f |. Added 'Edit Co| 00000c90 6e 66 69 67 73 27 20 61 6e 64 20 27 55 70 64 61 |nfigs' and 'Upda| 00000ca0 74 65 27 20 74 6f 20 6e 6f 72 6d 61 6c 20 6d 65 |te' to normal me| 00000cb0 6e 75 2e 0a 54 68 65 73 65 20 64 6f 20 61 20 70 |nu..These do a p| 00000cc0 6f 6f 72 2d 6d 61 6e 27 73 20 69 6d 70 6c 65 6d |oor-man's implem| 00000cd0 65 6e 74 61 74 69 6f 6e 20 6f 66 20 61 20 70 72 |entation of a pr| 00000ce0 6f 70 65 72 20 64 69 61 6c 6f 67 75 65 2d 62 6f |oper dialogue-bo| 00000cf0 78 20 63 6f 6e 66 69 67 75 72 61 74 69 6f 6e 0a |x configuration.| 00000d00 73 65 74 74 65 72 2f 73 61 76 65 72 2e 20 49 66 |setter/saver. If| 00000d10 20 49 20 68 61 64 20 6d 6f 72 65 20 74 69 6d 65 | I had more time| 00000d20 2e 2e 2e 20 41 63 74 75 61 6c 6c 79 2c 20 79 6f |... Actually, yo| 00000d30 75 20 73 68 6f 75 6c 64 6e 27 74 20 77 61 6e 74 |u shouldn't want| 00000d40 20 74 6f 20 63 68 61 6e 67 65 0a 74 68 65 20 63 | to change.the c| 00000d50 6f 6e 66 69 67 73 20 76 65 72 79 20 6f 66 74 65 |onfigs very ofte| 00000d60 6e 2c 20 73 6f 20 74 68 69 73 20 6d 65 74 68 6f |n, so this metho| 00000d70 64 20 69 73 6e 27 74 20 74 6f 6f 20 62 61 64 2e |d isn't too bad.| 00000d80 20 43 68 61 6e 67 65 64 20 74 68 65 20 74 65 6d | Changed the tem| 00000d90 70 6c 61 74 65 0a 66 69 6c 65 20 73 6f 20 74 68 |plate.file so th| 00000da0 61 74 20 74 68 65 20 70 72 6f 67 72 61 6d 20 66 |at the program f| 00000db0 69 6c 6c 73 20 69 6e 20 74 68 65 20 76 65 72 73 |ills in the vers| 00000dc0 69 6f 6e 2f 64 61 74 65 20 77 68 65 6e 20 69 74 |ion/date when it| 00000dd0 20 69 73 20 72 75 6e 2e 0a 0a 0a 31 2e 33 31 09 | is run....1.31.| 00000de0 0a 0a 4c 6f 6f 6b 73 20 66 6f 72 20 46 69 6c 65 |..Looks for File| 00000df0 5f 30 66 62 20 69 6e 73 74 65 61 64 20 6f 66 20 |_0fb instead of | 00000e00 46 69 6c 65 5f 66 62 2c 20 77 68 65 6e 20 73 65 |File_fb, when se| 00000e10 61 72 63 68 69 6e 67 20 66 6f 72 20 61 20 66 69 |arching for a fi| 00000e20 6c 65 2d 74 79 70 65 0a 73 70 72 69 74 65 20 77 |le-type.sprite w| 00000e30 68 65 6e 20 74 68 65 20 66 69 6c 65 2d 74 79 70 |hen the file-typ| 00000e40 65 20 69 73 20 3c 20 26 31 30 30 2e 0a 0a 0a 31 |e is < &100....1| 00000e50 2e 33 32 09 0a 0a 43 6f 6d 70 69 6c 65 64 20 77 |.32...Compiled w| 00000e60 69 74 68 6f 75 74 20 66 75 6e 63 74 69 6f 6e 20 |ithout function | 00000e70 6e 61 6d 65 73 20 69 6e 20 63 6f 64 65 2c 20 74 |names in code, t| 00000e80 6f 20 6d 61 6b 65 20 69 74 20 73 6c 69 67 68 74 |o make it slight| 00000e90 6c 79 20 73 6d 61 6c 6c 65 72 2e 20 0a 0a 0a 31 |ly smaller. ...1| 00000ea0 2e 34 30 09 32 30 20 4a 75 6e 65 20 31 39 39 33 |.40.20 June 1993| 00000eb0 20 0a 0a 43 61 6e 20 68 61 76 65 20 6d 75 6c 74 | ..Can have mult| 00000ec0 69 70 6c 65 20 69 63 6f 6e 73 20 6f 6e 20 74 68 |iple icons on th| 00000ed0 65 20 69 63 6f 6e 2d 62 61 72 2c 20 77 69 74 68 |e icon-bar, with| 00000ee0 20 69 6e 64 65 70 65 6e 64 65 6e 74 20 72 6f 6f | independent roo| 00000ef0 74 20 6d 65 6e 75 73 2e 20 0a 0a 0a 31 2e 34 31 |t menus. ...1.41| 00000f00 0a 0a 43 61 6e 20 68 61 76 65 20 74 65 78 74 20 |..Can have text | 00000f10 75 6e 64 65 72 20 74 68 65 20 69 63 6f 6e 73 2e |under the icons.| 00000f20 0a 0a 0a 31 2e 34 32 09 32 38 20 4a 75 6e 65 20 |...1.42.28 June | 00000f30 31 39 39 33 20 0a 0a 49 66 20 61 20 64 69 72 65 |1993 ..If a dire| 00000f40 63 74 6f 72 79 20 68 61 73 20 62 69 74 20 36 20 |ctory has bit 6 | 00000f50 6f 66 20 69 74 73 20 41 63 63 65 73 73 20 61 74 |of its Access at| 00000f60 72 69 62 75 74 65 73 20 73 65 74 2c 20 21 44 69 |ributes set, !Di| 00000f70 72 4d 65 6e 75 20 6e 6f 77 20 64 69 73 70 6c 61 |rMenu now displa| 00000f80 79 73 0a 69 74 20 61 73 20 61 6e 20 61 70 70 6c |ys.it as an appl| 00000f90 69 63 61 74 69 6f 6e 20 28 69 2e 65 2e 20 6c 6f |ication (i.e. lo| 00000fa0 6f 6b 73 20 66 6f 72 20 61 20 77 69 6d 70 20 73 |oks for a wimp s| 00000fb0 70 72 69 74 65 20 77 69 74 68 20 73 61 6d 65 20 |prite with same | 00000fc0 6e 61 6d 65 29 2e 20 54 68 69 73 20 69 73 0a 66 |name). This is.f| 00000fd0 6f 72 20 63 6f 6d 70 61 74 61 62 69 6c 69 74 79 |or compatability| 00000fe0 20 77 69 74 68 20 46 69 6c 65 72 50 61 74 63 68 | with FilerPatch| 00000ff0 2c 20 62 79 20 4a 65 6e 73 20 4f 76 65 73 65 6e |, by Jens Ovesen| 00001000 2e 0a 0a 0a 31 2e 34 33 09 34 20 4a 75 6c 79 20 |....1.43.4 July | 00001010 31 39 39 33 20 0a 0a 54 68 65 20 57 49 4d 50 20 |1993 ..The WIMP | 00001020 64 6f 65 73 6e 27 74 20 73 65 65 6d 20 74 6f 20 |doesn't seem to | 00001030 69 6e 76 65 72 74 20 74 65 78 74 2b 73 70 72 69 |invert text+spri| 00001040 74 65 20 69 63 6f 6e 73 20 69 6e 20 74 68 65 20 |te icons in the | 00001050 73 61 6d 65 20 77 61 79 20 61 73 20 6e 6f 72 6d |same way as norm| 00001060 61 6c 0a 69 63 6f 6e 73 20 69 6e 20 6d 65 6e 75 |al.icons in menu| 00001070 73 2c 20 73 6f 20 49 27 76 65 20 70 61 64 64 65 |s, so I've padde| 00001080 64 20 61 6c 6c 20 69 74 65 6d 73 20 77 69 74 68 |d all items with| 00001090 20 73 70 61 63 65 73 2c 20 6d 61 6b 69 6e 67 20 | spaces, making | 000010a0 68 69 67 68 6c 69 67 68 74 65 64 0a 69 63 6f 6e |highlighted.icon| 000010b0 73 20 69 6e 20 74 68 65 20 6d 65 6e 75 20 65 61 |s in the menu ea| 000010c0 73 69 65 72 20 74 6f 20 73 65 65 2e 0a 0a 0a 32 |sier to see....2| 000010d0 2e 30 30 09 31 31 20 4a 75 6c 79 20 31 39 39 33 |.00.11 July 1993| 000010e0 20 0a 0a 4e 6f 77 20 63 72 65 61 74 65 73 20 61 | ..Now creates a| 000010f0 20 6d 65 6e 75 20 66 6f 72 20 46 69 6c 65 72 20 | menu for Filer | 00001100 77 69 6e 64 6f 77 73 2c 20 6c 69 6b 65 20 21 51 |windows, like !Q| 00001110 75 69 63 6b 44 69 72 2e 20 54 68 69 73 20 69 73 |uickDir. This is| 00001120 20 64 6f 6e 65 20 62 79 0a 61 74 74 61 63 68 69 | done by.attachi| 00001130 6e 67 20 61 20 66 69 6c 74 65 72 20 74 6f 20 74 |ng a filter to t| 00001140 68 65 20 46 69 6c 65 72 20 77 68 69 63 68 20 73 |he Filer which s| 00001150 65 6e 64 73 20 21 44 69 72 4d 65 6e 75 20 61 6e |ends !DirMenu an| 00001160 20 65 76 65 6e 74 5f 43 4c 49 43 4b 20 77 68 65 | event_CLICK whe| 00001170 6e 0a 41 6c 74 2d 4d 65 6e 75 20 69 73 20 63 6c |n.Alt-Menu is cl| 00001180 69 63 6b 65 64 20 6f 6e 20 61 20 66 69 6c 65 72 |icked on a filer| 00001190 20 77 69 6e 64 6f 77 2e 20 0a 0a 0a 32 2e 31 30 | window. ...2.10| 000011a0 09 31 33 20 4a 75 6c 79 20 31 39 39 33 20 0a 0a |.13 July 1993 ..| 000011b0 4f 70 65 6e 73 20 61 20 6d 65 6e 75 20 77 68 65 |Opens a menu whe| 000011c0 6e 20 74 68 65 72 65 20 69 73 20 61 20 6d 65 6e |n there is a men| 000011d0 75 2d 63 6c 69 63 6b 20 6f 6e 20 74 68 65 20 66 |u-click on the f| 000011e0 69 6c 65 72 20 77 69 6e 64 6f 77 20 74 69 74 6c |iler window titl| 000011f0 65 20 62 61 72 2e 20 49 0a 74 68 69 6e 6b 20 74 |e bar. I.think t| 00001200 68 69 73 20 69 73 20 61 20 6c 6f 74 20 6d 6f 72 |his is a lot mor| 00001210 65 20 63 6f 6e 76 65 6e 69 65 6e 74 20 74 68 61 |e convenient tha| 00001220 6e 20 67 6f 69 6e 67 20 74 6f 20 74 68 65 20 6b |n going to the k| 00001230 65 79 62 6f 61 72 64 20 74 6f 20 70 72 65 73 73 |eyboard to press| 00001240 0a 3c 41 6c 74 3e 2e 20 43 6f 75 6c 64 6e 27 74 |.<Alt>. Couldn't| 00001250 20 75 73 65 20 61 20 66 69 6c 74 65 72 20 66 6f | use a filter fo| 00001260 72 20 74 68 69 73 20 62 65 63 61 75 73 65 20 6d |r this because m| 00001270 65 6e 75 2d 63 6c 69 63 6b 73 20 6f 6e 20 74 69 |enu-clicks on ti| 00001280 74 6c 65 20 62 61 72 73 20 64 6f 6e 27 74 0a 73 |tle bars don't.s| 00001290 65 65 6d 20 74 6f 20 62 65 20 70 61 73 73 65 64 |eem to be passed| 000012a0 20 6f 6e 20 74 6f 20 61 70 70 73 20 62 79 20 74 | on to apps by t| 000012b0 68 65 20 57 69 6d 70 2e 20 48 65 6e 63 65 20 68 |he Wimp. Hence h| 000012c0 61 64 20 74 6f 20 6d 61 6b 65 20 61 20 6d 6f 64 |ad to make a mod| 000012d0 75 6c 65 20 77 68 69 63 68 0a 63 6c 61 69 6d 73 |ule which.claims| 000012e0 20 4f 53 20 28 6e 6f 74 20 57 69 6d 70 29 20 6d | OS (not Wimp) m| 000012f0 6f 75 73 65 20 62 75 74 74 6f 6e 20 65 76 65 6e |ouse button even| 00001300 74 73 2c 20 61 6e 64 20 73 65 6e 64 73 20 65 76 |ts, and sends ev| 00001310 65 6e 74 5f 43 4c 49 43 4b 27 73 20 74 6f 20 44 |ent_CLICK's to D| 00001320 69 72 4d 65 6e 75 2e 20 0a 0a 0a 32 2e 31 31 09 |irMenu. ...2.11.| 00001330 31 33 20 4a 75 6c 79 20 31 39 39 33 20 0a 0a 4f |13 July 1993 ..O| 00001340 70 65 6e 73 20 61 20 46 69 6c 65 72 2d 77 69 6e |pens a Filer-win| 00001350 64 6f 77 20 6d 65 6e 75 20 66 6f 72 20 62 6f 74 |dow menu for bot| 00001360 68 20 63 61 73 65 73 20 2d 20 6d 65 6e 75 20 6f |h cases - menu o| 00001370 6e 20 74 69 74 6c 65 20 62 61 72 2c 20 61 6e 64 |n title bar, and| 00001380 20 61 6c 74 2d 6d 65 6e 75 20 6f 6e 0a 77 6f 72 | alt-menu on.wor| 00001390 6b 61 72 65 61 2e 20 21 4d 61 6b 65 4d 6f 64 20 |karea. !MakeMod | 000013a0 6d 61 6b 65 73 20 61 20 73 69 6e 67 6c 65 20 6d |makes a single m| 000013b0 6f 64 75 6c 65 20 77 68 69 63 68 20 61 63 74 73 |odule which acts| 000013c0 20 61 73 20 61 20 66 69 6c 74 65 72 20 6f 6e 20 | as a filter on | 000013d0 74 68 65 20 46 69 6c 65 72 2c 0a 61 6e 64 20 61 |the Filer,.and a| 000013e0 6c 73 6f 20 63 61 74 63 68 65 73 20 6d 6f 75 73 |lso catches mous| 000013f0 65 20 65 76 65 6e 74 73 2e 20 0a 49 20 43 6f 75 |e events. .I Cou| 00001400 6c 64 6e 27 74 20 75 73 65 20 6d 6f 75 73 65 2d |ldn't use mouse-| 00001410 65 76 65 6e 74 2d 64 65 74 65 63 74 6f 72 20 66 |event-detector f| 00001420 6f 72 20 74 68 65 20 41 6c 74 2d 4d 65 6e 75 20 |or the Alt-Menu | 00001430 63 61 73 65 20 62 65 63 61 75 73 65 20 74 68 65 |case because the| 00001440 20 66 69 6c 65 72 0a 77 6f 75 6c 64 20 66 6c 61 | filer.would fla| 00001450 73 68 20 6f 70 65 6e 20 69 74 73 20 6d 65 6e 75 |sh open its menu| 00001460 20 6a 75 73 74 20 62 65 66 6f 72 65 20 44 69 72 | just before Dir| 00001470 4d 65 6e 75 20 6f 70 65 6e 73 20 69 74 73 20 6d |Menu opens its m| 00001480 65 6e 75 2e 20 0a 21 52 75 6e 49 6d 61 67 65 20 |enu. .!RunImage | 00001490 72 75 6e 73 20 74 68 65 20 42 61 73 69 63 20 70 |runs the Basic p| 000014a0 72 6f 67 20 27 21 4d 61 6b 65 4d 6f 64 27 20 61 |rog '!MakeMod' a| 000014b0 66 74 65 72 20 69 74 20 68 61 73 20 69 6e 69 74 |fter it has init| 000014c0 69 61 6c 69 73 65 64 20 61 73 20 61 20 74 61 73 |ialised as a tas| 000014d0 6b 2e 0a 21 4d 61 6b 65 4d 6f 64 20 74 68 65 6e |k..!MakeMod then| 000014e0 20 61 73 73 65 6d 62 6c 65 73 20 74 68 65 20 6d | assembles the m| 000014f0 6f 64 75 6c 65 2c 20 63 61 6c 6c 65 64 20 44 69 |odule, called Di| 00001500 72 4d 65 6e 75 4d 6f 75 73 65 2c 20 61 73 73 65 |rMenuMouse, asse| 00001510 6d 62 6c 69 6e 67 20 69 6e 20 74 68 65 0a 46 69 |mbling in the.Fi| 00001520 6c 65 72 20 61 6e 64 20 44 69 72 4d 65 6e 75 20 |ler and DirMenu | 00001530 74 61 73 6b 5f 68 61 6e 64 6c 65 73 2e 20 57 68 |task_handles. Wh| 00001540 65 6e 20 44 69 72 4d 65 6e 75 20 69 73 20 71 75 |en DirMenu is qu| 00001550 69 74 2c 20 69 74 20 52 4d 4b 69 6c 6c 27 73 20 |it, it RMKill's | 00001560 74 68 65 20 6d 6f 64 75 6c 65 2e 0a 41 73 73 65 |the module..Asse| 00001570 6d 62 6c 69 6e 67 20 61 20 6d 6f 64 75 6c 65 20 |mbling a module | 00001580 65 76 65 72 79 20 74 69 6d 65 20 44 69 72 4d 65 |every time DirMe| 00001590 6e 75 20 69 73 20 72 75 6e 20 69 73 20 61 20 62 |nu is run is a b| 000015a0 69 74 20 63 6c 75 6d 73 79 2c 20 62 75 74 20 49 |it clumsy, but I| 000015b0 20 61 6d 20 61 0a 6e 65 77 2d 63 6f 6d 65 72 20 | am a.new-comer | 000015c0 74 6f 20 41 52 4d 20 61 73 73 65 6d 62 6c 65 72 |to ARM assembler| 000015d0 2c 20 73 6f 20 61 20 6d 6f 64 75 6c 65 20 74 68 |, so a module th| 000015e0 61 74 20 61 63 74 69 76 65 6c 79 20 66 69 6e 64 |at actively find| 000015f0 73 20 74 68 65 20 72 65 6c 65 76 61 6e 74 20 74 |s the relevant t| 00001600 61 73 6b 0a 68 61 6e 64 6c 65 73 20 28 6c 69 6b |ask.handles (lik| 00001610 65 20 69 6e 20 21 51 75 69 63 6b 44 69 72 29 20 |e in !QuickDir) | 00001620 69 73 20 61 20 62 69 74 20 74 6f 6f 20 61 64 76 |is a bit too adv| 00001630 61 6e 63 65 64 20 66 6f 72 20 6d 65 2e 20 4d 79 |anced for me. My| 00001640 20 6d 65 74 68 6f 64 20 6d 61 6b 65 73 20 66 6f | method makes fo| 00001650 72 0a 61 20 73 6d 61 6c 6c 65 72 20 6d 6f 64 75 |r.a smaller modu| 00001660 6c 65 20 61 6e 79 77 61 79 2c 20 61 6e 64 20 61 |le anyway, and a| 00001670 6e 79 77 61 79 20 41 63 6f 72 6e 20 68 61 76 65 |nyway Acorn have| 00001680 20 67 6f 6e 65 20 74 6f 20 74 68 65 20 74 72 6f | gone to the tro| 00001690 75 62 6c 65 20 6f 66 0a 69 6e 63 6c 75 64 69 6e |uble of.includin| 000016a0 67 20 61 6e 20 61 73 73 65 6d 62 6c 65 72 20 6f |g an assembler o| 000016b0 6e 20 65 76 65 72 79 20 6d 61 63 68 69 6e 65 2c |n every machine,| 000016c0 20 73 6f 20 49 20 6d 69 67 68 74 20 61 73 20 77 | so I might as w| 000016d0 65 6c 6c 20 74 61 6b 65 20 61 64 76 61 6e 74 61 |ell take advanta| 000016e0 67 65 20 6f 66 0a 69 74 21 20 0a 49 20 64 6f 6e |ge of.it! .I don| 000016f0 27 74 20 6b 6e 6f 77 20 6f 66 20 61 6e 79 20 77 |'t know of any w| 00001700 61 79 20 6f 66 20 70 72 65 76 65 6e 74 69 6e 67 |ay of preventing| 00001710 20 74 68 65 20 57 69 6d 70 20 66 72 6f 6d 20 73 | the Wimp from s| 00001720 65 65 69 6e 67 20 61 20 6d 6f 75 73 65 20 63 6c |eeing a mouse cl| 00001730 69 63 6b 2e 0a 54 68 69 73 20 63 61 75 73 65 64 |ick..This caused| 00001740 20 61 20 66 65 77 20 70 72 6f 62 6c 65 6d 73 20 | a few problems | 00001750 77 68 65 6e 20 6d 61 6b 69 6e 67 20 44 69 72 4d |when making DirM| 00001760 65 6e 75 20 72 65 73 70 6f 6e 64 20 74 6f 20 6e |enu respond to n| 00001770 6f 6e 2d 57 69 6d 70 20 65 76 65 6e 74 73 0a 66 |on-Wimp events.f| 00001780 72 6f 6d 20 74 68 65 20 6d 6f 64 75 6c 65 2e 20 |rom the module. | 00001790 41 6e 79 20 73 75 67 67 65 73 74 69 6f 6e 73 20 |Any suggestions | 000017a0 3f 0a 0a 0a 32 2e 32 30 09 31 34 20 4a 75 6c 79 |?...2.20.14 July| 000017b0 20 31 39 39 33 20 0a 0a 55 73 65 73 20 61 20 73 | 1993 ..Uses a s| 000017c0 69 6d 70 6c 65 20 57 69 6d 70 5f 50 6f 6c 6c 20 |imple Wimp_Poll | 000017d0 6c 6f 6f 70 20 69 6e 73 74 65 61 64 20 6f 66 20 |loop instead of | 000017e0 44 65 73 6b 4c 69 62 27 73 20 45 76 65 6e 74 5f |DeskLib's Event_| 000017f0 20 66 75 6e 63 74 69 6f 6e 73 2c 20 77 68 69 63 | functions, whic| 00001800 68 20 61 72 65 0a 61 20 62 69 74 20 6f 66 20 61 |h are.a bit of a| 00001810 20 6c 75 78 75 72 79 20 69 6e 20 73 75 63 68 20 | luxury in such | 00001820 61 20 73 69 6d 70 6c 65 20 70 72 6f 67 72 61 6d |a simple program| 00001830 2e 20 54 68 69 73 20 6d 61 6b 65 73 20 21 52 75 |. This makes !Ru| 00001840 6e 49 6d 61 67 65 20 6e 65 61 72 6c 79 20 35 6b |nImage nearly 5k| 00001850 0a 73 6d 61 6c 6c 65 72 2e 20 48 6f 77 65 76 65 |.smaller. Howeve| 00001860 72 2c 20 69 74 20 73 74 69 6c 6c 20 63 61 6e 27 |r, it still can'| 00001870 74 20 66 69 74 20 69 6e 74 6f 20 61 20 33 32 6b |t fit into a 32k| 00001880 20 77 69 6d 70 73 6c 6f 74 2e 0a 0a 0a 32 2e 32 | wimpslot....2.2| 00001890 31 09 31 38 20 4a 75 6c 79 20 31 39 39 33 09 2a |1.18 July 1993.*| 000018a0 2a 2a 20 74 68 69 72 64 20 72 65 6c 65 61 73 65 |** third release| 000018b0 20 2a 2a 2a 20 0a 0a 43 61 6e 20 73 65 74 20 44 | *** ..Can set D| 000018c0 69 72 4d 65 6e 75 20 74 6f 20 65 78 70 61 6e 64 |irMenu to expand| 000018d0 20 61 6c 6c 20 73 79 73 74 65 6d 20 76 61 72 69 | all system vari| 000018e0 61 62 6c 65 73 20 69 6e 20 66 69 6c 65 2d 70 61 |ables in file-pa| 000018f0 74 68 73 20 70 72 69 6f 72 20 74 6f 0a 46 69 6c |ths prior to.Fil| 00001900 65 72 5f 52 75 6e 2d 69 6e 67 20 74 68 65 6d 2e |er_Run-ing them.| 00001910 20 54 68 69 73 20 69 73 20 66 6f 72 20 77 68 65 | This is for whe| 00001920 6e 20 69 63 6f 6e 62 61 72 20 69 63 6f 6e 73 20 |n iconbar icons | 00001930 61 72 65 20 73 70 65 63 69 66 69 65 64 20 74 6f |are specified to| 00001940 20 75 73 65 0a 73 79 73 74 65 6d 20 76 61 72 69 | use.system vari| 00001950 61 62 6c 65 73 20 73 75 63 68 20 61 73 20 3c 57 |ables such as <W| 00001960 69 6d 70 24 53 63 72 61 70 44 69 72 3e 20 6f 72 |imp$ScrapDir> or| 00001970 20 40 2e 20 49 74 20 6d 61 6b 65 73 20 66 69 6c | @. It makes fil| 00001980 65 2f 61 70 70 6c 69 63 61 74 69 6f 6e 0a 77 69 |e/application.wi| 00001990 6e 64 6f 77 73 20 63 6f 6e 74 61 69 6e 20 74 68 |ndows contain th| 000019a0 65 20 66 75 6c 6c 20 70 61 74 68 20 6e 61 6d 65 |e full path name| 000019b0 20 6f 66 20 74 68 65 20 66 69 6c 65 73 20 74 68 | of the files th| 000019c0 61 74 20 61 72 65 20 63 6c 69 63 6b 65 64 20 6f |at are clicked o| 000019d0 6e 2e 20 54 68 69 73 0a 6a 75 73 74 20 75 73 65 |n. This.just use| 000019e0 73 20 53 57 49 20 22 4f 53 5f 46 53 43 6f 6e 74 |s SWI "OS_FSCont| 000019f0 72 6f 6c 22 20 77 69 74 68 20 72 30 3d 33 37 2e |rol" with r0=37.| 00001a00 0a 0a 0a 32 2e 32 32 09 32 37 20 4a 75 6c 79 20 |...2.22.27 July | 00001a10 31 39 39 33 20 0a 0a 4f 68 20 64 65 61 72 21 20 |1993 ..Oh dear! | 00001a20 54 68 65 20 63 6c 69 63 6b 2d 6f 6e 2d 46 69 6c |The click-on-Fil| 00001a30 65 72 2d 74 69 74 6c 65 62 61 72 20 74 68 69 6e |er-titlebar thin| 00001a40 67 20 73 65 65 6d 73 20 74 6f 20 62 65 20 61 20 |g seems to be a | 00001a50 62 69 74 20 77 6f 62 62 6c 79 2e 20 43 68 61 6e |bit wobbly. Chan| 00001a60 67 65 73 3a 0a 31 2e 09 44 65 74 65 63 74 73 20 |ges:.1..Detects | 00001a70 74 72 75 65 20 6d 65 6e 75 20 62 75 74 74 6f 6e |true menu button| 00001a80 20 63 6c 69 63 6b 20 69 2e 65 2e 20 62 75 74 74 | click i.e. butt| 00001a90 6f 6e 73 20 30 30 30 20 2d 3e 20 30 31 30 2c 20 |ons 000 -> 010, | 00001aa0 72 61 74 68 65 72 20 74 68 61 6e 0a 09 78 78 78 |rather than..xxx| 00001ab0 20 2d 3e 20 79 31 79 2e 20 0a 32 2e 09 57 68 65 | -> y1y. .2..Whe| 00001ac0 6e 20 6f 70 65 6e 69 6e 67 20 61 20 46 69 6c 65 |n opening a File| 00001ad0 72 2d 77 69 6e 64 6f 77 20 6d 65 6e 75 2c 20 74 |r-window menu, t| 00001ae0 68 65 20 6d 61 69 6e 20 70 72 6f 67 72 61 6d 20 |he main program | 00001af0 6e 6f 77 20 72 65 63 68 65 63 6b 73 20 74 68 61 |now rechecks tha| 00001b00 74 0a 09 74 68 65 20 70 6f 69 6e 74 65 72 20 69 |t..the pointer i| 00001b10 73 20 6f 76 65 72 20 61 20 74 69 74 6c 65 62 61 |s over a titleba| 00001b20 72 2c 20 61 73 20 61 20 64 72 61 67 20 63 6c 6f |r, as a drag clo| 00001b30 73 65 6c 79 20 66 6f 6c 6c 6f 77 65 64 20 62 79 |sely followed by| 00001b40 20 61 20 6d 65 6e 75 0a 09 63 6c 69 63 6b 20 6f | a menu..click o| 00001b50 6e 20 61 20 77 6f 72 6b 61 72 65 61 20 73 65 65 |n a workarea see| 00001b60 6d 20 74 6f 20 72 65 73 75 6c 74 20 69 6e 20 57 |m to result in W| 00001b70 69 6d 70 5f 47 65 74 50 6f 69 6e 74 65 72 49 6e |imp_GetPointerIn| 00001b80 66 6f 20 72 65 74 75 72 6e 69 6e 67 0a 09 74 68 |fo returning..th| 00001b90 65 20 70 6f 69 74 69 6f 6e 20 6f 66 20 74 68 65 |e poition of the| 00001ba0 20 73 74 61 72 74 20 6f 66 20 74 68 65 20 64 72 | start of the dr| 00001bb0 61 67 20 69 2e 65 2e 20 61 20 74 69 74 6c 65 62 |ag i.e. a titleb| 00001bc0 61 72 2e 20 54 68 69 73 20 72 65 73 75 6c 74 65 |ar. This resulte| 00001bd0 64 0a 09 69 6e 20 73 70 75 72 69 6f 75 73 20 6d |d..in spurious m| 00001be0 65 6e 75 20 6f 70 65 6e 69 6e 67 20 73 6f 6d 65 |enu opening some| 00001bf0 74 69 6d 65 73 2e 20 55 6e 66 6f 72 74 75 6e 61 |times. Unfortuna| 00001c00 74 65 6c 79 2c 20 69 66 20 79 6f 75 20 6e 6f 77 |tely, if you now| 00001c10 20 6d 6f 76 65 0a 09 74 68 65 20 70 6f 69 6e 74 | move..the point| 00001c20 65 72 20 61 77 61 79 20 66 72 6f 6d 20 61 20 74 |er away from a t| 00001c30 69 74 6c 65 62 61 72 20 76 65 72 79 20 71 75 69 |itlebar very qui| 00001c40 63 6b 6c 79 20 61 66 74 65 72 20 63 6c 69 63 6b |ckly after click| 00001c50 69 6e 67 20 6d 65 6e 75 2c 0a 09 74 68 69 73 20 |ing menu,..this | 00001c60 6d 6f 64 69 66 69 63 61 74 69 6f 6e 20 6d 61 79 |modification may| 00001c70 20 6d 65 61 6e 20 74 68 61 74 20 44 69 72 4d 65 | mean that DirMe| 00001c80 6e 75 20 77 6f 6e 27 74 20 6f 70 65 6e 20 61 20 |nu won't open a | 00001c90 6d 65 6e 75 2e 20 0a 33 2e 09 49 6e 20 21 4d 61 |menu. .3..In !Ma| 00001ca0 6b 65 4d 6f 64 2c 20 63 68 61 6e 67 65 64 20 53 |keMod, changed S| 00001cb0 57 49 20 63 61 6c 6c 73 20 74 6f 20 68 61 76 65 |WI calls to have| 00001cc0 20 27 58 27 20 62 69 74 20 73 65 74 2c 20 61 6e | 'X' bit set, an| 00001cd0 64 20 72 65 74 75 72 6e 20 69 66 20 74 68 65 0a |d return if the.| 00001ce0 09 53 57 49 20 73 69 67 6e 61 6c 73 20 61 6e 20 |.SWI signals an | 00001cf0 65 72 72 6f 72 2e 20 54 68 65 20 6e 6f 72 6d 61 |error. The norma| 00001d00 6c 20 4f 53 20 64 65 66 61 75 6c 74 20 65 72 72 |l OS default err| 00001d10 6f 72 20 68 61 6e 64 6c 69 6e 67 20 63 61 6e 20 |or handling can | 00001d20 67 69 76 65 20 61 0a 09 68 6f 72 72 69 64 20 63 |give a..horrid c| 00001d30 72 61 73 68 20 77 68 65 6e 20 75 73 69 6e 67 20 |rash when using | 00001d40 4d 65 6d 46 53 27 73 20 6e 6f 6e 2d 6d 75 6c 74 |MemFS's non-mult| 00001d50 69 74 61 73 6b 69 6e 67 20 27 66 72 65 65 27 20 |itasking 'free' | 00001d60 77 69 6e 64 6f 77 2e 20 49 0a 09 64 6f 6e 27 74 |window. I..don't| 00001d70 20 74 68 69 6e 6b 20 74 68 69 73 20 69 73 20 6d | think this is m| 00001d80 79 20 66 61 75 6c 74 2c 20 61 73 20 74 68 65 20 |y fault, as the | 00001d90 4f 53 20 65 72 72 6f 72 20 68 61 6e 64 6c 69 6e |OS error handlin| 00001da0 67 20 73 68 6f 75 6c 64 20 63 6f 70 65 0a 09 77 |g should cope..w| 00001db0 69 74 68 20 65 72 72 6f 72 73 2c 20 61 6e 64 20 |ith errors, and | 00001dc0 74 68 65 20 53 57 49 20 77 61 73 20 57 69 6d 70 |the SWI was Wimp| 00001dd0 5f 47 65 74 50 6f 69 6e 74 65 72 49 6e 66 6f 20 |_GetPointerInfo | 00001de0 2d 20 68 61 72 64 6c 79 20 61 0a 09 63 6f 6d 70 |- hardly a..comp| 00001df0 6c 69 63 61 74 65 64 20 73 79 73 74 65 6d 2d 61 |licated system-a| 00001e00 6c 74 65 72 69 6e 67 20 6f 6e 65 2e 20 54 68 65 |ltering one. The| 00001e10 72 65 20 77 61 73 20 6e 6f 20 70 72 6f 62 6c 65 |re was no proble| 00001e20 6d 20 77 69 74 68 20 6f 74 68 65 72 0a 09 6e 6f |m with other..no| 00001e30 6e 2d 6d 75 6c 74 69 74 61 73 6b 69 6e 67 20 77 |n-multitasking w| 00001e40 69 6e 64 6f 77 73 2e 0a 0a 54 68 61 6e 6b 73 20 |indows...Thanks | 00001e50 74 6f 20 4b 61 69 20 53 63 68 6c 69 63 68 74 69 |to Kai Schlichti| 00001e60 6e 67 20 66 6f 72 20 6e 6f 74 69 63 69 6e 67 20 |ng for noticing | 00001e70 74 68 65 73 65 20 70 72 6f 62 6c 65 6d 73 2e 0a |these problems..| 00001e80 0a 0a 32 2e 32 33 09 31 33 20 41 75 67 20 31 39 |..2.23.13 Aug 19| 00001e90 39 33 09 2a 2a 2a 20 66 6f 75 72 74 68 20 72 65 |93.*** fourth re| 00001ea0 6c 65 61 73 65 20 2a 2a 2a 20 0a 0a 4d 72 20 53 |lease *** ..Mr S| 00001eb0 63 68 6c 69 63 68 74 69 6e 67 20 73 74 69 6c 6c |chlichting still| 00001ec0 20 67 65 74 73 20 73 70 75 72 69 6f 75 73 20 6d | gets spurious m| 00001ed0 65 6e 75 73 2c 20 61 6e 64 20 49 27 6d 20 61 20 |enus, and I'm a | 00001ee0 62 69 74 20 73 74 75 6d 70 65 64 20 62 79 20 74 |bit stumped by t| 00001ef0 68 65 6d 2e 20 49 0a 74 68 69 6e 6b 20 70 61 72 |hem. I.think par| 00001f00 74 20 6f 66 20 74 68 65 20 74 68 65 20 70 72 6f |t of the the pro| 00001f10 62 6c 65 6d 20 69 73 20 73 6f 6d 65 74 68 69 6e |blem is somethin| 00001f20 67 20 74 6f 20 64 6f 20 77 69 74 68 20 57 69 6d |g to do with Wim| 00001f30 70 5f 47 65 74 50 6f 69 6e 74 65 72 49 6e 66 6f |p_GetPointerInfo| 00001f40 0a 72 65 74 75 72 6e 69 6e 67 20 61 6e 20 6f 75 |.returning an ou| 00001f50 74 2d 6f 66 2d 64 61 74 65 20 6f 6c 64 20 6d 6f |t-of-date old mo| 00001f60 75 73 65 20 70 6f 73 69 74 69 6f 6e 20 6a 75 73 |use position jus| 00001f70 74 20 61 66 74 65 72 20 61 20 64 72 61 67 20 68 |t after a drag h| 00001f80 61 73 20 74 61 6b 65 6e 0a 70 6c 61 63 65 2c 20 |as taken.place, | 00001f90 6c 65 61 64 69 6e 67 20 74 6f 20 44 69 72 4d 65 |leading to DirMe| 00001fa0 6e 75 20 62 65 69 6e 67 20 74 6f 6c 64 20 74 68 |nu being told th| 00001fb0 61 74 20 61 20 63 6c 69 63 6b 20 6f 63 63 75 72 |at a click occur| 00001fc0 65 64 20 6f 6e 20 61 20 74 69 74 6c 65 20 62 61 |ed on a title ba| 00001fd0 72 2c 0a 77 68 65 6e 20 69 74 20 64 69 64 6e 27 |r,.when it didn'| 00001fe0 74 2e 20 59 6f 75 20 63 61 6e 20 6e 6f 77 20 6d |t. You can now m| 00001ff0 61 6b 65 20 44 69 72 4d 65 6e 75 20 6f 6e 6c 79 |ake DirMenu only| 00002000 20 72 65 73 70 6f 6e 64 20 74 6f 20 41 6c 74 2d | respond to Alt-| 00002010 4d 65 6e 75 20 63 6c 69 63 6b 73 20 69 6e 20 61 |Menu clicks in a| 00002020 0a 66 69 6c 65 72 20 77 69 6e 64 6f 77 2c 20 62 |.filer window, b| 00002030 79 20 61 6c 74 65 72 69 6e 67 20 27 43 6f 6e 66 |y altering 'Conf| 00002040 69 67 73 27 2e 20 54 68 69 73 20 72 65 6d 6f 76 |igs'. This remov| 00002050 65 73 20 74 68 65 20 6c 6f 77 2d 6c 65 76 65 6c |es the low-level| 00002060 20 63 6f 64 65 20 66 72 6f 6d 0a 44 69 72 4d 65 | code from.DirMe| 00002070 6e 75 27 73 20 6d 6f 64 75 6c 65 2e 20 54 68 65 |nu's module. The| 00002080 20 74 77 6f 20 74 69 6e 79 20 4f 62 65 79 20 66 | two tiny Obey f| 00002090 69 6c 65 73 20 27 54 42 61 72 27 20 61 6e 64 20 |iles 'TBar' and | 000020a0 27 4e 6f 54 42 61 72 27 20 61 72 65 20 6e 65 65 |'NoTBar' are nee| 000020b0 64 65 64 0a 62 65 63 61 75 73 65 20 46 69 6c 65 |ded.because File| 000020c0 72 5f 52 75 6e 20 64 6f 65 73 6e 27 74 20 61 6c |r_Run doesn't al| 000020d0 6c 6f 77 20 79 6f 75 20 74 6f 20 73 65 6e 64 20 |low you to send | 000020e0 70 61 72 61 6d 65 74 65 72 73 20 74 6f 20 77 68 |parameters to wh| 000020f0 61 74 65 76 65 72 20 69 74 20 69 73 0a 79 6f 75 |atever it is.you| 00002100 27 72 65 20 46 69 6c 65 72 5f 52 75 6e 2d 69 6e |'re Filer_Run-in| 00002110 67 2e 20 0a 0a 0a 32 2e 32 34 09 31 36 20 41 75 |g. ...2.24.16 Au| 00002120 67 20 31 39 39 33 20 0a 0a 43 6f 70 65 73 20 77 |g 1993 ..Copes w| 00002130 69 74 68 20 64 69 66 66 65 72 65 6e 74 20 41 63 |ith different Ac| 00002140 63 65 73 73 20 62 69 74 20 75 73 65 64 20 62 79 |cess bit used by| 00002150 20 46 69 6c 65 72 2b 20 31 2e 31 33 2e 20 44 6f | Filer+ 1.13. Do| 00002160 65 73 6e 27 74 20 73 65 61 72 63 68 20 66 6f 72 |esn't search for| 00002170 0a 23 3c 73 70 72 69 74 65 6e 61 6d 65 3e 20 65 |.#<spritename> e| 00002180 74 63 20 79 65 74 2e 0a 0a 0a 32 2e 32 35 09 35 |tc yet....2.25.5| 00002190 20 53 65 70 20 31 39 39 33 20 0a 0a 41 20 66 65 | Sep 1993 ..A fe| 000021a0 77 20 73 6d 61 6c 6c 20 69 6d 70 72 6f 76 65 6d |w small improvem| 000021b0 65 6e 74 73 3a 20 0a 0a 31 2e 09 54 72 65 61 74 |ents: ..1..Treat| 000021c0 73 20 69 6d 61 67 65 20 66 69 6c 65 73 79 73 74 |s image filesyst| 000021d0 65 6d 73 20 61 73 20 64 69 72 65 63 74 6f 72 69 |ems as directori| 000021e0 65 73 2c 20 61 6c 6c 6f 77 69 6e 67 20 79 6f 75 |es, allowing you| 000021f0 20 74 6f 20 6c 6f 6f 6b 20 69 6e 73 69 64 65 0a | to look inside.| 00002200 09 74 68 65 6d 2c 20 61 73 73 75 6d 69 6e 67 20 |.them, assuming | 00002210 41 72 63 46 53 20 28 6f 72 20 73 69 6d 69 6c 61 |ArcFS (or simila| 00002220 72 29 20 69 73 20 72 75 6e 6e 69 6e 67 2e 20 54 |r) is running. T| 00002230 68 65 20 6f 6c 64 20 72 65 61 64 2d 6f 6e 6c 79 |he old read-only| 00002240 20 41 72 63 46 53 0a 09 64 69 64 6e 27 74 20 73 | ArcFS..didn't s| 00002250 75 70 70 6f 72 74 20 74 68 69 73 2c 20 73 6f 20 |upport this, so | 00002260 49 20 63 6f 75 6c 64 6e 27 74 20 64 6f 20 69 74 |I couldn't do it| 00002270 20 75 6e 74 69 6c 20 6e 6f 77 2e 0a 32 2e 09 4e | until now..2..N| 00002280 6f 77 20 73 68 6f 77 73 20 63 6f 72 72 65 63 74 |ow shows correct| 00002290 20 46 69 6c 65 72 2b 20 73 70 72 69 74 65 73 20 | Filer+ sprites | 000022a0 69 6e 20 74 68 65 20 74 6f 70 20 68 61 6c 66 20 |in the top half | 000022b0 6f 66 20 74 68 65 20 46 69 6c 65 72 2d 77 69 6e |of the Filer-win| 000022c0 64 6f 77 0a 09 6d 65 6e 75 2e 20 0a 33 2e 09 4f |dow..menu. .3..O| 000022d0 62 6a 65 63 74 73 20 77 68 69 63 68 20 61 72 65 |bjects which are| 000022e0 20 68 69 64 64 65 6e 20 62 79 20 46 69 6c 65 72 | hidden by Filer| 000022f0 2b 20 28 20 62 65 63 61 75 73 65 20 62 69 74 20 |+ ( because bit | 00002300 36 20 6f 66 20 61 74 74 72 69 62 75 74 65 73 20 |6 of attributes | 00002310 69 73 0a 09 73 65 74 29 20 61 72 65 20 64 69 73 |is..set) are dis| 00002320 70 6c 61 79 65 64 20 77 69 74 68 20 66 61 69 6e |played with fain| 00002330 74 65 72 20 74 65 78 74 2c 20 62 75 74 20 61 72 |ter text, but ar| 00002340 65 20 73 74 69 6c 6c 0a 09 73 65 6c 65 63 74 61 |e still..selecta| 00002350 62 6c 65 2e 0a 0a 0a 32 2e 33 30 09 36 20 53 65 |ble....2.30.6 Se| 00002360 70 20 31 39 39 33 20 0a 0a 44 69 73 70 6c 61 79 |p 1993 ..Display| 00002370 73 20 73 70 72 69 74 65 73 20 6c 69 6b 65 20 23 |s sprites like #| 00002380 3c 6e 61 6d 65 3e 20 65 74 63 2e 20 66 6f 72 20 |<name> etc. for | 00002390 64 69 72 65 63 74 6f 72 69 65 73 2c 20 61 70 70 |directories, app| 000023a0 6c 69 63 61 74 69 6f 6e 73 20 61 6e 64 20 69 6d |lications and im| 000023b0 61 67 65 73 2c 0a 61 63 63 6f 72 64 69 6e 67 20 |ages,.according | 000023c0 74 6f 20 74 68 65 20 70 72 65 63 65 64 65 6e 63 |to the precedenc| 000023d0 65 20 72 75 6c 65 73 20 75 73 65 64 20 62 79 20 |e rules used by | 000023e0 4a 65 6e 73 20 4f 76 65 73 65 6e 27 73 20 46 69 |Jens Ovesen's Fi| 000023f0 6c 65 72 2b 20 31 2e 31 34 2e 0a 0a 0a 32 2e 34 |ler+ 1.14....2.4| 00002400 30 09 32 30 20 53 65 70 20 31 39 39 33 20 0a 0a |0.20 Sep 1993 ..| 00002410 52 65 73 70 6f 6e 64 73 20 74 6f 20 4d 65 6e 75 |Responds to Menu| 00002420 20 63 6c 69 63 6b 73 20 6f 6e 20 61 6e 79 20 77 | clicks on any w| 00002430 69 6e 64 6f 77 2c 20 73 75 63 68 20 61 73 20 61 |indow, such as a| 00002440 6e 20 21 45 64 69 74 20 6f 72 20 21 50 61 69 6e |n !Edit or !Pain| 00002450 74 20 77 69 6e 64 6f 77 2e 0a 44 69 72 4d 65 6e |t window..DirMen| 00002460 75 20 75 73 65 73 20 57 69 6d 70 5f 54 72 61 6e |u uses Wimp_Tran| 00002470 73 66 65 72 42 6c 6f 63 6b 20 74 6f 20 72 65 61 |sferBlock to rea| 00002480 64 20 74 68 65 20 28 69 6e 64 69 72 65 63 74 65 |d the (indirecte| 00002490 64 29 20 74 69 74 6c 65 20 6f 66 20 74 68 65 20 |d) title of the | 000024a0 77 69 6e 64 6f 77 2c 0a 61 73 20 69 74 20 77 69 |window,.as it wi| 000024b0 6c 6c 20 74 79 70 69 63 61 6c 6c 79 20 62 65 20 |ll typically be | 000024c0 73 74 6f 72 65 64 20 69 6e 20 61 6e 6f 74 68 65 |stored in anothe| 000024d0 72 20 61 70 70 6c 69 63 61 74 69 6f 6e 73 20 77 |r applications w| 000024e0 6f 72 6b 73 70 61 63 65 2e 20 49 66 20 74 68 65 |orkspace. If the| 000024f0 0a 69 6e 69 74 69 61 6c 20 70 61 72 74 20 6f 66 |.initial part of| 00002500 20 74 68 65 20 77 69 6e 64 6f 77 20 74 69 74 6c | the window titl| 00002510 65 20 69 73 20 61 20 66 69 6c 65 6e 61 6d 65 20 |e is a filename | 00002520 28 69 2e 65 2e 20 6d 6f 73 74 20 6f 66 20 74 68 |(i.e. most of th| 00002530 65 20 74 69 6d 65 29 2c 0a 44 69 72 4d 65 6e 75 |e time),.DirMenu| 00002540 20 77 69 6c 6c 20 64 69 73 70 6c 61 79 20 74 68 | will display th| 00002550 65 20 63 6f 6e 74 65 6e 74 73 20 6f 66 20 74 68 |e contents of th| 00002560 65 20 64 69 72 65 63 74 6f 72 79 20 62 65 6c 6f |e directory belo| 00002570 6e 67 69 6e 67 20 74 6f 20 74 68 65 20 66 69 6c |nging to the fil| 00002580 65 2c 0a 6f 74 68 65 72 77 69 73 65 20 69 74 20 |e,.otherwise it | 00002590 77 69 6c 6c 20 62 65 20 61 20 64 69 72 65 63 74 |will be a direct| 000025a0 6f 72 79 2c 20 73 6f 20 44 69 72 4d 65 6e 75 20 |ory, so DirMenu | 000025b0 77 69 6c 6c 20 64 69 73 70 6c 61 79 20 74 68 65 |will display the| 000025c0 20 63 6f 6e 74 65 6e 74 73 20 6f 66 0a 74 68 69 | contents of.thi| 000025d0 73 20 64 69 72 65 63 74 6f 72 79 2e 20 49 66 20 |s directory. If | 000025e0 74 68 65 20 77 69 6e 64 6f 77 20 63 6f 6e 74 61 |the window conta| 000025f0 69 6e 73 20 6d 6f 72 65 20 74 68 61 6e 20 61 62 |ins more than ab| 00002600 6f 75 74 20 31 30 30 20 69 63 6f 6e 73 2c 20 44 |out 100 icons, D| 00002610 69 72 4d 65 6e 75 0a 77 69 6c 6c 20 63 72 61 73 |irMenu.will cras| 00002620 68 2e 20 54 68 69 73 20 69 73 20 62 65 63 61 75 |h. This is becau| 00002630 73 65 20 74 68 65 20 53 57 49 20 77 68 69 63 68 |se the SWI which| 00002640 20 66 69 6e 64 73 20 74 68 65 20 74 69 74 6c 65 | finds the title| 00002650 20 6f 66 20 61 20 77 69 6e 64 6f 77 0a 28 57 69 | of a window.(Wi| 00002660 6d 70 5f 47 65 74 57 69 6e 64 6f 77 49 6e 66 6f |mp_GetWindowInfo| 00002670 29 20 61 6c 73 6f 20 72 65 74 75 72 6e 73 20 61 |) also returns a| 00002680 6c 6c 20 74 68 65 20 69 63 6f 6e 73 20 69 6e 20 |ll the icons in | 00002690 74 68 65 20 77 69 6e 64 6f 77 2c 20 61 6e 64 20 |the window, and | 000026a0 74 68 65 72 65 20 69 73 0a 6e 6f 20 77 61 79 20 |there is.no way | 000026b0 6f 66 20 74 65 6c 6c 69 6e 67 20 68 6f 77 20 6d |of telling how m| 000026c0 61 6e 79 20 6f 66 20 74 68 65 73 65 20 74 68 65 |any of these the| 000026d0 72 65 20 61 72 65 20 73 6f 20 79 6f 75 20 63 61 |re are so you ca| 000026e0 6e 27 74 20 67 61 72 61 6e 74 65 65 20 74 68 65 |n't garantee the| 000026f0 72 65 0a 77 69 6c 6c 20 62 65 20 65 6e 6f 75 67 |re.will be enoug| 00002700 68 20 73 70 61 63 65 20 72 65 73 65 72 76 65 64 |h space reserved| 00002710 2e 2e 2e 20 49 74 20 73 65 65 6d 73 20 63 72 61 |... It seems cra| 00002720 7a 79 20 74 6f 20 6d 65 20 74 68 61 74 20 74 68 |zy to me that th| 00002730 65 72 65 20 69 73 6e 27 74 20 61 6e 20 53 57 49 |ere isn't an SWI| 00002740 0a 77 68 69 63 68 20 72 65 74 75 72 6e 73 20 61 |.which returns a| 00002750 20 77 69 6e 64 6f 77 27 73 20 69 6e 66 6f 20 2a | window's info *| 00002760 77 69 74 68 6f 75 74 2a 20 69 74 73 20 69 63 6f |without* its ico| 00002770 6e 73 2e 20 50 6c 65 61 73 65 20 6c 65 74 20 6d |ns. Please let m| 00002780 65 20 6b 6e 6f 77 20 69 66 0a 74 68 65 72 65 20 |e know if.there | 00002790 69 73 20 28 61 20 52 49 53 43 20 4f 53 20 33 3f |is (a RISC OS 3?| 000027a0 29 20 6f 6e 65 20 74 68 61 74 20 49 20 68 61 76 |) one that I hav| 000027b0 65 6e 27 74 20 68 65 61 72 64 20 6f 66 2e 0a 0a |en't heard of...| 000027c0 41 6e 6f 74 68 65 72 20 70 72 6f 62 6c 65 6d 20 |Another problem | 000027d0 6f 63 63 75 72 73 20 77 68 65 6e 20 4d 65 6e 75 |occurs when Menu| 000027e0 20 69 73 20 63 6c 69 63 6b 65 64 20 6f 6e 20 74 | is clicked on t| 000027f0 68 65 20 74 69 74 6c 65 20 6f 66 20 61 20 5a 61 |he title of a Za| 00002800 70 20 77 69 6e 64 6f 77 2e 20 5a 61 70 0a 73 65 |p window. Zap.se| 00002810 65 6d 73 20 74 6f 20 73 74 6f 72 65 20 6f 6e 6c |ems to store onl| 00002820 79 20 74 68 65 20 76 69 73 69 62 6c 65 20 70 61 |y the visible pa| 00002830 72 74 20 6f 66 20 74 68 65 20 77 69 6e 64 6f 77 |rt of the window| 00002840 20 74 69 74 6c 65 2c 20 69 6e 20 6f 72 64 65 72 | title, in order| 00002850 20 74 6f 0a 69 6d 70 6c 65 6d 65 6e 74 20 63 75 | to.implement cu| 00002860 73 74 6f 6d 20 6a 75 73 74 69 66 69 63 61 74 69 |stom justificati| 00002870 6f 6e 20 77 68 65 72 65 20 74 68 65 20 6c 65 61 |on where the lea| 00002880 66 20 6f 66 20 74 68 65 20 70 61 74 68 20 69 73 |f of the path is| 00002890 20 61 6c 77 61 79 73 20 76 69 73 69 62 6c 65 2e | always visible.| 000028a0 0a 54 68 69 73 20 6d 65 61 6e 73 20 74 68 61 74 |.This means that| 000028b0 20 44 69 72 4d 65 6e 75 20 77 69 6c 6c 20 73 6f | DirMenu will so| 000028c0 6d 65 74 69 6d 65 73 20 6f 6e 6c 79 20 67 65 74 |metimes only get| 000028d0 20 70 61 72 74 20 6f 66 20 74 68 65 20 70 61 74 | part of the pat| 000028e0 68 20 77 68 65 6e 20 4d 65 6e 75 20 69 73 0a 63 |h when Menu is.c| 000028f0 6c 69 63 6b 65 64 20 6f 6e 20 61 20 5a 61 70 20 |licked on a Zap | 00002900 77 69 6e 64 6f 77 2e 20 0a 0a 41 73 20 75 73 75 |window. ..As usu| 00002910 61 6c 2c 20 79 6f 75 20 63 61 6e 20 61 6c 74 65 |al, you can alte| 00002920 72 20 43 6f 6e 66 69 67 73 20 73 6f 20 74 68 61 |r Configs so tha| 00002930 74 20 74 68 65 73 65 20 63 6c 69 63 6b 73 20 61 |t these clicks a| 00002940 72 65 20 69 67 6e 6f 72 65 64 2c 20 69 66 20 79 |re ignored, if y| 00002950 6f 75 20 66 69 6e 64 0a 74 68 65 73 65 20 62 75 |ou find.these bu| 00002960 67 73 20 61 20 20 70 72 6f 62 6c 65 6d 2e 20 4f |gs a problem. O| 00002970 6e 20 74 68 65 20 6f 74 68 65 72 20 68 61 6e 64 |n the other hand| 00002980 2c 20 69 66 20 79 6f 75 20 6b 6e 6f 77 20 6f 66 |, if you know of| 00002990 20 61 6e 79 20 73 6f 6c 75 74 69 6f 6e 73 20 74 | any solutions t| 000029a0 6f 0a 74 68 65 6d 2c 20 70 6c 65 61 73 65 20 74 |o.them, please t| 000029b0 65 6c 6c 20 6d 65 21 20 0a 0a 49 27 76 65 20 67 |ell me! ..I've g| 000029c0 6f 74 20 72 69 64 20 6f 66 20 74 68 65 20 4f 62 |ot rid of the Ob| 000029d0 65 79 20 66 69 6c 65 73 20 27 54 42 61 72 27 20 |ey files 'TBar' | 000029e0 61 6e 64 20 27 4e 6f 54 42 61 72 27 2c 20 62 65 |and 'NoTBar', be| 000029f0 63 61 75 73 65 20 74 68 65 72 65 20 61 72 65 20 |cause there are | 00002a00 6e 6f 77 0a 74 6f 6f 20 6d 61 6e 79 20 6f 70 74 |now.too many opt| 00002a10 69 6f 6e 73 20 74 6f 20 73 65 6e 64 20 74 6f 20 |ions to send to | 00002a20 74 68 65 20 4d 6f 64 75 6c 65 2d 6d 61 6b 65 72 |the Module-maker| 00002a30 20 21 4d 61 6b 65 4d 6f 64 2e 20 49 20 6e 6f 77 | !MakeMod. I now| 00002a40 20 75 73 65 20 74 68 65 20 73 79 73 74 65 6d 0a | use the system.| 00002a50 76 61 72 69 61 62 6c 65 20 27 44 69 72 4d 65 6e |variable 'DirMen| 00002a60 75 24 4f 70 74 69 6f 6e 73 27 20 74 6f 20 70 61 |u$Options' to pa| 00002a70 73 73 20 74 68 65 20 70 61 72 61 6d 65 74 65 72 |ss the parameter| 00002a80 73 20 74 6f 20 21 4d 61 6b 65 4d 6f 64 2e 0a 0a |s to !MakeMod...| 00002a90 0a 32 2e 34 31 09 32 32 20 53 65 70 20 31 39 39 |.2.41.22 Sep 199| 00002aa0 33 0a 0a 4f 53 5f 46 69 6c 65 20 28 77 69 74 68 |3..OS_File (with| 00002ab0 20 72 30 20 3d 20 35 29 20 73 68 6f 75 6c 64 20 | r0 = 5) should | 00002ac0 72 65 74 75 72 6e 20 30 20 69 6e 20 72 30 20 69 |return 0 in r0 i| 00002ad0 66 20 61 20 66 69 6c 65 20 64 6f 65 73 6e 27 74 |f a file doesn't| 00002ae0 20 65 78 69 73 74 2c 20 62 75 74 0a 73 6f 6d 65 | exist, but.some| 00002af0 74 69 6d 65 73 20 69 74 20 6a 75 73 74 20 67 69 |times it just gi| 00002b00 76 65 73 20 61 6e 20 53 57 49 20 65 72 72 6f 72 |ves an SWI error| 00002b10 2c 20 73 6f 20 44 69 72 4d 65 6e 75 20 6e 6f 77 |, so DirMenu now| 00002b20 20 6c 6f 6f 6b 73 20 61 74 20 74 68 65 20 53 57 | looks at the SW| 00002b30 49 20 65 72 72 6f 72 0a 66 6c 61 67 20 62 65 66 |I error.flag bef| 00002b40 6f 72 65 20 61 63 63 65 70 74 69 6e 67 20 61 20 |ore accepting a | 00002b50 77 69 6e 64 6f 77 20 74 69 74 6c 65 20 61 73 20 |window title as | 00002b60 61 20 76 61 6c 69 64 20 70 61 74 68 6e 61 6d 65 |a valid pathname| 00002b70 2e 20 50 72 65 76 69 6f 75 73 6c 79 2c 0a 4d 65 |. Previously,.Me| 00002b80 6e 75 2d 63 6c 69 63 6b 69 6e 67 20 6f 6e 20 61 |nu-clicking on a| 00002b90 20 5a 61 70 20 77 69 6e 64 6f 77 20 63 6f 75 6c | Zap window coul| 00002ba0 64 20 6d 61 6b 65 20 44 69 72 4d 65 6e 75 20 6f |d make DirMenu o| 00002bb0 70 65 6e 20 73 74 75 70 69 64 20 6d 65 6e 75 73 |pen stupid menus| 00002bc0 2e 20 41 6c 73 6f 0a 65 78 70 6c 69 63 69 74 6c |. Also.explicitl| 00002bd0 79 20 63 6c 6f 73 65 73 20 61 6e 79 20 65 78 69 |y closes any exi| 00002be0 73 74 69 6e 67 20 6d 65 6e 75 2c 20 75 73 69 6e |sting menu, usin| 00002bf0 67 20 57 69 6d 70 5f 43 72 65 61 74 65 4d 65 6e |g Wimp_CreateMen| 00002c00 75 20 77 69 74 68 20 72 31 3d 2d 31 2c 20 77 68 |u with r1=-1, wh| 00002c10 65 6e 20 61 0a 74 69 74 6c 65 2d 62 61 72 20 63 |en a.title-bar c| 00002c20 6c 69 63 6b 20 69 73 20 64 65 74 65 63 74 65 64 |lick is detected| 00002c30 2c 20 69 6e 73 74 65 61 64 20 6f 66 20 77 61 69 |, instead of wai| 00002c40 74 69 6e 67 20 66 6f 72 20 74 68 65 20 57 69 6d |ting for the Wim| 00002c50 70 20 74 6f 20 64 6f 20 69 74 2e 20 49 0a 74 68 |p to do it. I.th| 00002c60 6f 75 67 68 74 20 74 68 69 73 20 6d 69 67 68 74 |ought this might| 00002c70 20 73 61 76 65 20 61 20 6c 69 74 74 6c 65 20 74 | save a little t| 00002c80 69 6d 65 20 6f 6e 20 73 6c 6f 77 20 6d 61 63 68 |ime on slow mach| 00002c90 69 6e 65 73 2e 0a 0a 0a 32 2e 34 32 09 32 39 20 |ines....2.42.29 | 00002ca0 4f 63 74 20 31 39 39 33 0a 0a 44 69 72 4d 65 6e |Oct 1993..DirMen| 00002cb0 75 20 71 75 69 74 73 20 77 69 74 68 20 61 6e 20 |u quits with an | 00002cc0 65 72 72 6f 72 20 6d 65 73 73 61 67 65 20 69 66 |error message if| 00002cd0 20 69 74 20 66 69 6e 64 73 20 69 74 20 68 61 73 | it finds it has| 00002ce0 20 74 72 69 65 64 20 74 6f 20 67 65 74 20 74 69 | tried to get ti| 00002cf0 74 6c 65 20 6f 66 0a 61 20 77 69 6e 64 6f 77 20 |tle of.a window | 00002d00 77 69 74 68 20 6d 6f 72 65 20 74 68 61 6e 20 31 |with more than 1| 00002d10 30 30 20 69 63 6f 6e 73 2e 20 54 68 69 73 20 69 |00 icons. This i| 00002d20 73 20 62 65 63 61 75 73 65 20 73 6f 6d 65 20 6f |s because some o| 00002d30 66 20 44 69 72 4d 65 6e 75 27 73 20 6d 65 6d 6f |f DirMenu's memo| 00002d40 72 79 0a 77 69 6c 6c 20 63 65 72 74 61 69 6e 6c |ry.will certainl| 00002d50 79 20 68 61 76 65 20 62 65 65 6e 20 6f 76 65 72 |y have been over| 00002d60 77 72 69 74 74 65 6e 2c 20 61 6e 64 20 74 68 69 |written, and thi| 00002d70 73 20 63 6f 75 6c 64 20 68 61 76 65 20 75 6e 70 |s could have unp| 00002d80 6c 65 61 73 61 6e 74 0a 63 6f 6e 73 65 71 75 65 |leasant.conseque| 00002d90 6e 63 65 73 20 69 66 20 69 67 6e 6f 72 65 64 2e |nces if ignored.| 00002da0 0a 0a 0a 32 2e 35 30 09 32 39 20 4f 63 74 20 31 |...2.50.29 Oct 1| 00002db0 39 39 33 0a 0a 43 61 6e 20 68 61 76 65 20 61 20 |993..Can have a | 00002dc0 27 53 65 74 20 43 53 44 27 20 69 74 65 6d 20 69 |'Set CSD' item i| 00002dd0 6e 20 61 20 77 69 6e 64 6f 77 20 6d 65 6e 75 0a |n a window menu.| 00002de0 0a 0a 32 2e 35 31 09 33 31 20 4f 63 74 20 31 39 |..2.51.31 Oct 19| 00002df0 39 33 0a 0a 43 61 6e 20 66 6f 72 63 65 20 61 20 |93..Can force a | 00002e00 27 53 65 74 20 43 53 44 27 20 69 74 65 6d 20 74 |'Set CSD' item t| 00002e10 6f 20 61 70 70 65 61 72 20 62 79 20 68 6f 6c 64 |o appear by hold| 00002e20 69 6e 67 20 64 6f 77 6e 20 3c 53 68 69 66 74 3e |ing down <Shift>| 00002e30 20 77 68 69 6c 65 20 4d 65 6e 75 20 0a 63 6c 69 | while Menu .cli| 00002e40 63 6b 69 6e 67 20 6f 6e 20 74 68 65 20 74 69 74 |cking on the tit| 00002e50 6c 65 62 61 72 20 6f 66 20 61 20 77 69 6e 64 6f |lebar of a windo| 00002e60 77 2e 0a 0a 0a 32 2e 35 32 09 31 31 20 4e 6f 76 |w....2.52.11 Nov| 00002e70 20 31 39 39 33 0a 0a 55 73 65 73 20 6d 6f 64 69 | 1993..Uses modi| 00002e80 66 69 65 64 20 52 4f 33 20 76 65 72 73 69 6f 6e |fied RO3 version| 00002e90 20 6f 66 20 57 69 6d 70 5f 47 65 74 57 69 6e 64 | of Wimp_GetWind| 00002ea0 6f 77 49 6e 66 6f 2c 20 77 68 69 63 68 20 69 67 |owInfo, which ig| 00002eb0 6e 6f 72 65 73 20 61 6e 79 20 69 63 6f 6e 73 20 |nores any icons | 00002ec0 69 6e 0a 74 68 65 20 77 69 6e 64 6f 77 2e 20 48 |in.the window. H| 00002ed0 65 6e 63 65 20 44 69 72 4d 65 6e 75 20 64 6f 65 |ence DirMenu doe| 00002ee0 73 6e 27 74 20 71 75 69 74 20 69 66 20 79 6f 75 |sn't quit if you| 00002ef0 20 63 6c 69 63 6b 20 6f 6e 20 61 20 77 69 6e 64 | click on a wind| 00002f00 6f 77 20 77 69 74 68 20 3e 20 31 30 30 0a 69 63 |ow with > 100.ic| 00002f10 6f 6e 73 2e 20 54 68 61 6e 6b 73 20 74 6f 20 43 |ons. Thanks to C| 00002f20 6c 69 76 65 20 4a 6f 6e 65 73 20 61 6e 64 20 45 |live Jones and E| 00002f30 72 69 6b 20 64 65 20 4b 6f 72 74 20 66 6f 72 20 |rik de Kort for | 00002f40 74 65 6c 6c 69 6e 67 20 6d 65 20 61 62 6f 75 74 |telling me about| 00002f50 20 74 68 69 73 2e 20 28 74 68 65 0a 74 72 69 63 | this. (the.tric| 00002f60 6b 20 69 73 20 74 6f 20 73 65 74 20 62 69 74 20 |k is to set bit | 00002f70 30 20 6f 66 20 52 31 20 77 68 65 6e 20 63 61 6c |0 of R1 when cal| 00002f80 6c 69 6e 67 20 57 69 6d 70 5f 47 65 74 57 69 6e |ling Wimp_GetWin| 00002f90 64 6f 77 49 6e 66 6f 2e 20 52 31 20 70 6f 69 6e |dowInfo. R1 poin| 00002fa0 74 73 20 74 6f 20 74 68 65 0a 62 6c 6f 63 6b 20 |ts to the.block | 00002fb0 6f 66 20 6d 65 6d 6f 72 79 20 72 65 73 65 72 76 |of memory reserv| 00002fc0 65 64 20 66 6f 72 20 74 68 65 20 77 69 6e 64 6f |ed for the windo| 00002fd0 77 20 69 6e 66 6f 72 6d 61 74 69 6f 6e 2c 20 77 |w information, w| 00002fe0 68 69 63 68 20 69 73 20 77 6f 72 64 20 61 6c 69 |hich is word ali| 00002ff0 67 6e 65 64 20 73 6f 0a 74 68 65 20 62 6f 74 74 |gned so.the bott| 00003000 6f 6d 20 32 20 62 69 74 73 20 61 72 65 20 75 6e |om 2 bits are un| 00003010 75 73 65 64 29 2e 20 41 6c 73 6f 20 73 74 6f 70 |used). Also stop| 00003020 70 65 64 20 74 68 65 20 63 6c 6f 73 69 6e 67 20 |ped the closing | 00003030 6f 66 20 65 78 69 73 74 69 6e 67 20 6d 65 6e 75 |of existing menu| 00003040 73 0a 28 73 65 65 20 76 2e 20 32 2e 34 31 29 20 |s.(see v. 2.41) | 00003050 61 73 20 49 20 74 68 69 6e 6b 20 74 68 69 73 20 |as I think this | 00003060 77 61 73 20 67 69 76 69 6e 67 20 73 74 72 61 6e |was giving stran| 00003070 67 65 20 27 55 6e 6b 6e 6f 77 6e 20 4f 53 5f 4d |ge 'Unknown OS_M| 00003080 6f 64 75 6c 65 20 63 61 6c 6c 27 0a 65 72 72 6f |odule call'.erro| 00003090 72 73 2e 0a 0a 0a 32 2e 35 33 09 31 38 20 4a 61 |rs....2.53.18 Ja| 000030a0 6e 20 31 39 39 34 0a 0a 49 6d 70 72 6f 76 65 64 |n 1994..Improved| 000030b0 20 74 68 65 20 65 72 72 6f 72 20 68 61 6e 64 6c | the error handl| 000030c0 69 6e 67 20 77 68 65 6e 20 61 6e 20 69 74 65 6d |ing when an item| 000030d0 20 69 6e 20 61 6e 20 69 63 6f 6e 2d 62 61 72 20 | in an icon-bar | 000030e0 6d 65 6e 75 20 77 61 73 20 69 6e 63 6f 72 72 65 |menu was incorre| 000030f0 63 74 6c 79 0a 73 70 65 63 69 66 69 65 64 20 61 |ctly.specified a| 00003100 73 20 28 66 6f 72 20 65 2e 67 2e 29 20 22 44 65 |s (for e.g.) "De| 00003110 73 6b 4c 69 62 3a 20 2a 22 20 69 6e 73 74 65 61 |skLib: *" instea| 00003120 64 20 6f 66 20 22 44 65 73 6b 4c 69 62 3a 2a 22 |d of "DeskLib:*"| 00003130 0a 0a 0a 32 2e 36 30 09 32 20 46 65 62 20 31 39 |...2.60.2 Feb 19| 00003140 39 34 0a 0a 54 69 64 69 65 64 20 75 70 a0 74 68 |94..Tidied up.th| 00003150 65 20 63 6f 64 65 20 67 65 6e 65 72 61 6c 79 2e |e code generaly.| 00003160 20 0a 43 61 6c 6c 65 64 20 27 54 72 65 65 4d 65 | .Called 'TreeMe| 00003170 6e 75 27 20 6e 6f 77 2e 20 41 6c 62 65 72 74 20 |nu' now. Albert | 00003180 4b 6f 65 6c 6d 61 6e 73 20 61 74 20 74 68 65 20 |Koelmans at the | 00003190 6e 65 77 63 61 73 74 6c 65 20 73 65 72 76 65 72 |newcastle server| 000031a0 20 73 74 6f 72 65 64 20 69 74 0a 75 6e 64 65 72 | stored it.under| 000031b0 20 74 68 69 73 20 6e 61 6d 65 2c 20 61 6e 64 20 | this name, and | 000031c0 69 74 20 73 6f 75 6e 64 73 20 62 65 74 74 65 72 |it sounds better| 000031d0 20 74 68 61 74 20 27 44 69 72 28 65 29 20 6d 65 | that 'Dir(e) me| 000031e0 6e 75 27 21 20 0a 49 20 74 72 69 65 64 20 74 6f |nu'! .I tried to| 000031f0 20 6d 61 6b 65 20 74 68 65 20 6d 65 6e 75 73 20 | make the menus | 00003200 61 75 74 6f 2d 73 63 72 6f 6c 6c 69 6e 67 2c 20 |auto-scrolling, | 00003210 62 75 74 20 66 61 69 6c 65 64 20 6d 69 73 65 72 |but failed miser| 00003220 61 62 6c 79 20 2d 4d 65 6e 75 73 20 62 65 68 61 |ably -Menus beha| 00003230 76 65 0a 6c 69 6b 65 20 6e 6f 72 6d 61 6c 20 77 |ve.like normal w| 00003240 69 6e 64 6f 77 73 2c 20 62 75 74 20 64 6f 6e 27 |indows, but don'| 00003250 74 20 73 65 65 6d 20 74 6f 20 72 65 73 70 6f 6e |t seem to respon| 00003260 64 20 74 6f 20 77 69 6d 70 20 6d 65 73 73 61 67 |d to wimp messag| 00003270 65 73 2e 20 41 6c 73 6f 2c 20 74 68 65 79 0a 64 |es. Also, they.d| 00003280 6f 6e 27 74 20 73 65 65 6d 20 74 6f 20 68 61 76 |on't seem to hav| 00003290 65 20 61 20 76 61 6c 69 64 20 74 61 73 6b 68 61 |e a valid taskha| 000032a0 6e 64 6c 65 0a 43 68 61 6e 67 65 64 20 74 6f 20 |ndle.Changed to | 000032b0 74 68 65 20 66 6f 72 6d 61 74 20 6f 66 20 74 68 |the format of th| 000032c0 65 20 27 43 6f 6e 66 69 67 73 27 20 66 69 6c 65 |e 'Configs' file| 000032d0 2c 20 73 6f 20 74 68 61 74 20 74 68 65 20 68 65 |, so that the he| 000032e0 6c 70 20 63 6f 6d 6d 65 6e 74 73 20 64 6f 6e 27 |lp comments don'| 000032f0 74 0a 74 61 6b 65 20 75 70 20 73 6f 20 6d 75 63 |t.take up so muc| 00003300 68 20 73 70 61 63 65 2c 20 61 6e 64 20 72 65 6e |h space, and ren| 00003310 61 6d 65 64 20 69 74 20 27 21 43 6f 6e 66 69 67 |amed it '!Config| 00003320 73 27 2e 0a 0a 0a 32 2e 36 32 09 31 34 20 46 65 |s'....2.62.14 Fe| 00003330 62 20 31 39 39 34 0a 0a 49 27 76 65 20 6a 75 73 |b 1994..I've jus| 00003340 74 20 62 6f 75 67 68 74 20 74 68 65 20 50 52 4d |t bought the PRM| 00003350 27 73 20 20 38 29 20 61 6e 64 20 66 6f 75 6e 64 |'s 8) and found| 00003360 20 74 68 61 74 20 77 68 65 6e 20 79 6f 75 20 68 | that when you h| 00003370 61 76 65 20 66 69 6e 69 73 68 65 64 20 63 6c 61 |ave finished cla| 00003380 69 6d 69 6e 67 0a 61 6e 20 65 76 65 6e 74 2c 20 |iming.an event, | 00003390 79 6f 75 20 73 68 6f 75 6c 64 20 63 61 6c 6c 20 |you should call | 000033a0 4f 53 5f 42 79 74 65 20 31 33 2c 20 2a 74 68 65 |OS_Byte 13, *the| 000033b0 6e 2a 20 4f 53 5f 52 65 6c 65 61 73 65 2e 20 28 |n* OS_Release. (| 000033c0 49 20 75 73 65 64 20 74 6f 20 64 6f 20 69 74 20 |I used to do it | 000033d0 74 68 65 0a 6f 74 68 65 72 20 77 61 79 20 72 6f |the.other way ro| 000033e0 75 6e 64 2e 0a 41 64 64 65 64 20 74 68 65 20 27 |und..Added the '| 000033f0 72 65 76 65 72 73 65 20 6d 6f 75 73 65 20 62 75 |reverse mouse bu| 00003400 74 74 6f 6e 27 20 6f 70 74 69 6f 6e 2c 20 61 6e |tton' option, an| 00003410 64 20 74 68 65 20 27 53 65 74 20 43 53 44 20 77 |d the 'Set CSD w| 00003420 69 74 68 20 3c 41 6c 74 3e 2e 20 54 68 65 73 65 |ith <Alt>. These| 00003430 20 0a 77 65 72 65 20 62 6f 74 68 20 72 65 71 75 | .were both requ| 00003440 65 73 74 65 64 20 62 79 20 44 65 6e 6e 69 73 20 |ested by Dennis | 00003450 48 6f 77 65 20 61 67 65 73 20 61 67 6f 2c 20 62 |Howe ages ago, b| 00003460 75 74 20 49 27 76 65 20 6f 6e 6c 79 20 6a 75 73 |ut I've only jus| 00003470 74 20 67 6f 74 20 72 6f 75 6e 64 20 74 6f 20 0a |t got round to .| 00003480 74 68 65 6d 2e 0a 21 54 72 65 65 4d 65 6e 75 20 |them..!TreeMenu | 00003490 6e 6f 77 20 74 65 6c 6c 73 20 79 6f 75 20 69 66 |now tells you if| 000034a0 20 61 6e 20 65 72 72 6f 72 20 6f 63 63 75 72 72 | an error occurr| 000034b0 65 64 20 66 72 6f 6d 20 74 68 65 20 27 46 69 6c |ed from the 'Fil| 000034c0 65 72 5f 52 75 6e 20 2e 2e 2e 27 20 6f 72 20 0a |er_Run ...' or .| 000034d0 27 44 69 72 20 2e 2e 2e 27 20 63 6f 6d 6d 61 6e |'Dir ...' comman| 000034e0 64 2e 20 54 68 69 73 20 69 73 20 75 73 65 66 75 |d. This is usefu| 000034f0 6c 20 69 66 20 79 6f 75 20 74 72 79 20 74 6f 20 |l if you try to | 00003500 73 65 74 20 74 68 65 20 43 53 44 20 74 6f 20 61 |set the CSD to a| 00003510 20 66 69 6c 65 2e 0a 0a 0a 32 2e 37 30 09 32 31 | file....2.70.21| 00003520 20 46 65 62 20 31 39 39 34 0a 0a 46 69 6e 61 6c | Feb 1994..Final| 00003530 6c 79 20 6d 61 6e 61 67 65 64 20 74 6f 20 6d 61 |ly managed to ma| 00003540 6b 65 20 74 68 65 20 6d 65 6e 75 73 20 61 75 74 |ke the menus aut| 00003550 6f 2d 73 63 72 6f 6c 6c 69 6e 67 2e 0a 54 68 65 |o-scrolling..The| 00003560 20 57 49 4d 50 20 73 65 65 6d 73 20 74 6f 20 75 | WIMP seems to u| 00003570 73 65 20 4f 53 5f 4d 6f 75 73 65 20 74 6f 20 72 |se OS_Mouse to r| 00003580 65 61 64 20 74 68 65 20 70 6f 69 6e 74 65 72 20 |ead the pointer | 00003590 70 6f 73 69 74 69 6f 6e 2f 62 75 74 74 6f 6e 20 |position/button | 000035a0 73 74 61 74 65 2c 0a 73 6f 20 49 20 74 72 69 65 |state,.so I trie| 000035b0 64 20 69 6e 74 65 72 63 65 70 74 69 6e 67 20 74 |d intercepting t| 000035c0 68 69 73 20 53 57 49 2c 20 61 6e 64 20 72 65 74 |his SWI, and ret| 000035d0 75 72 6e 69 6e 67 20 61 20 62 6f 67 75 73 20 63 |urning a bogus c| 000035e0 6c 69 63 6b 2e 20 54 68 69 73 20 77 6f 72 6b 65 |lick. This worke| 000035f0 64 2c 0a 62 75 74 20 72 65 71 75 69 72 65 73 20 |d,.but requires | 00003600 61 20 73 65 70 61 72 61 74 65 20 6d 6f 64 75 6c |a separate modul| 00003610 65 20 77 69 74 68 20 61 20 53 57 49 2c 20 61 6e |e with a SWI, an| 00003620 64 20 77 6f 75 6c 64 20 69 6e 76 6f 6c 76 65 20 |d would involve | 00003630 63 6f 64 69 6e 67 20 61 0a 62 75 66 66 65 72 20 |coding a.buffer | 00003640 69 6e 20 6f 72 64 65 72 20 74 6f 20 66 61 6b 65 |in order to fake| 00003650 20 62 75 74 74 6f 6e 20 70 72 65 73 73 20 2b 20 | button press + | 00003660 62 75 74 6f 6e 20 72 65 6c 65 61 73 65 2e 20 54 |buton release. T| 00003670 68 65 20 73 6f 6c 75 74 69 6f 6e 20 49 20 6e 6f |he solution I no| 00003680 77 0a 75 73 65 20 69 73 20 74 6f 20 61 64 64 20 |w.use is to add | 00003690 6d 6f 75 73 65 20 65 76 65 6e 74 73 20 69 6e 74 |mouse events int| 000036a0 6f 20 4f 53 5f 4d 6f 75 73 65 27 73 20 62 75 66 |o OS_Mouse's buf| 000036b0 66 65 72 2c 20 75 73 69 6e 67 20 4f 53 5f 42 79 |fer, using OS_By| 000036c0 74 65 20 31 33 38 2e 20 54 68 65 0a 50 52 4d 27 |te 138. The.PRM'| 000036d0 73 20 73 61 79 20 74 68 69 73 20 69 73 6e 27 74 |s say this isn't| 000036e0 20 72 65 63 6f 6d 6d 65 6e 64 65 64 2c 20 62 75 | recommended, bu| 000036f0 74 20 69 66 20 79 6f 75 20 6d 75 73 74 20 64 6f |t if you must do| 00003700 20 74 68 69 73 2c 20 79 6f 75 20 73 68 6f 75 6c | this, you shoul| 00003710 64 0a 64 69 73 61 62 6c 65 20 65 76 65 6e 74 73 |d.disable events| 00003720 20 77 68 69 6c 65 20 79 6f 75 20 61 72 65 20 77 | while you are w| 00003730 72 69 74 69 6e 67 20 74 6f 20 74 68 65 20 62 75 |riting to the bu| 00003740 66 66 65 72 2c 20 69 6e 20 63 61 73 65 20 61 20 |ffer, in case a | 00003750 72 65 61 6c 20 6d 6f 75 73 65 0a 65 76 65 6e 74 |real mouse.event| 00003760 20 28 65 2e 67 2e 20 74 68 65 20 75 73 65 72 20 | (e.g. the user | 00003770 63 6c 69 63 6b 69 6e 67 29 20 61 72 72 69 76 65 |clicking) arrive| 00003780 73 20 77 68 65 6e 20 79 6f 75 20 61 72 65 20 69 |s when you are i| 00003790 6e 20 74 68 65 20 6d 69 64 64 6c 65 20 6f 66 20 |n the middle of | 000037a0 61 64 64 69 6e 67 0a 62 79 74 65 73 20 74 6f 20 |adding.bytes to | 000037b0 74 68 65 20 62 75 66 66 65 72 2e 20 0a 49 27 6d |the buffer. .I'm| 000037c0 20 6e 6f 74 20 71 75 69 74 65 20 73 75 72 65 20 | not quite sure | 000037d0 77 68 79 20 74 68 69 73 20 69 73 20 6e 6f 74 20 |why this is not | 000037e0 72 65 63 63 6f 6d 65 6e 64 65 64 2c 20 61 6e 64 |reccomended, and| 000037f0 20 49 27 6d 20 66 61 69 72 6c 79 20 63 65 72 74 | I'm fairly cert| 00003800 61 69 6e 0a 74 68 65 72 65 20 69 73 6e 27 74 20 |ain.there isn't | 00003810 61 20 63 6c 65 61 6e 65 72 20 77 61 79 2e 20 41 |a cleaner way. A| 00003820 6e 79 77 61 79 2c 20 69 74 20 61 6c 6c 20 73 65 |nyway, it all se| 00003830 65 6d 73 20 74 6f 20 77 6f 72 6b 20 4f 4b 2e 0a |ems to work OK..| 00003840 54 68 65 20 73 63 72 6f 6c 6c 69 6e 67 20 69 73 |The scrolling is| 00003850 6e 27 74 20 76 65 72 79 20 73 6d 6f 6f 74 68 2c |n't very smooth,| 00003860 20 61 6e 64 20 68 61 73 20 6f 6e 6c 79 20 32 20 | and has only 2 | 00003870 73 70 65 65 64 73 2c 20 62 75 74 20 69 73 20 73 |speeds, but is s| 00003880 74 69 6c 6c 20 76 65 72 79 20 0a 75 73 65 66 75 |till very .usefu| 00003890 6c 2e 0a |l..| 00003893