Important: The information in this document is obsolete and should not be used for new development.
TSMMenuSelect
TheTSMMenuSelect
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 callTSMMenuSelect
with the result from the Menu ManagerMenuSelect
function.
TSMMenuSelect
returnsFALSE
if a text service component did not handle the menu selection. In this case, your client application should process the menu selection normally.TSMMenuSelect
returnsTRUE
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 functionHiliteMenu
with themenuID
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.