| Prev | Next | Start of Chapter | End of Chapter | Contents | Glossary | Index | Comments | (8 out of 22)

Editor Parameters

The Editor Parameters system table lets you customize some aspects of editing in a KB.

Specifying the Maximum Number of Names to Show

The Maximum-number-of-names-in-menus attribute controls the maximum number of names that G2 displays in prompt menus in the Text Editor.

For example, if this attribute has a value of 7 and you are editing a rule and can enter an item name, if more than seven names exist in the KB, G2 does not display any names in the text editor. If you type the letter s and there are seven or fewer names that begin with s, G2 displays those names.

Defining the Minimum Text Editor Width

The Minimum-width-for-edit-box attribute defines the minimum width at which the Text Editor is displayed.

This attribute is applicable for both editors (scrolling and non-scrolling). The default value for this attribute is 0. By default, the scrolling editor is approximately 500 workspace units wide. Setting this attribute to a value greater than 500 affects the scrolling editor. Setting it to a lesser value has no effect.

Specifying Whether to Enable Author Recording

The Author-recording-enabled? attribute specifies whether G2 maintains user information about changes made to items that include the Authors attribute. The Authors attribute appears in a select number of G2 items. For a full description of the Authors attribute, see Using the Authors Attribute.

Class-Specific Attributes of Editor Parameters

The class-specific attributes of the Editor Parameters system table are:

Attribute Description
Maximum-number-of-names-in-menus
Controls the maximum number of names that display at one time in the Text Editor menus.
Allowable values:
any positive integer
Default value:
7


Object-name-menus-in-upper-case?
Controls whether G2 displays object names in uppercase in Text Editor prompts. When these names are displayed in uppercase, G2 inserts them in text in upper case as well, when you select them.
Allowable values:
{yes | no}
Default value:
no


Number-of-spaces-to-insert-on-a-tab
Controls the number of spaces that G2 inserts when you press the Tab key.
Allowable values:
integer
Default value:
4


Maximum-number-of-undos-to-remember
Specifies how many text editing operations G2 remembers and allows you to Undo. G2 allows you to undo any of the available edit operations.
Allowable values:
integer
Default value:
100


Maximum-number-of-scraps-to-keep
Sets the maximum number of text pieces, or scraps, kept by the G2 text editor as you cut scraps from the text editor window, or copy them into the scrapbook. Use an integer to set the number of scraps kept. If you exceed this limit, the oldest scrap is thrown away.
Allowable values:
integer
Default value:
50


Minimum-width-for-edit-box
Determines the minimum width of the Text Editor box.
Allowable values:
integer
Default value:
0


Author-recording-enabled?
Determines whether G2 maintains user information about changes made to items that include the Authors attribute.
Allowable values:
{yes | no}
Default value:
yes

| Prev | Next | Start of Chapter | End of Chapter | Contents | Glossary | Index | Comments | (8 out of 22)

Copyright © 1997 Gensym Corporation, Inc.