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

Options Pull-down Menu Selections

Selections in the Options pull-down menu group let you set various options that control the Editor look and feel. Selections actually displayed in the Options 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 Options pull-down menu selections are:

Font... Select this menu choice to change the basic font used to display text in the editing windows. The Font window appears, showing you available font selections and effects.
Color palette... Select this menu choice to customize the colors used in the Editor. The Color palette window appears, in which you can define and save a new color palette, or select an existing color palette for use in your editing session.
Token attributes... Select this menu choice to customize display characteristics of the tokens defined for the current document type. The Token attributes window appears, in which you can preview and change the character display attributes for the different token types found in your file.
Automatic indenting... Select this menu choice to set the indent values for each programming language token, and to save them in the current language profile. The Automatic indenting window appears, in which you can define the indenting used in your file.

To activate automatic indenting after you set features in this window, select Automatic indenting from the Options->Language editing selection.

Editor parameters... Select this menu choice to query and set Editor parameters. The Editor parameters window appears, listing parameters that can be queried or set.
Language editing-> Select this menu choice to set options and features described in the language profile. for editing files.

Note: The language profile associated with the file you are currently editing determines which of these features are available.

When selected, this choice provides a cascaded menu. You can select or deselect any or all of the following cascaded menu choices to enable or disable the features.

Token highlighting Provides highlighting of tokens to let you use language-editing features.
Automatic indenting Provides automatic indenting for the file in the Editor window.
Lexical errors Lets you enable or disable lexical error logging.
Global variables... Select this menu choice to view, change, and set global variables. The Global variables window appears, listing each name together with its current value, and enabling you to change an existing variable or set a new one.
Profiles-> Select this menu choice to run and edit load profiles in the Editor. A cascaded menu opens showing a range of choices. Actual choices shown will vary according to which load profiles are defined on your system, and the type of file you are editing. Choices that may appear in the cascaded menu are:
Change profile... Applies load profiles of your choice against a document already open in the Editor. The Change profile window appears, listing available profiles which you can choose from.
All active Opens for editing all load profiles that apply to the current document.
User startup Opens for editing the profinit.lxu profile, if it is defined.
User file load Opens for editing the profsys.lxu profile, if it is defined.
Language load:<lang> Opens for editing the language profile (lang.lxl) for the current document, if it is defined.
User load:<lang> Opens for editing the user-defined language profile (lang.lxu) for the current document, if it is defined.
User preferences Opens for editing the profile.lx profile, if it is defined.
Controls -> Select this menu choice to enable or disable Editor default control settings in the Editor window. Controls listed in the cascaded menu are enabled if a check mark appears beside them. To toggle a control between enabled and disabled states, click on the its entry in the cascaded menu.

Control settings available in the cascaded menu are:

Command line If enabled, display an Editor command entry area at the bottom of the Editor window.
Format line If enabled, display a ruler at the top of each editing window.
Status line If enabled, display a status line at the top of each editing window showing:
  • Cursor row and column location
  • Insert/replace mode
  • Number of changes to file since last save
Message line If enabled, display a message line area at the bottom of each editing window.
Ring selector If enabled, display a title bar at the top of each editing window that:
  • Identifies the document in the current view, and,
  • Contains a ring document selector control.
Tool bar -> Select this menu choice to control toolbar display characteristics. A cascaded menu gives you the following choices:
Show The tool-bar is enabled and displayed if a check mark appears beside this item. The style of toolbar displayed depends on the Style setting, described below. Click on this selection to toggle between enabled and disabled states.
Hover help Hover help for the tool-bar is enabled if a check mark appears beside this item. Click on this selection to toggle between enabled and disabled states. Hover help appears if you pause the mouse cursor over a tool-bar item.
Style Select one of the following choices to set the tool-bar style. Available styles are:
  • Graphic and text
  • Graphic only
  • Text only

Regardless of style selected, the tool-bar is displayed only if the Tool bar->Show selection has a check mark beside it.

File list -> Select this menu choice to control if and how a list of recently-opened file names is displayed in the File pull-down menu. Available choices are:
Top Displays the recently-opened file list at the top of the File pull-down menu
Bottom Displays the recently-opened file list at the bottom of the File pull-down menu
Off Do not display the recently-opened file list.
Pathnames Include directory path information with names of recently-opened files.

You can specify the number of file names maintained in the recently-opened file list. See recentsize parameter for more information.

Key behavior-> Select this menu choice to define the behavior of certain keyboard keys in Editor, for example, the Enter, Delete, and Backspace keys. You can select one of the existing Editor personalities with which you might already be familiar, such as EPM or SEU.

Selecting the Customize... choice opens the Key Behavior - customize window, in which you can define your own key behaviors.

Changes to key behaviors are saved between editing sessions.

Warning: The keys help defines only the default Editor key behaviors, and may be incorrect if applied to other Editor personalities or customized key behaviors.

Stream selection Select this menu choice to toggle block marking between stream and character modes. A check mark beside this item indicates that the Editor is in stream block marking mode.

In stream block marking mode, the cursor is coupled to the selected block of text. If you select a block of text and then move the cursor to another part of the document, the selected text is deselected.

In other blocking modes, the cursor is not coupled to the selected block of text. You can select a block of text and then move the cursor to another part of the document without deselecting the selected text. The selected block of text can be manipulated using the Edit->Block pull-down menu choice.



Change Editor Tab Settings
Change the Base Editor Font
Change Token Display Attributes
Customize the Keyboard
Change Text and Background Color Palettes
Use Profiles to Modify Editor Behavior
Write Macros for the Editor