Cloning Menu Templates
To create a GMS menu specification, you clone template objects from the GMS Palette, connect them to specify the menu's structure, and set attributes of the cloned templates as needed to define the properties of the constituent menus and menu entries. You don't have to completely define the structure before you set template attributes; you can go through many iterations of these tasks as you work on the menu specification.
You can create a GMS menu specification on any workspace. An application can contain any number of menu specifications on any number of workspaces.
You can plan your menu(s) in advance, or you can clone, connect, reconnect, and delete template objects at any time, and change their attribute values as desired. You can ask GMS to recompile a menu specification at any time.
Thus, you can develop menu specifications iteratively, building them, testing them, modifying them, and immediately testing them again. GMS signals any compilation and execution errors. By default, G2 reports any signalled error in the Operator Logbook.
To clone template objects from the palette to a workspace:
- Click the mouse button over the template.
A copy of the template appears, attached to the mouse pointer.
- Move the mouse cursor to the desired location on the workspace.
- Click the mouse button to place the template on the workspace.
The template transfers to the workspace at the location you chose or at the nearest grid position if the snap grid is on.
Any workspace that contains one or more GMS template objects is called a GMS workspace. You can set GMS to position template objects on a GMS workspace to appear only at vertices of a regular grid. Such a grid is called a snap grid.
Note: Before enabling a snap grid, place a template object on a GMS workspace.
To set a snap grid on a GMS workspace:
The snap grid is not visible on the workspace, but it affects the positioning of all GMS template objects. When you clone a template to the workspace, or move any template on the workspace, GMS adjusts the template to appear at the nearest point on the snap grid. Existing templates are unaffected unless you move them.
Once you set a snap grid on a workspace, the grid remains on until the next time you reset G2.
Note: You can use the snap grid in any mode except administrator mode.
Copyright © 1997 Gensym Corporation, Inc.