Download DiskMaster 2 - Retro Commodore
Transcript
-~-· I 34 Disk.Master 2.0 User Manual 35 Adding a menu item is quite similar to adding a command to the command window. The command strings for both are nearly identical, with only a few minor differences. When adding a menu item, you must decide whether to add the new item to an existing menu or create a new menu for the item. Also, menu items are all displayed in the sam ecolor. However, you can assign a keyboard equivalent to the menu item. To add a menu item, select Project\Add Menu Item. A string requester will appear showing a command template in its title bar. ,:!•JE[!Uln3c:DIIEE=::==:~~~=¥~~:=¥~lE::JI:!!!l Connand ~t . te ..wlate: Edit, E, Henu,Title,A,<cot'OM<O.nd string> ScrBack; External C:Ed xs; !continue! ScrFttl l jcancell The command template is as follows: Menu, Title, A, <command string> Menu- This is the name of an existing menu to which the new item is to be added, or the name of an entirely new menu. The menu is followed by a comma (,). Title- This is the text that will be displayed as the menu itenl to identify the command string. The title is followed by a comma(,). A- This is an optional keyboard equivalent. Almost any printable character can be used in conjunction with the [Right Amiga] key to invoke the menu command. <command string> - This is identical to the command string used when adding commands to the command window. Any command that can be added to the command window can also be added to a pull-down menu, and vice versa. Note: The entire command, including menu, title, command string, etc. , can be no longer than 255 characters. Enter the following text into the string requester then press [Return] or click on Continue. Text, Edit, E, ScrBack; External C:Ed %s; ScrFront Text is the name of a new menu to be added to the DiskMaster menus. Edit is the name of the command itself, and E is the keyboard equivalent that will be US2d to invoke this menu command without using the mouse. The remainder of the command is the same command 1ve used in the previous section. Check to see that the command has been added to the list of menus by pressing the Menu Button. The menu Text should appear at the end of the list of menus. Pull dmvn the Text menu. The only entry in this menu is Edit with a keyboard equivalent of [Right Amiga] + [E]. Select the file called "TextFile" and invoke the Text\Edit command using the mouse. It should operate identically to the Edit command we placed in the command window. Exit the "Ed" program (press [Esc] then [Q] then [Return]), then select "TextFile" again and invoke the command again using the keyboard equivalent. When yDu are satisfied that it works as advertised, exit "Ed", and save the new menu command to the "Startup.DM" file. 3.4. Custom Information Display 3.4.1. Display Format DiskMaster displays information about each file and directory displayed in its file display windows. The information often exceeds the windows ability to display it (horizontally). Your particular application may require that you be able to see certain information without scrolling the display to the right.