Go to Glossary Search VisualAge C++ Help Go to VisualAge C++ Help Home Page Go to WWW VisualAge C++ Site

File Pull-down Menu Selections

Selections in the File pull-down menu group let you perform operations with files. Selections actually displayed in the File pull-down menu can vary depending on the application with which you are using the Editor, or the type of file being edited.

The standard set of File pull-down menu selections are:

New... Select this menu choice to create a new, empty file. The New window will appear, in which you can set options for the new file.

If the View->Default to ring pull-down menu choice has a check beside it, the file opens into a new view in the current editing ring.

If the View->Default to ring pull-down menu choice does not have a check beside it, the file opens into a new view in a new editing ring in a new Editor window.

Open... Select this menu choice to display the Open window. This window lets you select an existing file to load into the Editor for editing.

The Editor will not open a file for editing if that file is already open in the Editor. Instead, the Editor brings an existing view of that file forward to become the current view.

Open new view Select this menu choice to open an additional view of the current file so that you can look at and work on different parts of that file at once.

You may want to use several views of a file to:

  • Edit several parts of a file using, for example, Edit->Cut, Edit->Copy, and Edit->Paste operations.
  • Compare similar sections to find programming errors. If the View->Default to ring pull-down menu choice has a check beside it, the new view of the file opens into the current editing ring. If the View->Default to ring pull-down menu choice does not have a check beside it, the new view of the file opens into a new editing ring in a new Editor window.
Get... Select this menu choice to open the Get window. This window lets you select a file for insertion into the current document in the Editor.

The document is inserted at the begining of the line below the current insertion point.

Note: The Get operation will not load any new profiles with the file being inserted. Profiles already loaded remain in effect and are applied to the file being inserted.

Save Select this menu choice to save the current file, including any changes you have made to it. The file remains displayed in the Editor window.

When you save a new file for the first time, the Editor prompts you to give the file a name and specify where you want the file stored.

Save as... Select this menu choice to display the Save as window. This window lets you specify a file name under which to save the document in the current editing view. The Save as window also appears whenever you save an unnamed file.

You can also use this window to save an already-named file under a new file name, then edit the newly-named file in the current Editor window. The original file is preserved as it was when you last saved it.

Save all Select this menu choice to save all modified documents open in the Editor.

Files already named are saved under their current name.

For each new, unnamed document open in the Editor, the Save as window appears prompting you to enter a valid file name. The document is saved under this name.

Close view Select this menu choice to close the current file view.

If this view is the last view of a given file open in the Editor, the Editor warns you of unsaved changes and gives you an opportunity to save them.

Close ring Select this menu choice to close all file views in the current ring.

Files that do not also have one or more views open in other rings are closed. The Editor warns you of unsaved changes to files and give you an opportunity to save them.

If the ring being closed is the last ring open in the Editor, the Editor also closes.

Print... Select this menu choice to print all or a part of the file you are editing.

The Print window appears to let you specify:

  • how many copies to print
  • which areas of text to print
  • if line numbers are required
  • if character emphasis used by the parser is printed
  • which printer to use
  • which printer fonts to use
Minimize all Select this menu choice to minimize all Editor windows into a single icon.

To restore all windows to their original state, double-click on the icon produced by this action.

Exit Select this menu choice to close the Editor and all documents open in the Editor.

The Editor warns you of unsaved changes to documents and gives you an opportunity to save them.



Manage Multiple File Views with the Ring Manager