TSMMenuSelect
TheTSMMenuSelectfunction 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
MenuSelectfunction.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 callTSMMenuSelectwith the result from the Menu ManagerMenuSelectfunction.
TSMMenuSelectreturnsFALSEif a text service component did not handle the menu selection. In this case, your client application should process the menu selection normally.TSMMenuSelectreturnsTRUEwhen a text service component handled the menu selection. In this case, you should take no action.After
TSMMenuSelectreturns, your application should--as usual--call the Menu Manager functionHiliteMenuwith themenuIDparameter set to 0 to remove the highlighting from the menu title.SEE ALSO
The Menu Manager is described in Inside Macintosh: Macintosh Toolbox Essentials.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help