| Prev | Next | Previous Chapter | End of Chapter | Contents | Glossary | Index | Comments | (1 out of 9)

Chapter 7

Writing and Using Callback Procedures


Shows how to write GMS callback procedures and supply them with the information that they need.

Introduction
Types of GMS Callback Procedures
Callback Procedure Syntax
Using Callback Procedure Arguments
Obtaining the G2 Window
Obtaining the Initiating Item for a Popup Menu
Obtaining Menu Entries and Attribute Values
Menu Levels
Obtaining Menu Indexes from an Activation Path
Obtaining Menu Entry Attributes in an Activation Context
Obtaining All Cascade Menu Entries
Providing Additional Data to a Callback Procedure
Storing Information in Template Keys
Using Template Keys to Access Information
Other Strategies for Providing Data to a Callback
Distributing Data over Multiple Menu Templates
Specifying a Default Callback Procedure
Invoking a Procedure When a Menu is Displayed or Hidden
Invoking a Procedure on Selection and Unselection
| Prev | Next | Previous Chapter | End of Chapter | Contents | Glossary | Index | Comments | (1 out of 9)

Copyright © 1997 Gensym Corporation, Inc.