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

Menu Parameters

The Menu Parameters system table controls how menus are displayed in G2 and how the menu selections appear within the menu box.

Specifying how to Align Menu Choices

The Alignment-for-menu-choices attribute specifies how G2 displays menu selections. The left value specifies a left-justified display, right specifies a right-justified display, and center specifies a centered display. The default for this attribute is left.

Allowing Multiple Menus to Display

The When-to-allow-multiple-menus attribute determines whether you can display on a workspace more than one copy of the same menu at a time, or whether you can display more than one menu at a time as follows:

This value... Causes G2 to...
always
Allow as many copies of a menu as you want to position on the workspace by clicking with your mouse.
never
Allow one copy of a menu for one purpose to be displayed at any given time.
for different selections
Display more than one menu at a time if the menus are for different items. For example, you can display the Main Menu and the Logbook-Page menu at the same time.

Allowing Walking Menus

The Walking-menus? attribute determines whether G2 displays walking menus. When the menu attribute is set to yes, G2 lets you choose from submenus by dragging the mouse, leaving the original menu visible. When the attribute is set to no, you must click on a choice and dismiss the original menu to display a submenu.

The Walking-menus? attribute defaults to a value of no for KBs created in previous versions of G2.

The next figure shows part of the KB Workspace menu with two submenus. This display results from:

  1. Opening the KB Workspace menu.

  2. Dragging the mouse pointer to the right-hand portion of the New Object menu choice. This causes G2 to display the choose a class submenu.

  3. Dragging the mouse pointer to the g2-list menu choice. This causes G2 to display the next choose a class submenu.


Note: The next figure is a representation of what appears in G2 and does not reflect that selected menu choices are highlighted when walking menus are in use.


Class-Specific Attributes of Menu Parameters

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

Attribute Description
Alignment-for-menu-choices
Specifies how G2 displays menu selections.
Allowable values:
{left | right | center}
Default value:
left


When-to-allow-multiple-menus
Determines whether you can display more than one menu at a time.
Allowable values:
{never | always | for difference selections }
Default value:
never


Walking-menus?
Determines whether G2 has walking menus.
Allowable values:
{yes | no}
Default value:
yes

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

Copyright © 1997 Gensym Corporation, Inc.