MenuFix v4.3 Written by Dion Vingerhoets 17 APR 1993 USAGE: MENUFIX [Q/q][filename] MENU STRIP FIXER FOR ANY MENU OF A NEWLY EXECUTED PROGRAM CHANGES ANY COMMAND CHARACTER FOLLOWING THE SYNTAX WITHIN THE FILE SPECIFIED BY THE filename COMMAND LINE PARAMETER EACH LINE WITHIN THE COMMAND LIST FILE SHOULD FOLLOW THE SYNTAX: MENUTITLE,ITEMNAME,='command character'[+/-][n] or MENUTITLE,ITEMNAME,SUBITEMNAME,='command character'[+/-][n] where a space for COMMAND CHARACTER turns the command key sequence off any character (shifted or otherwise) can be the replacement character or a new character if there is none to start with. = is a searched for flag signifing the start of the parameter segment + causes the box width to be incremented n characters - causes the box width to be decremented n characters n is the number of character spaces to be incremented or decremented eg Window,Show,All Files,=F+4 THIS FINDS THE "All Files" SUBMENUITEM FROM THE MENUITEM OF "Show" WITHIN THE "Window" MENU AND CHANGES (OR CREATES) THE COMMAND KEY TO RIGHT-AMIGA-F AND EXTENDS THE SUBMENUITEM'S BOX WIDTH BY FOUR CHARACTERS TO ACCOMODATE THE NEW CHARACTERS THAT WILL APPEAR. eg Window,Show,All Files,= +0 IN THIS CASE THE COMMAND KEY SEQUENCING IS REMOVED LEAVING THE THE BOX WIDTH AS IS eg Window,Show,All Files,=A-8 HERE THE COMMAND KEY IS CHANGED TO RIGHT-AMIGA-A AND THE BOX IS REDUCED BY 8 CHARACTERS NOTE: THE PARAMETERS SEGMENT MUST BE '=%+n' or '=%-n' FOLLOWED BY ANY SEPARATOR OR LINE FEED CHARACTER. IN TOTAL, THE PARAMETERS SEGMENT MUST BE 4 CHARACTERS AND ONE EOL. THIS PROGRAM PATCHES THE SETMENUSTRIP FUNCTION AND STAYS IN MEMORY SO THAT EACH TIME THE TARGET MENU IS CREATED IT WILL BE MODIFIED TO THE SPECIFICATIONS SET AT THE TIME OF INCEPTION. THERE IS NO IDLE CPU USAGE AND I DOUBT ANY UTILITY WILL BE ABLE TO RECOGNIZE THIS PATCH NOR WILL ANY VIRUS KILLER TAKE NOTE WHICH IS THE WAY IT SHOULD BE WITH PATCHES. There are sample WB2.0 and WB1.3 data files included in the s: directory to be used as examples. MenuFix.txt for WB2.0 also contains modifications to the BASIC menu. Beacuse the window titles change with the program loaded into BASIC I have not made MENUFIX window title dependent. So what? Well, when another program with open as a menuitem is loaded, it will be given a command key and the width adjusted. This new width may not be suitable for the menu setup and make things untidy. Nothing will go wrong with the program but if you like menu's to look neat and tidy, remove MENUFIX first. BUG REPORT: ImageLab will not work with MENUFIX installed and I cannot find out why. If you can find the incompatability then let me know. note: MenuFix4.3 used on WorkBench after WB is active needs a window to be opened as WB updates it's menustrip then. Most likely MenuFix4.3 will be run before WB loading so there will be no problems. When using WorkBench 1.3, the removal of MenuFix4.3 does not mean that the menustrip will return to normal as there is no ResetWB command like that on WB2.0. Since WB1.3 cannot be removed, ( as far as I know :-) the only way to remove the command chars is to load WB1.3 again. This leaves the last WorkBench in memory so reload only if you have the memory to spare.