File Management

The text editor File menu has several commands for standard file management. With these commands you can perform the following actions:

All file operations are performed by using the builtin Explorer Window. You can use an open Explorer Window to open a file at any time.


Creating Files

The New command creates a new source file. Creating a source file does not affect other open source files.

To create a new file

  1. From the File menu, choose New. A new document window (in the default mode) will appear.
  2. From the File menu, choose Save. A new Explorer Window in File Save mode appears.
  3. Select a path where you want to store the source file.
  4. In the File Name box, type a file name. If the you are about to store a program file, a .PROG file extension is added by default. You can type another extension.
  5. Choose the Save button.
New files are labeled Progn until they are saved. The n is a sequential number.


Opening Files

When you open a source file, its name is added to the Window menu. You cannot use the Open command on the File menu to open another copy of an open source file.

To open a file

  1. Select the file in an already open Explorer Window
    - or -
    From the File menu, choose Open. A new Explorer Window appears. Select the drive and directory where the file is stored.
  2. If you want to read only, select the Read Only check box.
    Note You cannot edit a file which was opened Read Only, unless you change the document properties.
  3. Specify the types of files to display by selecting the apropriate file filter in the Explorer Window.
  4. Select a filename, then choose the Open button.
    - or -
    Double-click the filename.

You can also open a file by dragging the icon into the application window.

Tip The names of the four most recently opened files are displayed at the end of the File menu. To open one of these files, choose its name from the menu.

Note The number of files on the list of most recently opened files is controlled by the FileCount item in the Registry.


Opening Multiple Files

You can open multiple files from the Explorer Window by using the mouse to select a file or group of files.

To open two or more files in sequence

  1. Use an already open Explorer Window
    - or -
    From the File menu, choose Open. A new Explorer Window appears. Select the drive and directory where the files are stored.
  2. Specify the types of files to display by selecting the apropriate file filter in the Explorer Window.
  3. Click the first file or directory you want to select.
  4. Hold down the SHIFT key while you click the last file or directory in the group, and then choose the Open button.

To open two or more files out of sequence

  1. Use an already open Explorer Window
    - or -
    From the File menu, choose Open. A new Explorer Window appears. Select the drive and directory where the files are stored.
  2. Specify the types of files to display by selecting the apropriate file filter in the Explorer Window.
  3. Hold down the CTRL key while you click each file or directory that you want. Once your selection is complete, choose the Open button. To cancel a selection, hold down CTRL while you click the selected file or directory.


Working with password-protected files

With Eloquence A.06.00, program files can be password-protected. When a password-protected file is loaded, the following steps are taken:
  1. The password is automatically checked against the password configuration. If one of the configured passwords matches the password of the file, the file will be loaded and displayed in an editor window.

  2. If step 1 fails, a dialog is opened where the password can be entered:

    If the password you have entered does not match the password of the file, you have two more tries before the password validation will fail.

    You can check the "add to password list" option if you want the new password to be added automatically to your password configuration.

    If this option is checked and the new password could be successfully verified, another dialog is opened which asks you for a description of the new password. This description is required in order to add the new password to your configuration:

  3. If the password you entered matches the password of the file, the file will be loaded and displayed in an editor window. Otherwise, the file will not be loaded. If it had to be loaded during a debug session, the Call Stack window is opened instead.

Saving Files

As you make changes to a source file, an asterisk (*) appears in the title bar to indicate that the file has changed since it was last saved.

To save a file

  1. Switch to the source window.
  2. From the File menu, choose Save. If you already named the file, the Save command saves the changes without displaying the Save As dialog box. If your file is unnamed, the Explorer Window in File Save mode appears.
  3. Select the drive and directory where the you want to save the file.
  4. In the File Name box, type the filename.
  5. Choose the Save button.

To save all open files

  1. From the File menu, choose Save All.
You can also save another copy of an existing file. This procedure is useful for maintaining revised copies of a file while keeping the original unchanged.

To save a new file or another copy of an existing file

  1. Make the file active by clicking the source window.
  2. From the File menu, choose Save As. An Explorer Window in File Save mode appears.
  3. Select the drive and the directory where you want to save the file.
  4. In the File Name box, type the filename.
  5. Choose the Save button.

Printing Files

With the text editor, you can print selected text or a complete file. Text is printed using the Courier New, if available, or the Courier font.

You can customize your print jobs by adding headers and footers, by adjusting margins and selecting the font size and weight. Additionally, you can specify if program files will be printed with line numbers.

To print selected text in a source file

  1. Select the text you want to print.
  2. From the File menu, choose Print. The Print dialog box appears. Under Print Range, the Selection option is automatically selected for you.
  3. Choose the OK button.

To print a complete source file

  1. Move the focus to the source file you want to print.
  2. From the File menu, choose Print. The Print dialog box appears.
  3. Under Print Range, select the All option button.
  4. Choose the OK button.

To customize a print job

  1. From the File menu, choose Page Setup. The Page Setup dialog box appears:

  2. In the Header and Footer boxes, type the header or footer text, codes, or both. You can use the drop-list to insert codes into the text box. The alignment options (left, centered, or right) take effect for any text following one of the options.


© Copyright 1997 Hewlett-Packard GmbH. All rights reserved.
Revision: 98/02/18