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 Services Manager Routines for Client Applications / Passing Menu Selections and Cursor Setting


TSMMenuSelect

The TSMMenuSelect function gives the specified text service component a chance to reply to a menu selection.

FUNCTION TSMMenuSelect (menuResult: LongInt): Boolean;
menuResult
The result from the Menu Manager MenuSelect function.
DESCRIPTION
When the user chooses a menu item, the item may belong to a text service component's menu. To provide an opportunity for the text service component to reply to its menu selections, your application should call TSMMenuSelect with the result from the Menu Manager MenuSelect function.

TSMMenuSelect returns FALSE if a text service component did not handle the menu selection. In this case, your client application should process the menu selection normally. TSMMenuSelect returns TRUE when a text service component handled the menu selection. In this case, you should take no action.

After TSMMenuSelect returns, your application should--as usual--call the Menu Manager function HiliteMenu with the menuID parameter set to 0 to remove the highlighting from the menu title.

SEE ALSO
The Menu Manager is described in Inside Macintosh: Macintosh Toolbox Essentials.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996