Program: Superbase Version: 2.0 Topic: Superbase Menu Bar Date: January 8, 1993 Summary: This technote explains how to create a customized menu bar and how to get back to the Superbase default menu. To create a customized menu Superbase has a standard menu bar that displays when you start Superbase. However, you can customize this menu bar so that it displays only the items that interest you. Do this by selecting File/Modify/Menu. This brings up the Superbase Menu Editor dialog box where you can make modifications to the current menu bar. You should maximize the Menu Editor dialog box to avoid confusion among different menu bars. Let's say, you want to restrict your users from changing the printer set up options. To remove the Print Setup option from the File menu, follow the steps below: 1. In the Menu Editor dialog box, select the item File/ Print Setup from the current menu bar. 2. To remove the Print Setup option, select Edit/Cut from the menu bar for the Menu Editor (the one on the top with four menu options). 3. To apply this change in the current Superbase session, select File/Use as current from the menu bar for the Menu Editor. 4. Exit the Menu Editor by selecting File/Exit. 5. The Menu Editor allows you to save at this point. However, you may choose not to save if you want to use the modified menu bar only for the current session. 6. To see if the current session of Superbase reflects the change, verify that the Print Setup option is not available under the File menu. In the Menu editor, the commands under the Edit menu and Menu Items affect the selected item. For example, in step 2, Edit/Cut removes an item from the menu and places it on the Clipboard. You can then Edit/Paste the item in a different place on the menu. Edit/Delete removes the item from the menu without copying it to the Clipboard. The Menu Items/Properties defines the various properties associated with the menu option. Refer to Chapter 4 on Creating an application in the "Developing Applications" manual for more information. The customized menu options can be saved as a program file to be used in your application. If you want to store the customized menu as the default menu, then save it with the name MNSTART.SBP. This enables you to use the customized menu as the start up menu. This program file should be stored either in the directory where the Superbase program files are stored or the directory you have designated as the start directory in the System Options dialog box. To use the Superbase default menu Open the Superbase Menu Editor by selecting File/Modify/Menu. Under the Menu Editor, select File/Get Default. To apply the changes to the working session, make it the current menu by selecting File/Use as current. Now exit the Menu editor and verify the changes. If File/Modify sub menu is unavailable, then you are not able to open the Menu Editor dialog box to do any modifications. This could happen for two reasons: 1. The user might have deleted this option and set it as the current menu. 2. The user might have deliberately deleted this option and stored it as MNSTART.SBP. If you deleted this option for the current session then to get back the default menu, select File/Exit and restart Superbase. If the menu program is stored as MNSTART.SBP exit Superbase, delete the MNSTART.SBP file and restart Superbase.