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
Copyright © 1997 Gensym Corporation, Inc.