Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Text /
Chapter 7 - Text Services Manager / Text Services Manager Reference
Text Service Component Routines / Responding to Events and Updating the Cursor and Menu


TextServiceMenuSelect

The TextServiceMenuSelect function lets a text service component handle commands from its menus.

FUNCTION TextServiceMenuSelect (ts: ComponentInstance; 
                                serviceMenu: MenuHandle; 
                                item: Integer): ComponentResult;
ts
A component instance created by a prior call to the Component Manager OpenComponent function.
serviceMenu
A Menu Manager menu handle (defined by the MenuHandle data type) to a specific text service component menu.
item
The text service component menu item that the user has selected.
DESCRIPTION
When the user makes a menu selection, the client application calls TSMMenuSelect; the Text Services Manager in turn calls TextServiceMenuSelect to all active components. The text service component receiving this call should return 0 for componentResult if it did not handle the menu selection, and 1 if it did.

After the text service component performs the chosen task, it is not responsible for removing the highlighting from the menu title.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996