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

Defining and Displaying a Dynamic Cascade Menu

At the top level, defining a dynamic cascade menu is the same as defining a static cascade menu, except that you use a different entry template, a Dynamic Cascade template. This template has the same attributes as an ordinary Cascade Menu template, plus attributes that specify the panel constructor function and control the deletion of dynamically constructed templates.

To define a dynamic cascade menu:

  1. Clone a Dynamic Cascade template from the GMS Palette to a workspace.

  2. Set attributes of this template as needed for any cascade menu, as described in Chapter 3, Defining a Simple Menu..

  3. Set the Gms-subpanel-constructor of the template to specify the appropriate panel constructor.

  4. Include the template in a menu specification just as you would any cascading menu entry.

GMS automatically creates and displays a dynamic cascade menu whenever you select its cascading menu entry. No special action is needed.

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

Copyright © 1997 Gensym Corporation, Inc.